CreateVlanDetails

class oci.core.models.CreateVlanDetails(**kwargs)

Bases: object

CreateVlanDetails model.

Methods:

__init__(**kwargs)

Initializes a new CreateVlanDetails object with values from keyword arguments.

Attributes:

availability_domain

Gets the availability_domain of this CreateVlanDetails.

cidr_block

[Required] Gets the cidr_block of this CreateVlanDetails.

compartment_id

[Required] Gets the compartment_id of this CreateVlanDetails.

defined_tags

Gets the defined_tags of this CreateVlanDetails.

display_name

Gets the display_name of this CreateVlanDetails.

freeform_tags

Gets the freeform_tags of this CreateVlanDetails.

nsg_ids

Gets the nsg_ids of this CreateVlanDetails.

route_table_id

Gets the route_table_id of this CreateVlanDetails.

vcn_id

[Required] Gets the vcn_id of this CreateVlanDetails.

vlan_tag

Gets the vlan_tag of this CreateVlanDetails.

__init__(**kwargs)

Initializes a new CreateVlanDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • availability_domain (str) – The value to assign to the availability_domain property of this CreateVlanDetails.

  • cidr_block (str) – The value to assign to the cidr_block property of this CreateVlanDetails.

  • compartment_id (str) – The value to assign to the compartment_id property of this CreateVlanDetails.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateVlanDetails.

  • display_name (str) – The value to assign to the display_name property of this CreateVlanDetails.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateVlanDetails.

  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateVlanDetails.

  • route_table_id (str) – The value to assign to the route_table_id property of this CreateVlanDetails.

  • vcn_id (str) – The value to assign to the vcn_id property of this CreateVlanDetails.

  • vlan_tag (int) – The value to assign to the vlan_tag property of this CreateVlanDetails.

property availability_domain

Gets the availability_domain of this CreateVlanDetails. Controls whether the VLAN is regional or specific to an availability domain. A regional VLAN has the flexibility to implement failover across availability domains. Previously, all VLANs were AD-specific.

To create a regional VLAN, omit this attribute. Resources created subsequently in this VLAN (such as a Compute instance) can be created in any availability domain in the region.

To create an AD-specific VLAN, use this attribute to specify the availability domain. Resources created in this VLAN must be in that availability domain.

Example: Uocm:PHX-AD-1

Returns

The availability_domain of this CreateVlanDetails.

Return type

str

property cidr_block

[Required] Gets the cidr_block of this CreateVlanDetails. The range of IPv4 addresses that will be used for layer 3 communication with hosts outside the VLAN. The CIDR must maintain the following rules -

  1. The CIDR block is valid and correctly formatted.

  2. The new range is within one of the parent VCN ranges.

Example: 192.0.2.0/24

Returns

The cidr_block of this CreateVlanDetails.

Return type

str

property compartment_id

[Required] Gets the compartment_id of this CreateVlanDetails. The OCID of the compartment to contain the VLAN.

Returns

The compartment_id of this CreateVlanDetails.

Return type

str

property defined_tags

Gets the defined_tags of this CreateVlanDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns

The defined_tags of this CreateVlanDetails.

Return type

dict(str, dict(str, object))

property display_name

Gets the display_name of this CreateVlanDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns

The display_name of this CreateVlanDetails.

Return type

str

property freeform_tags

Gets the freeform_tags of this CreateVlanDetails. 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”}

Returns

The freeform_tags of this CreateVlanDetails.

Return type

dict(str, str)

property nsg_ids

Gets the nsg_ids of this CreateVlanDetails. A list of the OCIDs of the network security groups (NSGs) to add all VNICs in the VLAN to. For more information about NSGs, see NetworkSecurityGroup.

Returns

The nsg_ids of this CreateVlanDetails.

Return type

list[str]

property route_table_id

Gets the route_table_id of this CreateVlanDetails. The OCID of the route table the VLAN will use. If you don’t provide a value, the VLAN uses the VCN’s default route table.

Returns

The route_table_id of this CreateVlanDetails.

Return type

str

property vcn_id

[Required] Gets the vcn_id of this CreateVlanDetails. The OCID of the VCN to contain the VLAN.

Returns

The vcn_id of this CreateVlanDetails.

Return type

str

property vlan_tag

Gets the vlan_tag of this CreateVlanDetails. The IEEE 802.1Q VLAN tag for this VLAN. The value must be unique across all VLANs in the VCN. If you don’t provide a value, Oracle assigns one. You cannot change the value later. VLAN tag 0 is reserved for use by Oracle.

Returns

The vlan_tag of this CreateVlanDetails.

Return type

int