curl --request PUT \ --url 'https://api.e2enetworks.com/myaccount/api/v1/kubernetes/change-committed-settings/{node_pool_id}/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "node_status": "hourly_billing", "committed_plan": 0}'import requests
response = requests.put( "https://api.e2enetworks.com/myaccount/api/v1/kubernetes/change-committed-settings/{node_pool_id}/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "node_status": "hourly_billing", "committed_plan": 0, },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/kubernetes/change-committed-settings/{node_pool_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "PUT", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "node_status": "hourly_billing", "committed_plan": 0 }),});console.log(await response.json());Updates the committed (reserved) billing settings of a node pool’s nodes. Set node_status to auto_renew to auto-renew the commitment on expiry, or to hourly_billing to fall back to hourly billing when the term ends. committed_plan is the committed-plan option (sku_day_id) to switch to.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The node pool service_id (from List Node Pools).
Example
12346Query Parameters
Section titled “Query Parameters”Identifier of the project to scope the request to. Required integer project ID.
Example
<PROJECT_ID>API key used to authenticate the request.
Example
<API_KEY>Region of the cluster.
Example
<LOCATION>Request Body
Section titled “Request Body”Update the committed billing settings of the pool’s nodes.
object
Committed billing behaviour on term expiry.
Example
hourly_billingCommitted-plan option (sku_day_id) to switch to. Use 0 to leave the plan unchanged.
Example
0Example
{ "node_status": "hourly_billing", "committed_plan": 0}Responses
Section titled “Responses”Successful response
object
object
Example
{ "code": 200, "data": [ "" ], "message": "Kubernetes Committed Nodes Plans are updated"}