Retrieve all Machines
Get all Machines for Infrastructure Provider.
Org must have an Infrastructure Provider entity. User must have FORGE_PROVIDER_ADMIN authorization role.
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current
```
Path parameters
org
Query parameters
siteId
Filter Machines by Site ID
id
Filter Machines by ID. Can be specified multiple times to filter on more than one ID.
hasInstanceType
Filter Machines that have been assigned an Instance Type.
instanceTypeId
Filter Machines by Instance Type ID. Can be specified multiple times to filter on more than one Instance Type ID.
tenantId
Filter Machines by ID of tenant of assigned instance. Can be specified multiple times to filter on more than one Tenant ID.
hasInstance
Filter Machines that are assigned to an Instance. siteId must be specified when using this param.
isMissingOnSite
Filter Machines that are missing on Site.
includeMetadata
Include Machine metadata e.g. BMC, DPU, GPU and Interface data. Can only be requested by Provider.
status
Filter Machines by Status. Can be specified multiple times to filter on more than one Status.
capabilityType
Filter Machines by Capability Type
capabilityName
Filter Machines by Capability Name. Can be specified multiple times to filter on more than one Capability Name.
hwSkuDeviceType
Filter Machines by hardware SKU Device Type. Example values: “gpu”, “cpu”, “storage”, “cache”
query
Provide query to search for matches. Input will be matched against Machine ID, vendor, product name, hostname and status
includeRelation
Related entity to expand
Allowed values:
pageNumber
Page number for pagination query
pageSize
Page size for pagination query
orderBy
Ordering for pagination query
Response headers
X-Pagination
Pagination result in JSON format
Response
OK
id
Unique ID of Machine
infrastructureProviderId
ID of the Provider that owns the Machine
siteId
ID of the Site the Machine belongs to
instanceTypeId
ID of the Instance Type, if assigned
instanceId
ID of the Instance if this Machine is assigned to one
tenantId
ID of the Tenant that owns the Instance if the Machine is assigned to one
controllerMachineId
ID of the Machine at Site, now same as the primary ID
controllerMachineType
Denotes architecture (x86 vs ARM) of the Machine
hwSkuDeviceType
SKU derived device type of the machine, e.g. cpu, gpu, cache, storage, etc.
vendor
Name of the vendor of the Machine
productName
Product name of the Machine
serialNumber
Serial number of the Machine, only visible to Provider
machineCapabilities
machineInterfaces
maintenanceMessage
If the Machine is in maintenance mode, this message will typically describe the reason and how long it is expected to be in maintenance
health
Describes results of various Machine health probes and alerts
metadata
Only available to Providers. Returned if includeMetadata query param is specified. Otherwise attribute is omitted from response.
labels
status
Status values for Machine objects
isUsableByTenant
Indicates whether the machine is usable by or currently in use by a tenant.
statusHistory
created
updated
Errors
403
Forbidden Error