首页  >  文章  >  运维  >  如何查询已创建的自动快照策略

如何查询已创建的自动快照策略

坏嘻嘻
坏嘻嘻原创
2018-09-21 16:34:442092浏览

本文在介绍如何查询已创建的自动快照策略的基础上,重点探讨了其具体步骤,本文内容紧凑,希望大家可以有所收获。

DescribeAutoSnapshotPolicyEx

请求参数

如何查询已创建的自动快照策略

返回参数

如何查询已创建的自动快照策略

示例

请求示例

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 错误中心。

以上是如何查询已创建的自动快照策略的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn