你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Service Healths - Get
返回请求的服务运行状况对象。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceHealth}?api-version=2016-05-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
区域的名称 |
resource
|
path | True |
string |
资源组的名称。 |
service
|
path | True |
string |
服务运行状况名称。 |
subscription
|
path | True |
string |
唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
安全性
azure_auth
授权使用 Azure Active Directory OAuth2 流。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Returns the requested service health object.
示例请求
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/c720a7de-4812-4b58-969d-c2e2a5cd89ec?api-version=2016-05-01
示例响应
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/serviceHealths/c720a7de-4812-4b58-969d-c2e2a5cd89ec",
"name": "c720a7de-4812-4b58-969d-c2e2a5cd89ec",
"type": "Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths",
"location": "local",
"tags": {},
"properties": {
"registrationId": "c720a7de-4812-4b58-969d-c2e2a5cd89ec",
"displayName": "Compute",
"namespace": "Microsoft.Compute.Admin",
"routePrefix": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/system.local/providers/Microsoft.Compute.Admin/",
"serviceLocation": "local",
"infraURI": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/system.local/providers/Microsoft.Compute.Admin/infraRoles/Compute",
"alertSummary": {
"criticalAlertCount": 0,
"warningAlertCount": 0
},
"healthState": "Unknown"
}
}
定义
名称 | 说明 |
---|---|
Alert |
警报摘要。 |
Service |
保存有关服务运行状况的信息。 |
AlertSummary
警报摘要。
名称 | 类型 | 说明 |
---|---|---|
criticalAlertCount |
integer |
服务的关键警报数。 |
warningAlertCount |
integer |
服务的警告警报数。 |
ServiceHealth
保存有关服务运行状况的信息。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定资源 ID |
location |
string |
资源所在的 Azure 区域 |
name |
string |
资源的名称 |
properties.alertSummary |
警报摘要。 |
|
properties.displayName |
string |
服务的名称。 |
properties.healthState |
string |
运行状况。 |
properties.infraURI |
string |
服务的路由前缀。 |
properties.namespace |
string |
运行状况资源的命名空间。 |
properties.registrationId |
string |
注册 ID。 |
properties.routePrefix |
string |
路由前缀。 |
properties.serviceLocation |
string |
服务的位置。 |
tags |
object |
资源标记。 |
type |
string |
资源类型。 |