Modifies the attributes of an image, including the name and description of the image.
Operation description
You can call this operation to modify the attributes of only custom images that are in the Available state.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:ModifyImageAttribute |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| ImageId |
string |
Yes |
The image ID. |
m-2g65ljy3ynrdq**** |
| Name |
string |
No |
The name of the image. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with |
testName |
| Description |
string |
No |
The description of the image. The description must be 2 to 256 characters in length and cannot start with |
testDescription |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.