API to List Troubleshooting Commands
This endpoint returns the list of troubleshooting commands that are enabled for given Connector.
GET /openapi/v1/connectors/<id>/commands
where <id> is the id that can be obtained from the API to Get Connectors.
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
id |
string |
Specify the Connector ID |
Response object: Returns the list of troubleshooting commands that are enabled for given Connector.
Sample response
resp = restclient.get('/connectors/63db5418e6ee1167a4c0986c/commands')
if resp.status_code == 200:
parsed_resp = json.loads(resp.content)
print json.dumps(parsed_resp)
Sample response
[
{
"appliance_id": "63dad690e6ee1131f255e985",
"connector_id": "63db5418e6ee1167a4c0986c",
"service_id": "63db5418e6ee1167a4c0986d",
"state": "success",
"level": "SERVICE",
"command": "SHOW_LOG",
"arg_string": "",
"args": {
"pattern": "info"
},
"tailed": false,
"rc": 0,
"push_to_dio_at": 1675319615,
"attempts": 1,
"error_code": "NO_ERROR",
"error_text": "",
"deleted": false,
"deleted_at": 0,
"created_at": 1675319613,
"total_chunk": 0,
"id": "63db593df029813659f9fcf6"
}
]