VirtualRoutersOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_routers> attribute.
- Inheritance
-
builtins.objectVirtualRoutersOperations
Constructor
VirtualRoutersOperations(*args, **kwargs)
Methods
begin_create_or_update |
Creates or updates the specified Virtual Router. |
begin_delete |
Deletes the specified Virtual Router. |
get |
Gets the specified Virtual Router. |
list |
Gets all the Virtual Routers in a subscription. |
list_by_resource_group |
Lists all Virtual Routers in a resource group. |
begin_create_or_update
Creates or updates the specified Virtual Router.
begin_create_or_update(resource_group_name: str, virtual_router_name: str, parameters: _models.VirtualRouter, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.VirtualRouter]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
virtual_router_name
Required
|
The name of the Virtual Router. Required. |
parameters
Required
|
Parameters supplied to the create or update Virtual Router. Is either a VirtualRouter type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either VirtualRouter or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes the specified Virtual Router.
begin_delete(resource_group_name: str, virtual_router_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
virtual_router_name
Required
|
The name of the Virtual Router. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the specified Virtual Router.
get(resource_group_name: str, virtual_router_name: str, *, expand: str | None = None, **kwargs: Any) -> VirtualRouter
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
virtual_router_name
Required
|
The name of the Virtual Router. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
expand
|
Expands referenced resources. Default value is None. |
Returns
Type | Description |
---|---|
VirtualRouter or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets all the Virtual Routers in a subscription.
list(**kwargs: Any) -> Iterable[VirtualRouter]
Returns
Type | Description |
---|---|
An iterator like instance of either VirtualRouter or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_resource_group
Lists all Virtual Routers in a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[VirtualRouter]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either VirtualRouter or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>
Azure SDK for Python