Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Core.getByoipAllocatedRanges
Start a Neo task
Explain and create an oci.Core.getByoipAllocatedRanges resource
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:
- Byoip
Range stringId - The OCID of the
ByoipRangeresource containing the BYOIP CIDR block. - Filters
List<Get
Byoip Allocated Ranges Filter>
- Byoip
Range stringId - The OCID of the
ByoipRangeresource containing the BYOIP CIDR block. - Filters
[]Get
Byoip Allocated Ranges Filter
- byoip
Range StringId - The OCID of the
ByoipRangeresource containing the BYOIP CIDR block. - filters
List<Get
Byoip Allocated Ranges Filter>
- byoip
Range stringId - The OCID of the
ByoipRangeresource containing the BYOIP CIDR block. - filters
Get
Byoip Allocated Ranges Filter[]
- byoip_
range_ strid - The OCID of the
ByoipRangeresource containing the BYOIP CIDR block. - filters
Sequence[Get
Byoip Allocated Ranges Filter]
- byoip
Range StringId - The OCID of the
ByoipRangeresource containing the BYOIP CIDR block. - filters List<Property Map>
getByoipAllocatedRanges Result
The following output properties are available:
- Byoip
Allocated List<GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection> - The list of byoip_allocated_range_collection.
- Byoip
Range stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Byoip Allocated Ranges Filter>
- Byoip
Allocated []GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection - The list of byoip_allocated_range_collection.
- Byoip
Range stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Byoip Allocated Ranges Filter
- byoip
Allocated List<GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection> - The list of byoip_allocated_range_collection.
- byoip
Range StringId - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Byoip Allocated Ranges Filter>
- byoip
Allocated GetRange Collections Byoip Allocated Ranges Byoip Allocated Range Collection[] - The list of byoip_allocated_range_collection.
- byoip
Range stringId - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Byoip 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[Get
Byoip Allocated Ranges Filter]
- byoip
Allocated List<Property Map>Range Collections - The list of byoip_allocated_range_collection.
- byoip
Range StringId - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetByoipAllocatedRangesByoipAllocatedRangeCollection
- Items
List<Get
Byoip Allocated Ranges Byoip Allocated Range Collection Item> - A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- Items
[]Get
Byoip Allocated Ranges Byoip Allocated Range Collection Item - A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- items
List<Get
Byoip Allocated Ranges Byoip Allocated Range Collection Item> - A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- items
Get
Byoip Allocated Ranges Byoip Allocated Range Collection Item[] - A list of subranges of a BYOIP CIDR block allocated to an IP pool.
- items
Sequence[Get
Byoip 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
- Cidr
Block string - 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 stringPool Id - The OCID of the IP pool containing the CIDR block.
- Cidr
Block string - 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 stringPool Id - The OCID of the IP pool containing the CIDR block.
- cidr
Block String - 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 StringPool Id - The OCID of the IP pool containing the CIDR block.
- cidr
Block string - 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 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.
- cidr
Block String - 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 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.
