Oracle Cloud Infrastructure v2.24.0 published on Thursday, Feb 6, 2025 by Pulumi
oci.Core.getByoasns
Explore with Pulumi AI
This data source provides the list of Byoasns in Oracle Cloud Infrastructure Core service.
Lists the Byoasn
resources in the specified compartment.
You can filter the list using query parameters.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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.GetByoasnsArgs;
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 testByoasns = CoreFunctions.getByoasns(GetByoasnsArgs.builder()
.compartmentId(compartmentId)
.displayName(byoasnDisplayName)
.state(byoasnState)
.build());
}
}
variables:
testByoasns:
fn::invoke:
function: oci:Core:getByoasns
arguments:
compartmentId: ${compartmentId}
displayName: ${byoasnDisplayName}
state: ${byoasnState}
Using getByoasns
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 getByoasns(args: GetByoasnsArgs, opts?: InvokeOptions): Promise<GetByoasnsResult>
function getByoasnsOutput(args: GetByoasnsOutputArgs, opts?: InvokeOptions): Output<GetByoasnsResult>
def get_byoasns(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_core.GetByoasnsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetByoasnsResult
def get_byoasns_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetByoasnsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetByoasnsResult]
func GetByoasns(ctx *Context, args *GetByoasnsArgs, opts ...InvokeOption) (*GetByoasnsResult, error)
func GetByoasnsOutput(ctx *Context, args *GetByoasnsOutputArgs, opts ...InvokeOption) GetByoasnsResultOutput
> Note: This function is named GetByoasns
in the Go SDK.
public static class GetByoasns
{
public static Task<GetByoasnsResult> InvokeAsync(GetByoasnsArgs args, InvokeOptions? opts = null)
public static Output<GetByoasnsResult> Invoke(GetByoasnsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetByoasnsResult> getByoasns(GetByoasnsArgs args, InvokeOptions options)
public static Output<GetByoasnsResult> getByoasns(GetByoasnsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Core/getByoasns:getByoasns
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Byoasns Filter>
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Byoasns Filter
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Byoasns Filter>
- compartment
Id string - The OCID of the compartment.
- filters
Get
Byoasns Filter[]
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[core.
Get Byoasns Filter]
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
getByoasns Result
The following output properties are available:
- Byoasn
Collections List<GetByoasns Byoasn Collection> - The list of byoasn_collection.
- Compartment
Id string - The OCID of the compartment containing the
Byoasn
resource. - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Byoasns Filter>
- Byoasn
Collections []GetByoasns Byoasn Collection - The list of byoasn_collection.
- Compartment
Id string - The OCID of the compartment containing the
Byoasn
resource. - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Byoasns Filter
- byoasn
Collections List<GetByoasns Byoasn Collection> - The list of byoasn_collection.
- compartment
Id String - The OCID of the compartment containing the
Byoasn
resource. - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Byoasns Filter>
- byoasn
Collections GetByoasns Byoasn Collection[] - The list of byoasn_collection.
- compartment
Id string - The OCID of the compartment containing the
Byoasn
resource. - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Byoasns Filter[]
- byoasn_
collections Sequence[core.Get Byoasns Byoasn Collection] - The list of byoasn_collection.
- compartment_
id str - The OCID of the compartment containing the
Byoasn
resource. - id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[core.
Get Byoasns Filter]
- byoasn
Collections List<Property Map> - The list of byoasn_collection.
- compartment
Id String - The OCID of the compartment containing the
Byoasn
resource. - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetByoasnsByoasnCollection
GetByoasnsByoasnCollectionItem
- Asn string
- The Autonomous System Number (ASN) you are importing to the Oracle cloud.
- Byoip
Ranges List<GetByoasns Byoasn Collection Item Byoip Range> - The BYOIP Ranges that has the
Byoasn
as origin. - Compartment
Id string - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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
Byoasn
resource. - State string
- A filter to return only resources that match the given lifecycle state name exactly.
- Time
Created string - The date and time the
Byoasn
resource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the
Byoasn
resource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- Time
Validated string - The date and time the
Byoasn
resource 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.
- Byoip
Ranges []GetByoasns Byoasn Collection Item Byoip Range - The BYOIP Ranges that has the
Byoasn
as origin. - Compartment
Id string - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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
Byoasn
resource. - State string
- A filter to return only resources that match the given lifecycle state name exactly.
- Time
Created string - The date and time the
Byoasn
resource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time the
Byoasn
resource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- Time
Validated string - The date and time the
Byoasn
resource 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.
- byoip
Ranges List<GetByoasns Byoasn Collection Item Byoip Range> - The BYOIP Ranges that has the
Byoasn
as origin. - compartment
Id String - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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
Byoasn
resource. - state String
- A filter to return only resources that match the given lifecycle state name exactly.
- time
Created String - The date and time the
Byoasn
resource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the
Byoasn
resource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time
Validated String - The date and time the
Byoasn
resource 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.
- byoip
Ranges GetByoasns Byoasn Collection Item Byoip Range[] - The BYOIP Ranges that has the
Byoasn
as origin. - compartment
Id string - The OCID of the compartment.
- {[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 filter to return only resources that match the given display name exactly.
- {[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
Byoasn
resource. - state string
- A filter to return only resources that match the given lifecycle state name exactly.
- time
Created string - The date and time the
Byoasn
resource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time
Updated string - The date and time the
Byoasn
resource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time
Validated string - The date and time the
Byoasn
resource 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.
- byoip_
ranges Sequence[core.Get Byoasns Byoasn Collection Item Byoip Range] - The BYOIP Ranges that has the
Byoasn
as origin. - compartment_
id str - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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
Byoasn
resource. - state str
- A filter to return only resources that match the given lifecycle state name exactly.
- time_
created str - The date and time the
Byoasn
resource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time_
updated str - The date and time the
Byoasn
resource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time_
validated str - The date and time the
Byoasn
resource 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.
- byoip
Ranges List<Property Map> - The BYOIP Ranges that has the
Byoasn
as origin. - compartment
Id String - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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
Byoasn
resource. - state String
- A filter to return only resources that match the given lifecycle state name exactly.
- time
Created String - The date and time the
Byoasn
resource was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time
Updated String - The date and time the
Byoasn
resource was last updated, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
- time
Validated String - The date and time the
Byoasn
resource 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.
GetByoasnsByoasnCollectionItemByoipRange
- As
Path intPrepend Length - The as path prepend length.
- Byoip
Range stringId - The OCID of the
ByoipRange
resource 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
ByoipRange
resource 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
ByoipRange
resource 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
ByoipRange
resource 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
ByoipRange
resource 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
ByoipRange
resource 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.
GetByoasnsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.