DescribeAutoSnapshotPolicyEx

Last Updated: May 11, 2018

Description

Describes your available automatic snapshot policies.

Request parameters

Name Type Required Description
Action String Yes The name of this interface. Value: DescribeAutoSnapshotPolicyEx.
RegionId String Yes The region of the automatic snapshot policies. For more information, see Regions and zones, or call DescribeRegions to obtain the latest region list.
AutoSnapshotPolicyId String No The ID of the automatic snapshot policy to query.
PageNumber Integer No Displays the automatic snapshot policies on several pages.
Initial value: 1
Default value: 1
PageSize Integer No Specifies the number of rows per page in case of querying by page.
Maximum value: 50
Default value: 10

Response parameters

Name Type Description
TotalCount Integer The total number of automatic snapshot policies.
PageNumber Integer The page number of the automatic snapshot policy list.
PageSize Integer The input number of rows per page.
AutoSnapshotPolicies Array The automatic snapshot policy details, an array composed of AutoSnapshotPolicyType.

Examples

Request example

  1. https://ecs.aliyuncs.com/?Action=DescribeAutoSnapshotPolicy
  2. &RegionId=cn-hangzhou
  3. &<Common Request Parameters>

Response example

XML format

  1. <DescribeAutoSnapshotPolicyResponse>
  2. <AutoSnapshotPolicies>
  3. <AntoSnapshotPolicy>
  4. <CreationTime>2014-04-21T12:08:52Z</CreationTime>
  5. <AutoSnapshotPolicyId>p-23f2i9s4t</AutoSnapshotPolicyId>
  6. <SettingTimePoints>[“2”, “9”]</SettingTimePoints>
  7. <SettingRepeatWeekdays>[“3” , “4” , “5” , “7”]</SettingRepeatWeekdays>
  8. <RetentionDays>-1
  9. </RetentionDays>
  10. </AntoSnapshotPolicy>
  11. <AntoSnapshotPolicy>
  12. <CreationTime>2014-07-24T13:00:52Z</CreationTime>
  13. <AutoSnapshotPolicyId>p-23f2i9s4t</AutoSnapshotPolicyId>
  14. <SettingTimePoints>[“0”, “1”]</SettingTimePoints>
  15. <SettingRepeatWeekdays>[“1”, “7”]</SettingRepeatWeekdays>
  16. <RetentionDays>30</RetentionDays>
  17. </AntoSnapshotPolicy>
  18. </AutoSnapshotPolicies>
  19. <PageNumber>1</PageNumber>
  20. <PageSize>2</PageSize>
  21. <TotalCount>2</TotalCount>
  22. <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId>
  23. </DescribeAutoSnapshotPolicyResponse>

JSON format

  1. {
  2. "PageNumber": 1,
  3. "PageSize": 2,
  4. "RequestId": "659F91C6-1949-43B0-90C4-B6342CA757D5",
  5. "AutoSnapshotPolicies": {
  6. " AutoSnapshotPolicy": [
  7. {
  8. "CreationTime": "2014-07-24T13:00:52Z",
  9. "AutoSnapshotPolicyId": "p-23f2i9s4t",
  10. "SettingTimePoints": "[“0”, “1”]",
  11. "SettingRepeatWeekdays": "[“1”, “7”]",
  12. "RetentionDays": "30",
  13. },
  14. {
  15. "CreationTime": "2014-04-21T12:08:52Z",
  16. "AutoSnapshotPolicyId": "p-a1fd3g5s1",
  17. "SettingTimePoints": "[“2”, “9”]",
  18. "SettingRepeatWeekdays": "[“3” , “4” , “5” , “7”]",
  19. "RetentionDays": "-1",
  20. }
  21. ]
  22. },
  23. "TotalCount": 2
  24. }

Error codes

All are common error codes. For more information, see Common error codes.

Thank you! We've received your feedback.