Share via


L2Network Class

Definition

L2Network represents a network that utilizes a single isolation domain set up for layer-2 resources.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.L2NetworkTypeConverter))]
public class L2Network : Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.IL2Network, Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.L2NetworkTypeConverter))>]
type L2Network = class
    interface IL2Network
    interface IJsonSerializable
    interface ITrackedResource
    interface IResource
    interface IValidates
Public Class L2Network
Implements IL2Network, IValidates
Inheritance
L2Network
Attributes
Implements

Constructors

L2Network()

Creates an new L2Network instance.

Properties

AssociatedResourceId

The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.

ClusterId

The resource ID of the Network Cloud cluster this L2 network is associated with.

DetailedStatus

The more detailed status of the L2 network.

DetailedStatusMessage

The descriptive message about the current detailed status.

ExtendedLocationName

The resource ID of the extended location on which the resource will be created.

ExtendedLocationType

The extended location type, for example, CustomLocation.

HybridAksClustersAssociatedId

Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource ID(s) that are associated with this L2 network.

HybridAksPluginType

Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS.

Id

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

InterfaceName

The default interface name for this L2 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine.

L2IsolationDomainId

The resource ID of the Network Fabric l2IsolationDomain.

Location

The geo-location where the resource lives

Name

The name of the resource

ProvisioningState

The provisioning state of the L2 network.

ResourceGroupName

Gets the resource group name

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Tag

Resource tags.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

VirtualMachinesAssociatedId

Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource ID(s), excluding any Hybrid AKS virtual machines, that are currently using this L2 network.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of L2Network.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of L2Network.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.IL2Network.

FromJsonString(String)

Creates a new instance of L2Network, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of L2Network into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to