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 |
||
| ImageId |
string |
Yes |
||
| AddGroup.1 |
string |
No |
||
| RemoveGroup.1 |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
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.