調用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. | 介面調用出錯。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。