Operating System
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 authorization role with PROVIDER_ADMIN suffix.
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 authorization role with TENANT_ADMIN suffix.
A Tenant admin may also read a Provider-owned Operating System when it is associated with at least one Site the Tenant can access.
get/v2/org/{org}/nico/operating-system/{operatingSystemId}
Query parameters
includeRelation'InfrastructureProvider' | 'Tenant'
Related entity to expand
Response
OK
Example response
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "ubuntu-22.04",
"description": "Ubuntu 22.04",
"infrastructureProviderId": null,
"tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
"ipxeScript": "#!ipxe\nkernel http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux initrd=initrd.gz\ninitrd http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz\nboot || imgfree\n shell",
"userData": "#cloud-config\nautoinstall:\n apt:\n geoip: true\n preserve_sources_list: false\n primary:\n - arches: [amd64, i386]\n uri: http://archive.ubuntu.com/ubuntu\n - arches: [default]\n uri: http://ports.ubuntu.com/ubuntu-ports\nphone_home:\n url: http://169.254.169.254:7777/latest/meta-data/phone_home\n post: all",
"isCloudInit": true,
"phoneHomeEnabled": true,
"isActive": true,
"deactivationNote": null,
"allowOverride": false,
"status": "Pending",
"statusHistory": [
{
"status": "Pending",
"message": "Request received, pending processing",
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z"
}
],
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z"
}