Changing the Node Class of a DDM Instance
Function
This API is used to change the node class of a DDM instance.
Constraints
- The node class can be changed only when the corresponding DDM instance is normal.
- The new node class cannot be the same as the original one.
- Node classes of c6s series cannot be changed to those classes of c6 series.
URI
PUT /v3/{project_id}/instances/{instance_id}/flavor
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region To obtain this value, see Obtaining a Project ID. |
instance_id |
Yes |
String |
DDM instance ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
x-auth-token |
Yes |
String |
User token You can obtain the token by calling the IAM API used to obtain a user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
spec_code |
Yes |
String |
Resource specification code of the new node class |
group_id |
No |
String |
This parameter is not required if the instance has only one node group. Each instance has one node group by default. If you need to create multiple node groups, set this parameter to the ID of the group whose node class you want to change. |
is_auto_pay |
No |
Boolean |
Whether the order is automatically paid when you change the node class of a yearly/monthly instance. This parameter does not affect the billing mode of automatic renewal. true: indicates that the order is automatically paid from the account. false: indicates that the order is manually paid from the account. The default value is false. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
job_id |
String |
ID of the task of changing node class. This parameter is returned only when you change the node class of a pay-per-use instance. |
order_id |
String |
Order ID. This parameter is returned only when you change the node class of a yearly/monthly instance. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
Service error code |
externalMessage |
String |
Error message |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
Service error code |
externalMessage |
String |
Error message |
Example Request
Changing node class of a DDM instance to ddm.c6.4xlarge.2
PUT https://{endpoint}/v3/{project_id}/instances/{instance_id}/flavor { "spec_code" : "ddm.c6.4xlarge.2", "group_id" : "3e5a9063d3b84729b0a3310fad3a0942gr09", "is_auto_pay" : false }
Example Response
Status code: 200
ok
{ "job_id" : "2x414788a5112333a02390e2eb0ea227" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 500 |
bad request server error |
Error Codes
For details, 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