REST API - create

esx health perspectives credentials: create

Creates server credentials that will be used by the EHP service to perform operations. The credentials are bound to the lifetime of the session of the user which called this method. This operation was added in vSphere API 7.0.1.0.

Request:

HTTP request

POST https://{server}/api/esx/health/perspectives/credentials
{
    "hostname""string",
    "password""secret string",
    "ssl_thumbprint""string",
    "username""string"
}

Body Parameters:

Name Type Description
bold = required
- nsx_connection_spec NsxConnectionSpec structure with information to connect to the NSX-T Manager.
-.hostname string The IP Address or FQDN of the NSX-T Manager. This attribute was added in vSphere API 7.0.1.0.

Optional. If unset hostname will be fetched from vCenter Server extension.

-.ssl_thumbprint string SHA1 hash of the server SSL certificate. This attribute was added in vSphere API 7.0.1.0.

Optional. If unset will validate the certificate using the vCSA trusted root CAs.

-.username string Username to access the server. This attribute was added in vSphere API 7.0.1.0.

-.password secret Password for the passed user. This attribute was added in vSphere API 7.0.1.0.

Response:

HTTP Status Code: 204

Headers:

None

Type:

None

Errors:

HTTP Status Code Type Description
401 unauthenticated if the caller is not authenticated.
403 unauthorized if the caller does not have the lifecycleHealth.Write privilege.