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
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
AddAccount.N | BODY | repeatlist | No | 155780923*** | 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.N | BODY | repeatlist | No | 155780923*** | 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. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ImageId | BODY | string | Yes | m-imageid1 | shared custom image ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID to which the custom image belongs. you can call 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
}
}