Automations
Automations: 5 operations of the ChaosDesk REST API.
- GET
/api/automationsRetrieves the collection of Automation resources. - POST
/api/automationsCreates a Automation resource. - GET
/api/automations/{id}Retrieves a Automation resource. - PATCH
/api/automations/{id}Updates the Automation resource. - DELETE
/api/automations/{id}Removes the Automation resource.
Retrieves the collection of Automation resources.
Responses
200Automation collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/automations" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a Automation resource.
Request body application/json
conditionsobjectactionsobject[]titlestringrequireddescriptionstring | nullactivebooleanpositioninteger
Responses
201Automation resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/automations" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"string"}' Retrieves a Automation resource.
Parameters
idstringpathrequired- Automation identifier
Responses
200Automation resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/automations/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the Automation resource.
Parameters
idstringpathrequired- Automation identifier
Request body application/merge-patch+json
conditionsobjectactionsobject[]titlestringdescriptionstring | nullactivebooleanpositioninteger
Responses
200Automation resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/automations/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"conditions":"string","actions":"string"}' Removes the Automation resource.
Parameters
idstringpathrequired- Automation identifier
Responses
204Automation resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/automations/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"