1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. Byoasn
Oracle Cloud Infrastructure v2.24.0 published on Thursday, Feb 6, 2025 by Pulumi

oci.Core.Byoasn

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.24.0 published on Thursday, Feb 6, 2025 by Pulumi

    This resource provides the Byoasn resource in Oracle Cloud Infrastructure Core service.

    Creates a BYOASN Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testByoasn = new oci.core.Byoasn("test_byoasn", {
        asn: byoasnAsn,
        compartmentId: compartmentId,
        displayName: byoasnDisplayName,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_byoasn = oci.core.Byoasn("test_byoasn",
        asn=byoasn_asn,
        compartment_id=compartment_id,
        display_name=byoasn_display_name,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        })
    
    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.NewByoasn(ctx, "test_byoasn", &core.ByoasnArgs{
    			Asn:           pulumi.Any(byoasnAsn),
    			CompartmentId: pulumi.Any(compartmentId),
    			DisplayName:   pulumi.Any(byoasnDisplayName),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    		})
    		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 = new Oci.Core.Byoasn("test_byoasn", new()
        {
            Asn = byoasnAsn,
            CompartmentId = compartmentId,
            DisplayName = byoasnDisplayName,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.Byoasn;
    import com.pulumi.oci.Core.ByoasnArgs;
    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) {
            var testByoasn = new Byoasn("testByoasn", ByoasnArgs.builder()
                .asn(byoasnAsn)
                .compartmentId(compartmentId)
                .displayName(byoasnDisplayName)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testByoasn:
        type: oci:Core:Byoasn
        name: test_byoasn
        properties:
          asn: ${byoasnAsn}
          compartmentId: ${compartmentId}
          displayName: ${byoasnDisplayName}
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
    

    Create Byoasn Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Byoasn(name: string, args: ByoasnArgs, opts?: CustomResourceOptions);
    @overload
    def Byoasn(resource_name: str,
               args: ByoasnArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Byoasn(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               asn: Optional[str] = None,
               compartment_id: Optional[str] = None,
               display_name: Optional[str] = None,
               defined_tags: Optional[Mapping[str, str]] = None,
               freeform_tags: Optional[Mapping[str, str]] = None)
    func NewByoasn(ctx *Context, name string, args ByoasnArgs, opts ...ResourceOption) (*Byoasn, error)
    public Byoasn(string name, ByoasnArgs args, CustomResourceOptions? opts = null)
    public Byoasn(String name, ByoasnArgs args)
    public Byoasn(String name, ByoasnArgs args, CustomResourceOptions options)
    
    type: oci:Core:Byoasn
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ByoasnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ByoasnArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ByoasnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ByoasnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ByoasnArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var byoasnResource = new Oci.Core.Byoasn("byoasnResource", new()
    {
        Asn = "string",
        CompartmentId = "string",
        DisplayName = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := Core.NewByoasn(ctx, "byoasnResource", &Core.ByoasnArgs{
    	Asn:           pulumi.String("string"),
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var byoasnResource = new Byoasn("byoasnResource", ByoasnArgs.builder()
        .asn("string")
        .compartmentId("string")
        .displayName("string")
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .build());
    
    byoasn_resource = oci.core.Byoasn("byoasnResource",
        asn="string",
        compartment_id="string",
        display_name="string",
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        })
    
    const byoasnResource = new oci.core.Byoasn("byoasnResource", {
        asn: "string",
        compartmentId: "string",
        displayName: "string",
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
    });
    
    type: oci:Core:Byoasn
    properties:
        asn: string
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
    

    Byoasn Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Byoasn resource accepts the following input properties:

    Asn string
    The Autonomous System Number (ASN) you are importing to the Oracle cloud.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, string>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Asn string
    The Autonomous System Number (ASN) you are importing to the Oracle cloud.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]string

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asn String
    The Autonomous System Number (ASN) you are importing to the Oracle cloud.
    compartmentId String
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,String>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asn string
    The Autonomous System Number (ASN) you are importing to the Oracle cloud.
    compartmentId string
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: string}

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asn str
    The Autonomous System Number (ASN) you are importing to the Oracle cloud.
    compartment_id str
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, str]

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    asn String
    The Autonomous System Number (ASN) you are importing to the Oracle cloud.
    compartmentId String
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Byoasn resource produces the following output properties:

    ByoipRanges List<ByoasnByoipRange>
    The BYOIP Ranges that has the Byoasn as origin.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The Byoasn resource's current state.
    TimeCreated string
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeValidated string
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ValidationToken string
    The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
    ByoipRanges []ByoasnByoipRange
    The BYOIP Ranges that has the Byoasn as origin.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The Byoasn resource's current state.
    TimeCreated string
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeValidated string
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ValidationToken string
    The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
    byoipRanges List<ByoasnByoipRange>
    The BYOIP Ranges that has the Byoasn as origin.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The Byoasn resource's current state.
    timeCreated String
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeValidated String
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    validationToken String
    The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
    byoipRanges ByoasnByoipRange[]
    The BYOIP Ranges that has the Byoasn as origin.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The Byoasn resource's current state.
    timeCreated string
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeValidated string
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    validationToken string
    The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.
    byoip_ranges Sequence[core.ByoasnByoipRange]
    The BYOIP Ranges that has the Byoasn as origin.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The Byoasn resource's current state.
    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.
    byoipRanges List<Property Map>
    The BYOIP Ranges that has the Byoasn as origin.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The Byoasn resource's current state.
    timeCreated String
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeValidated String
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    validationToken String
    The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.

    Look up Existing Byoasn Resource

    Get an existing Byoasn resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ByoasnState, opts?: CustomResourceOptions): Byoasn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            asn: Optional[str] = None,
            byoip_ranges: Optional[Sequence[_core.ByoasnByoipRangeArgs]] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            time_validated: Optional[str] = None,
            validation_token: Optional[str] = None) -> Byoasn
    func GetByoasn(ctx *Context, name string, id IDInput, state *ByoasnState, opts ...ResourceOption) (*Byoasn, error)
    public static Byoasn Get(string name, Input<string> id, ByoasnState? state, CustomResourceOptions? opts = null)
    public static Byoasn get(String name, Output<String> id, ByoasnState state, CustomResourceOptions options)
    resources:  _:    type: oci:Core:Byoasn    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Asn string
    The Autonomous System Number (ASN) you are importing to the Oracle cloud.
    ByoipRanges List<ByoasnByoipRange>
    The BYOIP Ranges that has the Byoasn as origin.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The Byoasn resource's current state.
    TimeCreated string
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeValidated string
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ValidationToken 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.
    ByoipRanges []ByoasnByoipRangeArgs
    The BYOIP Ranges that has the Byoasn as origin.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The Byoasn resource's current state.
    TimeCreated string
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeValidated string
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ValidationToken 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.
    byoipRanges List<ByoasnByoipRange>
    The BYOIP Ranges that has the Byoasn as origin.
    compartmentId String
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The Byoasn resource's current state.
    timeCreated String
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeValidated String
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    validationToken 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.
    byoipRanges ByoasnByoipRange[]
    The BYOIP Ranges that has the Byoasn as origin.
    compartmentId string
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string
    The Byoasn resource's current state.
    timeCreated string
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeValidated string
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    validationToken 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.ByoasnByoipRangeArgs]
    The BYOIP Ranges that has the Byoasn as origin.
    compartment_id str
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    defined_tags Mapping[str, str]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state str
    The Byoasn resource's current state.
    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.
    byoipRanges List<Property Map>
    The BYOIP Ranges that has the Byoasn as origin.
    compartmentId String
    (Updatable) The OCID of the compartment containing the BYOASN Resource.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The Byoasn resource's current state.
    timeCreated String
    The date and time the Byoasn resource was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Byoasn resource was last updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeValidated String
    The date and time the Byoasn resource was validated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    validationToken String
    The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.

    Supporting Types

    ByoasnByoipRange, ByoasnByoipRangeArgs

    AsPathPrependLength int
    The as path prepend length.
    ByoipRangeId string
    The OCID of the ByoipRange resource to which the CIDR block belongs.
    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.
    Ipv6cidrBlock 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.
    AsPathPrependLength int
    The as path prepend length.
    ByoipRangeId string
    The OCID of the ByoipRange resource to which the CIDR block belongs.
    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.
    Ipv6cidrBlock 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.
    asPathPrependLength Integer
    The as path prepend length.
    byoipRangeId String
    The OCID of the ByoipRange resource to which the CIDR block belongs.
    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.
    ipv6cidrBlock 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.
    asPathPrependLength number
    The as path prepend length.
    byoipRangeId string
    The OCID of the ByoipRange resource to which the CIDR block belongs.
    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.
    ipv6cidrBlock 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_prepend_length int
    The as path prepend length.
    byoip_range_id str
    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.
    asPathPrependLength Number
    The as path prepend length.
    byoipRangeId String
    The OCID of the ByoipRange resource to which the CIDR block belongs.
    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.
    ipv6cidrBlock 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.

    Import

    Byoasns can be imported using the id, e.g.

    $ pulumi import oci:Core/byoasn:Byoasn test_byoasn "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.24.0 published on Thursday, Feb 6, 2025 by Pulumi