Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific Byoasn resource in Oracle Cloud Infrastructure Core service.
Gets the Byoasn resource. You must specify the OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testByoasn = oci.Core.getByoasn({
byoasnId: testByoasnOciCoreByoasn.id,
});
import pulumi
import pulumi_oci as oci
test_byoasn = oci.Core.get_byoasn(byoasn_id=test_byoasn_oci_core_byoasn["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.GetByoasn(ctx, &core.GetByoasnArgs{
ByoasnId: testByoasnOciCoreByoasn.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 testByoasn = Oci.Core.GetByoasn.Invoke(new()
{
ByoasnId = testByoasnOciCoreByoasn.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.GetByoasnArgs;
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 testByoasn = CoreFunctions.getByoasn(GetByoasnArgs.builder()
.byoasnId(testByoasnOciCoreByoasn.id())
.build());
}
}
variables:
testByoasn:
fn::invoke:
function: oci:Core:getByoasn
arguments:
byoasnId: ${testByoasnOciCoreByoasn.id}
Using getByoasn
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 getByoasn(args: GetByoasnArgs, opts?: InvokeOptions): Promise<GetByoasnResult>
function getByoasnOutput(args: GetByoasnOutputArgs, opts?: InvokeOptions): Output<GetByoasnResult>def get_byoasn(byoasn_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetByoasnResult
def get_byoasn_output(byoasn_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetByoasnResult]func LookupByoasn(ctx *Context, args *LookupByoasnArgs, opts ...InvokeOption) (*LookupByoasnResult, error)
func LookupByoasnOutput(ctx *Context, args *LookupByoasnOutputArgs, opts ...InvokeOption) LookupByoasnResultOutput> Note: This function is named LookupByoasn in the Go SDK.
public static class GetByoasn
{
public static Task<GetByoasnResult> InvokeAsync(GetByoasnArgs args, InvokeOptions? opts = null)
public static Output<GetByoasnResult> Invoke(GetByoasnInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetByoasnResult> getByoasn(GetByoasnArgs args, InvokeOptions options)
public static Output<GetByoasnResult> getByoasn(GetByoasnArgs args, InvokeOptions options)
fn::invoke:
function: oci:Core/getByoasn:getByoasn
arguments:
# arguments dictionaryThe following arguments are supported:
getByoasn Result
The following output properties are available:
- Asn string
- The Autonomous System Number (ASN) you are importing to the Oracle cloud.
- Byoasn
Id string - Byoip
Ranges List<GetByoasn Byoip Range> - The BYOIP Ranges that has the
Byoasnas origin. - Compartment
Id string - The OCID of the compartment containing the
Byoasnresource. - 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"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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
Byoasnresource. - State string
- The
Byoasnresource's current state. - Time
Created string - The date and time the
Byoasnresource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the
Byoasnresource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - Time
Validated string - The date and time the
Byoasnresource was validated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - Validation
Token string - The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
- Asn string
- The Autonomous System Number (ASN) you are importing to the Oracle cloud.
- Byoasn
Id string - Byoip
Ranges []GetByoasn Byoip Range - The BYOIP Ranges that has the
Byoasnas origin. - Compartment
Id string - The OCID of the compartment containing the
Byoasnresource. - 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"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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
Byoasnresource. - State string
- The
Byoasnresource's current state. - Time
Created string - The date and time the
Byoasnresource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the
Byoasnresource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - Time
Validated string - The date and time the
Byoasnresource was validated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - Validation
Token string - The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
- asn String
- The Autonomous System Number (ASN) you are importing to the Oracle cloud.
- byoasn
Id String - byoip
Ranges List<GetByoasn Byoip Range> - The BYOIP Ranges that has the
Byoasnas origin. - compartment
Id String - The OCID of the compartment containing the
Byoasnresource. - 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"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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
Byoasnresource. - state String
- The
Byoasnresource's current state. - time
Created String - The date and time the
Byoasnresource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time
Updated String - The date and time the
Byoasnresource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time
Validated String - The date and time the
Byoasnresource was validated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - validation
Token String - The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
- asn string
- The Autonomous System Number (ASN) you are importing to the Oracle cloud.
- byoasn
Id string - byoip
Ranges GetByoasn Byoip Range[] - The BYOIP Ranges that has the
Byoasnas origin. - compartment
Id string - The OCID of the compartment containing the
Byoasnresource. - {[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"} - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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
Byoasnresource. - state string
- The
Byoasnresource's current state. - time
Created string - The date and time the
Byoasnresource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time
Updated string - The date and time the
Byoasnresource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time
Validated string - The date and time the
Byoasnresource was validated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - validation
Token string - The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
- asn str
- The Autonomous System Number (ASN) you are importing to the Oracle cloud.
- byoasn_
id str - byoip_
ranges Sequence[GetByoasn Byoip Range] - The BYOIP Ranges that has the
Byoasnas origin. - compartment_
id str - The OCID of the compartment containing the
Byoasnresource. - 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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
Byoasnresource. - state str
- The
Byoasnresource's current state. - time_
created str - The date and time the
Byoasnresource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time_
updated str - The date and time the
Byoasnresource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time_
validated str - The date and time the
Byoasnresource was validated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - validation_
token str - The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
- asn String
- The Autonomous System Number (ASN) you are importing to the Oracle cloud.
- byoasn
Id String - byoip
Ranges List<Property Map> - The BYOIP Ranges that has the
Byoasnas origin. - compartment
Id String - The OCID of the compartment containing the
Byoasnresource. - 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"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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
Byoasnresource. - state String
- The
Byoasnresource's current state. - time
Created String - The date and time the
Byoasnresource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time
Updated String - The date and time the
Byoasnresource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - time
Validated String - The date and time the
Byoasnresource was validated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z - validation
Token String - The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
Supporting Types
GetByoasnByoipRange
- As
Path intPrepend Length - The as path prepend length.
- Byoip
Range stringId - The OCID of the
ByoipRangeresource to which the CIDR block belongs. - 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.
- Ipv6cidr
Block string - The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
- As
Path intPrepend Length - The as path prepend length.
- Byoip
Range stringId - The OCID of the
ByoipRangeresource to which the CIDR block belongs. - 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.
- Ipv6cidr
Block string - The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
- as
Path IntegerPrepend Length - The as path prepend length.
- byoip
Range StringId - The OCID of the
ByoipRangeresource to which the CIDR block belongs. - 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.
- ipv6cidr
Block String - The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
- as
Path numberPrepend Length - The as path prepend length.
- byoip
Range stringId - The OCID of the
ByoipRangeresource to which the CIDR block belongs. - 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.
- ipv6cidr
Block string - The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
- as_
path_ intprepend_ length - The as path prepend length.
- byoip_
range_ strid - The OCID of the
ByoipRangeresource to which the CIDR block belongs. - 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.
- ipv6cidr_
block str - The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
- as
Path NumberPrepend Length - The as path prepend length.
- byoip
Range StringId - The OCID of the
ByoipRangeresource to which the CIDR block belongs. - 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.
- ipv6cidr
Block String - The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
