Adding Independent Masters and Clients
Function
If you have not enabled the master or client node when creating a cluster, you can call this API to add one.
Debugging
You can debug this API through automatic authentication in API Explorer.
URI
POST /v1.0/{project_id}/clusters/{cluster_id}/type/{type}/independent
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name. |
cluster_id |
Yes |
String |
ID of the cluster that needs an independent master or client. |
type |
Yes |
String |
Node type. Its value can be:
|
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
type |
Yes |
IndependentBodyReq object |
Master/Client request body parameter |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
flavor_ref |
Yes |
String |
Flavor ID. You can obtain the value of this parameter by calling the API for [Obtaining the Instance Specifications List] (ListFlavors.xml). Select the flavor ID suitable for your cluster version. |
node_size |
Yes |
Integer |
Number of nodes.
|
volume_type |
Yes |
String |
Node storage type. Its value can be ULTRAHIGH, COMMON, or HIGH. |
is_auto_pay |
No |
Integer |
Indicates whether to enable automatic payment from your Huawei Cloud account. This parameter takes effect only for yearly/monthly clusters. 1: Yes. (Discounts and coupons are automatically selected. The fee will be automatically deducted from your Huawei Cloud account.) If the automatic payment fails, an unpaid order will be generated, and you need to manually complete the payment. (During manual payment, you can still modify the discounts and coupons that were automatically selected.) 0: No. (You need to manually pay for the bill. Discounts and coupons can be used.) The default value is 0. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
String |
Cluster ID. |
Example Requests
Add independent master and client nodes.
POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/type/ess-client/independent { "type" : { "flavor_ref" : "d9dc06ae-b9c4-4ef4-acd8-953ef4205e27", "node_size" : 3, "volume_type" : "COMMON" } }
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.
Feedback
Was this page helpful?
Provide feedbackThank 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