POST
/api/v1/kubernetes/convert-to-committed/{node_pool_id}/
curl --request POST \ --url 'https://api.e2enetworks.com/myaccount/api/v1/kubernetes/convert-to-committed/{node_pool_id}/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "sku_day_id": 9195}'import requests
response = requests.post( "https://api.e2enetworks.com/myaccount/api/v1/kubernetes/convert-to-committed/{node_pool_id}/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "sku_day_id": 9195, },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/kubernetes/convert-to-committed/{node_pool_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "POST", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "sku_day_id": 9195 }),});console.log(await response.json());Converts a node pool’s hourly-billed worker nodes into committed (reserved) nodes for a fixed term, at a lower effective rate. Send sku_day_id - the committed-plan option to apply (a committed_sku_id from the plan’s committed_sku list). Use the node pool’s service_id.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”node_pool_id
required
integer
The node pool service_id (from List Node Pools).
Example
12346Query Parameters
Section titled “Query Parameters”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
Region of the cluster.
Example
<LOCATION>Request Body
Section titled “Request Body”Media typeapplication/json
Convert the pool’s nodes to committed (reserved) nodes.
object
sku_day_id
required
The committed-plan option to apply (a committed_sku_id from the plan’s committed_sku list).
integer
Example
9195Example
{ "sku_day_id": 9195}Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
code
integer
data
Array<string>
errors
object
message
string
Example
{ "code": 200, "data": [ "" ], "message": "Kubernetes node pool vms are converted into Committed Nodes"}