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 Compute Hosts in Oracle Cloud Infrastructure Core service. * * Generates a list of summary host details * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testComputeHosts = oci.core.getComputeHosts({ * compartmentId: compartmentId, * availabilityDomain: computeHostAvailabilityDomain, * computeHostGroupId: testComputeHostGroup.id, * computeHostHealth: computeHostComputeHostHealth, * computeHostInSubtree: computeHostComputeHostInSubtree === "true", * computeHostLifecycleState: computeHostComputeHostLifecycleState, * displayName: computeHostDisplayName, * networkResourceId: testResource.id, * }); * ``` */ export declare function getComputeHosts(args: GetComputeHostsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getComputeHosts. */ export interface GetComputeHostsArgs { /** * The name of the availability domain. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. */ computeHostGroupId?: string; /** * A filter to return only ComputeHostSummary resources that match the given Compute Host health State OCID exactly. */ computeHostHealth?: string; /** * When set to true, all the compartments in the tenancy are traversed and the hosts in the specified tenancy and its compartments are fetched. Default is false. */ computeHostInSubtree?: boolean; /** * A filter to return only ComputeHostSummary resources that match the given Compute Host lifecycle State OCID exactly. */ computeHostLifecycleState?: string; /** * A filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.Core.GetComputeHostsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host network resoruce. * * Customer-unique HPC island ID * * Customer-unique network block ID * * Customer-unique local block ID */ networkResourceId?: string; } /** * A collection of values returned by getComputeHosts. */ export interface GetComputeHostsResult { /** * The availability domain of the compute host. Example: `Uocm:US-CHICAGO-1-AD-2` */ readonly availabilityDomain?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root compartment. */ readonly compartmentId: string; /** * The list of compute_host_collection. */ readonly computeHostCollections: outputs.Core.GetComputeHostsComputeHostCollection[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group this host was attached to at the time of recycle. */ readonly computeHostGroupId?: string; readonly computeHostHealth?: string; readonly computeHostInSubtree?: boolean; readonly computeHostLifecycleState?: string; /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.Core.GetComputeHostsFilter[]; /** * The ID that remains consistent when a host moves between capacity pools within the same tenancy. */ readonly hostCorrelationId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A free-form description detailing why the host is in its current state. */ readonly lifecycleDetails: { [key: string]: string; }; readonly networkResourceId?: string; } /** * This data source provides the list of Compute Hosts in Oracle Cloud Infrastructure Core service. * * Generates a list of summary host details * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testComputeHosts = oci.core.getComputeHosts({ * compartmentId: compartmentId, * availabilityDomain: computeHostAvailabilityDomain, * computeHostGroupId: testComputeHostGroup.id, * computeHostHealth: computeHostComputeHostHealth, * computeHostInSubtree: computeHostComputeHostInSubtree === "true", * computeHostLifecycleState: computeHostComputeHostLifecycleState, * displayName: computeHostDisplayName, * networkResourceId: testResource.id, * }); * ``` */ export declare function getComputeHostsOutput(args: GetComputeHostsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getComputeHosts. */ export interface GetComputeHostsOutputArgs { /** * The name of the availability domain. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host group. */ computeHostGroupId?: pulumi.Input; /** * A filter to return only ComputeHostSummary resources that match the given Compute Host health State OCID exactly. */ computeHostHealth?: pulumi.Input; /** * When set to true, all the compartments in the tenancy are traversed and the hosts in the specified tenancy and its compartments are fetched. Default is false. */ computeHostInSubtree?: pulumi.Input; /** * A filter to return only ComputeHostSummary resources that match the given Compute Host lifecycle State OCID exactly. */ computeHostLifecycleState?: pulumi.Input; /** * A filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host network resoruce. * * Customer-unique HPC island ID * * Customer-unique network block ID * * Customer-unique local block ID */ networkResourceId?: pulumi.Input; } //# sourceMappingURL=getComputeHosts.d.ts.map