Create Operating System
Create an Operating System for the org.
Ownership is derived from the caller's role:
- Tenant admin (TENANT_ADMIN): creates a Tenant-owned Operating System of any type (Image, iPXE, or Templated iPXE).
- Provider admin (PROVIDER_ADMIN): may only create Provider-owned Operating Systems of type Templated iPXE.
The tenantId field in the request body is deprecated; if provided, it must match the org's Tenant.
Request body
Example request
{
"name": "ubuntu-official-22.04",
"description": "Official Ubuntu 22.04",
"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",
"phoneHomeEnabled": true,
"isCloudInit": true,
"allowOverride": false
}Response
Created
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/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"
}Changes
Changed in 6 of the 90 revisions of this API.1211
- ○
added the optional property
siteAssociations/items/site/capabilities/dpsPowerManagementto the response with the201statusresponse-optional-property-added
- ○
- ○
added the optional property
siteAssociations/items/site/capabilities/vpcSlaacto the response with the201statusresponse-optional-property-added
- ○
- ▲
the
siteIdsrequest property's minItems was increased to1request-property-min-items-increased
- ▲
- ●
added the new
TemplatedIpxeenum value to thetyperesponse property for the response status201response-property-enum-value-added
- ○
removed the
Templated iPXEenum value from thetyperesponse property for the response status201response-property-enum-value-removed
- ●
- ●
added the new
Templated iPXEenum value to thetyperesponse property for the response status201response-property-enum-value-added
- ○
added the new optional request property
ipxeTemplateArtifactsnew-optional-request-property
- ○
added the new optional request property
ipxeTemplateIdnew-optional-request-property
- ○
added the new optional request property
ipxeTemplateParametersnew-optional-request-property
- ○
request property
ipxeScriptdeprecatedrequest-property-deprecated
- ○
added the optional property
ipxeTemplateArtifactsto the response with the201statusresponse-optional-property-added
- ○
added the optional property
ipxeTemplateIdto the response with the201statusresponse-optional-property-added
- ○
added the optional property
ipxeTemplateParametersto the response with the201statusresponse-optional-property-added
- ●
- ○
request property
isCloudInitdeprecatedrequest-property-deprecated
- ○