RoutingRulesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:routing_rules> attribute.
- Inheritance
-
builtins.objectRoutingRulesOperations
Constructor
RoutingRulesOperations(*args, **kwargs)
Methods
begin_delete |
Deletes a routing rule. |
create_or_update |
Creates or updates an routing rule. |
get |
Gets a network manager routing configuration routing rule. |
list |
List all network manager routing configuration routing rules. |
begin_delete
Deletes a routing rule.
begin_delete(resource_group_name: str, network_manager_name: str, configuration_name: str, rule_collection_name: str, rule_name: str, *, force: bool | None = None, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
network_manager_name
Required
|
The name of the network manager. Required. |
configuration_name
Required
|
The name of the network manager Routing Configuration. Required. |
rule_collection_name
Required
|
The name of the network manager routing Configuration rule collection. Required. |
rule_name
Required
|
The name of the rule. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
force
|
Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
create_or_update
Creates or updates an routing rule.
create_or_update(resource_group_name: str, network_manager_name: str, configuration_name: str, rule_collection_name: str, rule_name: str, routing_rule: _models.RoutingRule, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RoutingRule
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
network_manager_name
Required
|
The name of the network manager. Required. |
configuration_name
Required
|
The name of the network manager Routing Configuration. Required. |
rule_collection_name
Required
|
The name of the network manager routing Configuration rule collection. Required. |
rule_name
Required
|
The name of the rule. Required. |
routing_rule
Required
|
The routing rule to create or update. Is either a RoutingRule type or a IO[bytes] type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
force
|
Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. |
Returns
Type | Description |
---|---|
RoutingRule or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets a network manager routing configuration routing rule.
get(resource_group_name: str, network_manager_name: str, configuration_name: str, rule_collection_name: str, rule_name: str, **kwargs: Any) -> RoutingRule
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
network_manager_name
Required
|
The name of the network manager. Required. |
configuration_name
Required
|
The name of the network manager Routing Configuration. Required. |
rule_collection_name
Required
|
The name of the network manager routing Configuration rule collection. Required. |
rule_name
Required
|
The name of the rule. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
force
|
Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. |
Returns
Type | Description |
---|---|
RoutingRule or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List all network manager routing configuration routing rules.
list(resource_group_name: str, network_manager_name: str, configuration_name: str, rule_collection_name: str, *, top: int | None = None, skip_token: str | None = None, **kwargs: Any) -> Iterable[RoutingRule]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
network_manager_name
Required
|
The name of the network manager. Required. |
configuration_name
Required
|
The name of the network manager Routing Configuration. Required. |
rule_collection_name
Required
|
The name of the network manager routing Configuration rule collection. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
top
|
An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. |
skip_token
|
SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. |
Returns
Type | Description |
---|---|
An iterator like instance of either RoutingRule 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