ModifyImageAttribute
Description
call ModifyImageAttribute modify the name or description information of 1 custom mirror.
Request Method
POST
Request Path
/apsara/route/Ecs/ModifyImageAttribute
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
ImageName | BODY | string | No | Test | the name of the custom image. Can contain 2~128 characters. It must start with a large or small letter, and can contain a number, a half-width colon (:), an underscore (_), or a hyphen (-). cannot start with http:// and https. Default value: empty, which means that the original name remains unchanged. |
Description | BODY | string | No | FinanceDept | description information of the custom image. Can contain 2~256 characters. cannot start with http:// and https. Default value: null, which means that the original description information remains unchanged. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ImageId | BODY | string | Yes | m-imageid1 | the ID of the custom image. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the custom image. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}