Create an instance - CreateUKafkaInstance
Overview
Create a ukafka instance
Definition
Public Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Action | string | Corresponding API command name, the current API is CreateUKafkaInstance. | Yes |
| PublicKey | string | The user’s public key can be obtained from Console | Yes |
| Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Region | string | Region. See List of Regions and Availability Zones | Yes |
| Zone | string | Availability Zones. See List of Availability Zones | Yes |
| ProjectId | string | Project ID. Leaving this field blank will default to the project ID; it is required for sub-accounts. Please refer to the GetProjectList API | No |
| FrameworkVersion | string | The supported Kafka versions can be obtained through the FrameworkVersions field returned by the ListUKafkaFrameworkVersion interface. | Yes |
| VPCId | string | VPC ID | Yes |
| SubnetId | string | Subnet ID | Yes |
| ChargeType | string | Payment methods | Yes |
| NodeType | string | The supported machine models can be found by checking the InstanceTypeSet[].InstanceTypeName returned by the GetUKafkaNodeType interface. | Yes |
| DiskSize | int | Data disk size. The supported range is obtained from the InstanceTypeSet[].MaxDiskSize and MinDiskSize returned by the GetUKafkaNodeType interface. | Yes |
| InstanceName | string | Instance name, can be customized | Yes |
| BusinessId | string | Business group, default | No |
| Quantity | string | Number of instances, default 1 | No |
| NodeCount | int | Number of cluster nodes. Default: 3 nodes. | No |
| LogRetentionHours | string | Kafka log retention time, supported range [1, 240]. Default is 72 hours. | No |
| DiskControllerType | string | Disk management mode, supported values: NONE, CLEAN. Default value: NONE | No |
| DiskThreshold | string | Disk cleanup threshold, supported range [70, 90]. Required if DiskControllerType is CLEAN. Default value: 90. | No |
| IsSecurityEnabled | string | Whether to enable the security group, supporting “true” or “false”, the default is false. | No |
Response Field
| Field Name | Type | Description Information | Required |
|---|---|---|---|
| RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
| Action | string | Operation command name. | Yes |
| Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
| InstanceId | string | Instance resource ID | Yes |
Example
Request Example
https://api.ucloud-global.com/?Action=CreateUKafkaInstance
&ProjectId=org-xts2j0
&Zone=cn-bj2-05
&Region=cn-bj2
&ClusterInstanceName=barfoo
&LoginMode=Password
&Framework=Kafka
&Password=dW5kZWZpbmVk
&FrameworkVersion=1.1.1
&ChargeType=Dynamic
&Quantity=1
&InstanceGroupConfig=N1-large#3
&Tag=Default
&SubnetId=subnet-xo4nvk
&VPCId=uvnet-erxgwh
&Concurrency=30
&ClusterConfigs.0=log.retention.hours#72
&ClusterConfigs.1=DiskThreshold#80
&ClusterConfigs.2=DiskControllerType#CLEAN
&Action=CreateUKafkaInstance
&_user=pan.ma%40ucloud.cn
&_timestamp=1545630237660
&ClusterInstanceName=JazwZJAT
&Quantity=RtALqSOr
&ChargeType=xoPAsVKz
&NodeType=BuJplpPu
&NodeNum=szuCxYyA
&SubnetId2=tYpxLNMB
&VPCID2=WUEuEXCe
&LogRetentionHours=lMlcaGNx
&DiskControllerType=POJjFcOU
&DiskSize=AdTgjJLD
&DiskThreshold=NZHiwKFm
&IsSecurityEnabled=qsHobWJfResponse Example
{
"Action": "CreateUKafkaInstanceResponse",
"ClusterInstanceId": "ukafka-g5s1nd",
"Message": "exoIIFmP",
"RetCode": 0
}