Connection Monitors - Query
Voer een query uit op een momentopname van de meest recente verbindingsstatussen.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query?api-version=2024-05-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
connection
|
path | True |
string |
De naam die is opgegeven voor de verbindingsmonitor. |
network
|
path | True |
string |
De naam van de Network Watcher-resource. |
resource
|
path | True |
string |
De naam van de resourcegroep met Network Watcher. |
subscription
|
path | True |
string |
De abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke serviceoproep. |
api-version
|
query | True |
string |
Client-API-versie. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Geslaagde query met verbindingsstatussen. |
|
202 Accepted |
Geaccepteerde query met verbindingsstatussen. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Query connection monitor
Voorbeeldaanvraag
Voorbeeldrespons
{
"sourceStatus": "Active",
"states": [
{
"connectionState": "Reachable",
"startTime": "2018-01-08T03:42:33.3387305Z",
"endTime": "2018-01-08T05:12:41.5265438Z",
"evaluationState": "Completed",
"hops": [
{
"type": "Source",
"id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
"address": "10.1.1.4",
"resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
"nextHopIds": [
"75c8d819-b208-4584-a311-1aa45ce753f9"
],
"issues": []
},
{
"type": "VirtualNetwork",
"id": "75c8d819-b208-4584-a311-1aa45ce753f9",
"address": "192.168.100.4",
"resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
"nextHopIds": [],
"issues": []
}
]
}
]
}
Location: https:/management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1/query?api-version=2024-05-01
{
"sourceStatus": "Active",
"states": [
{
"connectionState": "Reachable",
"startTime": "2018-01-08T03:42:33.3387305Z",
"endTime": "2018-01-08T05:12:41.5265438Z",
"evaluationState": "Completed",
"hops": [
{
"type": "Source",
"id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
"address": "10.1.1.4",
"resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
"nextHopIds": [
"75c8d819-b208-4584-a311-1aa45ce753f9"
],
"issues": []
},
{
"type": "VirtualNetwork",
"id": "75c8d819-b208-4584-a311-1aa45ce753f9",
"address": "192.168.100.4",
"resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
"nextHopIds": [],
"issues": []
}
]
}
]
}
Definities
Name | Description |
---|---|
Connection |
Lijst met momentopnamen van verbindingsstatussen. |
Connection |
Status van verbindingsmonitorbron. |
Connection |
De verbindingsstatus. |
Connection |
Momentopname van verbindingsstatus. |
Connectivity |
Informatie over een hop tussen de bron en de bestemming. |
Connectivity |
Informatie over een probleem dat is opgetreden tijdens het controleren op connectiviteit. |
Error |
Algemene weergave van foutdetails. |
Error |
Het foutobject. |
Evaluation |
Evaluatiestatus van connectiviteitsanalyse. |
Hop |
Hopkoppeling. |
Issue |
Het type probleem. |
Origin |
De oorsprong van het probleem. |
Severity |
De ernst van het probleem. |
ConnectionMonitorQueryResult
Lijst met momentopnamen van verbindingsstatussen.
Name | Type | Description |
---|---|---|
sourceStatus |
Status van verbindingsmonitorbron. |
|
states |
Informatie over verbindingsstatussen. |
ConnectionMonitorSourceStatus
Status van verbindingsmonitorbron.
Waarde | Description |
---|---|
Active | |
Inactive | |
Unknown |
ConnectionState
De verbindingsstatus.
Waarde | Description |
---|---|
Reachable | |
Unknown | |
Unreachable |
ConnectionStateSnapshot
Momentopname van verbindingsstatus.
Name | Type | Description |
---|---|---|
avgLatencyInMs |
integer (int64) minimum: 0maximum: 4294967295 |
Gemiddelde latentie in ms. |
connectionState |
De verbindingsstatus. |
|
endTime |
string (date-time) |
De eindtijd van de momentopname van de verbinding. |
evaluationState |
Evaluatiestatus van connectiviteitsanalyse. |
|
hops |
Lijst met hops tussen de bron en de bestemming. |
|
maxLatencyInMs |
integer (int64) minimum: 0maximum: 4294967295 |
Maximale latentie in ms. |
minLatencyInMs |
integer (int64) minimum: 0maximum: 4294967295 |
Minimale latentie in ms. |
probesFailed |
integer (int64) minimum: 0maximum: 4294967295 |
Het aantal mislukte tests. |
probesSent |
integer (int64) minimum: 0maximum: 4294967295 |
Het aantal verzonden tests. |
startTime |
string (date-time) |
De begintijd van de momentopname van de verbinding. |
ConnectivityHop
Informatie over een hop tussen de bron en de bestemming.
Name | Type | Description |
---|---|---|
address |
string |
Het IP-adres van de hop. |
id |
string |
De id van de hop. |
issues |
Lijst met problemen. |
|
links |
Hop |
Lijst met hopkoppelingen. |
nextHopIds |
string[] |
Lijst met volgende hop-id's. |
previousHopIds |
string[] |
Lijst met vorige hop-id's. |
previousLinks |
Hop |
Lijst met eerdere hopkoppelingen. |
resourceId |
string |
De id van de resource die overeenkomt met deze hop. |
type |
string |
Het type hop. |
ConnectivityIssue
Informatie over een probleem dat is opgetreden tijdens het controleren op connectiviteit.
Name | Type | Description |
---|---|---|
context |
object[] |
Biedt aanvullende context over het probleem. |
origin |
De oorsprong van het probleem. |
|
severity |
De ernst van het probleem. |
|
type |
Het type probleem. |
ErrorDetails
Algemene weergave van foutdetails.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode. |
message |
string |
Foutmelding. |
target |
string |
Foutdoel. |
ErrorResponse
Het foutobject.
Name | Type | Description |
---|---|---|
error |
Fout |
EvaluationState
Evaluatiestatus van connectiviteitsanalyse.
Waarde | Description |
---|---|
Completed | |
InProgress | |
NotStarted |
HopLink
Hopkoppeling.
Name | Type | Description |
---|---|---|
context |
object |
Biedt aanvullende context voor koppelingen. |
issues |
Lijst met problemen. |
|
linkType |
string |
Koppelingstype. |
nextHopId |
string |
De id van de volgende hop. |
properties.roundTripTimeAvg |
integer (int64) minimum: 0maximum: 4294967295 |
Gemiddelde retourtijd in milliseconden. |
properties.roundTripTimeMax |
integer (int64) minimum: 0maximum: 4294967295 |
Maximale retourtijd in milliseconden. |
properties.roundTripTimeMin |
integer (int64) minimum: 0maximum: 4294967295 |
Minimale retourtijd in milliseconden. |
resourceId |
string |
Resource-id. |
IssueType
Het type probleem.
Waarde | Description |
---|---|
AgentStopped | |
DnsResolution | |
GuestFirewall | |
NetworkSecurityRule | |
Platform | |
PortThrottled | |
SocketBind | |
Unknown | |
UserDefinedRoute |
Origin
De oorsprong van het probleem.
Waarde | Description |
---|---|
Inbound | |
Local | |
Outbound |
Severity
De ernst van het probleem.
Waarde | Description |
---|---|
Error | |
Warning |