Retrieve Operating System
Get an Operating System by ID
If the Operating System has `infrastructureProviderId` set, then org must have an Infrastructure Provider entity and its ID should match the Operating System Infrastructure Provider ID. User must have `FORGE_PROVIDER_ADMIN` authorization role.
If the Operating System has `tenantId` set, then org must have a Tenant entity and its ID should match the Operating System Tenant ID. User must have `FORGE_TENANT_ADMIN` 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
operatingSystemId
Query parameters
includeRelation
Related entity to expand
Allowed values:
Response
OK
id
ID of the Operating System
name
Name of the Operating System
description
Optional description of the Operating System
infrastructureProviderId
Specified if a Provider owns the Operating System
tenantId
Specified if a Tenant owns the Operating System
type
Type of the Operating System
Allowed values:
imageUrl
Original URL from where the Operating System image can be retrieved
imageSha
SHA hash of the image file, only present for image based OS
imageAuthType
Authentication type for image URL e.g. 'Basic' or 'Bearer'
imageAuthToken
Auth token to retrieve the image from image URL
imageDisk
Disk path where the image should be monuted
rootFsId
Root filesystem UUID, only applicable for image based Operating System
rootFsLabel
Root filesystem label, only applicable for image based Operating System
ipxeScript
iPXE script or URL, only applicable for iPXE based Operating System
userData
User data for the Operating System
isCloudInit
Specified when the Operating System is Cloud Init based
phoneHomeEnabled
Indicates whether the Phone Home service should be enabled or disabled for Operating System
isActive
Indicates if the Operating System is active
deactivationNote
Optional deactivation note if OS is inactive
allowOverride
Indicates if the user data can be overridden at Instance creation time
siteAssociations
Sites the Operating System is synced to
status
Status of the Operating System
statusHistory
History of status changes over time
created
Date/time when the Operating System was created
updated
Date/time when the Operating System was updated
Errors
403
Forbidden Error