Delete image tag¶
Overview¶
Deletes a specified tag from a specified image.
Classification¶
- Delete
API Operation Object¶
- tags
Synchronous / Asynchronous¶
- -
Request¶
HTTP Request Method¶
- DELETE
HTTP Request Path¶
{api_endpoint}/v2/images/{image_id}/tags/{tag}
Response¶
HTTP Response Header¶
Format¶
HTTP/1.1 <response_code> <message> (ex. 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 Code¶
response code | condition |
---|---|
204 | normal end |
* | Follow a Common Error Code |
Sample API Request and Response¶
Sample API Request¶
Request URI¶
https://example.com/v2/images/{image_id}/tags/{tag}
Request Header¶
Accept-Encoding: gzip, deflate, compress (optional)
Accept: application/json
X-Auth-Token: ajk3adjiown02
Content-Type: application/json
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/images/82c96579-ba53-4a84-a69a-716382fe0293/tags/tag1 HTTP/1.1
User-Agent: curl/7.35.0
Host: 192.168.56.250:9292
Accept: */*
X-Auth-Token: 0c3a50a694f44b748abd8e0660ecbd45
HTTP Response¶
HTTP/1.1 204 No Content
Content-Type: text/html; charset=UTF-8
Content-Length: 0
X-Openstack-Request-Id: req-aac1205e-912b-4adf-b3f2-b3b21cece027
Date: Thu, 15 Oct 2015 16:05:18 GMT
Error Execution Example¶
HTTP Request¶
DELETE /v2/images/82c96579-ba53-4a84-a69a-716382fe0293/tags/tag1 HTTP/1.1
User-Agent: curl/7.35.0
Host: 192.168.56.250:9292
Accept: */*
X-Auth-Token: 0c3a50a694f44b748abd8e0660ecbd45
HTTP Response¶
HTTP/1.1 404 Not Found
Content-Length: 154
Content-Type: text/html; charset=UTF-8
X-Openstack-Request-Id: req-42e74d48-413a-46f5-a388-d86aac90e50a
Date: Thu, 15 Oct 2015 16:07:22 GMT
404 Not Found
The resource could not be found.