Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Core.getByoipAllocatedRanges
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/v3/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[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[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)
public static Output<GetByoipAllocatedRangesResult> getByoipAllocatedRanges(GetByoipAllocatedRangesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getByoipAllocatedRanges:getByoipAllocatedRanges
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ByoipRange stringId 
- The OCID of the ByoipRangeresource containing the BYOIP CIDR block.
- Filters
List<GetByoip Allocated Ranges Filter> 
- ByoipRange stringId 
- The OCID of the ByoipRangeresource containing the BYOIP CIDR block.
- Filters
[]GetByoip Allocated Ranges Filter 
- byoipRange StringId 
- The OCID of the ByoipRangeresource containing the BYOIP CIDR block.
- filters
List<GetByoip Allocated Ranges Filter> 
- byoipRange stringId 
- The OCID of the ByoipRangeresource containing the BYOIP CIDR block.
- filters
GetByoip Allocated Ranges Filter[] 
- byoip_range_ strid 
- The OCID of the ByoipRangeresource containing the BYOIP CIDR block.
- filters
Sequence[GetByoip Allocated Ranges Filter] 
- byoipRange StringId 
- The OCID of the ByoipRangeresource containing the BYOIP CIDR block.
- filters List<Property Map>
getByoipAllocatedRanges Result
The following output properties are available:
- ByoipAllocated List<GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection> 
- The list of byoip_allocated_range_collection.
- ByoipRange stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetByoip Allocated Ranges Filter> 
- ByoipAllocated []GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection 
- The list of byoip_allocated_range_collection.
- ByoipRange stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetByoip Allocated Ranges Filter 
- byoipAllocated List<GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection> 
- The list of byoip_allocated_range_collection.
- byoipRange StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetByoip Allocated Ranges Filter> 
- byoipAllocated GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection[] 
- The list of byoip_allocated_range_collection.
- byoipRange stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetByoip Allocated Ranges Filter[] 
- byoip_allocated_ Sequence[Getrange_ collections Byoip Allocated Ranges Byoip Allocated Range Collection] 
- The list of byoip_allocated_range_collection.
- byoip_range_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetByoip Allocated Ranges Filter] 
- byoipAllocated List<Property Map>Range Collections 
- The list of byoip_allocated_range_collection.
- byoipRange StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetByoipAllocatedRangesByoipAllocatedRangeCollection       
- Items
List<GetByoip Allocated Ranges Byoip Allocated Range Collection Item> 
- A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- Items
[]GetByoip Allocated Ranges Byoip Allocated Range Collection Item 
- A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- items
List<GetByoip Allocated Ranges Byoip Allocated Range Collection Item> 
- A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- items
GetByoip Allocated Ranges Byoip Allocated Range Collection Item[] 
- A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- items
Sequence[GetByoip Allocated Ranges Byoip Allocated Range Collection Item] 
- 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.
- PublicIp stringPool Id 
- 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.
- PublicIp stringPool Id 
- 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.
- publicIp StringPool Id 
- 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.
- publicIp stringPool Id 
- 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_ strpool_ id 
- 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.
- publicIp StringPool Id 
- The OCID of the IP pool containing the CIDR block.
GetByoipAllocatedRangesFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
