Updated on 2023-06-21 GMT+08:00

Deleting a Tag (Native OpenStack API)

Function

This API is used to delete a custom tag from a private image.

URI

DELETE /v2/images/{image_id}/tags/{tag}

Table 1 lists the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Type

Description

image_id

Yes

String

Specifies the image ID.

tag

Yes

String

Specifies the image tag.

The tag cannot contain equal signs (=).

Request

Request parameters

None

Example Request

Deleting an image tag

DELETE https://{Endpoint}/v2/images/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/tags/aaaa

Response

  • Response parameters

    None

  • Example response
    STATUS CODE 204

Returned Values

  • Normal

    204

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    Request error.

    401 Unauthorized

    Authentication failed.

    403 Forbidden

    You do not have the rights to perform the operation.

    404 Not Found

    The requested resource was not found.

    500 Internal Server Error

    Internal service error.

    503 Service Unavailable

    The service is unavailable.