查詢您已建立的自動快照策略。

請求參數

名稱 類型 是否必需 描述
Action String 系統規定參數。取值:DescribeAutoSnapshotPolicyEx
RegionId String 要查詢的自動快照策略所在的地域 ID。您可以調用 DescribeRegions 查看最新的阿里雲地域列表。
AutoSnapshotPolicyId String 自動快照策略 ID。
PageNumber Integer 自動快照策略返回結果分多頁展示。 起始值:1

預設值:1

PageSize Integer 分頁展示返回的自動快照策略時的每頁行數。 最大值:50

預設值:10

返回參數

名稱 類型 描述
TotalCount Integer 自動快照策略的總個數
PageNumber Integer 自動快照策略列表的頁碼
PageSize Integer 分頁展示返回的自動快照策略時的每頁行數
AutoSnapshotPolicies Array 自動快照策略詳情 AutoSnapshotPolicyType 組成的集合

樣本

請求樣本
https://ecs.aliyuncs.com/?Action=DescribeAutoSnapshotPolicyEX
&RegionId=cn-hangzhou
&<公共請求參數>
返回樣本

XML 格式

<DescribeAutoSnapshotPolicyResponse>
<AutoSnapshotPolicies>
        <AntoSnapshotPolicy>
            <CreationTime>2014-04-21T12:08:52Z</CreationTime>
            <AutoSnapshotPolicyId>p-23f2i9s4t</AutoSnapshotPolicyId>
           <SettingTimePoints>[“2”, “9”]</SettingTimePoints>
            <SettingRepeatWeekdays>[“3” , “4” , “5” , “7”]</SettingRepeatWeekdays>
            <RetentionDays>-1</RetentionDays>
            </AntoSnapshotPolicy>
        <AntoSnapshotPolicy>
            <CreationTime>2014-07-24T13:00:52Z</CreationTime>
            <AutoSnapshotPolicyId>p-23f2i9s4t</AutoSnapshotPolicyId>
            <SettingTimePoints>[“0”, “1”]</SettingTimePoints>
            <SettingRepeatWeekdays>[“1”, “7”]</SettingRepeatWeekdays>
            <RetentionDays>30</RetentionDays>
        </AntoSnapshotPolicy>
    </AutoSnapshotPolicies>
    <PageNumber>1</PageNumber>
    <PageSize>2</PageSize>
    <TotalCount>2</TotalCount>
    <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId>
</DescribeAutoSnapshotPolicyResponse>
JSON 格式
{
  "PageNumber": 1,
  "PageSize": 2,
  "RequestId": "659F91C6-1949-43B0-90C4-B6342CA757D5",
  "AutoSnapshotPolicies": {
    " AutoSnapshotPolicy": [
      {
        "CreationTime": "2014-07-24T13:00:52Z",
        "AutoSnapshotPolicyId": "p-23f2i9s4t",
        "SettingTimePoints": "[“0”, “1”]",
        "SettingRepeatWeekdays": "[“1”, “7”]",
        "RetentionDays": "30",
      },
      {
        "CreationTime": "2014-04-21T12:08:52Z",
        "AutoSnapshotPolicyId": "p-a1fd3g5s1",
        "SettingTimePoints": "[“2”, “9”]",
        "SettingRepeatWeekdays": "[“3” , “4” , “5” , “7”]",
        "RetentionDays": "-1",
      }
    ]
  },
  "TotalCount": 2
}

錯誤碼

全是公共錯誤碼。更多錯誤碼,請訪問 API 錯誤中心