Skip to main content

subnets

Overview

Namesubnets
TypeResource
Idazure.network.subnets

Fields

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the subnet.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subnetName, subscriptionId, virtualNetworkNameGets the specified subnet by virtual network and resource group.
listSELECTresourceGroupName, subscriptionId, virtualNetworkNameGets all subnets in a virtual network.
create_or_updateINSERTresourceGroupName, subnetName, subscriptionId, virtualNetworkNameCreates or updates a subnet in the specified virtual network.
deleteDELETEresourceGroupName, subnetName, subscriptionId, virtualNetworkNameDeletes the specified subnet.
_listEXECresourceGroupName, subscriptionId, virtualNetworkNameGets all subnets in a virtual network.
prepare_network_policiesEXECresourceGroupName, subnetName, subscriptionId, virtualNetworkNamePrepares a subnet by applying network intent policies.
unprepare_network_policiesEXECresourceGroupName, subnetName, subscriptionId, virtualNetworkNameUnprepares a subnet by removing network intent policies.