Node pools assist in managing heterogeneous resources effectively. A node pool is a set of nodes grouped into a bucket of resources using a predefined (for example, GPU-Type) or administrator-defined label (for example, key & value). For more information, see Node Pools.
Retrieve the node pool metrics data by Universally Unique Identifier (UUID).
Executed successfully.
Partial success.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "measurements": [
- {
- "type": "ALLOCATED_GPU",
- "labels": "{'gpu': '3'}",
- "values": [
- {
- "value": "85",
- "timestamp": "2023-06-06 12:09:18.211"
}
]
}
]
}
Create nodepool
Nodepool to create.
Created
Bad request.
Unauthorized
Forbidden
unexpected error
{- "name": "v100",
- "labelKey": "node-type",
- "labelValue": "type-x",
- "clusterId": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}
}
{- "name": "v100",
- "labelKey": "node-type",
- "labelValue": "type-x",
- "clusterId": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "phase": "Creating",
- "phaseMessage": "all nodes are down",
- "status": {
- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "nodes": [
- "node1"
]
}, - "id": 5,
- "tenantId": 1,
- "clusterName": "prod-cluster",
- "createdBy": "user@lab.com",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "user@lab.com",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedBy": "user@lab.com",
- "deletedAt": "2019-08-24T14:15:22Z",
- "isDefault": false
}
Get nodepools
ok
Bad request.
Unauthorized
Forbidden
unexpected error
{- "nodepools": [
- {
- "name": "v100",
- "labelKey": "node-type",
- "labelValue": "type-x",
- "clusterId": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "phase": "Creating",
- "phaseMessage": "all nodes are down",
- "status": {
- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "nodes": [
- "node1"
]
}, - "id": 5,
- "tenantId": 1,
- "clusterName": "prod-cluster",
- "createdBy": "user@lab.com",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "user@lab.com",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedBy": "user@lab.com",
- "deletedAt": "2019-08-24T14:15:22Z",
- "isDefault": false
}
]
}
Delete nodepool
Accepted.
No Content.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 202,
- "message": "Request has been accepted."
}
Update nodepool
Nodepool to update.
Updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}
}
{- "name": "v100",
- "labelKey": "node-type",
- "labelValue": "type-x",
- "clusterId": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "phase": "Creating",
- "phaseMessage": "all nodes are down",
- "status": {
- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "nodes": [
- "node1"
]
}, - "id": 5,
- "tenantId": 1,
- "clusterName": "prod-cluster",
- "createdBy": "user@lab.com",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "user@lab.com",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedBy": "user@lab.com",
- "deletedAt": "2019-08-24T14:15:22Z",
- "isDefault": false
}
Update only specific fields of a nodepool
Fields to update.
Updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}
}
{- "name": "v100",
- "labelKey": "node-type",
- "labelValue": "type-x",
- "clusterId": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "phase": "Creating",
- "phaseMessage": "all nodes are down",
- "status": {
- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "nodes": [
- "node1"
]
}, - "id": 5,
- "tenantId": 1,
- "clusterName": "prod-cluster",
- "createdBy": "user@lab.com",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "user@lab.com",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedBy": "user@lab.com",
- "deletedAt": "2019-08-24T14:15:22Z",
- "isDefault": false
}
Get nodepool
Requested nodepool
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "name": "v100",
- "labelKey": "node-type",
- "labelValue": "type-x",
- "clusterId": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "phase": "Creating",
- "phaseMessage": "all nodes are down",
- "status": {
- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "spread"
}, - "nodes": [
- "node1"
]
}, - "id": 5,
- "tenantId": 1,
- "clusterName": "prod-cluster",
- "createdBy": "user@lab.com",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "user@lab.com",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedBy": "user@lab.com",
- "deletedAt": "2019-08-24T14:15:22Z",
- "isDefault": false
}
Retrieve all the node pools with details from the cluster by Universally Unique Identifier (UUID). Deprecated, please use /api/v1/node-pools instead.
Node pools returned successfully.
Unauthorized
The specified resource was not found
unexpected error
[- {
- "name": "node-pool-a",
- "overProvisioningRatio": 1,
- "labelKey": "node-type",
- "labelValue": "type-x",
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "binpack"
}, - "id": 5,
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "createdAt": "2021-12-14T16:04:15.099Z",
- "updatedAt": "2021-12-14T16:04:15.099Z",
- "deletedAt": "2021-12-14T16:04:15.099Z",
- "status": "Creating",
- "statusMessage": "all nodes are down",
- "nodes": [
- "node-a",
- "node-b"
], - "createdBy": "user@run.ai",
- "updatedBy": "user@run.ai",
- "isDefault": false
}
]
Use to create a node pool in a cluster by Universally Unique Identifier (UUID). Deprecated, please use /api/v1/node-pools instead.
Created
Bad request.
conflict error
unexpected error
{- "name": "node-pool-a",
- "overProvisioningRatio": 1,
- "labelKey": "node-type",
- "labelValue": "type-x",
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "binpack"
}
}
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}
Use to update the labels of a node pool. Deprecated, please use PATCH /api/v1/node-pools/{id} instead.
Node Pool update accepted.
Bad request.
Unauthorized
The specified resource was not found
unexpected error
{- "labelKey": "node-type",
- "labelValue": "type-x"
}
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}
Use to delete a node pool by Universally Unique Identifier (UUID). Deprecated, please use /api/v1/node-pools/{id} instead.
Node Pool deletion accepted
Bad request.
Unauthorized
The specified resource was not found
unexpected error
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}
Use to update the details of a node pool by Universally Unique Identifier (UUID). Deprecated, please use PATCH /api/v1/node-pools/{id} instead.
Node Pool update accepted.
Bad request.
Unauthorized
The specified resource was not found
unexpected error
{- "labelKey": "node-type",
- "labelValue": "type-x",
- "overProvisioningRatio": 1,
- "placementStrategy": {
- "cpu": "spread",
- "gpu": "binpack"
}
}
{- "code": 400,
- "message": "Bad request - Resource should have a name"
}