Skip to main content

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

NameLocationTypeRequiredSample valueDescription
ImageNameBODYstringNoTestthe 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.
DescriptionBODYstringNoFinanceDeptdescription 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.
regionIdBODYstringYesNo sample value for this parameter.region id
ImageIdBODYstringYesm-imageid1the ID of the custom image.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the custom image. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}