1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getInstancePoolInstances
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Core.getInstancePoolInstances

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides the list of Instance Pool Instances in Oracle Cloud Infrastructure Core service.

List the instances in the specified instance pool.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInstancePoolInstances = oci.Core.getInstancePoolInstances({
    compartmentId: compartmentId,
    instancePoolId: testInstancePool.id,
    displayName: instancePoolInstanceDisplayName,
});
Copy
import pulumi
import pulumi_oci as oci

test_instance_pool_instances = oci.Core.get_instance_pool_instances(compartment_id=compartment_id,
    instance_pool_id=test_instance_pool["id"],
    display_name=instance_pool_instance_display_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetInstancePoolInstances(ctx, &core.GetInstancePoolInstancesArgs{
			CompartmentId:  compartmentId,
			InstancePoolId: testInstancePool.Id,
			DisplayName:    pulumi.StringRef(instancePoolInstanceDisplayName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testInstancePoolInstances = Oci.Core.GetInstancePoolInstances.Invoke(new()
    {
        CompartmentId = compartmentId,
        InstancePoolId = testInstancePool.Id,
        DisplayName = instancePoolInstanceDisplayName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetInstancePoolInstancesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testInstancePoolInstances = CoreFunctions.getInstancePoolInstances(GetInstancePoolInstancesArgs.builder()
            .compartmentId(compartmentId)
            .instancePoolId(testInstancePool.id())
            .displayName(instancePoolInstanceDisplayName)
            .build());

    }
}
Copy
variables:
  testInstancePoolInstances:
    fn::invoke:
      function: oci:Core:getInstancePoolInstances
      arguments:
        compartmentId: ${compartmentId}
        instancePoolId: ${testInstancePool.id}
        displayName: ${instancePoolInstanceDisplayName}
Copy

Using getInstancePoolInstances

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getInstancePoolInstances(args: GetInstancePoolInstancesArgs, opts?: InvokeOptions): Promise<GetInstancePoolInstancesResult>
function getInstancePoolInstancesOutput(args: GetInstancePoolInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancePoolInstancesResult>
Copy
def get_instance_pool_instances(compartment_id: Optional[str] = None,
                                display_name: Optional[str] = None,
                                filters: Optional[Sequence[_core.GetInstancePoolInstancesFilter]] = None,
                                instance_pool_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetInstancePoolInstancesResult
def get_instance_pool_instances_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                display_name: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetInstancePoolInstancesFilterArgs]]]] = None,
                                instance_pool_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetInstancePoolInstancesResult]
Copy
func GetInstancePoolInstances(ctx *Context, args *GetInstancePoolInstancesArgs, opts ...InvokeOption) (*GetInstancePoolInstancesResult, error)
func GetInstancePoolInstancesOutput(ctx *Context, args *GetInstancePoolInstancesOutputArgs, opts ...InvokeOption) GetInstancePoolInstancesResultOutput
Copy

> Note: This function is named GetInstancePoolInstances in the Go SDK.

public static class GetInstancePoolInstances 
{
    public static Task<GetInstancePoolInstancesResult> InvokeAsync(GetInstancePoolInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetInstancePoolInstancesResult> Invoke(GetInstancePoolInstancesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInstancePoolInstancesResult> getInstancePoolInstances(GetInstancePoolInstancesArgs args, InvokeOptions options)
public static Output<GetInstancePoolInstancesResult> getInstancePoolInstances(GetInstancePoolInstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getInstancePoolInstances:getInstancePoolInstances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
InstancePoolId This property is required. string
The OCID of the instance pool.
DisplayName string
A filter to return only resources that match the given display name exactly.
Filters Changes to this property will trigger replacement. List<GetInstancePoolInstancesFilter>
CompartmentId This property is required. string
The OCID of the compartment.
InstancePoolId This property is required. string
The OCID of the instance pool.
DisplayName string
A filter to return only resources that match the given display name exactly.
Filters Changes to this property will trigger replacement. []GetInstancePoolInstancesFilter
compartmentId This property is required. String
The OCID of the compartment.
instancePoolId This property is required. String
The OCID of the instance pool.
displayName String
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. List<GetInstancePoolInstancesFilter>
compartmentId This property is required. string
The OCID of the compartment.
instancePoolId This property is required. string
The OCID of the instance pool.
displayName string
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. GetInstancePoolInstancesFilter[]
compartment_id This property is required. str
The OCID of the compartment.
instance_pool_id This property is required. str
The OCID of the instance pool.
display_name str
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. Sequence[core.GetInstancePoolInstancesFilter]
compartmentId This property is required. String
The OCID of the compartment.
instancePoolId This property is required. String
The OCID of the instance pool.
displayName String
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. List<Property Map>

getInstancePoolInstances Result

The following output properties are available:

CompartmentId string
The OCID of the compartment that contains the instance.
Id string
The provider-assigned unique ID for this managed resource.
InstancePoolId string
Instances List<GetInstancePoolInstancesInstance>
The list of instances.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
Filters List<GetInstancePoolInstancesFilter>
CompartmentId string
The OCID of the compartment that contains the instance.
Id string
The provider-assigned unique ID for this managed resource.
InstancePoolId string
Instances []GetInstancePoolInstancesInstance
The list of instances.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
Filters []GetInstancePoolInstancesFilter
compartmentId String
The OCID of the compartment that contains the instance.
id String
The provider-assigned unique ID for this managed resource.
instancePoolId String
instances List<GetInstancePoolInstancesInstance>
The list of instances.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
filters List<GetInstancePoolInstancesFilter>
compartmentId string
The OCID of the compartment that contains the instance.
id string
The provider-assigned unique ID for this managed resource.
instancePoolId string
instances GetInstancePoolInstancesInstance[]
The list of instances.
displayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
filters GetInstancePoolInstancesFilter[]
compartment_id str
The OCID of the compartment that contains the instance.
id str
The provider-assigned unique ID for this managed resource.
instance_pool_id str
instances Sequence[core.GetInstancePoolInstancesInstance]
The list of instances.
display_name str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
filters Sequence[core.GetInstancePoolInstancesFilter]
compartmentId String
The OCID of the compartment that contains the instance.
id String
The provider-assigned unique ID for this managed resource.
instancePoolId String
instances List<Property Map>
The list of instances.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
filters List<Property Map>

Supporting Types

GetInstancePoolInstancesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetInstancePoolInstancesInstance

AutoTerminateInstanceOnDelete This property is required. bool
AvailabilityDomain This property is required. string
The availability domain the instance is running in.
CompartmentId This property is required. string
The OCID of the compartment.
DecrementSizeOnDelete This property is required. bool
DisplayName This property is required. string
A filter to return only resources that match the given display name exactly.
FaultDomain This property is required. string
The fault domain the instance is running in.
Id This property is required. string
The OCID of the instance.
InstanceConfigurationId This property is required. string
The OCID of the instance configuration used to create the instance.
InstanceId This property is required. string
InstancePoolId This property is required. string
The OCID of the instance pool.
LoadBalancerBackends This property is required. List<GetInstancePoolInstancesInstanceLoadBalancerBackend>
The load balancer backends that are configured for the instance pool instance.
Region This property is required. string
The region that contains the availability domain the instance is running in.
Shape This property is required. string
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
State This property is required. string
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
TimeCreated This property is required. string
The date and time the instance pool instance was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
AutoTerminateInstanceOnDelete This property is required. bool
AvailabilityDomain This property is required. string
The availability domain the instance is running in.
CompartmentId This property is required. string
The OCID of the compartment.
DecrementSizeOnDelete This property is required. bool
DisplayName This property is required. string
A filter to return only resources that match the given display name exactly.
FaultDomain This property is required. string
The fault domain the instance is running in.
Id This property is required. string
The OCID of the instance.
InstanceConfigurationId This property is required. string
The OCID of the instance configuration used to create the instance.
InstanceId This property is required. string
InstancePoolId This property is required. string
The OCID of the instance pool.
LoadBalancerBackends This property is required. []GetInstancePoolInstancesInstanceLoadBalancerBackend
The load balancer backends that are configured for the instance pool instance.
Region This property is required. string
The region that contains the availability domain the instance is running in.
Shape This property is required. string
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
State This property is required. string
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
TimeCreated This property is required. string
The date and time the instance pool instance was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
autoTerminateInstanceOnDelete This property is required. Boolean
availabilityDomain This property is required. String
The availability domain the instance is running in.
compartmentId This property is required. String
The OCID of the compartment.
decrementSizeOnDelete This property is required. Boolean
displayName This property is required. String
A filter to return only resources that match the given display name exactly.
faultDomain This property is required. String
The fault domain the instance is running in.
id This property is required. String
The OCID of the instance.
instanceConfigurationId This property is required. String
The OCID of the instance configuration used to create the instance.
instanceId This property is required. String
instancePoolId This property is required. String
The OCID of the instance pool.
loadBalancerBackends This property is required. List<GetInstancePoolInstancesInstanceLoadBalancerBackend>
The load balancer backends that are configured for the instance pool instance.
region This property is required. String
The region that contains the availability domain the instance is running in.
shape This property is required. String
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
state This property is required. String
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
timeCreated This property is required. String
The date and time the instance pool instance was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
autoTerminateInstanceOnDelete This property is required. boolean
availabilityDomain This property is required. string
The availability domain the instance is running in.
compartmentId This property is required. string
The OCID of the compartment.
decrementSizeOnDelete This property is required. boolean
displayName This property is required. string
A filter to return only resources that match the given display name exactly.
faultDomain This property is required. string
The fault domain the instance is running in.
id This property is required. string
The OCID of the instance.
instanceConfigurationId This property is required. string
The OCID of the instance configuration used to create the instance.
instanceId This property is required. string
instancePoolId This property is required. string
The OCID of the instance pool.
loadBalancerBackends This property is required. GetInstancePoolInstancesInstanceLoadBalancerBackend[]
The load balancer backends that are configured for the instance pool instance.
region This property is required. string
The region that contains the availability domain the instance is running in.
shape This property is required. string
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
state This property is required. string
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
timeCreated This property is required. string
The date and time the instance pool instance was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
auto_terminate_instance_on_delete This property is required. bool
availability_domain This property is required. str
The availability domain the instance is running in.
compartment_id This property is required. str
The OCID of the compartment.
decrement_size_on_delete This property is required. bool
display_name This property is required. str
A filter to return only resources that match the given display name exactly.
fault_domain This property is required. str
The fault domain the instance is running in.
id This property is required. str
The OCID of the instance.
instance_configuration_id This property is required. str
The OCID of the instance configuration used to create the instance.
instance_id This property is required. str
instance_pool_id This property is required. str
The OCID of the instance pool.
load_balancer_backends This property is required. Sequence[core.GetInstancePoolInstancesInstanceLoadBalancerBackend]
The load balancer backends that are configured for the instance pool instance.
region This property is required. str
The region that contains the availability domain the instance is running in.
shape This property is required. str
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
state This property is required. str
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
time_created This property is required. str
The date and time the instance pool instance was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
autoTerminateInstanceOnDelete This property is required. Boolean
availabilityDomain This property is required. String
The availability domain the instance is running in.
compartmentId This property is required. String
The OCID of the compartment.
decrementSizeOnDelete This property is required. Boolean
displayName This property is required. String
A filter to return only resources that match the given display name exactly.
faultDomain This property is required. String
The fault domain the instance is running in.
id This property is required. String
The OCID of the instance.
instanceConfigurationId This property is required. String
The OCID of the instance configuration used to create the instance.
instanceId This property is required. String
instancePoolId This property is required. String
The OCID of the instance pool.
loadBalancerBackends This property is required. List<Property Map>
The load balancer backends that are configured for the instance pool instance.
region This property is required. String
The region that contains the availability domain the instance is running in.
shape This property is required. String
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
state This property is required. String
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
timeCreated This property is required. String
The date and time the instance pool instance was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

GetInstancePoolInstancesInstanceLoadBalancerBackend

BackendHealthStatus This property is required. string
The health of the backend as observed by the load balancer.
BackendName This property is required. string
The name of the backend in the backend set.
BackendSetName This property is required. string
The name of the backend set on the load balancer.
LoadBalancerId This property is required. string
The OCID of the load balancer attached to the instance pool.
State This property is required. string
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
BackendHealthStatus This property is required. string
The health of the backend as observed by the load balancer.
BackendName This property is required. string
The name of the backend in the backend set.
BackendSetName This property is required. string
The name of the backend set on the load balancer.
LoadBalancerId This property is required. string
The OCID of the load balancer attached to the instance pool.
State This property is required. string
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
backendHealthStatus This property is required. String
The health of the backend as observed by the load balancer.
backendName This property is required. String
The name of the backend in the backend set.
backendSetName This property is required. String
The name of the backend set on the load balancer.
loadBalancerId This property is required. String
The OCID of the load balancer attached to the instance pool.
state This property is required. String
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
backendHealthStatus This property is required. string
The health of the backend as observed by the load balancer.
backendName This property is required. string
The name of the backend in the backend set.
backendSetName This property is required. string
The name of the backend set on the load balancer.
loadBalancerId This property is required. string
The OCID of the load balancer attached to the instance pool.
state This property is required. string
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
backend_health_status This property is required. str
The health of the backend as observed by the load balancer.
backend_name This property is required. str
The name of the backend in the backend set.
backend_set_name This property is required. str
The name of the backend set on the load balancer.
load_balancer_id This property is required. str
The OCID of the load balancer attached to the instance pool.
state This property is required. str
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.
backendHealthStatus This property is required. String
The health of the backend as observed by the load balancer.
backendName This property is required. String
The name of the backend in the backend set.
backendSetName This property is required. String
The name of the backend set on the load balancer.
loadBalancerId This property is required. String
The OCID of the load balancer attached to the instance pool.
state This property is required. String
The lifecycle state of the instance. Refer to lifecycleState in the Instance resource.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi