Modify Instance Specifications
Function
Modifying the specifications of the IoTDA instance.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
POST /v5/iot/{project_id}/iotda-instances/{instance_id}/resize
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Parameter description: project ID. For details, see Obtaining a Project ID. |
instance_id |
Yes |
String |
Parameter description: instance ID. Value: Enter up to 36 characters, including lowercase letters (a-f), digits, and hyphens (-). |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
No |
String |
Parameter description: user token. You can obtain the token by calling the IAM API Obtaining a User Token Through Password Authentication. In the returned response header, X-Subject-Token is the desired user token. For details about how to obtain the token, see Token Authentication. Minimum: 0 Maximum: 1024000 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
flavor |
Yes |
Flavor object |
Parameter description: specifications of an IoTDA instance. |
is_auto_pay |
No |
Boolean |
Parameter description: whether to automatically pay from the customer's account. This parameter can be specified during specifications change of a yearly/monthly instance. This parameter does not affect the payment mode of automatic renewal. Value: true: automatic payment. Fees are automatically deducted from the account balance. false: default value. Orders are submitted but not paid. Default: false |
delay |
No |
Boolean |
Parameter description: whether to changing the billing information of a device instance in the delayed mode. To delay the change, you need to set the change time window of the instance first. Options:
Default: false |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
type |
Yes |
String |
Parameter description: specification name of the IoTDA instance to create. For details, see Specifications. |
size |
No |
Integer |
Parameter description: unit number of the standard IoTDA instances to create. For details, see Specifications. This parameter is mandatory when instance_type is set to standard. Minimum: 1 Maximum: 200 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
order_id |
String |
Parameter description: order ID. This parameter is returned when a yearly/monthly instance is modified. This parameter is left blank when a pay-per-use instance is modified. For details about how to check the order details, see [Querying Order Details]. Minimum: 0 Maximum: 64 |
Example Requests
Modifying the specifications of a standard instance. Target: 2 standard intermediate-frequency units.
PUT https://{endpoint}/v5/iot/{project_id}/iotda-instances/{instance_id}/resize { "flavor" : { "type" : "iotda.standard.s2", "size" : 2 } }
Example Responses
Status code: 200
OK
{ "order_id" : "CS22121614500ABCD" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
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