Web Apps - Get Instance Info
Descrizione per Ottiene tutte le istanze con scalabilità orizzontale di un'app.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}?api-version=2023-12-01
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
instance
|
path | True |
string |
|
name
|
path | True |
string |
Nome dell'app. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Nome del gruppo di risorse a cui appartiene la risorsa. |
subscription
|
path | True |
string |
ID sottoscrizione di Azure. Si tratta di una stringa in formato GUID (ad esempio 000000000-0000-0000-0000-000000000000000). |
api-version
|
query | True |
string |
Versione API |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Risposta di errore del servizio app. |
Sicurezza
azure_auth
Flusso OAuth2 di Azure Active Directory
Tipo:
oauth2
Flow:
implicit
URL di autorizzazione:
https://login.microsoftonline.com/common/oauth2/authorize
Ambiti
Nome | Descrizione |
---|---|
user_impersonation | rappresentare l'account utente |
Esempio
Get site instance info
Esempio di richiesta
Risposta di esempio
{
"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"
}
}
}
}
Definizioni
Nome | Descrizione |
---|---|
Container |
|
Container |
|
Container |
|
Container |
|
Container |
|
Container |
|
Default |
Risposta di errore del servizio app. |
Details | |
Error |
Modello di errore. |
Site |
|
Web |
ContainerCpuStatistics
Nome | Tipo | Descrizione |
---|---|---|
cpuUsage | ||
onlineCpuCount |
integer (int32) |
|
systemCpuUsage |
integer (int64) |
|
throttlingData |
ContainerCpuUsage
Nome | Tipo | Descrizione |
---|---|---|
kernelModeUsage |
integer (int64) |
|
perCpuUsage |
integer[] (int64) |
|
totalUsage |
integer (int64) |
|
userModeUsage |
integer (int64) |
ContainerInfo
Nome | Tipo | Descrizione |
---|---|---|
currentCpuStats | ||
currentTimeStamp |
string (date-time) |
|
eth0 | ||
id |
string |
|
memoryStats | ||
name |
string |
|
previousCpuStats | ||
previousTimeStamp |
string (date-time) |
ContainerMemoryStatistics
Nome | Tipo | Descrizione |
---|---|---|
limit |
integer (int64) |
|
maxUsage |
integer (int64) |
|
usage |
integer (int64) |
ContainerNetworkInterfaceStatistics
Nome | Tipo | Descrizione |
---|---|---|
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
Nome | Tipo | Descrizione |
---|---|---|
periods |
integer (int32) |
|
throttledPeriods |
integer (int32) |
|
throttledTime |
integer (int32) |
DefaultErrorResponse
Risposta di errore del servizio app.
Nome | Tipo | Descrizione |
---|---|---|
error |
Modello di errore. |
Details
Nome | Tipo | Descrizione |
---|---|---|
code |
string |
Stringa standardizzata per identificare l'errore a livello di codice. |
message |
string |
Descrizione dettagliata dell'errore e informazioni di debug. |
target |
string |
Descrizione dettagliata dell'errore e informazioni di debug. |
Error
Modello di errore.
Nome | Tipo | Descrizione |
---|---|---|
code |
string |
Stringa standardizzata per identificare l'errore a livello di codice. |
details |
Details[] |
Errori dettagliati. |
innererror |
string |
Altre informazioni per eseguire il debug dell'errore. |
message |
string |
Descrizione dettagliata dell'errore e informazioni di debug. |
target |
string |
Descrizione dettagliata dell'errore e informazioni di debug. |
SiteRuntimeState
Valore | Descrizione |
---|---|
READY | |
STOPPED | |
UNKNOWN |
WebSiteInstanceStatus
Nome | Tipo | Descrizione |
---|---|---|
id |
string |
ID risorsa. |
kind |
string |
Tipo di risorsa. |
name |
string |
Nome risorsa. |
properties.consoleUrl |
string |
Collegamento alla console all'istanza dell'app Web |
properties.containers |
<string,
Container |
|
properties.detectorUrl |
string |
Collegamento al portale di diagnostica e risoluzione |
properties.healthCheckUrl |
string |
Collegamento alla console all'istanza dell'app Web |
properties.state | ||
properties.statusUrl |
string |
Collegamento a GetStatusApi in Kudu |
type |
string |
Tipo di risorsa. |