All Products
Search
Document Center

File Storage NAS:DescribeAutoSnapshotPolicies

Last Updated:Nov 07, 2024

Queries automatic snapshot policies.

Operation description

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
nas:DescribeAutoSnapshotPolicieslist
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AutoSnapshotPolicyIdstringNo

The ID of the automatic snapshot policy.

sp-extreme-233e6****
PageSizeintegerNo

The number of entries per page.

Valid values: 1 to 100.

Default value: 10.

10
PageNumberintegerNo

The page number.

Pages start from page 1. Default value: 1.

1
FileSystemTypestringNo

The type of the file system.

Valid value: extreme, which indicates Extreme File Storage NAS (NAS) file systems.

extreme

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of automatic snapshot policies.

2
RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
PageSizeinteger

The number of entries per page.

10
PageNumberinteger

The page number.

1
AutoSnapshotPoliciesarray<object>

The queried automatic snapshot policies.

AutoSnapshotPolicyobject
TimePointsstring

The points in time at which auto snapshots are created.

Unit: hours.

Valid values: 0 to 23. The values from 0 to 23 indicate a total of 24 hours from 00:00 to 23:00. For example, 1 indicates 01:00. A maximum of 24 points in time can be returned. Multiple points in time are separated with commas (,).

4,19
Statusstring

The status of the automatic snapshot policy.

Valid values:

  • Creating: The automatic snapshot policy is being created.
  • Available: The automatic snapshot policy is available.
Available
RepeatWeekdaysstring

The days of a week on which auto snapshots are created.

Auto snapshots are created on a weekly basis.

Valid values: 1 to 7. The values from 1 to 7 indicate 7 days in a week from Monday to Sunday.

1,5
AutoSnapshotPolicyNamestring

The name of the automatic snapshot policy.

FinanceJoshua
CreateTimestring

The time when the automatic snapshot policy was created.

The time follows the ISO8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2014-04-21T12:08:52Z
AutoSnapshotPolicyIdstring

The ID of the automatic snapshot policy.

sp-extreme-233e6****
RetentionDaysinteger

The retention period of auto snapshots.

Unit: days.

Valid values:

  • -1: Auto snapshots are permanently retained. After the number of auto snapshots exceeds the upper limit, the earliest auto snapshot is automatically deleted.
  • 1 to 65536: Auto snapshots are retained for the specified days. After the retention period of auto snapshots expires, the auto snapshots are automatically deleted.
30
FileSystemNumsinteger

The number of file systems to which the automatic snapshot policy applies.

2
RegionIdstring

The region ID of the automatic snapshot policy.

cn-hangzhou
FileSystemTypestring

The type of the file system.

extreme

Examples

Sample success responses

JSONformat

{
  "TotalCount": 2,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "PageSize": 10,
  "PageNumber": 1,
  "AutoSnapshotPolicies": {
    "AutoSnapshotPolicy": [
      {
        "TimePoints": "4,19",
        "Status": "Available",
        "RepeatWeekdays": "1,5",
        "AutoSnapshotPolicyName": "FinanceJoshua",
        "CreateTime": "2014-04-21T12:08:52Z",
        "AutoSnapshotPolicyId": "sp-extreme-233e6****",
        "RetentionDays": 30,
        "FileSystemNums": 2,
        "RegionId": "cn-hangzhou",
        "FileSystemType": "extreme"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-05-10The response structure of the API has changedView Change Details