API to Delete a Troubleshooting Command
This endpoint deletes a troubleshooting command available for given Connector.
DELETE /openapi/v1/connectors/<id>/commands/<command_id>
where <id> is id that can be obtained from the API to Get Connectors, <command_id> is the id that can be obtained from API to List Troubleshooting Commands.
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
id |
string |
Specify the Connector ID |
command_id |
string |
Specify the command ID |
Response object: Returns the status of the troubleshooting command deleted for given Connector.
Sample response
resp = restclient.delete('/connectors/63c12e316419d0131767e21c/commands/63c10a0039042a6aee1b008c')
if resp.status_code == 200:
parsed_resp = json.loads(resp.content)
print json.dumps(parsed_resp)
Sample response
{
"status": 200,
"code": 1000,
"message": "deleted"
}