tencent cloud

日志服务

ModifyCloudProductLogCollection

Download
聚焦模式
字号
最后更新时间: 2026-07-15 20:46:27

1. API Description

Domain name for API request: cls.intl.tencentcloudapi.com.

Cloud product integration uses internal APIs

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: ModifyCloudProductLogCollection.
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.
InstanceId Yes String

Instance ID.

AssumerName Yes String

Cloud product identifier, supports enumerate: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS

LogType Yes String

Log type. Supports enumeration: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS

CloudProductRegion Yes String

Product region. Different log types have different region input formats. Refer to the following example:

  • All CDS log types: ap-guangzhou
  • CDB-AUDIT: gz
  • TDSQL-C-AUDIT: gz
  • MongoDB-AUDIT: gz
  • MongoDB-SlowLog: ap-guangzhou
  • MongoDB-ErrorLog: ap-guangzhou
  • TDMYSQL-SLOW: gz
  • All DCDB log types: gz
  • All MariaDB log types: gz
  • All PostgreSQL log types: gz
  • All BH log types: overseas-polaris(Hong Kong (China) and other)/fsi-polaris(financial district)/general-polaris(general zone)/intl-sg-prod(international site)
  • All APIS log types: gz
Extend No String

Logging configuration extended information, generally used to store additional log delivery configuration

Tags.N No Array of Tag

Description list of tags. By specifying this parameter, you can simultaneously bind tags to the appropriate logset and topic. Supports a maximum of 10 tag key-value pairs. The same resource can only be bound to the same tag key.

3. Output Parameters

Parameter Name Type Description
Message String

Additional information. For example, failed to modify the topic or logset tag.

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 Modify a Cloud Product delivery task

Input Example

POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyCloudProductLogCollection
<Common request parameters>

{
    "InstanceId": "cdb-9edkkbdc",
    "AssumerName": "CDB",
    "LogType": "CDB-AUDIT",
    "CloudProductRegion": "qy",
    "Extend": ""
}

Output Example

{
    "Response": {
        "RequestId": "c254ce5d-9834-4146-bfb5-a2dc35b0d5cc"
    }
}

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
AuthFailure CAM signature/authentication error.
FailedOperation Operation failed.
FailedOperation.CloudProductInvocationError Cloud product interface call exception
FailedOperation.Timeout Operation timed out
InternalError Internal error.
InvalidParameter Incorrect parameter.
InvalidParameter.ParamError Parameter error.
InvalidParameterValue Incorrect parameter value.
MissingParameter Missing parameter.
OperationDenied Operation denied.
UnsupportedOperation Unsupported operation.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈