Available in VPC
Create a search engine cluster.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /api/v2/cluster/createSearchEngineCluster (Korea Region) |
POST | /api/sgn-v2/cluster/createSearchEngineCluster (Singapore Region) |
POST | /api/jpn-v2/cluster/createSearchEngineCluster (Japan Region) |
Request headers
For information about the headers common to all Search Engine Service APIs, see Search Engine Service request headers.
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
clusterName |
String | Required | Cluster name
|
searchEngineVersionCode |
String | Required | Search engine version
|
searchEngineDashboardPort |
String | Required | Dashboard port number
|
searchEngineUserName |
String | Required | Search engine admin account ID
|
searchEngineUserPassword |
String | Required | Search engine admin account password
|
softwareProductCode |
String | Required | Operating system type code |
vpcNo |
Integer | Required | VPC number
|
managerNodeSubnetNo |
Integer | Required | Manager node subnet number
|
isDualManager |
Boolean | Optional | Manager node redundancy
|
managerNodeProductCode |
String | Required | Manager node server type code
|
isMasterOnlyNodeActivated |
Boolean | Optional | Whether master node is enabled
|
masterNodeSubnetNo |
Integer | Conditional | Manager node subnet number
|
masterNodeCount |
Integer | Conditional | Number of master nodes
|
masterNodeProductCode |
String | Conditional | Master node server type code
|
dataNodeSubnetNo |
Integer | Required | Data node subnet number
|
dataNodeCount |
Integer | Required | Number of data nodes
|
dataNodeProductCode |
String | Required | Data node server type code
|
dataNodeStorageSize |
Integer | Required | Data node storage capacity (GB)
|
loginKeyName |
String | Required | Authentication key name
|
Request example
The request example is as follows:
curl --location --request POST 'https://vpcsearchengine.apigw.ntruss.com/api/v2/cluster/createSearchEngineCluster' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"clusterName": "cluster006",
"searchEngineVersionCode": "290",
"searchEngineDashboardPort": "1025",
"searchEngineUserName": "ncpadmin",
"searchEngineUserPassword": "*********",
"softwareProductCode": "SW.VELST.OS.LNX64.ROCKY.0808.B050",
"vpcNo": 9****,
"managerNodeSubnetNo": 20****,
"managerNodeProductCode": "SVR.VELST.STAND.C002.M008.NET.SSD.B050.G002",
"isMasterOnlyNodeActivated": true,
"masterNodeSubnetNo": 20****,
"masterNodeCount": 3,
"masterNodeProductCode": "SVR.VELST.STAND.C002.M008.NET.SSD.B050.G002",
"dataNodeSubnetNo": 20****,
"dataNodeCount": 3,
"dataNodeProductCode": "SVR.VELST.STAND.C002.M008.NET.SSD.B050.G002",
"dataNodeStorageSize": 100,
"loginKeyName": "loginkey01"
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
code |
Integer | - | Response code |
message |
String | - | Response message |
result |
Object | - | Response result |
result.serviceGroupInstanceNo |
Integer | - | Cluster instance number |
requestId |
String | - | ID for the request
|
Response status codes
For response status codes common to all Search Engine Service APIs, see Search Engine Service response status codes.
Response example
The response example is as follows:
{
"code": 0,
"message": "SUCCESS",
"result": {
"serviceGroupInstanceNo": 1037*****
},
"requestId": "1455f9ef-****-****-****-a7e80275e16b"
}