获取生命周期管理策略列表。
接口说明
仅通用型 NAS 文件系统和 CPFS 智算版支持该功能。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
nas:DescribeLifecyclePolicies |
get |
*LifecyclePolicy
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| FileSystemId |
string |
否 |
文件系统 ID。 |
31a8e4**** |
| LifecyclePolicyName |
string |
否 |
生命周期策略名称。命名规则如下: 长度为 3-64 个字符,必须以大小字母开头,可以包含英文字母、数字、下划线(_)或者短划线(-)。 说明
通用型 NAS 文件系统选填,如果传入则以此为准,没有传入则以 LifecyclePolicyId 为准。 |
lifecyclepolicy_01 |
| PageSize |
integer |
否 |
每个分页包含的生命周期管理策略个数。 取值范围:1~100 默认值:10 |
10 |
| PageNumber |
integer |
否 |
列表的分页页码。 起始值(默认值):1 |
1 |
| StorageType |
string |
否 |
分级存储类型。
说明
如未指定 StorageType,则返回所有生命周期策略。 枚举值:
|
InfrequentAccess |
| LifecyclePolicyId |
string |
否 |
生命周期策略的 ID。 |
lc-xxx |
| LifecyclePolicyType |
string |
否 |
策略类型。 取值:
说明
仅 CPFS 智算版支持。 枚举值:
|
Auto |
| Description |
string |
否 |
策略的描述。 说明
仅 CPFS 智算版支持。 |
描述 |
| Path |
string |
否 |
根据路径筛选。 说明
仅 CPFS 智算版支持。 |
/abc/ |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| TotalCount |
integer |
生命周期管理策略总数。 |
10 |
| RequestId |
string |
请求 ID。 |
BC7C825C-5F65-4B56-BEF6-98C56C7C**** |
| PageSize |
integer |
每个分页包含的生命周期管理策略个数。 |
10 |
| PageNumber |
integer |
列表的分页页码。 |
1 |
| LifecyclePolicies |
array<object> |
生命周期管理策略信息集合。 |
|
|
array<object> |
|||
| FileSystemId |
string |
文件系统 ID。 |
31a8e4**** |
| LifecycleRuleName |
string |
生命周期管理策略关联的管理规则。 包括:
|
DEFAULT_ATIME_14 |
| CreateTime |
string |
生命周期管理策略创建的时间。 执行 ISO8601 标准表示,返回格式: |
2019-10-30T10:08:08Z |
| Path |
string |
生命周期管理策略配置的单个目录的绝对路径。 |
/pathway/to/folder |
| StorageType |
string |
分级存储类型。
|
InfrequentAccess |
| LifecyclePolicyName |
string |
生命周期管理策略名称。 |
lifecyclepolicy_01 |
| Paths |
array |
生命周期管理策略配置的多个目录的绝对路径列表。 |
|
|
string |
生命周期管理策略配置的多个目录的绝对路径列表。 |
["/path1","/path2"] |
|
| LifecyclePolicyId |
string |
生命周期策略的 ID |
lc-xxx |
| Description |
string |
描述 |
描述 |
| LifecyclePolicyType |
string |
策略类型 |
Auto |
| TransitRules |
array<object> |
文件数据转储规则 |
|
|
object |
文件数据转储规则 |
||
| Attribute |
string |
转储规则的属性 |
Atime |
| Threshold |
string |
转储规则的阈值 |
3 |
| RetrieveRules |
array<object> |
文件数据取回规则 |
|
|
object |
文件数据取回规则 |
||
| Attribute |
string |
取回规则的属性 |
RetrieveType |
| Threshold |
string |
取回规则的阈值 |
All |
| DeleteRules |
array<object> |
||
|
object |
|||
| Attribute |
string |
Atime |
|
| Threshold |
string |
5 |
示例
正常返回示例
JSON格式
{
"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"
}
],
"DeleteRules": [
{
"Attribute": "Atime",
"Threshold": "5"
}
]
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | 指定的文件系统不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。