Modifies the image attributes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:ModifyImageAttribute |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ImageId |
string |
Yes |
The ID of the image. |
m-5t4xwkfkbs0uxv0kymdb6uip7 |
| ImageName |
string |
Yes |
The name of the image. |
Image name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The service code. 0 is returned for a successful request. An error code is returned for a failed request. |
0 |
| RequestId |
string |
The ID of the request. |
AC66B8F3-0B0A-5FB1-9EA2-DC03B2CD5B04 |
Examples
Success response
JSON format
{
"Code": 0,
"RequestId": "AC66B8F3-0B0A-5FB1-9EA2-DC03B2CD5B04"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.