REST API - import_from_imgdb

esx attestation os esx base images: import from imgdb

Import ESX metadata as a new trusted base image.

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 over HTTP using: https://[hostname]/boot_imgdb.tgz

Request:

HTTP request

POST https://{server}/api/esx/attestation/os/esx/base-images

?action=import-from-imgdb
"YmluYXJ5"

Body Parameters:

Name Type Description
bold = required
- binary The ESX metadata file.

Response:

HTTP Status Code: 200

Response Body Structure:

"obj-103"

Headers:

None

Type:

Name Type Description
bold = required
- string The imported imgdb version identifier.

Errors:

HTTP Status Code Type Description
400 already_exists if ESX metadata for the same version has already been added.
500 error if there is a generic error.
400 invalid_argument if the imgdb is invalid.
401 unauthenticated if the caller is not authenticated.
403 unauthorized if the caller is not authorized.