Creates a cluster.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:CreateCluster |
create |
*Instance
|
None | None |
Request syntax
POST /openapi/ha3/instances/{instanceId}/clusters HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
{} |
| name |
string |
No |
The cluster name. |
hz_pre_vpc_domain_1 |
| description |
string |
No |
The description of the cluster. |
CustomDescription |
| queryNode |
object |
No |
The details of the Query Result Searcher (QRS) workers. |
|
| number |
integer |
No |
The number of QRS workers. |
2 |
| dataNode |
object |
No |
The details of the Searcher workers. |
|
| number |
integer |
No |
The number of Searcher workers. |
2 |
| partition |
string |
No |
The number of shards. |
2 |
| autoLoad |
boolean |
No |
Specifies whether to enable automatic connection. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The results returned. |
||
| requestId |
string |
The request ID. |
10D5E615-69F7-5F49-B850-00169ADE513C |
| result |
object |
The result. |
{} |
Examples
Success response
JSON format
{
"requestId": "10D5E615-69F7-5F49-B850-00169ADE513C",
"result": {}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.