閱讀928 返回首頁    go 微信


查詢自動快照策略__快照相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

查詢自動快照策略

請求參數

名稱 類型 是否必須 描述
Action String 係統規定參數,取值:DescribeAutoSnapshotPolicyEx
RegionId String 要查詢的自動快照策略所在的Region
AutoSnapshotPolicyId String 要查詢的自動快照策略ID,參數為空時為返回全部自動快照策略。一個帶有格式的Json Array:[“p-xxxxxxxxx”, ”p-yyyyyyyyy”, … “p-zzzzzzzzz”]
PageNumber Integer 自動快照策略列表的頁碼,起始值為 1,默認值為 1
PageSize Integer 分頁查詢時設置的每頁行數,最大值 50 行,默認為 10

返回參數

名稱 類型 描述
TotalCount Integer 快照的總個數
PageNumber Integer 快照列表的頁碼
PageSize Integer 輸入時設置的每頁行數
AutoSnapshotPolicys AutoSnapshotPolicyType 自動快照策略詳情 AutoSnapshotPolicyType 組成的集合。

示例

請求示例

https://ecs.aliyuncs.com/?Action=DescribeAutoSnapshotPolicy
&<公共請求參數>

返回示例

XML格式

<DescribeAutoSnapshotPolicyResponse>
<AntoSnapshotPolicys>
        <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>
    </AntoSnapshotPolicys>
    <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",
  "AntoSnapshotPolicys": {
    " 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
}

最後更新:2016-11-23 16:03:50

  上一篇:go 修改自動快照策略__快照相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 執行自動快照策略__快照相關接口_API 參考_雲服務器 ECS-阿裏雲