Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi
oci.Core.getPublicIpPools
Explore with Pulumi AI
This data source provides the list of Public Ip Pools in Oracle Cloud Infrastructure Core service.
Lists the public IP pools in the specified compartment. You can filter the list using query parameters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPublicIpPools = oci.Core.getPublicIpPools({
compartmentId: compartmentId,
byoipRangeId: testByoipRange.id,
displayName: publicIpPoolDisplayName,
});
import pulumi
import pulumi_oci as oci
test_public_ip_pools = oci.Core.get_public_ip_pools(compartment_id=compartment_id,
byoip_range_id=test_byoip_range["id"],
display_name=public_ip_pool_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.GetPublicIpPools(ctx, &core.GetPublicIpPoolsArgs{
CompartmentId: compartmentId,
ByoipRangeId: pulumi.StringRef(testByoipRange.Id),
DisplayName: pulumi.StringRef(publicIpPoolDisplayName),
}, 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 testPublicIpPools = Oci.Core.GetPublicIpPools.Invoke(new()
{
CompartmentId = compartmentId,
ByoipRangeId = testByoipRange.Id,
DisplayName = publicIpPoolDisplayName,
});
});
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.GetPublicIpPoolsArgs;
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 testPublicIpPools = CoreFunctions.getPublicIpPools(GetPublicIpPoolsArgs.builder()
.compartmentId(compartmentId)
.byoipRangeId(testByoipRange.id())
.displayName(publicIpPoolDisplayName)
.build());
}
}
variables:
testPublicIpPools:
fn::invoke:
function: oci:Core:getPublicIpPools
arguments:
compartmentId: ${compartmentId}
byoipRangeId: ${testByoipRange.id}
displayName: ${publicIpPoolDisplayName}
Using getPublicIpPools
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 getPublicIpPools(args: GetPublicIpPoolsArgs, opts?: InvokeOptions): Promise<GetPublicIpPoolsResult>
function getPublicIpPoolsOutput(args: GetPublicIpPoolsOutputArgs, opts?: InvokeOptions): Output<GetPublicIpPoolsResult>
def get_public_ip_pools(byoip_range_id: Optional[str] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_core.GetPublicIpPoolsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetPublicIpPoolsResult
def get_public_ip_pools_output(byoip_range_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetPublicIpPoolsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPublicIpPoolsResult]
func GetPublicIpPools(ctx *Context, args *GetPublicIpPoolsArgs, opts ...InvokeOption) (*GetPublicIpPoolsResult, error)
func GetPublicIpPoolsOutput(ctx *Context, args *GetPublicIpPoolsOutputArgs, opts ...InvokeOption) GetPublicIpPoolsResultOutput
> Note: This function is named GetPublicIpPools
in the Go SDK.
public static class GetPublicIpPools
{
public static Task<GetPublicIpPoolsResult> InvokeAsync(GetPublicIpPoolsArgs args, InvokeOptions? opts = null)
public static Output<GetPublicIpPoolsResult> Invoke(GetPublicIpPoolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPublicIpPoolsResult> getPublicIpPools(GetPublicIpPoolsArgs args, InvokeOptions options)
public static Output<GetPublicIpPoolsResult> getPublicIpPools(GetPublicIpPoolsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Core/getPublicIpPools:getPublicIpPools
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The OCID of the compartment.
- Byoip
Range stringId - A filter to return only resources that match the given BYOIP CIDR block.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
Changes to this property will trigger replacement.
Public Ip Pools Filter>
- Compartment
Id This property is required. string - The OCID of the compartment.
- Byoip
Range stringId - A filter to return only resources that match the given BYOIP CIDR block.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
Changes to this property will trigger replacement.
Public Ip Pools Filter
- compartment
Id This property is required. String - The OCID of the compartment.
- byoip
Range StringId - A filter to return only resources that match the given BYOIP CIDR block.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
Changes to this property will trigger replacement.
Public Ip Pools Filter>
- compartment
Id This property is required. string - The OCID of the compartment.
- byoip
Range stringId - A filter to return only resources that match the given BYOIP CIDR block.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Changes to this property will trigger replacement.
Public Ip Pools Filter[]
- compartment_
id This property is required. str - The OCID of the compartment.
- byoip_
range_ strid - A filter to return only resources that match the given BYOIP CIDR block.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Changes to this property will trigger replacement.
Get Public Ip Pools Filter]
- compartment
Id This property is required. String - The OCID of the compartment.
- byoip
Range StringId - A filter to return only resources that match the given BYOIP CIDR block.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
Changes to this property will trigger replacement.
getPublicIpPools Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing this pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Ip List<GetPool Collections Public Ip Pools Public Ip Pool Collection> - The list of public_ip_pool_collection.
- Byoip
Range stringId - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Public Ip Pools Filter>
- Compartment
Id string - The OCID of the compartment containing this pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Ip []GetPool Collections Public Ip Pools Public Ip Pool Collection - The list of public_ip_pool_collection.
- Byoip
Range stringId - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Public Ip Pools Filter
- compartment
Id String - The OCID of the compartment containing this pool.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Ip List<GetPool Collections Public Ip Pools Public Ip Pool Collection> - The list of public_ip_pool_collection.
- byoip
Range StringId - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Public Ip Pools Filter>
- compartment
Id string - The OCID of the compartment containing this pool.
- id string
- The provider-assigned unique ID for this managed resource.
- public
Ip GetPool Collections Public Ip Pools Public Ip Pool Collection[] - The list of public_ip_pool_collection.
- byoip
Range stringId - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Public Ip Pools Filter[]
- compartment_
id str - The OCID of the compartment containing this pool.
- id str
- The provider-assigned unique ID for this managed resource.
- public_
ip_ Sequence[core.pool_ collections Get Public Ip Pools Public Ip Pool Collection] - The list of public_ip_pool_collection.
- byoip_
range_ strid - 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 Public Ip Pools Filter]
- compartment
Id String - The OCID of the compartment containing this pool.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Ip List<Property Map>Pool Collections - The list of public_ip_pool_collection.
- byoip
Range StringId - 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
GetPublicIpPoolsFilter
GetPublicIpPoolsPublicIpPoolCollection
- Items
This property is required. List<GetPublic Ip Pools Public Ip Pool Collection Item>
- Items
This property is required. []GetPublic Ip Pools Public Ip Pool Collection Item
- items
This property is required. List<GetPublic Ip Pools Public Ip Pool Collection Item>
- items
This property is required. GetPublic Ip Pools Public Ip Pool Collection Item[]
- items
This property is required. Sequence[core.Get Public Ip Pools Public Ip Pool Collection Item]
- items
This property is required. List<Property Map>
GetPublicIpPoolsPublicIpPoolCollectionItem
- Cidr
Blocks This property is required. List<string> - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- Compartment
Id This property is required. string - The OCID of the compartment.
This property is required. Dictionary<string, string>- 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 This property is required. string - A filter to return only resources that match the given display name exactly.
This property is required. Dictionary<string, string>- 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
This property is required. string - The OCID of the public IP pool.
- State
This property is required. string - The public IP pool's current state.
- Time
Created This property is required. string - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Cidr
Blocks This property is required. []string - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- Compartment
Id This property is required. string - The OCID of the compartment.
This property is required. map[string]string- 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 This property is required. string - A filter to return only resources that match the given display name exactly.
This property is required. map[string]string- 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
This property is required. string - The OCID of the public IP pool.
- State
This property is required. string - The public IP pool's current state.
- Time
Created This property is required. string - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr
Blocks This property is required. List<String> - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment
Id This property is required. String - The OCID of the compartment.
This property is required. Map<String,String>- 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 This property is required. String - A filter to return only resources that match the given display name exactly.
This property is required. Map<String,String>- 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
This property is required. String - The OCID of the public IP pool.
- state
This property is required. String - The public IP pool's current state.
- time
Created This property is required. String - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr
Blocks This property is required. string[] - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment
Id This property is required. string - The OCID of the compartment.
This property is required. {[key: string]: string}- 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 This property is required. string - A filter to return only resources that match the given display name exactly.
This property is required. {[key: string]: string}- 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
This property is required. string - The OCID of the public IP pool.
- state
This property is required. string - The public IP pool's current state.
- time
Created This property is required. string - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr_
blocks This property is required. Sequence[str] - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment_
id This property is required. str - The OCID of the compartment.
This property is required. Mapping[str, str]- 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 This property is required. str - A filter to return only resources that match the given display name exactly.
This property is required. Mapping[str, str]- 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
This property is required. str - The OCID of the public IP pool.
- state
This property is required. str - The public IP pool's current state.
- time_
created This property is required. str - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr
Blocks This property is required. List<String> - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment
Id This property is required. String - The OCID of the compartment.
This property is required. Map<String>- 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 This property is required. String - A filter to return only resources that match the given display name exactly.
This property is required. Map<String>- 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
This property is required. String - The OCID of the public IP pool.
- state
This property is required. String - The public IP pool's current state.
- time
Created This property is required. String - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.