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.
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. |
| 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. |
| 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 | Success No. 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. |
POST / HTTP/1.1
Host: bi.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyDatasourceCloud
<Common request parameters>
{
"Id": 1,
"ProjectId": "21313",
"SourceName": "Database alias",
"Vport": "3306",
"VpcId": "2131314",
"Charset": "utf8",
"ExtraParam": "",
"DbUser": "root",
"ServiceType": "{\"Type\":\"Cloud\",\"Region\":\"ap-guangzhou\",\"InstanceId\":\"cdb-bdb0juh5\"}",
"DbType": "MySQL",
"UniqVpcId": "vpc-54343",
"RegionId": "gz",
"DbName": "power-test",
"DbPwd": "2424***231312",
"Vip": ""
}{
"Response": {
"RequestId": "63f50c98-1e5b-41bc-9a6a-d630312f8de9",
"Extra": "",
"Data": "",
"Msg": "success"
}
}
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 |
|---|---|
| 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. |
Feedback