tencent cloud

APIs

ModifyAutoDeletePolicy

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-26 16:30:29

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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:

  • enabled: Enabled.
  • disabled: Disabled.

3. Output Parameters

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.

4. Example

Example1 Modifying an Auto Policy Name

Input Example

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***"
}

Output Example

{
    "Response": {
        "RequestId": "49c5456f-038f-4daf-bbdf-678ac32ba0a9"
    }
}

Example2 Modifying an Auto Policy Name and Path

Input Example

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***"
}

Output Example

{
    "Response": {
        "RequestId": "b4a8dab3-ed49-44d1-b5a8-745f9af36190"
    }
}

Example3 Modifying an Auto Policy Path

Input Example

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/*"
    ]
}

Output Example

{
    "Response": {
        "RequestId": "5a633af9-42b8-4e41-babd-8056aa77fd1e"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.

Ajuda e Suporte

Esta página foi útil?

comentários