Domain name for API request: cls.intl.tencentcloudapi.com.
This API is used to get COS import configuration.
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: DescribeCosRecharges. |
| 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. |
| TopicId | Yes | String | Log topic Id. - Get the log topic Id through Get Log Topic List. |
| Status | No | Integer | Status. 0: Created, 1: Running, 2: Stopped, 3: Completed, 4: Run failed |
| Enable | No | Integer | Whether the configuration is enabled. 0: Not enabled, 1: Enabled |
| Parameter Name | Type | Description |
|---|---|---|
| Data | Array of CosRechargeInfo | See CosRechargeInfo structural 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. |
Obtaining the COS Import Configurations
POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCosRecharges
<Common request parameters>
{
"TopicId": "fadcc986-xxxx-xxxx-b766-9ce9c193da32",
"Status": 0,
"Enable": 1
}
{
"Response": {
"Data": [
{
"Id": "9b3cc796-xxxx-xxxx-90e0-e760f1d991a0",
"TopicId": "fadcc986-xxxx-xxxx-b766-9ce9c193da32",
"LogsetId": "bcc26ed4-xxxx-xxxx-9992-cea8ff7cf470",
"Name": "cos_test1",
"Bucket": "bucket-1254000000",
"BucketRegion": "ap-guangzhou",
"Prefix": "",
"LogType": "json_log",
"Status": 2,
"Enable": 0,
"Progress": 0,
"CreateTime": "2024-04-23 15:41:07",
"UpdateTime": "2024-12-30 20:39:41",
"Compress": "",
"ExtractRuleInfo": {
"TimeKey": "",
"TimeFormat": "",
"Delimiter": "",
"LogRegex": "",
"BeginRegex": "",
"Keys": [],
"FilterKeyRegex": [],
"UnMatchUpLoadSwitch": true,
"UnMatchLogKey": "LogParseFailure",
"Backtracking": null,
"IsGBK": 0,
"JsonStandard": 1,
"Protocol": "",
"Address": "",
"ParseProtocol": "",
"MetadataType": 0,
"PathRegex": "",
"MetaTags": [],
"EventLogRules": [],
"AdvanceFilterRules": [
{
"Key": "response_code",
"Rule": 0,
"Value": "400|500"
}
],
"RawLogKey": ""
},
"TaskType": 1,
"Metadata": []
}
],
"RequestId": "c54d737b-xxxx-xxxx-b3da-c226a6aebaf4"
}
}
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. |
| InvalidParameter.TopicConflict | There is already a log topic with the same name in the specified logset. |
| LimitExceeded | The quota limit has been reached. |
| 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 | The resource does not exist. |
| ResourceNotFound.TopicNotExist | The log topic 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