Connection Monitors - Get
Gets a connection monitor by name.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}?api-version=2024-05-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
connection
|
path | True |
string |
The name of the connection monitor. |
network
|
path | True |
string |
The name of the Network Watcher resource. |
resource
|
path | True |
string |
The name of the resource group containing Network Watcher. |
subscription
|
path | True |
string |
The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client API version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Request successful. The operation returns a connection monitor. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get connection monitor
Sample request
Sample response
{
"name": "cm1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"properties": {
"provisioningState": "Succeeded",
"endpoints": [
{
"name": "source",
"resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/ct1"
},
{
"name": "destination",
"address": "bing.com"
}
],
"testConfigurations": [
{
"name": "tcp",
"testFrequencySec": 60,
"protocol": "Tcp",
"tcpConfiguration": {
"port": 80
}
}
],
"testGroups": [
{
"name": "tg",
"testConfigurations": [
"tcp"
],
"sources": [
"source"
],
"destinations": [
"destination"
]
}
]
},
"location": "eastus",
"type": "Microsoft.Network/networkWatchers/connectionMonitors"
}
Definitions
Name | Description |
---|---|
Connection |
Describes the destination of connection monitor. |
Connection |
Describes the connection monitor endpoint. |
Connection |
Describes the connection monitor endpoint filter. |
Connection |
Describes the connection monitor endpoint filter item. |
Connection |
The type of item included in the filter. Currently only 'AgentAddress' is supported. |
Connection |
The behavior of the endpoint filter. Currently only 'Include' is supported. |
Connection |
Connection monitor endpoint location details only being used for 'AzureArcNetwork' type endpoints, which contains the region details. |
Connection |
Describes the connection monitor endpoint scope. |
Connection |
Describes the connection monitor endpoint scope item. |
Connection |
Describes the HTTP configuration. |
Connection |
Describes the ICMP configuration. |
Connection |
Describes a connection monitor output destination. |
Connection |
Information about the connection monitor. |
Connection |
Describes the source of connection monitor. |
Connection |
Describes the threshold for declaring a test successful. |
Connection |
Describes the TCP configuration. |
Connection |
Describes a connection monitor test configuration. |
Connection |
The protocol to use in test evaluation. |
Connection |
Describes the connection monitor test group. |
Connection |
Type of connection monitor. |
Connection |
Describes the settings for producing output into a log analytics workspace. |
Coverage |
Test coverage for the endpoint. |
Destination |
Destination port behavior. |
Endpoint |
The endpoint type. |
Error |
Common error details representation. |
Error |
The error object. |
HTTPConfiguration |
The HTTP method to use. |
HTTPHeader |
The HTTP header. |
Output |
Connection monitor output destination type. Currently, only "Workspace" is supported. |
Preferred |
The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. |
Provisioning |
The current provisioning state. |
ConnectionMonitorDestination
Describes the destination of connection monitor.
Name | Type | Description |
---|---|---|
address |
string |
Address of the connection monitor destination (IP or domain name). |
port |
integer (int32) minimum: 0maximum: 65535 |
The destination port used by connection monitor. |
resourceId |
string |
The ID of the resource used as the destination by connection monitor. |
ConnectionMonitorEndpoint
Describes the connection monitor endpoint.
Name | Type | Description |
---|---|---|
address |
string |
Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, ArcMachine, MMAWorkspaceMachine endpoint type. |
coverageLevel |
Test coverage for the endpoint. |
|
filter |
Filter field is getting deprecated and should not be used. Instead use Include/Exclude scope fields for it. |
|
locationDetails |
Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details. |
|
name |
string |
The name of the connection monitor endpoint. |
resourceId |
string |
Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type. |
scope |
Endpoint scope defines which target resource to monitor in case of compound resource endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork. |
|
subscriptionId |
string |
Subscription ID for connection monitor endpoint. It's an optional parameter which is being used for 'AzureArcNetwork' type endpoint. |
type |
The endpoint type. |
ConnectionMonitorEndpointFilter
Describes the connection monitor endpoint filter.
Name | Type | Description |
---|---|---|
items |
List of items in the filter. |
|
type |
The behavior of the endpoint filter. Currently only 'Include' is supported. |
ConnectionMonitorEndpointFilterItem
Describes the connection monitor endpoint filter item.
Name | Type | Description |
---|---|---|
address |
string |
The address of the filter item. |
type |
The type of item included in the filter. Currently only 'AgentAddress' is supported. |
ConnectionMonitorEndpointFilterItemType
The type of item included in the filter. Currently only 'AgentAddress' is supported.
Value | Description |
---|---|
AgentAddress |
ConnectionMonitorEndpointFilterType
The behavior of the endpoint filter. Currently only 'Include' is supported.
Value | Description |
---|---|
Include |
ConnectionMonitorEndpointLocationDetails
Connection monitor endpoint location details only being used for 'AzureArcNetwork' type endpoints, which contains the region details.
Name | Type | Description |
---|---|---|
region |
string |
Region for connection monitor endpoint. |
ConnectionMonitorEndpointScope
Describes the connection monitor endpoint scope.
Name | Type | Description |
---|---|---|
exclude |
List of items which needs to be excluded from the endpoint scope. |
|
include |
List of items which needs to be included to the endpoint scope. |
ConnectionMonitorEndpointScopeItem
Describes the connection monitor endpoint scope item.
Name | Type | Description |
---|---|---|
address |
string |
The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address. |
ConnectionMonitorHttpConfiguration
Describes the HTTP configuration.
Name | Type | Description |
---|---|---|
method |
The HTTP method to use. |
|
path |
string |
The path component of the URI. For instance, "/dir1/dir2". |
port |
integer (int32) minimum: 0maximum: 65535 |
The port to connect to. |
preferHTTPS |
boolean |
Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit. |
requestHeaders |
The HTTP headers to transmit with the request. |
|
validStatusCodeRanges |
string[] |
HTTP status codes to consider successful. For instance, "2xx,301-304,418". |
ConnectionMonitorIcmpConfiguration
Describes the ICMP configuration.
Name | Type | Description |
---|---|---|
disableTraceRoute |
boolean |
Value indicating whether path evaluation with trace route should be disabled. |
ConnectionMonitorOutput
Describes a connection monitor output destination.
Name | Type | Description |
---|---|---|
type |
Connection monitor output destination type. Currently, only "Workspace" is supported. |
|
workspaceSettings |
Describes the settings for producing output into a log analytics workspace. |
ConnectionMonitorResult
Information about the connection monitor.
Name | Type | Default value | Description |
---|---|---|---|
etag |
string |
A unique read-only string that changes whenever the resource is updated. |
|
id |
string |
ID of the connection monitor. |
|
location |
string |
Connection monitor location. |
|
name |
string |
Name of the connection monitor. |
|
properties.autoStart |
boolean |
True |
Determines if the connection monitor will start automatically once created. |
properties.connectionMonitorType |
Type of connection monitor. |
||
properties.destination |
Describes the destination of connection monitor. |
||
properties.endpoints |
List of connection monitor endpoints. |
||
properties.monitoringIntervalInSeconds |
integer (int32) minimum: 30maximum: 1800 |
60 |
Monitoring interval in seconds. |
properties.monitoringStatus |
string |
The monitoring status of the connection monitor. |
|
properties.notes |
string |
Optional notes to be associated with the connection monitor. |
|
properties.outputs |
List of connection monitor outputs. |
||
properties.provisioningState |
The provisioning state of the connection monitor. |
||
properties.source |
Describes the source of connection monitor. |
||
properties.startTime |
string (date-time) |
The date and time when the connection monitor was started. |
|
properties.testConfigurations |
List of connection monitor test configurations. |
||
properties.testGroups |
List of connection monitor test groups. |
||
tags |
object |
Connection monitor tags. |
|
type |
string |
Connection monitor type. |
ConnectionMonitorSource
Describes the source of connection monitor.
Name | Type | Description |
---|---|---|
port |
integer (int32) minimum: 0maximum: 65535 |
The source port used by connection monitor. |
resourceId |
string |
The ID of the resource used as the source by connection monitor. |
ConnectionMonitorSuccessThreshold
Describes the threshold for declaring a test successful.
Name | Type | Description |
---|---|---|
checksFailedPercent |
integer (int32) |
The maximum percentage of failed checks permitted for a test to evaluate as successful. |
roundTripTimeMs |
number |
The maximum round-trip time in milliseconds permitted for a test to evaluate as successful. |
ConnectionMonitorTcpConfiguration
Describes the TCP configuration.
Name | Type | Description |
---|---|---|
destinationPortBehavior |
Destination port behavior. |
|
disableTraceRoute |
boolean |
Value indicating whether path evaluation with trace route should be disabled. |
port |
integer (int32) minimum: 0maximum: 65535 |
The port to connect to. |
ConnectionMonitorTestConfiguration
Describes a connection monitor test configuration.
Name | Type | Description |
---|---|---|
httpConfiguration |
The parameters used to perform test evaluation over HTTP. |
|
icmpConfiguration |
The parameters used to perform test evaluation over ICMP. |
|
name |
string |
The name of the connection monitor test configuration. |
preferredIPVersion |
The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. |
|
protocol |
The protocol to use in test evaluation. |
|
successThreshold |
The threshold for declaring a test successful. |
|
tcpConfiguration |
The parameters used to perform test evaluation over TCP. |
|
testFrequencySec |
integer (int32) |
The frequency of test evaluation, in seconds. |
ConnectionMonitorTestConfigurationProtocol
The protocol to use in test evaluation.
Value | Description |
---|---|
Tcp | |
Http | |
Icmp |
ConnectionMonitorTestGroup
Describes the connection monitor test group.
Name | Type | Description |
---|---|---|
destinations |
string[] |
List of destination endpoint names. |
disable |
boolean |
Value indicating whether test group is disabled. |
name |
string |
The name of the connection monitor test group. |
sources |
string[] |
List of source endpoint names. |
testConfigurations |
string[] |
List of test configuration names. |
ConnectionMonitorType
Type of connection monitor.
Value | Description |
---|---|
MultiEndpoint | |
SingleSourceDestination |
ConnectionMonitorWorkspaceSettings
Describes the settings for producing output into a log analytics workspace.
Name | Type | Description |
---|---|---|
workspaceResourceId |
string |
Log analytics workspace resource ID. |
CoverageLevel
Test coverage for the endpoint.
Value | Description |
---|---|
Default | |
Low | |
BelowAverage | |
Average | |
AboveAverage | |
Full |
DestinationPortBehavior
Destination port behavior.
Value | Description |
---|---|
None | |
ListenIfAvailable |
EndpointType
The endpoint type.
Value | Description |
---|---|
AzureVM | |
AzureVNet | |
AzureSubnet | |
ExternalAddress | |
MMAWorkspaceMachine | |
MMAWorkspaceNetwork | |
AzureArcVM | |
AzureVMSS | |
AzureArcNetwork |
ErrorDetails
Common error details representation.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message. |
target |
string |
Error target. |
ErrorResponse
The error object.
Name | Type | Description |
---|---|---|
error |
Error |
HTTPConfigurationMethod
The HTTP method to use.
Value | Description |
---|---|
Get | |
Post |
HTTPHeader
The HTTP header.
Name | Type | Description |
---|---|---|
name |
string |
The name in HTTP header. |
value |
string |
The value in HTTP header. |
OutputType
Connection monitor output destination type. Currently, only "Workspace" is supported.
Value | Description |
---|---|
Workspace |
PreferredIPVersion
The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters.
Value | Description |
---|---|
IPv4 | |
IPv6 |
ProvisioningState
The current provisioning state.
Value | Description |
---|---|
Succeeded | |
Updating | |
Deleting | |
Failed |