Queries the list of lifecycle management policies.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeLifecyclePolicies

The operation that you want to perform.

Set the value to DescribeLifecyclePolicies.

FileSystemId String Yes 31a8e4****

The ID of the file system.

PageSize Integer No 10

The number of entries to return on each page.

PageNumber Integer No 1

The number of the page to return.

Response parameters

Parameter Type Example Description
LifecyclePolicies Array

The list of lifecycle management policies.

CreateTime String 2019-10-30T10:08:08Z

The time when the policy was created.

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

FileSystemId String 31a8e4****

The ID of the file system.

LifecyclePolicyName String lifecyclepolicy1

The name of the lifecycle management policy.

LifecycleRuleName String DEFAULT_ATIME_14

The rule in the lifecycle management policy. Valid values:

  • DEFAULT_ATIME_14: specifies the files that were not accessed in the last 14 days.
  • DEFAULT_ATIME_30: specifies the files that were not accessed in the last 30 days.
  • DEFAULT_ATIME_60: specifies the files that were not accessed in the last 60 days.
  • DEFAULT_ATIME_90: specifies the files that were not accessed in the last 90 days.
Path String /pathway/to/folder

The absolute path of the directory to which the policy is applied.

The value must start with a forward slash (/). The value must be an existing path in the mount target.

StorageType String InfrequentAccess

The storage class of the file system.

Default value: InfrequentAccess.

PageNumber Integer 10

The page number of the returned page.

PageSize Integer 1

The number of entries returned per page.

RequestId String BC7C825C-5F65-4B56-BEF6-98C56C7C546E

The ID of the request.

TotalCount Integer 10

The total number of the lifecycle management policies.

Examples

Sample requests

GET https://nas.cn-hangzhou.aliyuncs.com/?Action=DescribeLifecyclePolicies
&FileSystemId=31a8e4****
&<Common request parameters>

Sample success responses

XML format

<TotalCount>10</TotalCount>
<RequestId>BC7C825C-5F65-4B56-BEF6-98C56C7C546E</RequestId>
<PageSize>1</PageSize>
<PageNumber>10</PageNumber>
<LifecyclePolicies>
    <Path>/pathway/to/folder</Path>
    <LifecyclePolicyName>lifecyclepolicy1</LifecyclePolicyName>
    <StorageType>InfrequentAccess</StorageType>
    <LifecycleRuleName>DEFAULT_ATIME_14</LifecycleRuleName>
    <CreateTime>2019-10-30T10:08:08Z</CreateTime>
    <FileSystemId>31a8e4****</FileSystemId>
</LifecyclePolicies>

JSON format

{
    "TotalCount": 10,
    "RequestId": "BC7C825C-5F65-4B56-BEF6-98C56C7C546E",
    "PageSize": 1,
    "PageNumber": 10,
    "LifecyclePolicies": [{
        "Path": "/pathway/to/folder",
        "LifecyclePolicyName": "lifecyclepolicy1",
        "StorageType": "InfrequentAccess",
        "LifecycleRuleName": "DEFAULT_ATIME_14",
        "CreateTime": "2019-10-30T10:08:08Z",
        "FileSystemId": "31a8e4****"
    }]
}

Error codes

For a list of error codes, visit the API Error Center.