Changing Bandwidth Billing Mode from Pay-per-Use to Yearly/Monthly
Function
This API is used to change the bandwidth billing mode from pay-per-use to yearly/monthly.
URI
POST /v2.0/{project_id}/bandwidths/change-to-period
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
bandwidth_ids |
Yes |
Array |
List of pay-per-use bandwidths to be changed to yearly/monthly |
extendParam |
Yes |
Change billing mode from pay-per-use to yearly/monthly. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
charge_mode |
No |
String |
Default value: postPaid Enumerated values:
|
period_type |
No |
String |
Enumerated values:
|
period_num |
No |
Integer |
Minimum value: 1 Maximum value: 9 |
is_auto_renew |
No |
Boolean |
Default value: false |
is_auto_pay |
No |
Boolean |
Default value: false |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
bandwidth_ids |
Array |
List of bandwidths with billing mode changed to yearly/monthly |
order_id |
String |
Order ID |
request_id |
String |
Request ID |
Example Request
POST /v2.0/{project_id}/bandwidths/change-to-period { "bandwidth_ids" : [ "fe2a11c7-c880-49f7-b1e0-e151df2cc836" ], "extendParam" : { "charge_mode" : "prePaid", "period_type" : "month", "period_num" : 1, "is_auto_renew" : false, "is_auto_pay" : true } }
Example Response
Status code: 200
OK
{ "bandwidth_ids" : [ "fe2a11c7-c880-49f7-b1e0-e151df2cc836" ], "order_id" : "CS2212141741L0QZG", "request_id" : "8bcadb5d-1bf4-42e8-909f-1606ecf781ce" }
Status Code
See Status Codes.
Error Code
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