VirtualNetworkLinksOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_network_links> attribute.
- Inheritance
-
builtins.objectVirtualNetworkLinksOperations
Constructor
VirtualNetworkLinksOperations(*args, **kwargs)
Methods
begin_create_or_update |
Creates or updates a virtual network link to the specified Private DNS zone. |
begin_delete |
Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration virtual network, all auto-registered DNS records in the zone for the virtual network will also be deleted. This operation cannot be undone. |
begin_update |
Updates a virtual network link to the specified Private DNS zone. |
get |
Gets a virtual network link to the specified Private DNS zone. |
list |
Lists the virtual network links to the specified Private DNS zone. |
begin_create_or_update
Creates or updates a virtual network link to the specified Private DNS zone.
async begin_create_or_update(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, parameters: _models.VirtualNetworkLink, if_match: str | None = None, if_none_match: str | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualNetworkLink]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
private_zone_name
Required
|
The name of the Private DNS zone (without a terminating dot). Required. |
virtual_network_link_name
Required
|
The name of the virtual network link. Required. |
parameters
Required
|
Parameters supplied to the CreateOrUpdate operation. Is either a VirtualNetworkLink type or a IO[bytes] type. Required. |
if_match
Required
|
The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. Default value is None. |
if_none_match
Required
|
Set to '*' to allow a new virtual network link to the Private DNS zone to be created, but to prevent updating an existing link. Other values will be ignored. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either VirtualNetworkLink or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration virtual network, all auto-registered DNS records in the zone for the virtual network will also be deleted. This operation cannot be undone.
async begin_delete(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, if_match: str | None = None, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
private_zone_name
Required
|
The name of the Private DNS zone (without a terminating dot). Required. |
virtual_network_link_name
Required
|
The name of the virtual network link. Required. |
if_match
Required
|
The ETag of the virtual network link to the Private DNS zone. Omit this value to always delete the current zone. Specify the last-seen ETag value to prevent accidentally deleting any concurrent changes. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Updates a virtual network link to the specified Private DNS zone.
async begin_update(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, parameters: _models.VirtualNetworkLink, if_match: str | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualNetworkLink]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
private_zone_name
Required
|
The name of the Private DNS zone (without a terminating dot). Required. |
virtual_network_link_name
Required
|
The name of the virtual network link. Required. |
parameters
Required
|
Parameters supplied to the Update operation. Is either a VirtualNetworkLink type or a IO[bytes] type. Required. |
if_match
Required
|
The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either VirtualNetworkLink or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets a virtual network link to the specified Private DNS zone.
async get(resource_group_name: str, private_zone_name: str, virtual_network_link_name: str, **kwargs: Any) -> VirtualNetworkLink
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
private_zone_name
Required
|
The name of the Private DNS zone (without a terminating dot). Required. |
virtual_network_link_name
Required
|
The name of the virtual network link. Required. |
Returns
Type | Description |
---|---|
VirtualNetworkLink or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Lists the virtual network links to the specified Private DNS zone.
list(resource_group_name: str, private_zone_name: str, top: int | None = None, **kwargs: Any) -> AsyncIterable[VirtualNetworkLink]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
private_zone_name
Required
|
The name of the Private DNS zone (without a terminating dot). Required. |
top
Required
|
The maximum number of virtual network links to return. If not specified, returns up to 100 virtual network links. Default value is None. |
Returns
Type | Description |
---|---|
An iterator like instance of either VirtualNetworkLink or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.privatedns.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\privatedns\\models\\__init__.py'>
Azure SDK for Python