UNPKG

@pulumi/vsphere

Version:

A Pulumi package for creating vsphere resources

70 lines 2.69 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getHostThumbprintOutput = exports.getHostThumbprint = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `vsphereThumbprint` data source can be used to discover the host thumbprint * of an ESXi host. This can be used when adding the `vsphere.Host` resource to a * cluster or a vCenter Server instance. * * * If the ESXi host is using a certificate chain, the first one returned will be * used to generate the thumbprint. * * * If the ESXi host has a certificate issued by a certificate authority, ensure * that the the certificate authority is trusted on the system running the plan. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const thumbprint = vsphere.getHostThumbprint({ * address: "esxi-01.example.com", * }); * ``` */ function getHostThumbprint(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getHostThumbprint:getHostThumbprint", { "address": args.address, "insecure": args.insecure, "port": args.port, }, opts); } exports.getHostThumbprint = getHostThumbprint; /** * The `vsphereThumbprint` data source can be used to discover the host thumbprint * of an ESXi host. This can be used when adding the `vsphere.Host` resource to a * cluster or a vCenter Server instance. * * * If the ESXi host is using a certificate chain, the first one returned will be * used to generate the thumbprint. * * * If the ESXi host has a certificate issued by a certificate authority, ensure * that the the certificate authority is trusted on the system running the plan. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const thumbprint = vsphere.getHostThumbprint({ * address: "esxi-01.example.com", * }); * ``` */ function getHostThumbprintOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vsphere:index/getHostThumbprint:getHostThumbprint", { "address": args.address, "insecure": args.insecure, "port": args.port, }, opts); } exports.getHostThumbprintOutput = getHostThumbprintOutput; //# sourceMappingURL=getHostThumbprint.js.map