Domain name for API request: chdfs.tencentcloudapi.com.
This API is used to batch modify the attributes of lifecycle rules, such as name, path, transition list, and status. You must specify the lifecycle rule IDs.
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: ModifyLifeCycleRules. |
Version | Yes | String | Common Params. The value used for this API: 2020-11-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
LifeCycleRules.N | Yes | Array of LifeCycleRule | Multiple lifecycle rules (up to 10) |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows how to batch modify the attributes of lifecycle rules.
https://chdfs.tencentcloudapi.com/?Action=ModifyLifeCycleRules
&LifeCycleRules.0.LifeCycleRuleId=1
&LifeCycleRules.0.LifeCycleRuleName=test1
&LifeCycleRules.0.Status=1
&LifeCycleRules.1.LifeCycleRuleId=2
&LifeCycleRules.1.Path=/test2
&LifeCycleRules.1.Transitions.0.Days=7
&LifeCycleRules.1.Transitions.0.Type=1
&LifeCycleRules.1.Transitions.1.Days=7
&LifeCycleRules.1.Transitions.1.Type=2
&<Common request parameters>
{
"Response": {
"RequestId": "baaf73f9-0c42-441b-afdb-b9da71a50f47"
}
}
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 | Operation failed. |
InternalError | Internal error. |
InvalidParameter | Incorrect parameter. |
InvalidParameterValue | Incorrect parameter value. |
MissingParameter | Missing parameter. |
ResourceInUse | The resource is in use. |
ResourceNotFound | The resource does not exist. |
UnauthorizedOperation | Unauthorized operation. |
Was this page helpful?