接口请求域名: chdfs.intl.tencentcloudapi.com 。
通过文件系统ID查看生命周期规则列表。
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeLifeCycleRules。 |
| Version | 是 | String | 公共参数,本接口取值:2020-11-12。 |
| Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
| FileSystemId | 是 | String | 文件系统ID |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| LifeCycleRules | Array of LifeCycleRule | 生命周期规则列表 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查看生命周期规则列表
POST / HTTP/1.1
Host: chdfs.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLifeCycleRules
<公共请求参数>
{
"FileSystemId": "f4mnvilzmdd"
}
{
"Response": {
"LifeCycleRules": [
{
"LifeCycleRuleId": 1,
"LifeCycleRuleName": "test1",
"Path": "/test1",
"Transitions": [
{
"Days": 7,
"Type": 1
}
],
"Status": 1,
"CreateTime": "2019-07-30T16:24:38+08:00"
},
{
"LifeCycleRuleId": 2,
"LifeCycleRuleName": "test2",
"Path": "/test2",
"Transitions": [
{
"Days": 7,
"Type": 1
},
{
"Days": 7,
"Type": 2
}
],
"Status": 1,
"CreateTime": "2019-07-30T16:24:38+08:00"
}
],
"RequestId": "19d240f4-156d-4a3c-856c-216d64a6bb4a"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| FailedOperation | 操作失败。 |
| InternalError | 内部错误。 |
| InvalidParameter | 参数错误。 |
| InvalidParameterValue | 参数取值错误。 |
| InvalidParameterValue.InvalidFileSystemId | FileSystemId参数取值错误。 |
| MissingParameter | 缺少参数错误。 |
| ResourceNotFound.FileSystemNotExists | 文件系统不存在。 |
| ResourceUnavailable | 资源不可用。 |
| UnauthorizedOperation | 未授权操作。 |
文档反馈