Delen via


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
connectionMonitorName
path True

string

De naam die is opgegeven voor de verbindingsmonitor.

networkWatcherName
path True

string

De naam van de Network Watcher-resource.

resourceGroupName
path True

string

De naam van de resourcegroep met Network Watcher.

subscriptionId
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

ConnectionMonitorQueryResult

Geslaagde query met verbindingsstatussen.

202 Accepted

ConnectionMonitorQueryResult

Geaccepteerde query met verbindingsstatussen.

Other Status Codes

ErrorResponse

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

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1/query?api-version=2024-05-01

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
ConnectionMonitorQueryResult

Lijst met momentopnamen van verbindingsstatussen.

ConnectionMonitorSourceStatus

Status van verbindingsmonitorbron.

ConnectionState

De verbindingsstatus.

ConnectionStateSnapshot

Momentopname van verbindingsstatus.

ConnectivityHop

Informatie over een hop tussen de bron en de bestemming.

ConnectivityIssue

Informatie over een probleem dat is opgetreden tijdens het controleren op connectiviteit.

ErrorDetails

Algemene weergave van foutdetails.

ErrorResponse

Het foutobject.

EvaluationState

Evaluatiestatus van connectiviteitsanalyse.

HopLink

Hopkoppeling.

IssueType

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

ConnectionMonitorSourceStatus

Status van verbindingsmonitorbron.

states

ConnectionStateSnapshot[]

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: 0
maximum: 4294967295

Gemiddelde latentie in ms.

connectionState

ConnectionState

De verbindingsstatus.

endTime

string (date-time)

De eindtijd van de momentopname van de verbinding.

evaluationState

EvaluationState

Evaluatiestatus van connectiviteitsanalyse.

hops

ConnectivityHop[]

Lijst met hops tussen de bron en de bestemming.

maxLatencyInMs

integer (int64)

minimum: 0
maximum: 4294967295

Maximale latentie in ms.

minLatencyInMs

integer (int64)

minimum: 0
maximum: 4294967295

Minimale latentie in ms.

probesFailed

integer (int64)

minimum: 0
maximum: 4294967295

Het aantal mislukte tests.

probesSent

integer (int64)

minimum: 0
maximum: 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

ConnectivityIssue[]

Lijst met problemen.

links

HopLink[]

Lijst met hopkoppelingen.

nextHopIds

string[]

Lijst met volgende hop-id's.

previousHopIds

string[]

Lijst met vorige hop-id's.

previousLinks

HopLink[]

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

Origin

De oorsprong van het probleem.

severity

Severity

De ernst van het probleem.

type

IssueType

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

ErrorDetails

Fout
Het object met foutdetails.

EvaluationState

Evaluatiestatus van connectiviteitsanalyse.

Waarde Description
Completed
InProgress
NotStarted

Hopkoppeling.

Name Type Description
context

object

Biedt aanvullende context voor koppelingen.

issues

ConnectivityIssue[]

Lijst met problemen.

linkType

string

Koppelingstype.

nextHopId

string

De id van de volgende hop.

properties.roundTripTimeAvg

integer (int64)

minimum: 0
maximum: 4294967295

Gemiddelde retourtijd in milliseconden.

properties.roundTripTimeMax

integer (int64)

minimum: 0
maximum: 4294967295

Maximale retourtijd in milliseconden.

properties.roundTripTimeMin

integer (int64)

minimum: 0
maximum: 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