Update Operating System
Update 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. Provider must own the Operating System.
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. Tenant must own the Operating System.
Authentication
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
Request
iPXE script or URL, only applicable for iPXE-based OS. Cannot be specified if imageUrl is specified
Original URL from which the Operating System image can be retrieved. Immutable after creation: it may be re-sent unchanged, but changing it is rejected. Create a new Operating System to use a different image.
SHA hash of the image file. Immutable after creation: it may be re-sent unchanged, but changing it is rejected.
Authentication type for image URL, if needed; required if imageAuthToken is specified. Can be updated independently without re-sending imageUrl/imageSha. Set to an empty string to clear the stored value, null leaves it unchanged.
Auth token to retrieve the image from image URL, required if imageAuthType is specified. Can be updated independently without re-sending imageUrl/imageSha. Set to an empty string to clear the stored value, null leaves it unchanged.
Optional whole-disk target that will be overwritten with the image. Accepts smallest, /dev/nvme<controller>n<namespace>, /dev/sd<letters>, /dev/vd<letters>, or /dev/disk/by-id/<identifier>. smallest selects the smallest enumerated whole disk, preferring one with an EFI partition to break a size tie. Partition aliases ending in -part<digits> are rejected. Omitting this field or sending null preserves the current value. Sending an explicit empty string clears the value and restores automatic selection: prefer a disk with an EFI partition, then fall back to the first /dev/nvme<controller>n<namespace>, /dev/sd<letters>, or /dev/vd<letters> whole disk in device-name order.
Root filesystem UUID; this or rootFsLabel is required for image-based OS
Root filesystem label; this or rootFsId is required for image-based OS
User data for the Operating System. Limited to 32768 bytes (32 KiB), measured on the effective value NICo stores rather than the text submitted. Operating System defaults are inherited first, and when phone-home is configured the document is re-serialized with a phone_home block added. Re-serialization normalizes indentation and can grow the document, so a request just under the limit may still be rejected.
ID of the iPXE template to use (Templated iPXE only). Mutually exclusive with ipxeScript and imageUrl.
Parameters passed to the iPXE template (Templated iPXE only).
Artifacts (kernel, initrd, ISO, …) for the iPXE OS definition (Templated iPXE only).
Deprecated and ignored: whether the Operating System is cloud-init based. Value now derived from userData.
Response
SHA hash of the image file, only present for image-based OS
Whole-disk target that will be overwritten with the image. Accepts smallest, /dev/nvme<controller>n<namespace>, /dev/sd<letters>, /dev/vd<letters>, or /dev/disk/by-id/<identifier>. smallest selects the smallest enumerated whole disk, preferring one with an EFI partition to break a size tie. Partition aliases ending in -part<digits> are rejected. An empty stored value means the Site prefers a disk with an EFI partition, then falls back to the first /dev/nvme<controller>n<namespace>, /dev/sd<letters>, or /dev/vd<letters> whole disk in device-name order.
Root filesystem UUID, only applicable for image-based Operating System
Root filesystem label, only applicable for image-based Operating System
iPXE script or URL, only applicable for iPXE-based Operating System
Parameters passed to the iPXE template (Templated iPXE only)
Artifacts for the iPXE OS definition (Templated iPXE only). authToken is redacted.
Whether the Operating System is cloud-init based; true if there is non-empty userData, false otherwise.
Date/time when the Operating System was created
Date/time when the Operating System was updated