Adds labels to a specified image.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiimage:AddImageLabels |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/images/{ImageId}/labels HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ImageId |
string |
Yes |
The ID of the image. For more information, see ListImages. |
image-4c62******53uor |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The image labels. |
|
| Labels |
array<object> |
Yes |
A list of image labels. |
|
|
object |
No |
An image label. |
||
| Key |
string |
No |
The key of the label. The following keys are supported:
|
system.chipType |
| Value |
string |
No |
The value of the label. |
GPU |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.