Canceling Synchronization
Use the post /v1/cckm/sap/synchronization-jobs/{id}/cancel
API to cancel the synchronization job.
Syntax
curl -k '<IP>/api/v1/cckm/sap/synchronization-jobs/{id}/cancel' -X POST -H 'Authorization: Bearer AUTHTOKEN' --compressed
Here, {id}
is the ID of the synchronization job.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/sap/synchronization-jobs/1234/cancel' -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI3ZjRlNmJkNi0wMzgzLTQ4MGMtYWZmZS0wYTQxNDgzZmVlNmUiLCJzdWIiOiJsb2NhbHxlNjM3NTVjOS01YzRhLTQ0NzUtOWI0Zi0wN2JjNzQxYjQ1MGEiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiOWMxMjQyOTQtMmM1Mi00ZmJmLWExNWEtMGZlNzkxZmI4YzNlIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjhmY2Q2Y2JiLWRmNjQtNGVmNC1iNjZjLTgyNmYzMjJkOGIwYSIsImlhdCI6MTYzNDU2MzAwOCwiZXhwIjoxNjM0NTYzMzA4fQ.P5s2AMV1QPLOwCxUUrtq7_ksHZUBwCQqo1hiyN-RsOM' --compressed
Example Response
{
"application/json":{
"id":"bf27cde1-e2ed-4244-9d5a-8a4e12ad1837",
"uri":"kylo:kylo:cckm:synchronize:bf27cde1-e2ed-4244-9d5a-8a4e12ad1838",
"account":"kylo:kylo:admin:accounts:kylo",
"application":"ncryptify:gemalto:admin:apps:kylo",
"devAccount":"ncryptify:gemalto:admin:accounts:gemalto",
"createdAt":"2020-08-06T09:49:34.605578Z",
"updatedAt":"2020-08-06T09:50:08.968859976Z",
"overall_status":"in progress",
"detailed_status":{
"sap1::742f9921-2d91-41fc-97fc-e98ad007f081":"in progress"
},
"cloud":"sap",
"groups":[
"3e732d57-5ea1-491f-b238-9f4a39a9566f",
"c4e5bd34-af39-4027-9058-6f1a4bb3519d"
],
"abort":true
}
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.