Web Apps - Get Instance Info
获取应用的所有横向扩展实例的说明。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}?api-version=2024-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
instance
|
path | True |
string |
|
name
|
path | True |
string |
应用的名称。 |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
资源所属的资源组的名称。 |
subscription
|
path | True |
string |
Azure 订阅 ID。 这是 GUID 格式的字符串(例如 000000000-0000-0000-0000-00000000000000)。 |
api-version
|
query | True |
string |
API 版本 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
好的 |
|
Other Status Codes |
应用服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get site instance info
示例请求
示例响应
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/tests346/slot/staging/instances/134987120",
"name": "134987120",
"type": "Microsoft.Web/sites/instances",
"properties": {
"state": "READY",
"statusUrl": "https://sampleurl",
"detectorUrl": "testsec579",
"containers": {
"c1": {
"currentTimeStamp": "2013-10-21T13:28:06.419Z"
}
}
}
}
定义
ContainerCpuStatistics
名称 | 类型 | 说明 |
---|---|---|
cpuUsage | ||
onlineCpuCount |
integer (int32) |
|
systemCpuUsage |
integer (int64) |
|
throttlingData |
ContainerCpuUsage
名称 | 类型 | 说明 |
---|---|---|
kernelModeUsage |
integer (int64) |
|
perCpuUsage |
integer[] (int64) |
|
totalUsage |
integer (int64) |
|
userModeUsage |
integer (int64) |
ContainerInfo
名称 | 类型 | 说明 |
---|---|---|
currentCpuStats | ||
currentTimeStamp |
string (date-time) |
|
eth0 | ||
id |
string |
|
memoryStats | ||
name |
string |
|
previousCpuStats | ||
previousTimeStamp |
string (date-time) |
ContainerMemoryStatistics
名称 | 类型 | 说明 |
---|---|---|
limit |
integer (int64) |
|
maxUsage |
integer (int64) |
|
usage |
integer (int64) |
ContainerNetworkInterfaceStatistics
名称 | 类型 | 说明 |
---|---|---|
rxBytes |
integer (int64) |
|
rxDropped |
integer (int64) |
|
rxErrors |
integer (int64) |
|
rxPackets |
integer (int64) |
|
txBytes |
integer (int64) |
|
txDropped |
integer (int64) |
|
txErrors |
integer (int64) |
|
txPackets |
integer (int64) |
ContainerThrottlingData
名称 | 类型 | 说明 |
---|---|---|
periods |
integer (int32) |
|
throttledPeriods |
integer (int32) |
|
throttledTime |
integer (int32) |
DefaultErrorResponse
应用服务错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误模型。 |
Details
名称 | 类型 | 说明 |
---|---|---|
code |
string |
标准化字符串,以编程方式标识错误。 |
message |
string |
详细的错误说明和调试信息。 |
target |
string |
详细的错误说明和调试信息。 |
Error
错误模型。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
标准化字符串,以编程方式标识错误。 |
details |
Details[] |
详细错误。 |
innererror |
string |
调试错误的详细信息。 |
message |
string |
详细的错误说明和调试信息。 |
target |
string |
详细的错误说明和调试信息。 |
SiteRuntimeState
值 | 说明 |
---|---|
READY | |
STOPPED | |
UNKNOWN |
WebSiteInstanceStatus
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
kind |
string |
资源类型。 |
name |
string |
资源名称。 |
properties.consoleUrl |
string |
链接到控制台到 Web 应用实例 |
properties.containers |
<string,
Container |
|
properties.detectorUrl |
string |
指向诊断和解决门户的链接 |
properties.healthCheckUrl |
string |
链接到控制台到 Web 应用实例 |
properties.physicalZone |
string |
实例位于的物理区域 |
properties.state | ||
properties.statusUrl |
string |
链接到 Kudu 中的 GetStatusApi |
type |
string |
资源类型。 |