- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Images
ModifyImageAttribute – Modifies image information
Images
ModifyImageAttribute – Modifies image information
ModifyImageAttribute – Modifies image information
Call the ModifyImageAttribute operation to modify the name, description, boot mode, and other information of a custom image.
Debugging
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
Request parameters
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters. Action string required Sample value: ModifyImageAttribute
The action that you want to perform. Value: ModifyImageAttribute.
Version string required Sample value: 2020-04-01
The version of the API. Valid value: 2020-04-01.
BootMode string Optional Sample value: UEFI
The image boot mode. If this parameter is left blank, the original configuration is retained. Value:
tip
- EBM instances only support the UEFI boot mode.
- For ARM images, the default value is UEFI, and this parameter can only be set to UEFI.
Description string Optional Sample value: This is my first image
The image description.
- It must start with a letter or a Chinese character.
- It can contain only Chinese characters, letters, digits, underscores (_), hyphens (-), equal signs (=), English commas (,), English periods (.), Chinese commas (,), Chinese periods (。), and spaces.
- It must be 0 to 255 characters in length.
tip
- If this parameter is left blank, the original configuration is retained.
- When an empty string is passed in, the existing description information is cleared.
ImageId string required Sample value: image-ebgy1og99tfct0gw****
You can call the DescribeImages operation and configure the Visibility=private parameter to query and obtain the ID of the custom image. ImageName string Optional Sample value: image-1
The name of the image.
- It must start with a letter or a Chinese character.
- It can contain only Chinese characters, letters, digits, underscores (_), hyphens (-), and English periods (.).
- The name must be 1 to 128 characters in length.
Response parameters
This operation has no specific response parameters. For more information, refer to Response structure. Sample request
Sample response
Error codes
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.
Last updated: 2026.04.17 10:57:29