Skip to content

Update Committed Settings / Change Committed Settings

POST
/api/v1/update_committed_node_status/
curl --request POST \
--url 'https://api.e2enetworks.com/myaccount/api/v1/update_committed_node_status/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '"{\n \"vcn_id\": {{node_id}},\n // \"node_status\": \"auto_renew\",\n \"node_status\": \"hourly_billing\",\n // \"node_status\": \"auto_terminate\",\n \"committed_plan\": 318\n}"'

Changes the renewal behaviour of a committed load balancer node. Use node_status to switch between hourly billing, auto-renewal, and auto-termination at the end of the committed term. When node_status is auto_renew, committed_plan selects the term to renew into.

Update Committed Settings and Change Committed Settings share this request; the body you send decides which one runs.

project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the request.

Example

<API_KEY>
location
required
string

Location identifier for the settings update

Example

<LOCATION>
Media typeapplication/json
One of:

JSON-formatted string with the payload to update committed settings

string

Example

{
"vcn_id": {{node_id}},
// "node_status": "auto_renew",
"node_status": "hourly_billing",
// "node_status": "auto_terminate",
"committed_plan": 318
}

Successful response

Media typeapplication/json
object
status

HTTP status code of the update operation

integer
message

Status message indicating the result of the update operation

string

Example

{
"status": 200,
"message": "Updated Successfully"
}