Adding a Node Type
Function
This API is used to add dedicated master or client nodes or cold data nodes to an Elasticsearch or OpenSearch cluster that previously does not have such nodes. (When planning a cluster, you cannot always accurately predict future changes in data volumes. Add dedicated master or client nodes or cold data nodes is an effective way to scale up a cluster.)
Calling Method
For details, see Calling APIs.
URI
POST /v1.0/{project_id}/clusters/{cluster_id}/type/{type}/independent
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name. Constraints N/A Range Project ID of an account. The value contains 32 characters, consisting of lowercase letters and digits. Default Value N/A |
| cluster_id | Yes | String | Definition ID of the cluster that requires dedicated master, client nodes, or cold data nodes. For details about how to obtain the cluster ID, see Obtaining the Cluster ID. Constraints N/A Range The value is a UUID containing 36 characters. Default Value N/A |
| type | Yes | String | Definition: Types of dedicated nodes to add. Constraints: N/A Value range: Default value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | Yes | IndependentTypeReq object | Definition: Request body parameters for dedicated master, client, or cold data nodes. Constraints: N/A Value range: N/A Default value: N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| flavor_ref | Yes | String | Definition: Flavor ID. Constraints: N/A Value range: You can obtain the value of this parameter by calling the API for Obtaining the Instance Specifications List. Select the flavor ID suitable for your cluster version. Default value: N/A |
| node_size | Yes | Integer | Definition Number of dedicated nodes. Constraints
Range N/A Default Value N/A |
| volume_type | No | String | Definition: Node storage type. Constraints: This parameter cannot be set when flavor_ref is set to a local disk flavor. Value range: Default value: If flavor_ref is not set to a local disk flavor, the default value is ULTRAHIGH. |
| volume_size | No | Integer | Definition Node storage size, in GB. NOTE: For a new dedicated cold data node, a value greater than 100 GB is recommended. Constraints
Range The disk size can be obtained from the diskrange attribute in Obtaining the Instance Specifications List. Default Value If flavor_ref does not specify a local disk flavor, for a new dedicated cold data node, the default value is the greater of 100 and the minimum disk capacity supported by the node flavor. For a new dedicated master or client node, the default size is 40 GB and cannot be changed. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition: Cluster ID. Value range: N/A |
Example Requests
Add dedicated master or client nodes or cold data nodes.
POST https://{Endpoint}/v1.0/{project_id}/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/type/ess-client/independent
{
"type" : {
"flavor_ref" : "d9dc06ae-b9c4-4ef4-acd8-953ef4205e27",
"node_size" : 3,
"volume_type" : "COMMON",
"volume_size" : 40
}
} Example Responses
Status code: 200
Request succeeded.
{
"id" : "320afa24-ff2a-4f44-8460-6ba95e512ad4"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
| 403 | Request rejected. The server has received the request and understood it, but refused to respond to it. The client should not repeat the request without modifications. |
| 500 | The server has received the request but could not understand it. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot