Creates a new macro in a Fabric-enabled LogPoint.
POST
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Macros
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
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}"
}
Edits the macro with given ID.
PUT
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Macros/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
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
{
"data": {
"name": "admin_log",
"query": "user=admin"
}
}
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
Fetches the macros with given ID.
GET
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Macros/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
ID of the existing macros that you want to fetch. |
Success Response
{
"id": "4ffbe8018dc3ad85f8116940",
"name": "admin_log",
"query": "user=admin",
"tid": "",
"user": "admin"
}
Install a given pak file containing macros
POST
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Macros/install
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
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
{
"data": {
"file_location": "private",
"file_name": "macros.pak"
}
}
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
Lists all macros in the Fabric-enabled LogPoint.
GET
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Macros
Success Response
[
{
"id": "4ffbe8018dc3ad85f8116940",
"name": "admin_log",
"query": "user=admin",
"tid": "",
"user": "admin"
}
]
List all the pak files that contains macro configurations in private storage
GET
https://api-server-host-name/configapi/{pool_UUID}/Macros/list
Success Response
[
"macros.pak"
]
List all the pak files that contains macro configurations in public storage
GET
https://api-server-host-name/configapi/Macros/list
Success Response
[
"macros.pak"
]
Removes the macros with given ID.
DELETE
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Macros/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
ID of the existing macros that you want to delete. Mandatory Field |
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
Delete the file with given name from private storage
DELETE
https://api-server-host-name/configapi/{pool_UUID}/Macros/{file_name}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
file_name |
- |
String |
Name of the file to be deleted. Mandatory Field |
Success Response
{
"status": "Success",
"message": "macros.pak successfully deleted"
}
Delete the file with given name from public storage
DELETE
https://api-server-host-name/configapi/Macros/{file_name}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
file_name |
- |
String |
Name of the file to be deleted. Mandatory Field |
Success Response
{
"status": "Success",
"message": "macros.pak successfully deleted"
}
Upload pak files that contains macros to private storage. This upload should be used for macros only.
POST
https://api-server-host-name/configapi/{pool_UUID}/Macros/upload
Header
Field |
Label in UI |
Description |
|---|---|---|
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 |
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
file |
- |
[Object] |
(pak) to be uploaded. Mandatory Field |
Success Response
{
"status": "Success",
"message": "macros.pak successfully uploaded in private storage. "
}
Upload pak files that contains macros to to public storage. This upload should be used for macros only.
POST
https://api-server-host-name/configapi/Macros/publicupload
Header
Field |
Label in UI |
Description |
|---|---|---|
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 |
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
file |
- |
[Object] |
(pak) to be uploaded. Mandatory Field |
Success Response
{
"status": "Success",
"message": "macros.pak successfully uploaded in public storage."
}
We are glad this guide helped.
Please don't include any personal information in your comment
Contact Support