Macros
Macros - Create
Creates a new macro in a Fabric-enabled LogPoint.
POST
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/MacrosParameters
name
Name
String
Name for the macro. The field supports alpha-numeric and underscore (_) characters. Mandatory Field
query
Query
String
Complete and valid Query. Mandatory Field
Request Example
{
"data": {
"name": "admin_log",
"query": "user=admin"
}
}Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}Macros - Edit
Edits the macro with given ID.
PUT
Parameters
id
-
String
Existing Macro id. Obtain the value of the required Macro id using Macros - List API. Mandatory Field
name
Name
String
Name for the macro. The field supports alpha-numeric and underscore (_) characters. Mandatory Field
query
Query
String
Complete and valid Query. Mandatory Field
Request Example
Success Response
Macros - Get
Fetches the macro with given ID.
GET
Parameters
id
-
String
ID of the existing macro that you want to fetch.
Success Response
Macros - Install
Install a given pak file containing macros.
POST
Parameters
file_location
-
String
Location of the file uploaded to install. Can be either 'private' or 'public'. Mandatory Field
file_name
Macros
String
Name of the pak file containing Macros. Mandatory Field
Request Example
Success Response
Macros - List
Lists all macros in the Fabric-enabled LogPoint.
GET
Success Response
Macros - ListPrivateUploads
List all the pak files that contain macro configurations in private storage.
GET
Success Response
Macros - ListPublicUploads
List all the pak files that contain macro configurations in public storage.
GET
Success Response
Macros - Trash
Removes the macro with given ID.
DELETE
Parameters
id
-
String
ID of the existing macro that you want to delete. Mandatory Field
Success Response
Macros - TrashPrivateUploads
Delete the file with given name from private storage.
DELETE
Parameters
file_name
-
String
Name of the file to be deleted. Mandatory Field
Success Response
Macros - TrashPublicUploads
Delete the file with given name from public storage.
DELETE
Parameters
file_name
-
String
Name of the file to be deleted. Mandatory Field
Success Response
Macros - Upload
Upload pak files that contain macros to private storage. This upload should be used for macros only.
POST
Headers
file_name
Name of the file to be uploaded.
Content-Type
application/octet-stream
replace_existing
Set the value of this parameter as 'true' to replace the existing file with the same name with the new file. Default value is 'false'. Value can be 'true' or 'false'. Optional field
Parameters
file
-
[Object]
(pak) to be uploaded. Mandatory Field
Success Response
Macros - UploadPublic
Upload pak files that contain macros to public storage. This upload should be used for macros only.
POST
Headers
file_name
Name of the file to be uploaded.
Content-Type
application/octet-stream
replace_existing
Set the value of this parameter as 'true' to replace the existing file with the same name with the new file. Default value is 'false'. Value can be 'true' or 'false'. Optional field
Parameters
file
-
[Object]
(pak) to be uploaded. Mandatory Field
Success Response
Last updated
Was this helpful?