Domain name for API request: cynosdb.intl.tencentcloudapi.com.
Add a read-only instance to the serverless cluster
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: AddServerlessRoInstances. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-07. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo. |
| ClusterId | Yes | String | Cluster Id |
| MinCpu | No | Float | Minimum specification of the ro instance |
| MaxCpu | No | Float | Maximum specification of ro instance |
| InstanceName | No | String | ro instance name |
| VpcId | No | String | VPC network ID |
| SubnetId | No | String | Subnet ID. If VpcId is set up, SubnetId is required. |
| Port | No | Integer | Port used when adding new RO groups, value range [0,65535) |
| SecurityGroupIds.N | No | Array of String | Security group ID. You can specify security groups when creating a read-only instance. |
| AutoPause | No | String | Whether to automatically pause Enumeration value:
|
| AutoPauseDelay | No | Integer | Auto-pause time Unit: s |
| InstanceParams.N | No | Array of ModifyParamItem | Instance parameter |
| ParamTemplateId | No | Integer | Parameter template |
| RoCount | No | Integer | Number of newly-added read-only instances |
| Parameter Name | Type | Description |
|---|---|---|
| TranId | String | Freeze transaction. One frozen flow is activated at a time. Note: This field may return null, indicating that no valid values can be obtained. |
| DealNames | Array of String | Post-paid order number Note: This field may return null, indicating that no valid values can be obtained. |
| ResourceIds | Array of String | Delivery resource id list. Note: This field may return null, indicating that no valid values can be obtained. |
| BigDealIds | Array of String | Large order number 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: cynosdb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: AddServerlessRoInstances
<Common request parameters>
{
"ClusterId": "cynosdbmysql-oi7mh90n",
"MinCpu": 1,
"MaxCpu": 2,
"InstanceName": "S1-db-environment1"
"Port": 3306,
"RoCount": 1
}
{
"Response": {
"BigDealIds": null,
"DealNames": [
"20260509445022752472821"
],
"ResourceIds": [
"cynosdbmysql-ins-p1hpv1kk"
],
"TranId": "20260509445022752472831",
"RequestId": "29c45fc5-79bd-4794-91c0-50717b7978aa"
}
}
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 |
|---|---|
| OperationDenied.CamDeniedError | Failed to verify permissions |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan