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 Instances in Oracle Cloud Infrastructure Core service. * * Lists the instances in the specified compartment and the specified availability domain. * You can filter the results by specifying an instance name (the list will include all the identically-named * instances in the compartment). * * **Note:** To retrieve public and private IP addresses for an instance, use the [ListVnicAttachments](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/VnicAttachment/ListVnicAttachments) * operation to get the VNIC ID for the instance, and then call [GetVnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/GetVnic) with the VNIC ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testInstances = oci.core.getInstances({ * compartmentId: compartmentId, * availabilityDomain: instanceAvailabilityDomain, * capacityReservationId: testCapacityReservation.id, * computeClusterId: testComputeCluster.id, * displayName: instanceDisplayName, * state: instanceState, * }); * ``` */ export declare function getInstances(args: GetInstancesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getInstances. */ export interface GetInstancesArgs { /** * The name of the availability domain. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: string; /** * The OCID of the compute capacity reservation. */ capacityReservationId?: 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 cluster. A [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group. */ computeClusterId?: string; /** * A filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.Core.GetInstancesFilter[]; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: string; } /** * A collection of values returned by getInstances. */ export interface GetInstancesResult { /** * The availability domain the instance is running in. Example: `Uocm:PHX-AD-1` */ readonly availabilityDomain?: string; /** * The OCID of the compute capacity reservation this instance is launched under. When this field contains an empty string or is null, the instance is not currently in a capacity reservation. For more information, see [Capacity Reservations](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). */ readonly capacityReservationId?: string; /** * The OCID of the compartment containing images to search */ readonly compartmentId: string; readonly computeClusterId?: 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.GetInstancesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of instances. */ readonly instances: outputs.Core.GetInstancesInstance[]; /** * The current state of the instance. */ readonly state?: string; } /** * This data source provides the list of Instances in Oracle Cloud Infrastructure Core service. * * Lists the instances in the specified compartment and the specified availability domain. * You can filter the results by specifying an instance name (the list will include all the identically-named * instances in the compartment). * * **Note:** To retrieve public and private IP addresses for an instance, use the [ListVnicAttachments](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/VnicAttachment/ListVnicAttachments) * operation to get the VNIC ID for the instance, and then call [GetVnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/GetVnic) with the VNIC ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testInstances = oci.core.getInstances({ * compartmentId: compartmentId, * availabilityDomain: instanceAvailabilityDomain, * capacityReservationId: testCapacityReservation.id, * computeClusterId: testComputeCluster.id, * displayName: instanceDisplayName, * state: instanceState, * }); * ``` */ export declare function getInstancesOutput(args: GetInstancesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getInstances. */ export interface GetInstancesOutputArgs { /** * The name of the availability domain. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: pulumi.Input; /** * The OCID of the compute capacity reservation. */ capacityReservationId?: 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 cluster. A [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group. */ computeClusterId?: pulumi.Input; /** * A filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: pulumi.Input; } //# sourceMappingURL=getInstances.d.ts.map