1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getPublicIpPools
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getPublicIpPools

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getPublicIpPools:getPublicIpPools
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId 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 List<GetPublicIpPoolsFilter>
    CompartmentId 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 []GetPublicIpPoolsFilter
    compartmentId 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 List<GetPublicIpPoolsFilter>
    compartmentId 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 GetPublicIpPoolsFilter[]
    compartment_id 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 Sequence[core.GetPublicIpPoolsFilter]
    compartmentId 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 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetPublicIpPoolsPublicIpPoolCollection

    GetPublicIpPoolsPublicIpPoolCollectionItem

    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.
    DefinedTags 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 filter to return only resources that match the given display name exactly.
    FreeformTags 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.
    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.
    DefinedTags 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 filter to return only resources that match the given display name exactly.
    FreeformTags 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.
    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.
    definedTags 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 filter to return only resources that match the given display name exactly.
    freeformTags 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.
    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.
    definedTags {[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 filter to return only resources that match the given display name exactly.
    freeformTags {[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.
    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.
    defined_tags 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 filter to return only resources that match the given display name exactly.
    freeform_tags 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.
    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.
    definedTags 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 filter to return only resources that match the given display name exactly.
    freeformTags 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.
    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi