调用ModifyImageSharePermission共享镜像或取消共享镜像。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:ModifyImageSharePermission |
update |
*Image
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ImageId |
string |
是 |
镜像 ID,仅支持传单个 ID。支持自定义镜像和公共镜像。 |
m-5s7qotzavwbrnzaqh4unm**** |
| AddAccounts |
string |
否 |
授权共享镜像的阿里云账号 ID,多个账号以半角逗号(,)隔开。 |
1122334455** |
| RemoveAccounts |
string |
否 |
删除镜像共享的阿里云账号 ID。仅支持删除单个。 |
113355** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
701B3BB9-9190-544D-90D1-328B0527380C |
示例
正常返回示例
JSON格式
{
"RequestId": "701B3BB9-9190-544D-90D1-328B0527380C"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. | 接口调用出错。 |
| 400 | InvalidImageType.NotSupported | The specified image type is not supported. | 指定的镜像暂不支持共享和导出操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。