oci.Core.getInstancePools
This data source provides the list of Instance Pools in Oracle Cloud Infrastructure Core service.
Lists the instance pools in the specified compartment.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testInstancePools = Oci.Core.GetInstancePools.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Instance_pool_display_name,
State = @var.Instance_pool_state,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.GetInstancePools(ctx, &core.GetInstancePoolsArgs{
CompartmentId: _var.Compartment_id,
DisplayName: pulumi.StringRef(_var.Instance_pool_display_name),
State: pulumi.StringRef(_var.Instance_pool_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetInstancePoolsArgs;
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 testInstancePools = CoreFunctions.getInstancePools(GetInstancePoolsArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.instance_pool_display_name())
.state(var_.instance_pool_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_instance_pools = oci.Core.get_instance_pools(compartment_id=var["compartment_id"],
display_name=var["instance_pool_display_name"],
state=var["instance_pool_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testInstancePools = oci.Core.getInstancePools({
compartmentId: _var.compartment_id,
displayName: _var.instance_pool_display_name,
state: _var.instance_pool_state,
});
variables:
testInstancePools:
fn::invoke:
Function: oci:Core:getInstancePools
Arguments:
compartmentId: ${var.compartment_id}
displayName: ${var.instance_pool_display_name}
state: ${var.instance_pool_state}
Using getInstancePools
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 getInstancePools(args: GetInstancePoolsArgs, opts?: InvokeOptions): Promise<GetInstancePoolsResult>
function getInstancePoolsOutput(args: GetInstancePoolsOutputArgs, opts?: InvokeOptions): Output<GetInstancePoolsResult>
def get_instance_pools(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_core.GetInstancePoolsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancePoolsResult
def get_instance_pools_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetInstancePoolsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancePoolsResult]
func GetInstancePools(ctx *Context, args *GetInstancePoolsArgs, opts ...InvokeOption) (*GetInstancePoolsResult, error)
func GetInstancePoolsOutput(ctx *Context, args *GetInstancePoolsOutputArgs, opts ...InvokeOption) GetInstancePoolsResultOutput
> Note: This function is named GetInstancePools
in the Go SDK.
public static class GetInstancePools
{
public static Task<GetInstancePoolsResult> InvokeAsync(GetInstancePoolsArgs args, InvokeOptions? opts = null)
public static Output<GetInstancePoolsResult> Invoke(GetInstancePoolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstancePoolsResult> getInstancePools(GetInstancePoolsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getInstancePools:getInstancePools
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Instance Pools Filter> - State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Instance Pools Filter - State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to return only resources that match the given display name exactly.
- filters
List<Get
Instance Pools Filter> - state String
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id string The OCID of the compartment.
- display
Name string A filter to return only resources that match the given display name exactly.
- filters
Get
Instance Pools Filter[] - state string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- compartment_
id str The OCID of the compartment.
- display_
name str A filter to return only resources that match the given display name exactly.
- filters
Get
Instance Pools Filter] - state str
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- state String
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
getInstancePools Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment containing the instance pool.
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Pools List<GetInstance Pools Instance Pool> The list of instance_pools.
- Display
Name string The display name of the VNIC. This is also use to match against the instance configuration defined secondary VNIC.
- Filters
List<Get
Instance Pools Filter> - State string
The current state of the instance pool.
- Compartment
Id string The OCID of the compartment containing the instance pool.
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Pools []GetInstance Pools Instance Pool The list of instance_pools.
- Display
Name string The display name of the VNIC. This is also use to match against the instance configuration defined secondary VNIC.
- Filters
[]Get
Instance Pools Filter - State string
The current state of the instance pool.
- compartment
Id String The OCID of the compartment containing the instance pool.
- id String
The provider-assigned unique ID for this managed resource.
- instance
Pools List<GetInstance Pools Instance Pool> The list of instance_pools.
- display
Name String The display name of the VNIC. This is also use to match against the instance configuration defined secondary VNIC.
- filters
List<Get
Instance Pools Filter> - state String
The current state of the instance pool.
- compartment
Id string The OCID of the compartment containing the instance pool.
- id string
The provider-assigned unique ID for this managed resource.
- instance
Pools GetInstance Pools Instance Pool[] The list of instance_pools.
- display
Name string The display name of the VNIC. This is also use to match against the instance configuration defined secondary VNIC.
- filters
Get
Instance Pools Filter[] - state string
The current state of the instance pool.
- compartment_
id str The OCID of the compartment containing the instance pool.
- id str
The provider-assigned unique ID for this managed resource.
- instance_
pools GetInstance Pools Instance Pool] The list of instance_pools.
- display_
name str The display name of the VNIC. This is also use to match against the instance configuration defined secondary VNIC.
- filters
Get
Instance Pools Filter] - state str
The current state of the instance pool.
- compartment
Id String The OCID of the compartment containing the instance pool.
- id String
The provider-assigned unique ID for this managed resource.
- instance
Pools List<Property Map> The list of instance_pools.
- display
Name String The display name of the VNIC. This is also use to match against the instance configuration defined secondary VNIC.
- filters List<Property Map>
- state String
The current state of the instance pool.
Supporting Types
GetInstancePoolsFilter
GetInstancePoolsInstancePool
- Actual
Size int - Compartment
Id string The OCID of the compartment.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A filter to return only resources that match the given display name exactly.
- Dictionary<string, object>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
The OCID of the load balancer attachment.
- Instance
Configuration stringId The OCID of the instance configuration associated with the instance pool.
- Load
Balancers List<GetInstance Pools Instance Pool Load Balancer> The load balancers attached to the instance pool.
- Placement
Configurations List<GetInstance Pools Instance Pool Placement Configuration> The placement configurations for the instance pool.
- Size int
The number of actual instances in the instance pool on the cloud. This attribute will be different when instance pool is used along with autoScaling Configuration.
- State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Time
Created string The date and time the instance pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Actual
Size int - Compartment
Id string The OCID of the compartment.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A filter to return only resources that match the given display name exactly.
- map[string]interface{}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
The OCID of the load balancer attachment.
- Instance
Configuration stringId The OCID of the instance configuration associated with the instance pool.
- Load
Balancers []GetInstance Pools Instance Pool Load Balancer The load balancers attached to the instance pool.
- Placement
Configurations []GetInstance Pools Instance Pool Placement Configuration The placement configurations for the instance pool.
- Size int
The number of actual instances in the instance pool on the cloud. This attribute will be different when instance pool is used along with autoScaling Configuration.
- State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Time
Created string The date and time the instance pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- actual
Size Integer - compartment
Id String The OCID of the compartment.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A filter to return only resources that match the given display name exactly.
- Map<String,Object>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
The OCID of the load balancer attachment.
- instance
Configuration StringId The OCID of the instance configuration associated with the instance pool.
- load
Balancers List<GetInstance Pools Instance Pool Load Balancer> The load balancers attached to the instance pool.
- placement
Configurations List<GetInstance Pools Instance Pool Placement Configuration> The placement configurations for the instance pool.
- size Integer
The number of actual instances in the instance pool on the cloud. This attribute will be different when instance pool is used along with autoScaling Configuration.
- state String
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- time
Created String The date and time the instance pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- actual
Size number - compartment
Id string The OCID of the compartment.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string A filter to return only resources that match the given display name exactly.
- {[key: string]: any}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
The OCID of the load balancer attachment.
- instance
Configuration stringId The OCID of the instance configuration associated with the instance pool.
- load
Balancers GetInstance Pools Instance Pool Load Balancer[] The load balancers attached to the instance pool.
- placement
Configurations GetInstance Pools Instance Pool Placement Configuration[] The placement configurations for the instance pool.
- size number
The number of actual instances in the instance pool on the cloud. This attribute will be different when instance pool is used along with autoScaling Configuration.
- state string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- time
Created string The date and time the instance pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- actual_
size int - compartment_
id str The OCID of the compartment.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str A filter to return only resources that match the given display name exactly.
- Mapping[str, Any]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
The OCID of the load balancer attachment.
- instance_
configuration_ strid The OCID of the instance configuration associated with the instance pool.
- load_
balancers GetInstance Pools Instance Pool Load Balancer] The load balancers attached to the instance pool.
- placement_
configurations GetInstance Pools Instance Pool Placement Configuration] The placement configurations for the instance pool.
- size int
The number of actual instances in the instance pool on the cloud. This attribute will be different when instance pool is used along with autoScaling Configuration.
- state str
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- time_
created str The date and time the instance pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- actual
Size Number - compartment
Id String The OCID of the compartment.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A filter to return only resources that match the given display name exactly.
- Map<Any>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
The OCID of the load balancer attachment.
- instance
Configuration StringId The OCID of the instance configuration associated with the instance pool.
- load
Balancers List<Property Map> The load balancers attached to the instance pool.
- placement
Configurations List<Property Map> The placement configurations for the instance pool.
- size Number
The number of actual instances in the instance pool on the cloud. This attribute will be different when instance pool is used along with autoScaling Configuration.
- state String
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- time
Created String The date and time the instance pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
GetInstancePoolsInstancePoolLoadBalancer
- Backend
Set stringName The name of the backend set on the load balancer.
- Id string
The OCID of the load balancer attachment.
- Instance
Pool stringId The OCID of the instance pool of the load balancer attachment.
- Load
Balancer stringId The OCID of the load balancer attached to the instance pool.
- Port int
The port value used for the backends.
- State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Vnic
Selection string Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
- Backend
Set stringName The name of the backend set on the load balancer.
- Id string
The OCID of the load balancer attachment.
- Instance
Pool stringId The OCID of the instance pool of the load balancer attachment.
- Load
Balancer stringId The OCID of the load balancer attached to the instance pool.
- Port int
The port value used for the backends.
- State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Vnic
Selection string Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
- backend
Set StringName The name of the backend set on the load balancer.
- id String
The OCID of the load balancer attachment.
- instance
Pool StringId The OCID of the instance pool of the load balancer attachment.
- load
Balancer StringId The OCID of the load balancer attached to the instance pool.
- port Integer
The port value used for the backends.
- state String
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- vnic
Selection String Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
- backend
Set stringName The name of the backend set on the load balancer.
- id string
The OCID of the load balancer attachment.
- instance
Pool stringId The OCID of the instance pool of the load balancer attachment.
- load
Balancer stringId The OCID of the load balancer attached to the instance pool.
- port number
The port value used for the backends.
- state string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- vnic
Selection string Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
- backend_
set_ strname The name of the backend set on the load balancer.
- id str
The OCID of the load balancer attachment.
- instance_
pool_ strid The OCID of the instance pool of the load balancer attachment.
- load_
balancer_ strid The OCID of the load balancer attached to the instance pool.
- port int
The port value used for the backends.
- state str
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- vnic_
selection str Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
- backend
Set StringName The name of the backend set on the load balancer.
- id String
The OCID of the load balancer attachment.
- instance
Pool StringId The OCID of the instance pool of the load balancer attachment.
- load
Balancer StringId The OCID of the load balancer attached to the instance pool.
- port Number
The port value used for the backends.
- state String
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- vnic
Selection String Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
GetInstancePoolsInstancePoolPlacementConfiguration
- Availability
Domain string The availability domain to place instances. Example:
Uocm:PHX-AD-1
- Fault
Domains List<string> The fault domains to place instances.
- Primary
Subnet stringId The OCID of the primary subnet to place instances.
- Secondary
Vnic List<GetSubnets Instance Pools Instance Pool Placement Configuration Secondary Vnic Subnet> The set of secondary VNIC data for instances in the pool.
- Availability
Domain string The availability domain to place instances. Example:
Uocm:PHX-AD-1
- Fault
Domains []string The fault domains to place instances.
- Primary
Subnet stringId The OCID of the primary subnet to place instances.
- Secondary
Vnic []GetSubnets Instance Pools Instance Pool Placement Configuration Secondary Vnic Subnet The set of secondary VNIC data for instances in the pool.
- availability
Domain String The availability domain to place instances. Example:
Uocm:PHX-AD-1
- fault
Domains List<String> The fault domains to place instances.
- primary
Subnet StringId The OCID of the primary subnet to place instances.
- secondary
Vnic List<GetSubnets Instance Pools Instance Pool Placement Configuration Secondary Vnic Subnet> The set of secondary VNIC data for instances in the pool.
- availability
Domain string The availability domain to place instances. Example:
Uocm:PHX-AD-1
- fault
Domains string[] The fault domains to place instances.
- primary
Subnet stringId The OCID of the primary subnet to place instances.
- secondary
Vnic GetSubnets Instance Pools Instance Pool Placement Configuration Secondary Vnic Subnet[] The set of secondary VNIC data for instances in the pool.
- availability_
domain str The availability domain to place instances. Example:
Uocm:PHX-AD-1
- fault_
domains Sequence[str] The fault domains to place instances.
- primary_
subnet_ strid The OCID of the primary subnet to place instances.
- secondary_
vnic_ Getsubnets Instance Pools Instance Pool Placement Configuration Secondary Vnic Subnet] The set of secondary VNIC data for instances in the pool.
- availability
Domain String The availability domain to place instances. Example:
Uocm:PHX-AD-1
- fault
Domains List<String> The fault domains to place instances.
- primary
Subnet StringId The OCID of the primary subnet to place instances.
- secondary
Vnic List<Property Map>Subnets The set of secondary VNIC data for instances in the pool.
GetInstancePoolsInstancePoolPlacementConfigurationSecondaryVnicSubnet
- Display
Name string A filter to return only resources that match the given display name exactly.
- Subnet
Id string The subnet OCID for the secondary VNIC.
- Display
Name string A filter to return only resources that match the given display name exactly.
- Subnet
Id string The subnet OCID for the secondary VNIC.
- display
Name String A filter to return only resources that match the given display name exactly.
- subnet
Id String The subnet OCID for the secondary VNIC.
- display
Name string A filter to return only resources that match the given display name exactly.
- subnet
Id string The subnet OCID for the secondary VNIC.
- display_
name str A filter to return only resources that match the given display name exactly.
- subnet_
id str The subnet OCID for the secondary VNIC.
- display
Name String A filter to return only resources that match the given display name exactly.
- subnet
Id String The subnet OCID for the secondary VNIC.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.