Import From IMGDB Trust Authority Clusters Attestation OS ESX Base Images Task
Released in v7.0.0Import ESX metadata as a new trusted base image to each host in the cluster. Import a boot_imgdb.tgz file which contains metadata that describes a trusted ESX base image. A boot_imgdb.tgz file can be downloaded from a representative host.
Request
URLURL
https://{api_host}/api/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/attestation/os/esx/base-images?action=import-from-imgdb&vmw-task=true
Parameters
Parameters
string
cluster
Required
The id of the cluster on which the operation will be executed.
The parameter must be an identifier for the resource type: ClusterComputeResource.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
202 Accepted returns
string
of type application/json
An identifier for the task created by this API invocation will be returned. If the non-async version of the operation returns a value, this id can be used with the CIS Get Task operation to fetch that value. The normal description of this operation’s return value will follow if one exists. The imported imgdb version identifier. The result will be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.attestation.os.esx.BaseImage.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" --data-binary "@/replace/with/path/to/file.ext" https://{api_host}/api/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/attestation/os/esx/base-images?action=import-from-imgdb&vmw-task=true
Errors
400
com.vmware.vapi.std.errors.invalid_argument : if the imgdb is invalid or cluster id is empty.
404
com.vmware.vapi.std.errors.error : if there is a generic error. | com.vmware.vapi.std.errors.not_found : if the cluster is not found.
409
com.vmware.vapi.std.errors.already_exists : if ESX metadata for the same version has already been added.