Domain name for API request: cfs.intl.tencentcloudapi.com.
This API is used to modify the name or cleanup path of an automatic deletion policy.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyAutoDeletePolicy. |
| Version | Yes | String | Common Params. The value used for this API: 2019-07-19. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| FileSystemId | Yes | String | File system ID. |
| PolicyId | Yes | String | Automatic cleanup policy ID. |
| Paths.N | No | Array of String | List of automatic cleanup paths. |
| PolicyName | No | String | Automatic cleanup policy name. |
| Status | No | String | Policy status. Valid values:
|
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: cfs.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyAutoDeletePolicy
<Common request parameters>
{
"FileSystemId": "cfs-4e5e7****",
"PolicyId": "adp-d774****",
"PolicyName": "te***"
}
{
"Response": {
"RequestId": "49c5456f-038f-4daf-bbdf-678ac32ba0a9"
}
}
POST / HTTP/1.1
Host: cfs.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyAutoDeletePolicy
<Common request parameters>
{
"FileSystemId": "cfs-4e5e7****",
"PolicyId": "adp-d774****",
"Paths": [
"/cfs/*"
],
"PolicyName": "te***"
}
{
"Response": {
"RequestId": "b4a8dab3-ed49-44d1-b5a8-745f9af36190"
}
}
POST / HTTP/1.1
Host: cfs.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyAutoDeletePolicy
<Common request parameters>
{
"FileSystemId": "cfs-4e5e7****",
"PolicyId": "adp-d774****",
"Paths": [
"/cfs/*"
]
}
{
"Response": {
"RequestId": "5a633af9-42b8-4e41-babd-8056aa77fd1e"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation.AutoDeletePolicyDisabled | The auto-deletion policy is disabled. |
| FailedOperation.AutoDeletePolicyEnabled | The auto-deletion policy is already enabled. |
| FailedOperation.AutoDeletePolicyProcessing | The auto-deletion policy is being processed. Please wait. |
| InvalidParameter.AutoDeletePathInvalid | Invalid path format. The path is not an absolute path. |
| InvalidParameter.AutoDeletePathPrefixInvalid | The path must start with /cfs/. |
| InvalidParameterValue.AutoDeletePathCountExceed | The number of paths exceeds the upper limit of 20. |
| InvalidParameterValue.AutoDeletePathNested | Clean up nested directory paths. |
| ResourceNotFound.AutoDeletePolicyNotExist | The auto-deletion policy does not exist. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback