You can call this operation to modify the properties of images.

Description

You can call this operation to modify the properties of only custom images in the Available (Available) state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyImageAttribute

The operation that you want to perform. Set the value to ModifyImageAttribute.

Description String Yes testDescription

The description of the image.

ImageId String Yes m-2g65ljy3ynrdq****

The ID of the image.

RegionId String Yes cn-hangzhou

The region ID of the image.

Name String No testName

The name of the image.

Response parameters

Parameter Type Example Description
RequestId String 4636DBE0-BBB4-4076-8B8E-94D21A9A3CFB

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=ModifyImageAttribute
&Description=testDescription
&ImageId=m-2g65ljy3ynrdq****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ModifyImageAttributeResponse>
      <RequestId>4636DBE0-BBB4-4076-8B8E-94D21A9A3CFB</RequestId>
</ModifyImageAttributeResponse>

JSON format

{
    "RequestId":"4636DBE0-BBB4-4076-8B8E-94D21A9A3CFB"
}

Error codes

For a list of error codes, visit the API Error Center.