import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Esxi Hosts in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service. * * Lists the ESXi hosts in the specified SDDC. The list can be filtered * by Compute instance OCID or ESXi display name. * * Remember that in terms of implementation, an ESXi host is a Compute instance that * is configured with the chosen bundle of VMware software. Each `EsxiHost` * object has its own OCID (`id`), and a separate attribute for the OCID of * the Compute instance (`computeInstanceId`). When filtering the list of * ESXi hosts, you can specify the OCID of the Compute instance, not the * ESXi host OCID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testEsxiHosts = oci.ocvp.getExsiHosts({ * clusterId: testCluster.id, * compartmentId: compartmentId, * computeInstanceId: testInstance.id, * displayName: esxiHostDisplayName, * isBillingDonorsOnly: esxiHostIsBillingDonorsOnly === "true", * isSwapBillingOnly: esxiHostIsSwapBillingOnly === "true", * sddcId: testSddc.id, * state: esxiHostState, * }); * ``` */ export declare function getExsiHosts(args?: GetExsiHostsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getExsiHosts. */ export interface GetExsiHostsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC Cluster. */ clusterId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment as optional parameter. */ compartmentId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Compute instance. */ computeInstanceId?: string; /** * A filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.Ocvp.GetExsiHostsFilter[]; /** * If this flag/param is set to True, we return only deleted hosts with LeftOver billingCycle. */ isBillingDonorsOnly?: boolean; /** * If this flag/param is set to True, we return only active hosts. */ isSwapBillingOnly?: boolean; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. */ sddcId?: string; /** * The lifecycle state of the resource. */ state?: string; } /** * A collection of values returned by getExsiHosts. */ export interface GetExsiHostsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cluster that the ESXi host belongs to. */ readonly clusterId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the Cluster. */ readonly compartmentId?: string; /** * In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The `computeInstanceId` is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of that Compute instance. */ readonly computeInstanceId?: string; /** * A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName?: string; /** * The list of esxi_host_collection. */ readonly esxiHostCollections: outputs.Ocvp.GetExsiHostsEsxiHostCollection[]; readonly filters?: outputs.Ocvp.GetExsiHostsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isBillingDonorsOnly?: boolean; readonly isSwapBillingOnly?: boolean; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC that the ESXi host belongs to. */ readonly sddcId?: string; /** * The current state of the ESXi host. */ readonly state?: string; } /** * This data source provides the list of Esxi Hosts in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service. * * Lists the ESXi hosts in the specified SDDC. The list can be filtered * by Compute instance OCID or ESXi display name. * * Remember that in terms of implementation, an ESXi host is a Compute instance that * is configured with the chosen bundle of VMware software. Each `EsxiHost` * object has its own OCID (`id`), and a separate attribute for the OCID of * the Compute instance (`computeInstanceId`). When filtering the list of * ESXi hosts, you can specify the OCID of the Compute instance, not the * ESXi host OCID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testEsxiHosts = oci.ocvp.getExsiHosts({ * clusterId: testCluster.id, * compartmentId: compartmentId, * computeInstanceId: testInstance.id, * displayName: esxiHostDisplayName, * isBillingDonorsOnly: esxiHostIsBillingDonorsOnly === "true", * isSwapBillingOnly: esxiHostIsSwapBillingOnly === "true", * sddcId: testSddc.id, * state: esxiHostState, * }); * ``` */ export declare function getExsiHostsOutput(args?: GetExsiHostsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getExsiHosts. */ export interface GetExsiHostsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC Cluster. */ clusterId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment as optional parameter. */ compartmentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Compute instance. */ computeInstanceId?: pulumi.Input; /** * A filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * If this flag/param is set to True, we return only deleted hosts with LeftOver billingCycle. */ isBillingDonorsOnly?: pulumi.Input; /** * If this flag/param is set to True, we return only active hosts. */ isSwapBillingOnly?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. */ sddcId?: pulumi.Input; /** * The lifecycle state of the resource. */ state?: pulumi.Input; } //# sourceMappingURL=getExsiHosts.d.ts.map