Skip to main content

ModifyImageSharePermission

Description

call ModifyImageSharePermission to manage mirror share permissions. You can share your custom image with other Alibaba Cloud users. The user can use the shared custom image to create an ECS instance (RunInstances) or replace the system disk (ReplaceSystemDisk) of the instance.

Request Method

POST

Request Path

/apsara/route/Ecs/ModifyImageSharePermission

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
AddAccount.NBODYrepeatlistNo155780923***the alibaba cloud account ID authorized to share the image. The value range of n is 1 to 10. If the value exceeds 10, the system will ignore this parameter.
RemoveAccount.NBODYrepeatlistNo155780923***delete the ariyun account ID of the image share. The value range of n is 1 to 10. If the value exceeds 10, the system will ignore this parameter.
regionIdBODYstringYesNo sample value for this parameter.region id
ImageIdBODYstringYesm-imageid1shared custom image ID.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the custom image belongs. you can call 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
}

}