Iot Hub Resource - Get Endpoint Health
Hämta hälsotillståndet för routningsslutpunkter.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routingEndpointsHealth?api-version=2018-04-01
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
iot
|
path | True |
string |
|
resource
|
path | True |
string |
|
subscription
|
path | True |
string |
Prenumerationsidentifieraren. |
api-version
|
query | True |
string |
Versionen av API:et. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
DefaultErrorResponse |
Säkerhet
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 | personifiera ditt användarkonto |
Exempel
IotHubResource_GetEndpointHealth
Sample Request
GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/routingEndpointsHealth?api-version=2018-04-01
Sample Response
{
"value": [
{
"endpointId": "id1",
"healthStatus": "healthy"
},
{
"endpointId": "id2",
"healthStatus": "unknown"
}
]
}
Definitioner
Name | Description |
---|---|
Endpoint |
Hälsodata för en slutpunkt |
Endpoint |
Den JSON-serialiserade matrisen med EndpointHealthData-objekt med en nästa länk. |
Endpoint |
Slutpunktens hälsostatuskod |
Error |
Felinformation. |
EndpointHealthData
Hälsodata för en slutpunkt
Name | Typ | Description |
---|---|---|
endpointId |
string |
ID för slutpunkten |
healthStatus |
Slutpunktens hälsostatuskod |
EndpointHealthDataListResult
Den JSON-serialiserade matrisen med EndpointHealthData-objekt med en nästa länk.
Name | Typ | Description |
---|---|---|
nextLink |
string |
Länka till fler resultat |
value |
JSON-serialiserad matris med slutpunktshälsodata |
EndpointHealthStatus
Slutpunktens hälsostatuskod
Name | Typ | Description |
---|---|---|
dead |
string |
|
healthy |
string |
|
unhealthy |
string |
|
unknown |
string |
ErrorDetails
Felinformation.
Name | Typ | Description |
---|---|---|
code |
string |
Felkoden. |
details |
string |
Felinformationen. |
httpStatusCode |
string |
HTTP-statuskoden. |
message |
string |
Felmeddelandet. |