Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getHostThumbprint

The vsphere_thumbprint data source can be used to discover the host thumbprint of an ESXi host. This can be used when adding the vsphere.Host resource. If the host is using a certificate chain, the first one returned will be used to generate the thumbprint.

Example Usage

using Pulumi;
using VSphere = Pulumi.VSphere;

class MyStack : Stack
{
    public MyStack()
    {
        var thumbprint = Output.Create(VSphere.GetHostThumbprint.InvokeAsync(new VSphere.GetHostThumbprintArgs
        {
            Address = "esxi.example.internal",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-vsphere/sdk/v2/go/vsphere"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := vsphere.GetHostThumbprint(ctx, &vsphere.GetHostThumbprintArgs{
            Address: "esxi.example.internal",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_vsphere as vsphere

thumbprint = vsphere.get_host_thumbprint(address="esxi.example.internal")
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";

const thumbprint = pulumi.output(vsphere.getHostThumbprint({
    address: "esxi.example.internal",
}, { async: true }));

Using getHostThumbprint

function getHostThumbprint(args: GetHostThumbprintArgs, opts?: InvokeOptions): Promise<GetHostThumbprintResult>
def get_host_thumbprint(address: Optional[str] = None, insecure: Optional[bool] = None, port: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetHostThumbprintResult
func GetHostThumbprint(ctx *Context, args *GetHostThumbprintArgs, opts ...InvokeOption) (*GetHostThumbprintResult, error)

Note: This function is named GetHostThumbprint in the Go SDK.

public static class GetHostThumbprint {
    public static Task<GetHostThumbprintResult> InvokeAsync(GetHostThumbprintArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Address string

The address of the ESXi host to retrieve the thumbprint from.

Insecure bool

Boolean that can be set to true to disable SSL certificate verification. Default: false

Port string

The port to use connecting to the ESXi host. Default: 443

Address string

The address of the ESXi host to retrieve the thumbprint from.

Insecure bool

Boolean that can be set to true to disable SSL certificate verification. Default: false

Port string

The port to use connecting to the ESXi host. Default: 443

address string

The address of the ESXi host to retrieve the thumbprint from.

insecure boolean

Boolean that can be set to true to disable SSL certificate verification. Default: false

port string

The port to use connecting to the ESXi host. Default: 443

address str

The address of the ESXi host to retrieve the thumbprint from.

insecure bool

Boolean that can be set to true to disable SSL certificate verification. Default: false

port str

The port to use connecting to the ESXi host. Default: 443

getHostThumbprint Result

The following output properties are available:

Address string
Id string

The provider-assigned unique ID for this managed resource.

Insecure bool
Port string
Address string
Id string

The provider-assigned unique ID for this managed resource.

Insecure bool
Port string
address string
id string

The provider-assigned unique ID for this managed resource.

insecure boolean
port string
address str
id str

The provider-assigned unique ID for this managed resource.

insecure bool
port str

Package Details

Repository
https://github.com/pulumi/pulumi-vsphere
License
Apache-2.0
Notes
This Pulumi package is based on the vsphere Terraform Provider.