Domain name for API request: cls.intl.tencentcloudapi.com.
This API is used to modify a COS import task.
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: ModifyCosRecharge. |
| Version | Yes | String | Common Params. The value used for this API: 2020-10-16. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| Id | Yes | String | COS import configuration Id. -Obtain the cos import configuration Id through the Get cos import configuration API. |
| TopicId | Yes | String | Log topic Id. -Obtain the log topic Id through Get Log Topic List. |
| Name | No | String | COS import task name, supports up to 128 bytes. |
| Enable | No | Integer | Task status. Valid values: 0: disabled; 1: enabled. |
| Bucket | No | String | COS bucket, see the supported bucket naming conventions. -Get COS buckets via GET Service (List Buckets). |
| BucketRegion | No | String | The region where the COS bucket is located, see the supported region list. |
| Prefix | No | String | Prefix of the folder where COS files are located. When it is an empty string, all files in the bucket will be delivered. |
| LogType | No | String | Types of logs collected. json_log indicates logs in JSON format; delimiter_log indicates logs in delimiter-separated values format; minimalist_log indicates single-line full-text logs. The default value is minimalist_log. |
| Compress | No | String | Parsing format. Valid values: "", "gzip", "lzop", "snappy". Empty string means no compression. |
| ExtractRuleInfo | No | ExtractRuleInfo | Extraction rule. If ExtractRule is set, then LogType must be set. |
| TaskType | No | Integer | COS import task type. Valid values: 1: one-time import task; 2: continuous import task. |
| Metadata.N | No | Array of String | Metadata. Buckets and objects are supported. |
| 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 you how to modify a COS import task.
POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyCosRecharge
<Common request parameters>
{
"Id": "ca092608-98e8-4ad9-83c5-a6b3bbexxxxx",
"TopicId": "ae13f7db-00b5-41ac-916e-407802axxxxx",
"Name": "test_name"
}
{
"Response": {
"RequestId": "dc78ee34-237b-41c7-8fcd-601a99bxxxxx"
}
}
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. |
| FailedOperation.Timeout | Operation timed out |
| InternalError | Internal error. |
| InvalidParameter | Incorrect parameter. |
| InvalidParameter.DbDuplication | The unique key of database conflicts. |
| MissingParameter | Missing parameter. |
| OperationDenied | Operation denied. |
| OperationDenied.ACLFailed | ACL verification failed. |
| OperationDenied.AccountDestroy | The account has been terminated. |
| OperationDenied.AccountIsolate | The account has overdue payments. |
| OperationDenied.AccountNotExists | The account does not exist. |
| ResourceNotFound.TopicNotExist | The log topic does not exist. |
| UnsupportedOperation.ModifyBillingCosRechargeNoSupport | billing topic is not allowed to modify cos import configuration |
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