SubnetData Class

Definition

Compatibility declaration for the SubnetData type.

public class SubnetData : Azure.ResourceManager.Network.Models.NetworkWritableResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.SubnetData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.SubnetData>
type SubnetData = class
    inherit NetworkWritableResourceData
    interface IJsonModel<SubnetData>
    interface IPersistableModel<SubnetData>
Public Class SubnetData
Inherits NetworkWritableResourceData
Implements IJsonModel(Of SubnetData), IPersistableModel(Of SubnetData)
Inheritance
Inheritance
Implements

Constructors

Name Description
SubnetData()

Initializes a new instance of SubnetData.

Properties

Name Description
AddressPrefix

The address prefix for the subnet.

AddressPrefixes

List of address prefixes for the subnet.

ApplicationGatewayIPConfigurations

Application gateway IP configurations of virtual network resource.

DefaultOutboundAccess

Set this property to false to disable default outbound connectivity for all VMs in the subnet.

Delegations

An array of references to the delegations on the subnet.

ETag

A unique read-only string that changes whenever the resource is updated.

Id

Resource ID.

(Inherited from NetworkWritableResourceData)
IpAllocations

Array of IpAllocation which reference this subnet.

IPAllocations

Compatibility member.

IpamPoolPrefixAllocations

A list of IPAM Pools for allocating IP address prefixes.

IpConfigurationProfiles

Array of IP configuration profiles which reference this subnet.

IPConfigurationProfiles

Compatibility member.

IpConfigurations

An array of references to the network interface IP configurations using subnet.

IPConfigurations

Compatibility member.

Name

Resource name.

(Inherited from NetworkWritableResourceData)
NatGatewayId

Resource ID.

NetworkSecurityGroup

The reference to the NetworkSecurityGroup resource.

PrivateEndpointNetworkPolicies

Enable or Disable apply network policies on private end point in the subnet.

PrivateEndpointNetworkPolicy

Compatibility member.

PrivateEndpoints

An array of references to private endpoints.

PrivateLinkServiceNetworkPolicies

Enable or Disable apply network policies on private link service in the subnet.

PrivateLinkServiceNetworkPolicy

Compatibility member.

ProvisioningState

The provisioning state of the subnet resource.

Purpose

A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties.

ResourceNavigationLinks

An array of references to the external resources using subnet.

ResourceType

Resource type.

(Inherited from NetworkWritableResourceData)
RouteTable

The reference to the RouteTable resource.

ServiceAssociationLinks

An array of references to services injecting into this subnet.

ServiceEndpointPolicies

An array of service endpoint policies.

ServiceEndpoints

An array of service endpoints.

ServiceGatewayId

Resource ID.

SharingScope

Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<NetworkSubResource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from NetworkSubResource)
IJsonModel<NetworkSubResource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from NetworkSubResource)
IJsonModel<NetworkWritableResourceData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from NetworkWritableResourceData)
IJsonModel<NetworkWritableResourceData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from NetworkWritableResourceData)
IJsonModel<SubnetData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<SubnetData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<NetworkSubResource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from NetworkSubResource)
IPersistableModel<NetworkSubResource>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from NetworkSubResource)
IPersistableModel<NetworkSubResource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from NetworkSubResource)
IPersistableModel<NetworkWritableResourceData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from NetworkWritableResourceData)
IPersistableModel<NetworkWritableResourceData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from NetworkWritableResourceData)
IPersistableModel<NetworkWritableResourceData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from NetworkWritableResourceData)
IPersistableModel<SubnetData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SubnetData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<SubnetData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to