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

oci.Core.getByoipAllocatedRanges

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 Byoip Allocated Ranges in Oracle Cloud Infrastructure Core service.

    Lists the subranges of a BYOIP CIDR block currently allocated to an IP pool. Each ByoipAllocatedRange object also lists the IP pool where it is allocated.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testByoipAllocatedRanges = oci.Core.getByoipAllocatedRanges({
        byoipRangeId: testByoipRange.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_byoip_allocated_ranges = oci.Core.get_byoip_allocated_ranges(byoip_range_id=test_byoip_range["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.GetByoipAllocatedRanges(ctx, &core.GetByoipAllocatedRangesArgs{
    			ByoipRangeId: testByoipRange.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 testByoipAllocatedRanges = Oci.Core.GetByoipAllocatedRanges.Invoke(new()
        {
            ByoipRangeId = testByoipRange.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.GetByoipAllocatedRangesArgs;
    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 testByoipAllocatedRanges = CoreFunctions.getByoipAllocatedRanges(GetByoipAllocatedRangesArgs.builder()
                .byoipRangeId(testByoipRange.id())
                .build());
    
        }
    }
    
    variables:
      testByoipAllocatedRanges:
        fn::invoke:
          Function: oci:Core:getByoipAllocatedRanges
          Arguments:
            byoipRangeId: ${testByoipRange.id}
    

    Using getByoipAllocatedRanges

    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 getByoipAllocatedRanges(args: GetByoipAllocatedRangesArgs, opts?: InvokeOptions): Promise<GetByoipAllocatedRangesResult>
    function getByoipAllocatedRangesOutput(args: GetByoipAllocatedRangesOutputArgs, opts?: InvokeOptions): Output<GetByoipAllocatedRangesResult>
    def get_byoip_allocated_ranges(byoip_range_id: Optional[str] = None,
                                   filters: Optional[Sequence[_core.GetByoipAllocatedRangesFilter]] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetByoipAllocatedRangesResult
    def get_byoip_allocated_ranges_output(byoip_range_id: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetByoipAllocatedRangesFilterArgs]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetByoipAllocatedRangesResult]
    func GetByoipAllocatedRanges(ctx *Context, args *GetByoipAllocatedRangesArgs, opts ...InvokeOption) (*GetByoipAllocatedRangesResult, error)
    func GetByoipAllocatedRangesOutput(ctx *Context, args *GetByoipAllocatedRangesOutputArgs, opts ...InvokeOption) GetByoipAllocatedRangesResultOutput

    > Note: This function is named GetByoipAllocatedRanges in the Go SDK.

    public static class GetByoipAllocatedRanges 
    {
        public static Task<GetByoipAllocatedRangesResult> InvokeAsync(GetByoipAllocatedRangesArgs args, InvokeOptions? opts = null)
        public static Output<GetByoipAllocatedRangesResult> Invoke(GetByoipAllocatedRangesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetByoipAllocatedRangesResult> getByoipAllocatedRanges(GetByoipAllocatedRangesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getByoipAllocatedRanges:getByoipAllocatedRanges
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ByoipRangeId string
    The OCID of the ByoipRange resource containing the BYOIP CIDR block.
    Filters List<GetByoipAllocatedRangesFilter>
    ByoipRangeId string
    The OCID of the ByoipRange resource containing the BYOIP CIDR block.
    Filters []GetByoipAllocatedRangesFilter
    byoipRangeId String
    The OCID of the ByoipRange resource containing the BYOIP CIDR block.
    filters List<GetByoipAllocatedRangesFilter>
    byoipRangeId string
    The OCID of the ByoipRange resource containing the BYOIP CIDR block.
    filters GetByoipAllocatedRangesFilter[]
    byoip_range_id str
    The OCID of the ByoipRange resource containing the BYOIP CIDR block.
    filters Sequence[core.GetByoipAllocatedRangesFilter]
    byoipRangeId String
    The OCID of the ByoipRange resource containing the BYOIP CIDR block.
    filters List<Property Map>

    getByoipAllocatedRanges Result

    The following output properties are available:

    ByoipAllocatedRangeCollections List<GetByoipAllocatedRangesByoipAllocatedRangeCollection>
    The list of byoip_allocated_range_collection.
    ByoipRangeId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetByoipAllocatedRangesFilter>
    ByoipAllocatedRangeCollections []GetByoipAllocatedRangesByoipAllocatedRangeCollection
    The list of byoip_allocated_range_collection.
    ByoipRangeId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetByoipAllocatedRangesFilter
    byoipAllocatedRangeCollections List<GetByoipAllocatedRangesByoipAllocatedRangeCollection>
    The list of byoip_allocated_range_collection.
    byoipRangeId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetByoipAllocatedRangesFilter>
    byoipAllocatedRangeCollections GetByoipAllocatedRangesByoipAllocatedRangeCollection[]
    The list of byoip_allocated_range_collection.
    byoipRangeId string
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetByoipAllocatedRangesFilter[]
    byoip_allocated_range_collections Sequence[core.GetByoipAllocatedRangesByoipAllocatedRangeCollection]
    The list of byoip_allocated_range_collection.
    byoip_range_id str
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[core.GetByoipAllocatedRangesFilter]
    byoipAllocatedRangeCollections List<Property Map>
    The list of byoip_allocated_range_collection.
    byoipRangeId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetByoipAllocatedRangesByoipAllocatedRangeCollection

    Items List<GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem>
    A list of subranges of a BYOIP CIDR block allocated to an IP pool.
    Items []GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem
    A list of subranges of a BYOIP CIDR block allocated to an IP pool.
    items List<GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem>
    A list of subranges of a BYOIP CIDR block allocated to an IP pool.
    items GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem[]
    A list of subranges of a BYOIP CIDR block allocated to an IP pool.
    items Sequence[core.GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem]
    A list of subranges of a BYOIP CIDR block allocated to an IP pool.
    items List<Property Map>
    A list of subranges of a BYOIP CIDR block allocated to an IP pool.

    GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem

    CidrBlock string
    The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block.
    PublicIpPoolId string
    The OCID of the IP pool containing the CIDR block.
    CidrBlock string
    The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block.
    PublicIpPoolId string
    The OCID of the IP pool containing the CIDR block.
    cidrBlock String
    The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block.
    publicIpPoolId String
    The OCID of the IP pool containing the CIDR block.
    cidrBlock string
    The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block.
    publicIpPoolId string
    The OCID of the IP pool containing the CIDR block.
    cidr_block str
    The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block.
    public_ip_pool_id str
    The OCID of the IP pool containing the CIDR block.
    cidrBlock String
    The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block.
    publicIpPoolId String
    The OCID of the IP pool containing the CIDR block.

    GetByoipAllocatedRangesFilter

    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

    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