Queries lifecycle policies.
Operation description
Only General-purpose NAS file systems support this operation.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FileSystemId | string | Yes | The ID of the file system. | 31a8e4**** |
LifecyclePolicyName | string | No | The name of the lifecycle policy. The name must meet the following conventions: The name must be 3 to 64 characters in length and must start with a letter. It can contain letters, digits, underscores (_), and hyphens (-). | lifecyclepolicy_01 |
PageSize | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: 10. | 10 |
PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
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\"]"
]
}
]
}
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. |
For a list of error codes, visit the Service error codes.