Retrieves a list of lifecycle management policies.
Operation description
Only General-purpose NAS file systems and CPFS for Lingjun support this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeLifecyclePolicies |
get |
*LifecyclePolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
No |
The file system ID. |
31a8e4**** |
| LifecyclePolicyName |
string |
No |
The lifecycle policy name. Naming rules: The name must be 3 to 64 characters in length, start with a letter, and can contain letters, digits, underscores (_), or hyphens (-). Note
Optional for General-purpose NAS file systems. If specified, this parameter takes precedence. If not specified, LifecyclePolicyId is used instead. |
lifecyclepolicy_01 |
| PageSize |
integer |
No |
The number of lifecycle management policies on each page. Valid values: 1 to 100. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The page number of the list. Start value (default value): 1. |
1 |
| StorageType |
string |
No |
The storage class type. Valid values:
Note
If StorageType is not specified, all lifecycle policies are returned. Valid values:
|
InfrequentAccess |
| LifecyclePolicyId |
string |
No |
The ID of the lifecycle policy. |
lc-xxx |
| LifecyclePolicyType |
string |
No |
The policy type. Valid values:
Note
Only CPFS for Lingjun supports this parameter. Valid values:
|
Auto |
| Description |
string |
No |
The description of the policy. Note
Only CPFS for Lingjun supports this parameter. |
描述 |
| Path |
string |
No |
Filters results by path. Note
Only CPFS for Lingjun supports this parameter. |
/abc/ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of lifecycle management policies. |
10 |
| RequestId |
string |
The request ID. |
BC7C825C-5F65-4B56-BEF6-98C56C7C**** |
| PageSize |
integer |
The number of lifecycle management policies on each page. |
10 |
| PageNumber |
integer |
The page number of the list. |
1 |
| LifecyclePolicies |
array<object> |
The collection of lifecycle management policy information. |
|
|
array<object> |
|||
| FileSystemId |
string |
The file system ID. |
31a8e4**** |
| LifecycleRuleName |
string |
The management rule associated with the lifecycle management policy. Valid values:
|
DEFAULT_ATIME_14 |
| CreateTime |
string |
The time when the lifecycle management policy was created. The time follows the ISO 8601 standard in the format: |
2019-10-30T10:08:08Z |
| Path |
string |
The absolute path of the single directory configured in the lifecycle management policy. |
/pathway/to/folder |
| StorageType |
string |
The storage class type. Valid values:
|
InfrequentAccess |
| LifecyclePolicyName |
string |
The lifecycle management policy name. |
lifecyclepolicy_01 |
| Paths |
array |
The list of absolute paths of multiple directories configured in the lifecycle management policy. |
|
|
string |
The list of absolute paths of multiple directories configured in the lifecycle management policy. |
["/path1","/path2"] |
|
| LifecyclePolicyId |
string |
The ID of the lifecycle policy. |
lc-xxx |
| Description |
string |
The description of the policy. |
描述 |
| LifecyclePolicyType |
string |
The policy type. |
Auto |
| TransitRules |
array<object> |
The data transit rules for files. |
|
|
object |
The data transit rules for files. |
||
| Attribute |
string |
Attribute of the rule. |
Atime |
| Threshold |
string |
Threshold for the rule. |
3 |
| RetrieveRules |
array<object> |
The data retrieval rules for files. |
|
|
object |
The data retrieval rules for files. |
||
| Attribute |
string |
Attribute of the rule. |
RetrieveType |
| Threshold |
string |
Threshold for the rule. |
All |
Examples
Success response
JSON format
{
"TotalCount": 10,
"RequestId": "BC7C825C-5F65-4B56-BEF6-98C56C7C****",
"PageSize": 10,
"PageNumber": 1,
"LifecyclePolicies": [
{
"FileSystemId": "31a8e4****",
"LifecycleRuleName": "DEFAULT_ATIME_14",
"CreateTime": "2019-10-30T10:08:08Z",
"Path": "/pathway/to/folder",
"StorageType": "InfrequentAccess",
"LifecyclePolicyName": "lifecyclepolicy_01",
"Paths": [
"[\"/path1\",\"/path2\"]"
],
"LifecyclePolicyId": "lc-xxx",
"Description": "描述",
"LifecyclePolicyType": "Auto",
"TransitRules": [
{
"Attribute": "Atime",
"Threshold": "3"
}
],
"RetrieveRules": [
{
"Attribute": "RetrieveType",
"Threshold": "All"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.