Retrieve a Machine

View as Markdown
Org must have either an Infrastructure Provider entity or a Tenant entity. If org has an Infrastructure Provider entity, then a user with `FORGE_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 `FORGE_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://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current ```

Path parameters

orgstringRequired
machineIdstringRequired

Query parameters

includeRelationenumOptional
Related entity to expand
Allowed values:
includeMetadatabooleanOptional
Include Machine metadata e.g. BMC, DPU, GPU and Interface data. Can only be requested by Provider.

Response

OK
idstringRead-only
Unique ID of Machine
infrastructureProviderIdstringRead-onlyformat: "uuid"
ID of the Provider that owns the Machine
siteIdstringformat: "uuid"
ID of the Site the Machine belongs to
instanceTypeIdstring or nullformat: "uuid"
ID of the Instance Type, if assigned
instanceIdstring or nullformat: "uuid"
ID of the Instance if this Machine is assigned to one
tenantIdstring or nullformat: "uuid"
ID of the Tenant that owns the Instance if the Machine is assigned to one
controllerMachineIdstring
ID of the Machine at Site, now same as the primary ID
controllerMachineTypestring

Denotes architecture (x86 vs ARM) of the Machine

hwSkuDeviceTypestring or null
SKU derived device type of the machine, e.g. cpu, gpu, cache, storage, etc.
vendorstring
Name of the vendor of the Machine
productNamestring
Product name of the Machine
serialNumberstring
Serial number of the Machine, only visible to Provider
machineCapabilitieslist of objects
machineInterfaceslist of objects
maintenanceMessagestring or null
If the Machine is in maintenance mode, this message will typically describe the reason and how long it is expected to be in maintenance
healthobject
Describes results of various Machine health probes and alerts
metadataobject
Only available to Providers. Returned if includeMetadata query param is specified. Otherwise attribute is omitted from response.
labelsmap from strings to strings
statusenum
Status values for Machine objects
isUsableByTenantbooleanRead-only
Indicates whether the machine is usable by or currently in use by a tenant.
statusHistorylist of objects
createddatetimeRead-only
updateddatetimeRead-only

Errors

403
Forbidden Error