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

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

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

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享