閱讀151 返回首頁    go 微信


查詢鏡像共享__鏡像相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

查詢用戶的自定義鏡像共享給其他用戶列表。此接口支持分頁查詢。每頁的數量默認為10條。

請求參數

名稱 類型 是否必須 描述
Action String 係統規定參數,取值:DescribeImageSharePermission
RegionId String 鏡像所屬的 RegionID
ImageId String 鏡像 ID
PageNumber Integer 列表的頁碼,起始值為 1,默認值為 1
PageSize Integer 分頁查詢時設置的每頁行數,最大值 50 行,默認值為 10

返回參數

名稱 類型 描述
ImageId String 鏡像的 ID
RegionId String 鏡像所屬地域 Id
ShareGroups ShareGroupType 共享組類型
Accounts AccountType 阿裏雲賬號類型
TotalCount Integer 記錄總數
PageNumber Integer 頁數
PageSize Integer 每頁最大行數,默認 10 行,最大值 50 行

錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
InvalidRegionId.NotFound The source region not found. 404 指定的 regionId 不存在
InvalidImageId.NotFound The image does not exist. 404 指定的 ImageId 不存在

示例

請求示例

https://ecs.aliyuncs.com/?Action=DescribeImageSharePermission
&RegionId=cn-qingdao
&ImageId=m-282dzntc7
&<公共請求參數>

返回示例

XML格式

<DescribeImageSharePermissionResponse>
    <ImageId>m-282dzntc7</ImageId>
    <PageNumber>1</PageNumber>
    <PageSize>10</PageSize>
    <RegionId>cn-qingdao</RegionId>
    <TotalCount>1</TotalCount>
    <RequestId>441CF898-42FF-47CF-9348-3C3BFF557278</RequestId>
    <ShareGroups>
        <ShareGroup>
            <Group>all</Group>
        </ShareGroup>
    </ShareGroups>
    <Accounts>
        <Account>
            <AliyunId>1886508529898586</AliyunId>
        </Account>
    </Accounts>
</DescribeImageSharePermissionResponse>

JSON格式

{
    "ShareGroups": {
        "ShareGroup": [
            {
                "Group": "all"
            }
        ]
    },
    "Accounts": {
        "Account": [
            {
                "AliyunId": "1886508529898586"
            }
        ]
    },
    "ImageId": "m-282dzntc7",
    "PageNumber": 1,
    "PageSize": 10,
    "RegionId": "cn-qingdao",
    "TotalCount": 1,
    "RequestId": "9AD96F49-0BE5-4868-A66A-224352549CEC"
}

最後更新:2016-11-23 17:16:02

  上一篇:go 管理鏡像共享__鏡像相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 導入鏡像__鏡像相關接口_API 參考_雲服務器 ECS-阿裏雲