Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getInstancePoolInstances
Explore with Pulumi AI
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testInstancePoolInstances:
fn::invoke:
Function: oci:Core:getInstancePoolInstances
Arguments:
compartmentId: ${compartmentId}
instancePoolId: ${testInstancePool.id}
displayName: ${instancePoolInstanceDisplayName}
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>
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]
func GetInstancePoolInstances(ctx *Context, args *GetInstancePoolInstancesArgs, opts ...InvokeOption) (*GetInstancePoolInstancesResult, error)
func GetInstancePoolInstancesOutput(ctx *Context, args *GetInstancePoolInstancesOutputArgs, opts ...InvokeOption) GetInstancePoolInstancesResultOutput
> 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)
}
public static CompletableFuture<GetInstancePoolInstancesResult> getInstancePoolInstances(GetInstancePoolInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getInstancePoolInstances:getInstancePoolInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Instance
Pool stringId - The OCID of the instance pool.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Instance Pool Instances Filter>
- Compartment
Id string - The OCID of the compartment.
- Instance
Pool stringId - The OCID of the instance pool.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Instance Pool Instances Filter
- compartment
Id String - The OCID of the compartment.
- instance
Pool StringId - The OCID of the instance pool.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Instance Pool Instances Filter>
- compartment
Id string - The OCID of the compartment.
- instance
Pool stringId - The OCID of the instance pool.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Instance Pool Instances Filter[]
- compartment_
id str - The OCID of the compartment.
- instance_
pool_ strid - The OCID of the instance pool.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[core.
Get Instance Pool Instances Filter]
- compartment
Id String - The OCID of the compartment.
- instance
Pool StringId - The OCID of the instance pool.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
getInstancePoolInstances Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Pool stringId - Instances
List<Get
Instance Pool Instances Instance> - The list of instances.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Instance Pool Instances Filter>
- Compartment
Id string - The OCID of the compartment that contains the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Pool stringId - Instances
[]Get
Instance Pool Instances Instance - The list of instances.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Instance Pool Instances Filter
- compartment
Id String - The OCID of the compartment that contains the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Pool StringId - instances
List<Get
Instance Pool Instances Instance> - The list of instances.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Instance Pool Instances Filter>
- compartment
Id string - The OCID of the compartment that contains the instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Pool stringId - instances
Get
Instance Pool Instances Instance[] - The list of instances.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Instance Pool Instances Filter[]
- 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_ strid - instances
Sequence[core.
Get Instance Pool Instances Instance] - 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.
Get Instance Pool Instances Filter]
- compartment
Id String - The OCID of the compartment that contains the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Pool StringId - instances List<Property Map>
- The list of instances.
- display
Name 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
GetInstancePoolInstancesInstance
- Auto
Terminate boolInstance On Delete - Availability
Domain string - The availability domain the instance is running in.
- Compartment
Id string - The OCID of the compartment.
- Decrement
Size boolOn Delete - Display
Name string - A filter to return only resources that match the given display name exactly.
- Fault
Domain string - The fault domain the instance is running in.
- Id string
- The OCID of the instance.
- Instance
Configuration stringId - The OCID of the instance configuration used to create the instance.
- Instance
Id string - Instance
Pool stringId - The OCID of the instance pool.
- Load
Balancer List<GetBackends Instance Pool Instances Instance Load Balancer Backend> - The load balancer backends that are configured for the instance pool instance.
- Region string
- The region that contains the availability domain the instance is running in.
- Shape string
- The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
- State string
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource. - Time
Created 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 boolInstance On Delete - Availability
Domain string - The availability domain the instance is running in.
- Compartment
Id string - The OCID of the compartment.
- Decrement
Size boolOn Delete - Display
Name string - A filter to return only resources that match the given display name exactly.
- Fault
Domain string - The fault domain the instance is running in.
- Id string
- The OCID of the instance.
- Instance
Configuration stringId - The OCID of the instance configuration used to create the instance.
- Instance
Id string - Instance
Pool stringId - The OCID of the instance pool.
- Load
Balancer []GetBackends Instance Pool Instances Instance Load Balancer Backend - The load balancer backends that are configured for the instance pool instance.
- Region string
- The region that contains the availability domain the instance is running in.
- Shape string
- The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
- State string
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource. - Time
Created 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 BooleanInstance On Delete - availability
Domain String - The availability domain the instance is running in.
- compartment
Id String - The OCID of the compartment.
- decrement
Size BooleanOn Delete - display
Name String - A filter to return only resources that match the given display name exactly.
- fault
Domain String - The fault domain the instance is running in.
- id String
- The OCID of the instance.
- instance
Configuration StringId - The OCID of the instance configuration used to create the instance.
- instance
Id String - instance
Pool StringId - The OCID of the instance pool.
- load
Balancer List<GetBackends Instance Pool Instances Instance Load Balancer Backend> - The load balancer backends that are configured for the instance pool instance.
- region String
- The region that contains the availability domain the instance is running in.
- shape String
- The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
- state String
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource. - time
Created 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 booleanInstance On Delete - availability
Domain string - The availability domain the instance is running in.
- compartment
Id string - The OCID of the compartment.
- decrement
Size booleanOn Delete - display
Name string - A filter to return only resources that match the given display name exactly.
- fault
Domain string - The fault domain the instance is running in.
- id string
- The OCID of the instance.
- instance
Configuration stringId - The OCID of the instance configuration used to create the instance.
- instance
Id string - instance
Pool stringId - The OCID of the instance pool.
- load
Balancer GetBackends Instance Pool Instances Instance Load Balancer Backend[] - The load balancer backends that are configured for the instance pool instance.
- region string
- The region that contains the availability domain the instance is running in.
- shape string
- The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
- state string
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource. - time
Created 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_ boolinstance_ on_ delete - availability_
domain str - The availability domain the instance is running in.
- compartment_
id str - The OCID of the compartment.
- decrement_
size_ boolon_ delete - display_
name str - A filter to return only resources that match the given display name exactly.
- fault_
domain str - The fault domain the instance is running in.
- id str
- The OCID of the instance.
- instance_
configuration_ strid - The OCID of the instance configuration used to create the instance.
- instance_
id str - instance_
pool_ strid - The OCID of the instance pool.
- load_
balancer_ Sequence[core.backends Get Instance Pool Instances Instance Load Balancer Backend] - The load balancer backends that are configured for the instance pool instance.
- region str
- The region that contains the availability domain the instance is running in.
- shape str
- The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
- state str
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource. - time_
created str - 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 BooleanInstance On Delete - availability
Domain String - The availability domain the instance is running in.
- compartment
Id String - The OCID of the compartment.
- decrement
Size BooleanOn Delete - display
Name String - A filter to return only resources that match the given display name exactly.
- fault
Domain String - The fault domain the instance is running in.
- id String
- The OCID of the instance.
- instance
Configuration StringId - The OCID of the instance configuration used to create the instance.
- instance
Id String - instance
Pool StringId - The OCID of the instance pool.
- load
Balancer List<Property Map>Backends - The load balancer backends that are configured for the instance pool instance.
- region String
- The region that contains the availability domain the instance is running in.
- shape String
- The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
- state String
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource. - time
Created 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
- Backend
Health stringStatus - The health of the backend as observed by the load balancer.
- Backend
Name string - The name of the backend in the backend set.
- Backend
Set stringName - The name of the backend set on the load balancer.
- Load
Balancer stringId - The OCID of the load balancer attached to the instance pool.
- State string
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource.
- Backend
Health stringStatus - The health of the backend as observed by the load balancer.
- Backend
Name string - The name of the backend in the backend set.
- Backend
Set stringName - The name of the backend set on the load balancer.
- Load
Balancer stringId - The OCID of the load balancer attached to the instance pool.
- State string
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource.
- backend
Health StringStatus - The health of the backend as observed by the load balancer.
- backend
Name String - The name of the backend in the backend set.
- backend
Set StringName - The name of the backend set on the load balancer.
- load
Balancer StringId - The OCID of the load balancer attached to the instance pool.
- state String
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource.
- backend
Health stringStatus - The health of the backend as observed by the load balancer.
- backend
Name string - The name of the backend in the backend set.
- backend
Set stringName - The name of the backend set on the load balancer.
- load
Balancer stringId - The OCID of the load balancer attached to the instance pool.
- state string
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource.
- backend_
health_ strstatus - The health of the backend as observed by the load balancer.
- backend_
name str - The name of the backend in the backend set.
- backend_
set_ strname - The name of the backend set on the load balancer.
- load_
balancer_ strid - The OCID of the load balancer attached to the instance pool.
- state str
- The lifecycle state of the instance. Refer to
lifecycleState
in the Instance resource.
- backend
Health StringStatus - The health of the backend as observed by the load balancer.
- backend
Name String - The name of the backend in the backend set.
- backend
Set StringName - The name of the backend set on the load balancer.
- load
Balancer StringId - The OCID of the load balancer attached to the instance pool.
- state 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.