vSphere

Pulumi Official
Package maintained by Pulumi
v4.1.0 published on Wednesday, Nov 24, 2021 by Pulumi

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/v4/go/vsphere"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

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

Coming soon!

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",
}));

Coming soon!

Using getHostThumbprint

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

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

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

public static class GetHostThumbprint 
{
    public static Task<GetHostThumbprintResult> InvokeAsync(GetHostThumbprintArgs args, InvokeOptions? opts = null)
    public static Output<GetHostThumbprintResult> Invoke(GetHostThumbprintInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHostThumbprintResult> getHostThumbprint(GetHostThumbprintArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: vsphere:index/getHostThumbprint:getHostThumbprint
  Arguments:
    # Arguments dictionary

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 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

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

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 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
address String
id String

The provider-assigned unique ID for this managed resource.

insecure Boolean
port String

Package Details

Repository
https://github.com/pulumi/pulumi-vsphere
License
Apache-2.0
Notes

This Pulumi package is based on the vsphere Terraform Provider.