Changing EIP Billing Mode from Pay-per-Use to Yearly/Monthly
Function
This API is used to change the EIP billing mode from pay-per-use to yearly/monthly.
URI
POST /v2.0/{project_id}/publicips/change-to-period
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
publicip_ids |
Yes |
Array |
List of pay-per-use EIPs 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 |
---|---|---|
publicip_ids |
Array |
List of EIPs with billing mode changed to yearly/monthly |
order_id |
String |
Order ID |
request_id |
String |
Request ID |
Example Request
POST /v2.0/{project_id}/publicips/change-to-period { "publicip_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
{ "publicip_ids" : [ "2c3b404b-d595-4ab5-a333-69f3ff937dc2" ], "order_id" : "CS2212141730K2FGR", "request_id" : "9d5bc34c-810f-48f2-95c4-9c48d02f2a33" }
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