Skip to content

Convert Node Pool to Committed Nodes

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
}'

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.

node_pool_id
required
integer

The node pool service_id (from List Node Pools).

Example

12346
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>
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

9195

Example

{
"sku_day_id": 9195
}

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"
}