After you have created a draft software specification, use the vSphere Automation REST API to edit its items.
- For a cluster, use the
PUT https://<vcenter_ip_address_or_fqdn>/api/esx/settings/clusters/<cluster_id>/software/drafts/<draft_id>/software/base-image
request and submit the cluster and draft IDs as path parameters and a base image specification in the request body. - For a standalone host, use the
PUT https://<vcenter_ip_address_or_fqdn>/api/esx/settings/hosts/<host_id>/software/drafts/<draft_id>/software/base-image
request and submit the host and draft IDs as path parameters and a base image specification in the request body.
If the draft contains a base image, this method overwrites the existing image. The base image specification contains the version of the bootable ESXi that must be included in the desired state. To retrieve details about the base image that is currently present in a draft, use the GET https://<vcenter_ip_address_or_fqdn>/api/esx/settings/clusters/<cluster_id>/software/drafts/<draft_id>/software/base-image
or GET https://<vcenter_ip_address_or_fqdn>/api/esx/settings/hosts/<host_id>/software/drafts/<draft_id>/software/base-image
requests and submit as path parameters the cluster or the standalone host ID, and the draft ID. You receive a BaseImageInfo JSON object in the request body that holds the details about the version, display name and version, and the release date of the ESXi host.
- For a cluster, use the
PUT https://<vcenter_ip_address_or_fqdn>/api/esx/settings/clusters/<cluster_id>/software/drafts/<draft_id>/software/add-on
request. - For a standalone host, use the
PUT https://<vcenter_ip_address_or_fqdn>/api/esx/settings/hosts/<host_id>/software/drafts/<draft_id>/software/add-on
request.
DELETE https://<vcenter_ip_address_or_fqdn>/api/esx/settings/clusters/<cluster_id>/software/drafts/<draft_id>/software/add-on
and DELETE https://<vcenter_ip_address_or_fqdn>/api/esx/settings/hosts/<host_id>/software/drafts/<draft_id>/software/add-on
and submit as path parameters the cluster or the standalone host ID, and the draft ID.
- For a cluster, use the
PUT https://<vcenter_ip_address_or_fqdn>/api/esx/settings/clusters/<cluster_id>/software/drafts/<draft_id>/software/components/<component_id>
request. - For a standalone host, use the
PUT https://<vcenter_ip_address_or_fqdn>/api/esx/settings/hosts/<host_id>/software/drafts/<draft_id>/software/components/<component_id>
request.
DELETE https://<vcenter_ip_address_or_fqdn>/api/esx/settings/clusters/<cluster_id>/software/drafts/<draft_id>/software/components/<component_id>
and DELETE https://<vcenter_ip_address_or_fqdn>/api/esx/settings/hosts/<host_id>/software/drafts/<draft_id>/software/components/<component_id>
requests. You can change multiple components in a draft by
using the PATCH https://<vcenter_ip_address_or_fqdn>/api/esx/settings/clusters/<cluster_id>/software/drafts/<draft_id>/software/components
and PATCH https://<vcenter_ip_address_or_fqdn>/api/esx/settings/hosts/<host_id>/software/drafts/<draft_id>/software/components
requests. To specify the components you want to remove, add, or update for a given draft, submit a cluster or a host Components.UpdateSpec JSON object to the request body of the respective request.
To retrieve information about all components present in a draft, or a single component, use the list requests of the respective Components service.