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}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
image_id |
Yes |
String |
Specifies the image ID. |
|
tag |
Yes |
String |
Specifies the tag to be added. The character string cannot contain equal signs (=).
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
Returned Values
- Normal
- 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.
Last Article: Image Tagging (Native OpenStack APIs)
Next Article: Deleting a Tag (Native OpenStack API)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.