Modifies the permissions of an image sharing group.
This API has been deprecated. We recommend migrating to Ecs(2014-05-26) - ModifyImageSharePermission for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyImageShareGroupPermission |
update |
*Image
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query available regions. |
|
| ImageId |
string |
Yes |
The image ID. |
|
| AddGroup.1 |
string |
No |
The ID of the resource group to which you want to add image sharing permissions. |
|
| RemoveGroup.1 |
string |
No |
The ID of the resource group from which you want to remove image sharing permissions. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The result of modifying the image sharing group permissions. |
||
| RequestId |
string |
The request ID. |
Examples
Success response
JSON format
{
"RequestId": ""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter "RegionId" that is mandatory for processing this request is not supplied. | |
| 400 | Forbbiden | User not authorized to operate on the specified resource. | |
| 404 | InvalidImageId.NotFound | The specified ImageId does not exist. | The specified image does not exist in this account. Check whether the image ID is correct. |
| 404 | InvalidGroup.Malformed | The specified parameter "AddGroup.n" or "RemoveGroup.n" does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.