import * as pulumi from "@pulumi/pulumi"; /** * The `vsphere.ComputeClusterHostGroup` data source can be used to discover * the IDs ESXi hosts in a host group and return host group attributes to other * resources. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const cluster = datacenter.then(datacenter => vsphere.getComputeCluster({ * name: "cluster-01", * datacenterId: datacenter.id, * })); * const hostGroup = cluster.then(cluster => vsphere.getComputeClusterHostGroup({ * name: "hostgroup-01", * computeClusterId: cluster.id, * })); * const hostRule = new vsphere.ComputeClusterVmHostRule("host_rule", { * computeClusterId: cluster.then(cluster => cluster.id), * name: "pulumi-host-rule1", * vmGroupName: "vmgroup-01", * affinityHostGroupName: hostGroup.then(hostGroup => hostGroup.name), * }); * ``` */ export declare function getComputeClusterHostGroup(args: GetComputeClusterHostGroupArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getComputeClusterHostGroup. */ export interface GetComputeClusterHostGroupArgs { /** * The * [managed object reference ID][docs-about-morefs] of the compute cluster for * the host group. */ computeClusterId: string; /** * The name of the host group. */ name: string; } /** * A collection of values returned by getComputeClusterHostGroup. */ export interface GetComputeClusterHostGroupResult { readonly computeClusterId: string; /** * The [managed object reference ID][docs-about-morefs] of * the ESXi hosts in the host group. */ readonly hostSystemIds: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; } /** * The `vsphere.ComputeClusterHostGroup` data source can be used to discover * the IDs ESXi hosts in a host group and return host group attributes to other * resources. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const cluster = datacenter.then(datacenter => vsphere.getComputeCluster({ * name: "cluster-01", * datacenterId: datacenter.id, * })); * const hostGroup = cluster.then(cluster => vsphere.getComputeClusterHostGroup({ * name: "hostgroup-01", * computeClusterId: cluster.id, * })); * const hostRule = new vsphere.ComputeClusterVmHostRule("host_rule", { * computeClusterId: cluster.then(cluster => cluster.id), * name: "pulumi-host-rule1", * vmGroupName: "vmgroup-01", * affinityHostGroupName: hostGroup.then(hostGroup => hostGroup.name), * }); * ``` */ export declare function getComputeClusterHostGroupOutput(args: GetComputeClusterHostGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getComputeClusterHostGroup. */ export interface GetComputeClusterHostGroupOutputArgs { /** * The * [managed object reference ID][docs-about-morefs] of the compute cluster for * the host group. */ computeClusterId: pulumi.Input; /** * The name of the host group. */ name: pulumi.Input; }