Domain name for API request: chdfs.intl.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 | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
LifeCycleRules.N | Yes | Array of LifeCycleRule | Multiple lifecycle rules (up to 10) |
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. |
This example shows how to batch modify the attributes of lifecycle rules.
https://chdfs.intl.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. |
本页内容是否解决了您的问题?