调用DescribeImageSharePermission根据ImageId查询正在共享的列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DescribeImageSharePermission |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ImageId |
string |
是 |
镜像 ID。 |
m-5s7qotzavwbrnzaqh4unm**** |
| PageNumber |
string |
否 |
查询列表的页码。起始值为 1。 默认值:1。 |
1 |
| PageSize |
string |
否 |
分页查询时设置的每页行数,最大值为 100 行。 默认值:10。 |
10 |
| AliyunId |
integer |
否 |
阿里云账号 ID。 |
171710408091**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| TotalCount |
integer |
镜像共享的总数。 |
2 |
| PageSize |
integer |
当前查询每页的行数。 |
100 |
| RequestId |
string |
请求 ID。 |
A44EE357-6174-5E37-A801-48F5790F9ACE |
| PageNumber |
integer |
当前页码。 |
1 |
| ImageId |
string |
镜像 ID。 |
m-5qkf6jv9a0tzd5ipwx5fi**** |
| Accounts |
object |
||
| Account |
array<object> |
账号信息。 |
|
|
object |
阿里云注册用户,当前阿里云用户共享账户。 |
[{"AliyunId": 197265348438****},] |
|
| AliyunUid |
string |
当前镜像的阿里云用户共享账户。 |
151528552xxxxx |
示例
正常返回示例
JSON格式
{
"TotalCount": 2,
"PageSize": 100,
"RequestId": "A44EE357-6174-5E37-A801-48F5790F9ACE",
"PageNumber": 1,
"ImageId": "m-5qkf6jv9a0tzd5ipwx5fi****",
"Accounts": {
"Account": [
{
"AliyunUid": "151528552xxxxx"
}
]
}
}
错误码
|
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. | 接口调用出错。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。