History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
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. 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. |
| 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. |
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"
}
{
"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. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan