NetworkWatchersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:network_watchers> attribute.

Constructor

NetworkWatchersOperations(*args, **kwargs)

Methods

begin_check_connectivity

Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server.

begin_connection_analyzers_create

Creates or updates a connection analyzer in the specified network watcher.

begin_connection_analyzers_delete

Deletes the specified connection analyzer.

begin_connection_analyzers_query

Queries the specified connection analyzer for diagnostic results.

begin_delete

Deletes the specified network watcher resource.

begin_get_azure_reachability_report

NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score for internet service providers from a specified location to Azure regions.

begin_get_flow_log_status

Queries status of flow log and traffic analytics (optional) on a specified resource.

begin_get_network_configuration_diagnostic

Gets Network Configuration Diagnostic data to help customers understand and debug network behavior. It provides detailed information on what security rules were applied to a specified traffic flow and the result of evaluating these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results.

begin_get_next_hop

Gets the next hop from the specified VM.

begin_get_troubleshooting

Initiate troubleshooting on a specified resource.

begin_get_troubleshooting_result

Get the last completed troubleshooting result on a specified resource.

begin_get_vm_security_rules

Gets the configured and effective security group rules on the specified VM.

begin_list_available_providers

NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet service providers for a specified Azure region.

begin_set_flow_log_configuration

Configures flow log and traffic analytics (optional) on a specified resource.

begin_verify_ip_flow

Verify IP flow from the specified VM to a location given the currently configured NSG rules.

connection_analyzers_get

Gets the specified connection analyzer by name.

connection_analyzers_list

Lists all connection analyzers in the specified network watcher.

connection_analyzers_update_tags

Updates the tags of the specified connection analyzer.

create_or_update

Creates or updates a network watcher in the specified resource group.

get

Gets the specified network watcher by resource group.

get_topology

Gets the current network topology by resource group.

list

Gets all network watchers by resource group.

list_all

Gets all network watchers by subscription.

update_tags

Updates a network watcher tags.

begin_check_connectivity

Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server.

begin_check_connectivity(resource_group_name: str, network_watcher_name: str, parameters: _models.ConnectivityParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ConnectivityInformation]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that determine how the connectivity check will be performed. Is either a ConnectivityParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns ConnectivityInformation. The ConnectivityInformation is compatible with MutableMapping

Exceptions

Type Description

begin_connection_analyzers_create

Creates or updates a connection analyzer in the specified network watcher.

begin_connection_analyzers_create(resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, body: _models.ConnectionAnalyzer, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ConnectionAnalyzer]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

connection_analyzer_name
Required
str

The name of the connection analyzer. Required.

body
Required

Parameters that define the operation to create a connection analyzer. Is either a ConnectionAnalyzer type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping

Exceptions

Type Description

begin_connection_analyzers_delete

Deletes the specified connection analyzer.

begin_connection_analyzers_delete(resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

connection_analyzer_name
Required
str

The name of the connection analyzer. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

begin_connection_analyzers_query

Queries the specified connection analyzer for diagnostic results.

begin_connection_analyzers_query(resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any) -> LROPoller[ConnectionAnalyzerQueryStatusResult]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

connection_analyzer_name
Required
str

The name of the connection analyzer. Required.

Returns

Type Description

An instance of LROPoller that returns ConnectionAnalyzerQueryStatusResult. The ConnectionAnalyzerQueryStatusResult is compatible with MutableMapping

Exceptions

Type Description

begin_delete

Deletes the specified network watcher resource.

begin_delete(resource_group_name: str, network_watcher_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

begin_get_azure_reachability_report

NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score for internet service providers from a specified location to Azure regions.

begin_get_azure_reachability_report(resource_group_name: str, network_watcher_name: str, parameters: _models.AzureReachabilityReportParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AzureReachabilityReport]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that determine Azure reachability report configuration. Is either a AzureReachabilityReportParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns AzureReachabilityReport. The AzureReachabilityReport is compatible with MutableMapping

Exceptions

Type Description

begin_get_flow_log_status

Queries status of flow log and traffic analytics (optional) on a specified resource.

begin_get_flow_log_status(resource_group_name: str, network_watcher_name: str, parameters: _models.FlowLogStatusParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.FlowLogInformation]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define a resource to query flow log and traffic analytics (optional) status. Is either a FlowLogStatusParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns FlowLogInformation. The FlowLogInformation is compatible with MutableMapping

Exceptions

Type Description

begin_get_network_configuration_diagnostic

Gets Network Configuration Diagnostic data to help customers understand and debug network behavior. It provides detailed information on what security rules were applied to a specified traffic flow and the result of evaluating these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results.

begin_get_network_configuration_diagnostic(resource_group_name: str, network_watcher_name: str, parameters: _models.NetworkConfigurationDiagnosticParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters to get network configuration diagnostic. Is either a NetworkConfigurationDiagnosticParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The NetworkConfigurationDiagnosticResponse is compatible with MutableMapping

Exceptions

Type Description

begin_get_next_hop

Gets the next hop from the specified VM.

begin_get_next_hop(resource_group_name: str, network_watcher_name: str, parameters: _models.NextHopParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.NextHopResult]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the source and destination endpoint. Is either a NextHopParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns NextHopResult. The NextHopResult is compatible with MutableMapping

Exceptions

Type Description

begin_get_troubleshooting

Initiate troubleshooting on a specified resource.

begin_get_troubleshooting(resource_group_name: str, network_watcher_name: str, parameters: _models.TroubleshootingParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.TroubleshootingResult]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the resource to troubleshoot. Is either a TroubleshootingParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns TroubleshootingResult. The TroubleshootingResult is compatible with MutableMapping

Exceptions

Type Description

begin_get_troubleshooting_result

Get the last completed troubleshooting result on a specified resource.

begin_get_troubleshooting_result(resource_group_name: str, network_watcher_name: str, parameters: _models.QueryTroubleshootingParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.TroubleshootingResult]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the resource to query the troubleshooting result. Is either a QueryTroubleshootingParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns TroubleshootingResult. The TroubleshootingResult is compatible with MutableMapping

Exceptions

Type Description

begin_get_vm_security_rules

Gets the configured and effective security group rules on the specified VM.

begin_get_vm_security_rules(resource_group_name: str, network_watcher_name: str, parameters: _models.SecurityGroupViewParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.SecurityGroupViewResult]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the VM to check security groups for. Is either a SecurityGroupViewParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns SecurityGroupViewResult. The SecurityGroupViewResult is compatible with MutableMapping

Exceptions

Type Description

begin_list_available_providers

NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet service providers for a specified Azure region.

begin_list_available_providers(resource_group_name: str, network_watcher_name: str, parameters: _models.AvailableProvidersListParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AvailableProvidersList]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that scope the list of available providers. Is either a AvailableProvidersListParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns AvailableProvidersList. The AvailableProvidersList is compatible with MutableMapping

Exceptions

Type Description

begin_set_flow_log_configuration

Configures flow log and traffic analytics (optional) on a specified resource.

begin_set_flow_log_configuration(resource_group_name: str, network_watcher_name: str, parameters: _models.FlowLogInformation, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.FlowLogInformation]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the configuration of flow log. Is either a FlowLogInformation type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns FlowLogInformation. The FlowLogInformation is compatible with MutableMapping

Exceptions

Type Description

begin_verify_ip_flow

Verify IP flow from the specified VM to a location given the currently configured NSG rules.

begin_verify_ip_flow(resource_group_name: str, network_watcher_name: str, parameters: _models.VerificationIPFlowParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.VerificationIPFlowResult]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the IP flow to be verified. Is either a VerificationIPFlowParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns VerificationIPFlowResult. The VerificationIPFlowResult is compatible with MutableMapping

Exceptions

Type Description

connection_analyzers_get

Gets the specified connection analyzer by name.

connection_analyzers_get(resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any) -> ConnectionAnalyzer

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

connection_analyzer_name
Required
str

The name of the connection analyzer. Required.

Returns

Type Description

ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping

Exceptions

Type Description

connection_analyzers_list

Lists all connection analyzers in the specified network watcher.

connection_analyzers_list(resource_group_name: str, network_watcher_name: str, **kwargs: Any) -> ItemPaged[ConnectionAnalyzer]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

Returns

Type Description

An iterator like instance of ConnectionAnalyzer

Exceptions

Type Description

connection_analyzers_update_tags

Updates the tags of the specified connection analyzer.

connection_analyzers_update_tags(resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, body: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ConnectionAnalyzer

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

connection_analyzer_name
Required
str

The name of the connection analyzer. Required.

body
Required

Parameters supplied to update connection analyzer tags. Is either a TagsObject type or a IO[bytes] type. Required.

Returns

Type Description

ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping

Exceptions

Type Description

create_or_update

Creates or updates a network watcher in the specified resource group.

create_or_update(resource_group_name: str, network_watcher_name: str, parameters: _models.NetworkWatcher, *, content_type: str = 'application/json', **kwargs: Any) -> _models.NetworkWatcher

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the network watcher resource. Is either a NetworkWatcher type or a IO[bytes] type. Required.

Returns

Type Description

NetworkWatcher. The NetworkWatcher is compatible with MutableMapping

Exceptions

Type Description

get

Gets the specified network watcher by resource group.

get(resource_group_name: str, network_watcher_name: str, **kwargs: Any) -> NetworkWatcher

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

Returns

Type Description

NetworkWatcher. The NetworkWatcher is compatible with MutableMapping

Exceptions

Type Description

get_topology

Gets the current network topology by resource group.

get_topology(resource_group_name: str, network_watcher_name: str, parameters: _models.TopologyParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Topology

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters that define the representation of topology. Is either a TopologyParameters type or a IO[bytes] type. Required.

Returns

Type Description

Topology. The Topology is compatible with MutableMapping

Exceptions

Type Description

list

Gets all network watchers by resource group.

list(resource_group_name: str, **kwargs: Any) -> ItemPaged[NetworkWatcher]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Returns

Type Description

An iterator like instance of NetworkWatcher

Exceptions

Type Description

list_all

Gets all network watchers by subscription.

list_all(**kwargs: Any) -> ItemPaged[NetworkWatcher]

Returns

Type Description

An iterator like instance of NetworkWatcher

Exceptions

Type Description

update_tags

Updates a network watcher tags.

update_tags(resource_group_name: str, network_watcher_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.NetworkWatcher

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

parameters
Required

Parameters supplied to update network watcher tags. Is either a TagsObject type or a IO[bytes] type. Required.

Returns

Type Description

NetworkWatcher. The NetworkWatcher is compatible with MutableMapping

Exceptions

Type Description