Cancel during copy image¶
Overview¶
Cancel a specified image copy job.
Classification¶
- Cancel
API Operation Object¶
- jobs
Synchronous / Asynchronous¶
- asynchronous
Request¶
HTTP Request Method¶
- DELETE
HTTP Request Path¶
{api_endpoint}/v2/extension/image_replicator/jobs/{job_id}
Response¶
Sample API Request and Response¶
Sample API Request¶
Request URI¶
https://example.com/v2/extension/image_replicator/jobs/{job_id}
Request Header¶
X-Auth-Token: ajk3adjiown02
Request Body¶
- none
Sample API Response¶
Response Header¶
HTTP/1.1 204 No Content
<response_code>: see "HTTP Responses" section
<message>: message based on the response code
- skip auto insert field such as "X-Compute-Request-Id" and "Content-Length", "Date"
Response Body¶
- none
Execution Example¶
HTTP Request¶
DELETE /v2/extension/image_replicator/jobs/33911588-c299-4369-a240-7e5b741cdb6a HTTP/1.1
User-Agent: curl/7.35.0
Host: 192.168.56.250:9292
X-Auth-Token: f4328bab05ff4502b397b88657baaefd
HTTP Response¶
HTTP/1.1 204 No Content
Date: Fri, 10 Jun 2016 04:32:43 GMT
Content-Length: 0
Connection: close
Content-Type: application/json; charset=UTF-8
Error Execution Example¶
HTTP Request¶
DELETE /v2/extension/image_replicator/jobs/33911588-c299-4369-a240-7e5b741cdb6a HTTP/1.1
User-Agent: curl/7.35.0
Host: 192.168.56.250:9292
HTTP Response¶
HTTP/1.1 401 Unauthorized
Date: Fri, 10 Jun 2016 04:44:44 GMT
Content-Length: 44
Vary: X-Auth-Token
Connection: close
Content-Type: text/plain; charset=UTF-8
401 Unauthorized
Authentication required.