Class Vlan
A resource to be used only with the Oracle Cloud VMware Solution.
Conceptually, a virtual LAN (VLAN) is a broadcast domain that is created
by partitioning and isolating a network at the data link layer (a layer 2 network).
VLANs work by using IEEE 802.1Q VLAN tags. Layer 2 traffic is forwarded within the
VLAN based on MAC learning.
In the Networking service, a VLAN is an object within a VCN. You use VLANs to
partition the VCN at the data link layer (layer 2). A VLAN is analagous to a subnet,
which is an object for partitioning the VCN at the IP layer (layer 3).
Inherited Members
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class Vlan
Properties
AvailabilityDomain
Declaration
[JsonProperty(PropertyName = "availabilityDomain")]
public string AvailabilityDomain { get; set; }
Property Value
Type | Description |
---|---|
string | The VLAN's availability domain. This attribute will be null if this is a regional VLAN
rather than an AD-specific VLAN.
|
CidrBlock
Declaration
[Required(ErrorMessage = "CidrBlock is required.")]
[JsonProperty(PropertyName = "cidrBlock")]
public string CidrBlock { get; set; }
Property Value
Type | Description |
---|---|
string | The range of IPv4 addresses that will be used for layer 3 communication with
hosts outside the VLAN.
|
Remarks
Required
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment containing the VLAN. |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a
namespace. For more information, see Resource Tags.
|
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
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.
|
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The VLAN's Oracle ID (OCID). |
Remarks
Required
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Vlan.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
Vlan.LifecycleStateEnum? | The VLAN's current state. |
Remarks
Required
NsgIds
Declaration
[JsonProperty(PropertyName = "nsgIds")]
public List<string> NsgIds { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of the OCIDs of the network security groups (NSGs) to use with this VLAN. All VNICs in the VLAN belong to these NSGs. For more information about NSGs, see {@link NetworkSecurityGroup}. |
RouteTableId
Declaration
[JsonProperty(PropertyName = "routeTableId")]
public string RouteTableId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the route table that the VLAN uses. |
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the VLAN was created, in the format defined by RFC3339.
|
VcnId
Declaration
[Required(ErrorMessage = "VcnId is required.")]
[JsonProperty(PropertyName = "vcnId")]
public string VcnId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the VCN the VLAN is in. |
Remarks
Required
VlanTag
Declaration
[JsonProperty(PropertyName = "vlanTag")]
public int? VlanTag { get; set; }
Property Value
Type | Description |
---|---|
int? | The IEEE 802.1Q VLAN tag of this VLAN.
|