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:
getHostThumbprint Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.