Retrieve a Machine
Org must have either an Infrastructure Provider entity or a Tenant entity.
If org has an Infrastructure Provider entity, then a user with `PROVIDER_ADMIN` role can request details for any Machine on any Site owned by the Provider.
If org has a Tenant entity, then a user with `TENANT_ADMIN` role can request details for any Machine associated with Tenant's active Instances.
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://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
```
Path parameters
org
Name of the Org
machineId
ID of the Machine
Query parameters
includeRelation
Related entity to expand
Allowed values:
includeMetadata
Include Machine metadata e.g. BMC, DPU, GPU and Interface data. Can only be requested by Provider.
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
List of capabilities of the machine
machineInterfaces
List of admin interfaces of the machine
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
Health information about the machine
metadata
Only available to Providers. Returned if the includeMetadata query parameter is specified. Otherwise attribute is omitted from response.
labels
User-specified Machine labels
status
Status represents the status of the machine
isUsableByTenant
Indicates whether the machine is usable by or currently in use by a tenant.
statusHistory
Chronological status history for the Machine
created
Date/time when the Machine was created
updated
Date/time when the Machine was last updated
Errors
403
Forbidden Error