Web Apps - Get Instance Info Slot
的描述 取得應用程式的所有向外延展實例。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}?api-version=2023-12-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
instance
|
path | True |
string |
|
name
|
path | True |
string |
應用程式的名稱。 |
resource
|
path | True |
string |
資源所屬資源群組的名稱。 Regex pattern: |
slot
|
path | True |
string |
部署位置的名稱。 如果未指定位置,API 會取得生產位置實例。 |
subscription
|
path | True |
string |
您的 Azure 訂用帳戶識別碼。 這是 GUID 格式的字串 (例如 0000000000-0000-0000-0000-0000000000000) 。 |
api-version
|
query | True |
string |
API 版本 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 |
|
Other Status Codes |
App Service 錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Get site instance info
Sample Request
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/tests346/slots/staging/instances/134987120?api-version=2023-12-01
Sample Response
{
"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
名稱 | 類型 | Description |
---|---|---|
cpuUsage | ||
onlineCpuCount |
integer |
|
systemCpuUsage |
integer |
|
throttlingData |
ContainerCpuUsage
名稱 | 類型 | Description |
---|---|---|
kernelModeUsage |
integer |
|
perCpuUsage |
integer[] |
|
totalUsage |
integer |
|
userModeUsage |
integer |
ContainerInfo
名稱 | 類型 | Description |
---|---|---|
currentCpuStats | ||
currentTimeStamp |
string |
|
eth0 | ||
id |
string |
|
memoryStats | ||
name |
string |
|
previousCpuStats | ||
previousTimeStamp |
string |
ContainerMemoryStatistics
名稱 | 類型 | Description |
---|---|---|
limit |
integer |
|
maxUsage |
integer |
|
usage |
integer |
ContainerNetworkInterfaceStatistics
名稱 | 類型 | Description |
---|---|---|
rxBytes |
integer |
|
rxDropped |
integer |
|
rxErrors |
integer |
|
rxPackets |
integer |
|
txBytes |
integer |
|
txDropped |
integer |
|
txErrors |
integer |
|
txPackets |
integer |
ContainerThrottlingData
名稱 | 類型 | Description |
---|---|---|
periods |
integer |
|
throttledPeriods |
integer |
|
throttledTime |
integer |
DefaultErrorResponse
App Service 錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤模型。 |
Details
名稱 | 類型 | Description |
---|---|---|
code |
string |
標準化字串,以程序設計方式識別錯誤。 |
message |
string |
詳細的錯誤描述和偵錯資訊。 |
target |
string |
詳細的錯誤描述和偵錯資訊。 |
Error
錯誤模型。
名稱 | 類型 | Description |
---|---|---|
code |
string |
標準化字串,以程序設計方式識別錯誤。 |
details |
Details[] |
詳細的錯誤。 |
innererror |
string |
偵錯錯誤的詳細資訊。 |
message |
string |
詳細的錯誤描述和偵錯資訊。 |
target |
string |
詳細的錯誤描述和偵錯資訊。 |
SiteRuntimeState
名稱 | 類型 | Description |
---|---|---|
READY |
string |
|
STOPPED |
string |
|
UNKNOWN |
string |
WebSiteInstanceStatus
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
kind |
string |
資源種類。 |
name |
string |
資源名稱。 |
properties.consoleUrl |
string |
連結到主控台至 Web 應用程式實例 |
properties.containers |
<string,
Container |
|
properties.detectorUrl |
string |
診斷和解決入口網站的連結 |
properties.healthCheckUrl |
string |
連結到主控台至 Web 應用程式實例 |
properties.state | ||
properties.statusUrl |
string |
Kudu 中 GetStatusApi 的連結 |
type |
string |
資源類型。 |