1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getPublicIpPool
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Core.getPublicIpPool

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    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: oci_core_public_ip_pool.test_public_ip_pool.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_public_ip_pool = oci.Core.get_public_ip_pool(public_ip_pool_id=oci_core_public_ip_pool["test_public_ip_pool"]["id"])
    
    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.GetPublicIpPool(ctx, &core.GetPublicIpPoolArgs{
    			PublicIpPoolId: oci_core_public_ip_pool.Test_public_ip_pool.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 = oci_core_public_ip_pool.Test_public_ip_pool.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(oci_core_public_ip_pool.test_public_ip_pool().id())
                .build());
    
        }
    }
    
    variables:
      testPublicIpPool:
        fn::invoke:
          Function: oci:Core:getPublicIpPool
          Arguments:
            publicIpPoolId: ${oci_core_public_ip_pool.test_public_ip_pool.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 GetPublicIpPool(ctx *Context, args *GetPublicIpPoolArgs, opts ...InvokeOption) (*GetPublicIpPoolResult, error)
    func GetPublicIpPoolOutput(ctx *Context, args *GetPublicIpPoolOutputArgs, opts ...InvokeOption) GetPublicIpPoolResultOutput

    > Note: This function is named GetPublicIpPool 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getPublicIpPool:getPublicIpPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PublicIpPoolId string
    The OCID of the public IP pool.
    PublicIpPoolId string
    The OCID of the public IP pool.
    publicIpPoolId String
    The OCID of the public IP pool.
    publicIpPoolId string
    The OCID of the public IP pool.
    public_ip_pool_id str
    The OCID of the public IP pool.
    publicIpPoolId String
    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.
    DefinedTags 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"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags 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 public IP pool.
    PublicIpPoolId string
    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.
    DefinedTags 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"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags 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 public IP pool.
    PublicIpPoolId string
    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.
    definedTags 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"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags 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 public IP pool.
    publicIpPoolId String
    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.
    definedTags {[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"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[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 public IP pool.
    publicIpPoolId string
    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.
    defined_tags 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags 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 public IP pool.
    public_ip_pool_id str
    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.
    definedTags 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"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags 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 public IP pool.
    publicIpPoolId String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi