tencent cloud

Business Intelligence

Relevant Agreements
Service Level Agreement
개인 정보 보호 정책
데이터 개인 정보 보호 및 보안 계약
문서Business Intelligence

ModifyDatasourceCloud

포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-19 19:09:27

1. API Description

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

This API is used to update a cloud database.

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: ModifyDatasourceCloud.
Version Yes String Common Params. The value used for this API: 2022-01-05.
Region No String Common Params. This parameter is not required.
ServiceType Yes String The backend provides dictionaries: domain type. 1: Tencent Cloud; 2: local.
DbType Yes String Drive.
Value range:.
MYSQL: MYSQL database.
PRESTO: presto database.
POSTGRE: PostgreSQL database.
DLC: dlc database.
MSSQL: microsoft SQL Server database.
Charset Yes String Database encoding.
DbUser Yes String Username.
DbPwd Yes String Password.
DbName Yes String Database name.
SourceName Yes String Database alias.
ProjectId Yes String Project ID.
Id Yes Integer Primary key.
Vip No String Private network IP address of the public cloud.
Vport No String Private network port of the public cloud.
VpcId No String VPC identifier.
UniqVpcId No String Unified VPC identifier.
RegionId No String Region identifier (gz, bj).
ExtraParam No String Extension parameter.
InstanceId No String Instance ID.
ProdDbName No String Product name of the data source.
DataOrigin No String Third-party data source identifier.
DataOriginProjectId No String Third-party project ID.
DataOriginDatasourceId No String Third-party data source ID.
ClusterId No String Cluster ID.
Schema No String Database schema.
DbVersion No String Database version.

3. Output Parameters

Parameter Name Type Description
ErrorInfo ErrorInfo Custom error information object.
Note: This field may return null, indicating that no valid values can be obtained.
Data String None.
Note: This field may return null, indicating that no valid values can be obtained.
Extra String Additional information.
Note: This field may return null, indicating that no valid values can be obtained.
Msg String Prompt.
Note: This field may return null, indicating that no valid values can be obtained.
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 Updating a Cloud Database Example

Input Example

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

{
    "ServiceType": "ServiceType",
    "DbType": "DbType",
    "Charset": "Charset",
    "DbUser": "DbUser",
    "DbPwd": "DbPwd",
    "DbName": "DbName",
    "SourceName": "SourceName",
    "ProjectId": "ProjectId",
    "Id": 1982493789748932,
    "Vip": "Vip",
    "Vport": "Vport",
    "VpcId": "VpcId",
    "UniqVpcId": "UniqVpcId",
    "RegionId": "RegionId",
    "ExtraParam": "ExtraParam",
    "InstanceId": "InstanceId",
    "ProdDbName": "ProdDbName",
    "DataOrigin": "DataOrigin",
    "DataOriginProjectId": "DataOriginProjectId",
    "DataOriginDatasourceId": "DataOriginDatasourceId",
    "ClusterId": "ClusterId"
}

Output Example

{
    "Response": {
        "RequestId": "63f50c98-1e5b-41bc-9a6a-d630312f8de9",
        "Extra": "",
        "Data": "",
        "Msg": "success"
    }
}

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.
InternalError Internal error.
InternalError.Internal Internal error.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
MissingParameter Parameters are missing.
MissingParameter.MissingParam The required parameter is missing.
OperationDenied Operation denied.
UnauthorizedOperation Unauthorized operation.
UnauthorizedOperation.Authorize Permission error.
UnknownParameter Unknown parameter error.
UnsupportedOperation The operation is not supported.
UnsupportedOperation.BIError Default business exception.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백