1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getByoipAllocatedRanges
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Core.getByoipAllocatedRanges

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 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,
});
Copy
import pulumi
import pulumi_oci as oci

test_byoip_allocated_ranges = oci.Core.get_byoip_allocated_ranges(byoip_range_id=test_byoip_range["id"])
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.GetByoipAllocatedRanges(ctx, &core.GetByoipAllocatedRangesArgs{
			ByoipRangeId: testByoipRange.Id,
		}, 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 testByoipAllocatedRanges = Oci.Core.GetByoipAllocatedRanges.Invoke(new()
    {
        ByoipRangeId = testByoipRange.Id,
    });

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

    }
}
Copy
variables:
  testByoipAllocatedRanges:
    fn::invoke:
      function: oci:Core:getByoipAllocatedRanges
      arguments:
        byoipRangeId: ${testByoipRange.id}
Copy

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>
Copy
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]
Copy
func GetByoipAllocatedRanges(ctx *Context, args *GetByoipAllocatedRangesArgs, opts ...InvokeOption) (*GetByoipAllocatedRangesResult, error)
func GetByoipAllocatedRangesOutput(ctx *Context, args *GetByoipAllocatedRangesOutputArgs, opts ...InvokeOption) GetByoipAllocatedRangesResultOutput
Copy

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

The following arguments are supported:

ByoipRangeId This property is required. string
The OCID of the ByoipRange resource containing the BYOIP CIDR block.
Filters Changes to this property will trigger replacement. List<GetByoipAllocatedRangesFilter>
ByoipRangeId This property is required. string
The OCID of the ByoipRange resource containing the BYOIP CIDR block.
Filters Changes to this property will trigger replacement. []GetByoipAllocatedRangesFilter
byoipRangeId This property is required. String
The OCID of the ByoipRange resource containing the BYOIP CIDR block.
filters Changes to this property will trigger replacement. List<GetByoipAllocatedRangesFilter>
byoipRangeId This property is required. string
The OCID of the ByoipRange resource containing the BYOIP CIDR block.
filters Changes to this property will trigger replacement. GetByoipAllocatedRangesFilter[]
byoip_range_id This property is required. str
The OCID of the ByoipRange resource containing the BYOIP CIDR block.
filters Changes to this property will trigger replacement. Sequence[core.GetByoipAllocatedRangesFilter]
byoipRangeId This property is required. String
The OCID of the ByoipRange resource containing the BYOIP CIDR block.
filters Changes to this property will trigger replacement. 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 This property is required. List<GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem>
A list of subranges of a BYOIP CIDR block allocated to an IP pool.
Items This property is required. []GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem
A list of subranges of a BYOIP CIDR block allocated to an IP pool.
items This property is required. List<GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem>
A list of subranges of a BYOIP CIDR block allocated to an IP pool.
items This property is required. GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem[]
A list of subranges of a BYOIP CIDR block allocated to an IP pool.
items This property is required. Sequence[core.GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem]
A list of subranges of a BYOIP CIDR block allocated to an IP pool.
items This property is required. List<Property Map>
A list of subranges of a BYOIP CIDR block allocated to an IP pool.

GetByoipAllocatedRangesByoipAllocatedRangeCollectionItem

CidrBlock This property is required. 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 This property is required. string
The OCID of the IP pool containing the CIDR block.
CidrBlock This property is required. 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 This property is required. string
The OCID of the IP pool containing the CIDR block.
cidrBlock This property is required. 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 This property is required. String
The OCID of the IP pool containing the CIDR block.
cidrBlock This property is required. 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 This property is required. string
The OCID of the IP pool containing the CIDR block.
cidr_block This property is required. 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 This property is required. str
The OCID of the IP pool containing the CIDR block.
cidrBlock This property is required. 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 This property is required. String
The OCID of the IP pool containing the CIDR block.

GetByoipAllocatedRangesFilter

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

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.31.0 published on Thursday, Apr 17, 2025 by Pulumi