docs
api
Distributed NewSQL Database(TiDB)
CreateTiDBService

Create Service - CreateTiDBService

Overview

Create TiDB Service

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateTiDBService.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject IDYes
NamestringService name, length does not exceed 64Yes
PasswordstringPassword for the root service account, not exceeding 32 in lengthYes
VPCIdstringVPC IDYes
SubnetIdstringSubnet IDYes
TikvMemoryHardThstringInstance Type: 0: Flagship Edition, 30: Experience Edition, 60: Lightweight EditionNo
Ipstringipv4No
PortstringPortNo
DTTypestringDisaster Recovery Type: 10: Same Availability Zone, 20: Cross Availability Zone, the default is Same Availability Zone.No
SecGroupstringWhether to enable the security group: '1' to enable. '0' or leave it blank to disable.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
DataServiceDataService DataNo
ServiceIdstringService IDNo

Data Model

ServiceData

Field NameTypeDescription InformationRequired
IdstringYes

Example

Request Example

https://api.surfercloud.com/?Action=CreateTiDBService
&Region=cn-zj
&Name=pIEIVhHC
&Password=pwGmuGAr
&AccessVPCId=fHryqwgY
&SubnetId=zqaEcBmm
&ProjectId=IsdeuBDd
&TikvMemoryHardTh=cxfMqVOa
&Ip=IchjnUte
&Port=6
&DTType=ATRPviKe
&SecGroup=mAICQrDK

Response Example

{
  "Action": "CreateTiDBServiceResponse",
  "Data": {},
  "Message": "DqzmVrUE",
  "RetCode": 0,
  "ServiceId": "xVJLjxzc"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved