Skip to main content
POST
Import Inventory Nodes

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Bulk create/upsert nodes (e.g. from a parsed inventory.ini). Batch fields apply to every node; nodes upsert by (name, site_id). site_id is required. When cluster_id is given the nodes are also assigned to that cluster (with the shared assignment attrs below); otherwise they are just created.

siteId
string
required
nodes
NodeImportRow · object[]
required
Maximum array length: 1000
clusterId
string | null
status
enum<string>
default:ACTIVE
Available options:
ACTIVE,
PLANNED,
DECOMMISSIONING,
INVENTORY,
OFFLINE,
FAILED
role
enum<string>
default:GPU_NODE
Available options:
GPU_NODE,
CPU_NODE
gpuCount
integer | null
nodeTypeId
string | null
ansibleGroups
Ansiblegroups · object | null
assignmentType
enum<string>
default:STANDARD
Available options:
STANDARD,
FAILOVER
isController
boolean
default:false
priceHr
number | null
startDate
string<date-time> | null
notes
string | null
reassign
boolean
default:false

Response

Successful Response

data
MutationResult · object | null

Response data

status
string | null

Response status