Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getPublicIpPool
Explore with Pulumi AI
This data source provides details about a specific Public Ip Pool resource in Oracle Cloud Infrastructure Core service.
Gets the specified PublicIpPool object. You must specify the object’s OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPublicIpPool = oci.Core.getPublicIpPool({
    publicIpPoolId: testPublicIpPoolOciCorePublicIpPool.id,
});
import pulumi
import pulumi_oci as oci
test_public_ip_pool = oci.Core.get_public_ip_pool(public_ip_pool_id=test_public_ip_pool_oci_core_public_ip_pool["id"])
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.GetPublicIpPool(ctx, &core.GetPublicIpPoolArgs{
			PublicIpPoolId: testPublicIpPoolOciCorePublicIpPool.Id,
		}, 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 testPublicIpPool = Oci.Core.GetPublicIpPool.Invoke(new()
    {
        PublicIpPoolId = testPublicIpPoolOciCorePublicIpPool.Id,
    });
});
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.GetPublicIpPoolArgs;
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 testPublicIpPool = CoreFunctions.getPublicIpPool(GetPublicIpPoolArgs.builder()
            .publicIpPoolId(testPublicIpPoolOciCorePublicIpPool.id())
            .build());
    }
}
variables:
  testPublicIpPool:
    fn::invoke:
      function: oci:Core:getPublicIpPool
      arguments:
        publicIpPoolId: ${testPublicIpPoolOciCorePublicIpPool.id}
Using getPublicIpPool
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 getPublicIpPool(args: GetPublicIpPoolArgs, opts?: InvokeOptions): Promise<GetPublicIpPoolResult>
function getPublicIpPoolOutput(args: GetPublicIpPoolOutputArgs, opts?: InvokeOptions): Output<GetPublicIpPoolResult>def get_public_ip_pool(public_ip_pool_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPublicIpPoolResult
def get_public_ip_pool_output(public_ip_pool_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPublicIpPoolResult]func LookupPublicIpPool(ctx *Context, args *LookupPublicIpPoolArgs, opts ...InvokeOption) (*LookupPublicIpPoolResult, error)
func LookupPublicIpPoolOutput(ctx *Context, args *LookupPublicIpPoolOutputArgs, opts ...InvokeOption) LookupPublicIpPoolResultOutput> Note: This function is named LookupPublicIpPool in the Go SDK.
public static class GetPublicIpPool 
{
    public static Task<GetPublicIpPoolResult> InvokeAsync(GetPublicIpPoolArgs args, InvokeOptions? opts = null)
    public static Output<GetPublicIpPoolResult> Invoke(GetPublicIpPoolInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPublicIpPoolResult> getPublicIpPool(GetPublicIpPoolArgs args, InvokeOptions options)
public static Output<GetPublicIpPoolResult> getPublicIpPool(GetPublicIpPoolArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getPublicIpPool:getPublicIpPool
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PublicIp stringPool Id 
- The OCID of the public IP pool.
- PublicIp stringPool Id 
- The OCID of the public IP pool.
- publicIp StringPool Id 
- The OCID of the public IP pool.
- publicIp stringPool Id 
- The OCID of the public IP pool.
- public_ip_ strpool_ id 
- The OCID of the public IP pool.
- publicIp StringPool Id 
- The OCID of the public IP pool.
getPublicIpPool Result
The following output properties are available:
- CidrBlocks List<string>
- The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- CompartmentId string
- The OCID of the compartment containing this pool.
- 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 string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 string
- The OCID of the public IP pool.
- PublicIp stringPool Id 
- State string
- The public IP pool's current state.
- TimeCreated 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 []string
- The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- CompartmentId string
- The OCID of the compartment containing this pool.
- 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 string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 string
- The OCID of the public IP pool.
- PublicIp stringPool Id 
- State string
- The public IP pool's current state.
- TimeCreated 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 List<String>
- The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartmentId String
- The OCID of the compartment containing this pool.
- 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 String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 String
- The OCID of the public IP pool.
- publicIp StringPool Id 
- state String
- The public IP pool's current state.
- timeCreated 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 string[]
- The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartmentId string
- The OCID of the compartment containing this pool.
- {[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 string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 string
- The OCID of the public IP pool.
- publicIp stringPool Id 
- state string
- The public IP pool's current state.
- timeCreated 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 Sequence[str]
- The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment_id str
- The OCID of the compartment containing this pool.
- 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 str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 str
- The OCID of the public IP pool.
- public_ip_ strpool_ id 
- state str
- The public IP pool's current state.
- time_created 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 List<String>
- The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartmentId String
- The OCID of the compartment containing this pool.
- 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 String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 String
- The OCID of the public IP pool.
- publicIp StringPool Id 
- state String
- The public IP pool's current state.
- timeCreated 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 ociTerraform Provider.