Skip to main content
PATCH
/
v1
/
accounts
/
{account_id}
/
nodePools
/
{node_pool_id}
Update Node Pool
curl --request PATCH \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/nodePools/{node_pool_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "<string>",
  "minNodeCount": 123,
  "maxNodeCount": 123,
  "overprovisionNodeCount": 123,
  "eksNodePool": {
    "instanceType": "<string>",
    "nodeRole": "<string>",
    "spot": true,
    "nodeGroupName": "<string>",
    "subnetIds": [
      "<string>"
    ],
    "zone": "<string>",
    "placementGroup": "<string>",
    "launchTemplate": "<string>"
  },
  "fakeNodePool": {
    "machineType": "<string>",
    "numNodes": 123,
    "serviceAccount": "<string>"
  },
  "annotations": {}
}
'
{
  "name": "<string>",
  "displayName": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "minNodeCount": 123,
  "maxNodeCount": 123,
  "overprovisionNodeCount": 123,
  "eksNodePool": {
    "instanceType": "<string>",
    "nodeRole": "<string>",
    "spot": true,
    "nodeGroupName": "<string>",
    "subnetIds": [
      "<string>"
    ],
    "zone": "<string>",
    "placementGroup": "<string>",
    "launchTemplate": "<string>"
  },
  "fakeNodePool": {
    "machineType": "<string>",
    "numNodes": 123,
    "serviceAccount": "<string>"
  },
  "annotations": {},
  "state": "STATE_UNSPECIFIED",
  "status": {
    "code": "OK",
    "message": "<string>"
  },
  "nodePoolStats": {
    "nodeCount": 123,
    "ranksPerNode": 123,
    "environmentCount": 123,
    "environmentRanks": 123,
    "batchJobCount": {},
    "batchJobRanks": {}
  },
  "updateTime": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>

Path Parameters

account_id
string
required

The Account Id

node_pool_id
string
required

The Node Pool Id

Body

application/json

The properties of the NodePool being updated. node_pool.name must be populated with the updated resource's name.

displayName
string

Human-readable display name of the node pool. e.g. "My Node Pool" Must be fewer than 64 characters long.

minNodeCount
integer<int32>

https://cloud.google.com/kubernetes-engine/quotas Minimum number of nodes in this node pool. Must be a non-negative integer less than or equal to max_node_count. If not specified, the default is 0.

maxNodeCount
integer<int32>

https://cloud.google.com/kubernetes-engine/quotas Maximum number of nodes in this node pool. Must be a positive integer greater than or equal to min_node_count. If not specified, the default is 1.

overprovisionNodeCount
integer<int32>

The number of nodes to overprovision by the autoscaler. Must be a non-negative integer and less than or equal to min_node_count and max_node_count-min_node_count. If not specified, the default is 0.

eksNodePool
An Amazon Elastic Kubernetes Service node pool. Next ID: 10 · object
fakeNodePool
object

A fake node pool to be used with FakeCluster.

annotations
object

Arbitrary, user-specified metadata. Keys and values must adhere to Kubernetes constraints: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set Additionally, the "fireworks.ai/" prefix is reserved.

Response

200 - application/json

A successful response.

name
string
displayName
string

Human-readable display name of the node pool. e.g. "My Node Pool" Must be fewer than 64 characters long.

createTime
string<date-time>

The creation time of the node pool.

minNodeCount
integer<int32>

https://cloud.google.com/kubernetes-engine/quotas Minimum number of nodes in this node pool. Must be a non-negative integer less than or equal to max_node_count. If not specified, the default is 0.

maxNodeCount
integer<int32>

https://cloud.google.com/kubernetes-engine/quotas Maximum number of nodes in this node pool. Must be a positive integer greater than or equal to min_node_count. If not specified, the default is 1.

overprovisionNodeCount
integer<int32>

The number of nodes to overprovision by the autoscaler. Must be a non-negative integer and less than or equal to min_node_count and max_node_count-min_node_count. If not specified, the default is 0.

eksNodePool
An Amazon Elastic Kubernetes Service node pool. Next ID: 10 · object
fakeNodePool
object

A fake node pool to be used with FakeCluster.

annotations
object

Arbitrary, user-specified metadata. Keys and values must adhere to Kubernetes constraints: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set Additionally, the "fireworks.ai/" prefix is reserved.

state
enum<string>
default:STATE_UNSPECIFIED

The current state of the node pool.

Available options:
STATE_UNSPECIFIED,
CREATING,
READY,
DELETING,
FAILED
status
Mimics [https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto] · object

Contains detailed message when the last node pool operation fails, e.g. when node pool is in FAILED state or when last node pool update fails.

nodePoolStats
Next ID: 7 · object

Live statistics of the node pool.

updateTime
string<date-time>

The update time for the node pool.