1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getPublicIpPools
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Core.getPublicIpPools

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

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,
});
Copy
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)
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.GetPublicIpPools(ctx, &core.GetPublicIpPoolsArgs{
			CompartmentId: compartmentId,
			ByoipRangeId:  pulumi.StringRef(testByoipRange.Id),
			DisplayName:   pulumi.StringRef(publicIpPoolDisplayName),
		}, 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 testPublicIpPools = Oci.Core.GetPublicIpPools.Invoke(new()
    {
        CompartmentId = compartmentId,
        ByoipRangeId = testByoipRange.Id,
        DisplayName = publicIpPoolDisplayName,
    });

});
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.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());

    }
}
Copy
variables:
  testPublicIpPools:
    fn::invoke:
      function: oci:Core:getPublicIpPools
      arguments:
        compartmentId: ${compartmentId}
        byoipRangeId: ${testByoipRange.id}
        displayName: ${publicIpPoolDisplayName}
Copy

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>
Copy
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]
Copy
func GetPublicIpPools(ctx *Context, args *GetPublicIpPoolsArgs, opts ...InvokeOption) (*GetPublicIpPoolsResult, error)
func GetPublicIpPoolsOutput(ctx *Context, args *GetPublicIpPoolsOutputArgs, opts ...InvokeOption) GetPublicIpPoolsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetPublicIpPoolsResult> getPublicIpPools(GetPublicIpPoolsArgs args, InvokeOptions options)
public static Output<GetPublicIpPoolsResult> getPublicIpPools(GetPublicIpPoolsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getPublicIpPools:getPublicIpPools
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
ByoipRangeId string
A filter to return only resources that match the given BYOIP CIDR block.
DisplayName string
A filter to return only resources that match the given display name exactly.
Filters Changes to this property will trigger replacement. List<GetPublicIpPoolsFilter>
CompartmentId This property is required. string
The OCID of the compartment.
ByoipRangeId string
A filter to return only resources that match the given BYOIP CIDR block.
DisplayName string
A filter to return only resources that match the given display name exactly.
Filters Changes to this property will trigger replacement. []GetPublicIpPoolsFilter
compartmentId This property is required. String
The OCID of the compartment.
byoipRangeId String
A filter to return only resources that match the given BYOIP CIDR block.
displayName String
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. List<GetPublicIpPoolsFilter>
compartmentId This property is required. string
The OCID of the compartment.
byoipRangeId string
A filter to return only resources that match the given BYOIP CIDR block.
displayName string
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. GetPublicIpPoolsFilter[]
compartment_id This property is required. str
The OCID of the compartment.
byoip_range_id str
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. Sequence[core.GetPublicIpPoolsFilter]
compartmentId This property is required. String
The OCID of the compartment.
byoipRangeId String
A filter to return only resources that match the given BYOIP CIDR block.
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>

getPublicIpPools Result

The following output properties are available:

CompartmentId string
The OCID of the compartment containing this pool.
Id string
The provider-assigned unique ID for this managed resource.
PublicIpPoolCollections List<GetPublicIpPoolsPublicIpPoolCollection>
The list of public_ip_pool_collection.
ByoipRangeId string
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
Filters List<GetPublicIpPoolsFilter>
CompartmentId string
The OCID of the compartment containing this pool.
Id string
The provider-assigned unique ID for this managed resource.
PublicIpPoolCollections []GetPublicIpPoolsPublicIpPoolCollection
The list of public_ip_pool_collection.
ByoipRangeId string
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
Filters []GetPublicIpPoolsFilter
compartmentId String
The OCID of the compartment containing this pool.
id String
The provider-assigned unique ID for this managed resource.
publicIpPoolCollections List<GetPublicIpPoolsPublicIpPoolCollection>
The list of public_ip_pool_collection.
byoipRangeId String
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
filters List<GetPublicIpPoolsFilter>
compartmentId string
The OCID of the compartment containing this pool.
id string
The provider-assigned unique ID for this managed resource.
publicIpPoolCollections GetPublicIpPoolsPublicIpPoolCollection[]
The list of public_ip_pool_collection.
byoipRangeId string
displayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
filters GetPublicIpPoolsFilter[]
compartment_id str
The OCID of the compartment containing this pool.
id str
The provider-assigned unique ID for this managed resource.
public_ip_pool_collections Sequence[core.GetPublicIpPoolsPublicIpPoolCollection]
The list of public_ip_pool_collection.
byoip_range_id str
display_name str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
filters Sequence[core.GetPublicIpPoolsFilter]
compartmentId String
The OCID of the compartment containing this pool.
id String
The provider-assigned unique ID for this managed resource.
publicIpPoolCollections List<Property Map>
The list of public_ip_pool_collection.
byoipRangeId String
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

GetPublicIpPoolsFilter

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

GetPublicIpPoolsPublicIpPoolCollection

items This property is required. List<Property Map>

GetPublicIpPoolsPublicIpPoolCollectionItem

CidrBlocks 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.
CompartmentId This property is required. string
The OCID of the compartment.
DefinedTags 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"}
DisplayName This property is required. string
A filter to return only resources that match the given display name exactly.
FreeformTags 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.
TimeCreated 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
CidrBlocks This property is required. []string
The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
CompartmentId This property is required. string
The OCID of the compartment.
DefinedTags 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"}
DisplayName This property is required. string
A filter to return only resources that match the given display name exactly.
FreeformTags 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.
TimeCreated 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
cidrBlocks 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.
compartmentId This property is required. String
The OCID of the compartment.
definedTags 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"}
displayName This property is required. String
A filter to return only resources that match the given display name exactly.
freeformTags 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.
timeCreated 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
cidrBlocks This property is required. string[]
The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
compartmentId This property is required. string
The OCID of the compartment.
definedTags 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"}
displayName This property is required. string
A filter to return only resources that match the given display name exactly.
freeformTags 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.
timeCreated 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.
defined_tags 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.
freeform_tags 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
cidrBlocks 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.
compartmentId This property is required. String
The OCID of the compartment.
definedTags 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"}
displayName This property is required. String
A filter to return only resources that match the given display name exactly.
freeformTags 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.
timeCreated 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.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi