Adding a Tag (Native OpenStack API)

Function

This API is used to add a custom tag to an image. With tags, you can manage easily the images.

URI

PUT /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 tag to be added.

The tag can contain only digits, letters, underscores (_), and hyphens (-).

NOTE:

This API can only be used to add a tag key. To add a tag value, use the PUT /v1/cloudimages/tags API. For details, see Adding or Modifying a Tag.

Request

Response

Returned Values