查询生命周期策略的运行日志。 可查询最近 90 天或最多 1000 条日志。 仅 CPFS 智算版支持。
接口说明
查询生命周期策略的运行日志。 可查询最近 90 天或最多 1000 条日志。 仅 CPFS 智算版支持。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
nas:DescribeLifecyclePolicyLogs |
get |
*LifecyclePolicy
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| FileSystemId |
string |
是 |
文件系统 ID。 |
bmcpfs-030wldnqm8evtpy**** |
| LifecyclePolicyId |
string |
是 |
生命周期策略的 ID。 |
lc-xxx |
| PageSize |
integer |
否 |
每个分页包含的日志条数。 取值范围:1~100 默认值:10 |
10 |
| PageNumber |
integer |
否 |
列表的分页页码。 起始值(默认值):1 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
BC7C825C-5F65-4B56-BEF6-98C56C7C**** |
| Success |
boolean |
请求状态。 包括:
|
true |
| LifecyclePolicyLogs |
array<object> |
生命周期策略的运行日志。 |
|
|
array<object> |
|||
| Status |
string |
数据取回任务的状态。包括:
|
RUNNING |
| Paths |
array |
指定取回任务的执行路径。 |
|
|
string |
指定取回任务的执行路径。 |
/path1 |
|
| StorageType |
string |
分级存储类型。
|
InfrequentAccess |
| TransitRules |
array<object> |
文件数据转储规则。 |
|
|
object |
文件数据转储规则。 |
||
| Attribute |
string |
规则的属性。 取值:
|
Atime |
| Threshold |
string |
规则的阈值。 取值:
|
3 |
| RetrieveRules |
array<object> |
文件数据取回规则。 |
|
|
object |
文件数据取回规则。 |
||
| Attribute |
string |
规则的属性,取值:
|
RetrieveType |
| Threshold |
string |
规则的阈值,取值:
|
All |
| CreateTime |
string |
任务创建时间。 以 ISO 8601 为标准,并使用 UTC+0 时间,返回格式:yyyy-MM-ddTHH:mm:ssZ。 |
2025-10-20T02:25:07Z |
| Summary |
string |
任务总览 |
Total tasks: 100000, success tasks: 100000 |
| DeleteRules |
array<object> |
||
|
object |
|||
| Attribute |
string |
||
| Threshold |
string |
||
| TotalCount |
integer |
日志总数。 |
36 |
| PageNumber |
integer |
分页页码。 |
1 |
| PageSize |
integer |
每个分页包含的日志条数。 |
10 |
示例
正常返回示例
JSON格式
{
"RequestId": "BC7C825C-5F65-4B56-BEF6-98C56C7C****",
"Success": true,
"LifecyclePolicyLogs": [
{
"Status": "RUNNING",
"Paths": [
"/path1"
],
"StorageType": "InfrequentAccess",
"TransitRules": [
{
"Attribute": "Atime",
"Threshold": "3"
}
],
"RetrieveRules": [
{
"Attribute": "RetrieveType",
"Threshold": "All"
}
],
"CreateTime": "2025-10-20T02:25:07Z",
"Summary": "Total tasks: 100000, success tasks: 100000",
"DeleteRules": [
{
"Attribute": "",
"Threshold": ""
}
]
}
],
"TotalCount": 36,
"PageNumber": 1,
"PageSize": 10
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidLifecyclePolicy.NotFound | The specified LifecyclePolicy does not exist. | 指定的生命周期策略不存在。 |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | 指定的文件系统不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。