Web Apps - Get Instance Info
Description pour Obtenir toutes les instances de scale-out d’une application.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}?api-version=2024-11-01
Paramètres URI
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
instance
|
path | True |
string |
|
name
|
path | True |
string |
Nom de l’application. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Nom du groupe de ressources auquel appartient la ressource. |
subscription
|
path | True |
string |
Votre ID d’abonnement Azure. Il s’agit d’une chaîne au format GUID (par exemple, 000000000-0000-0000-0000-00000000000000000000000). |
api-version
|
query | True |
string |
Version de l’API |
Réponses
Nom | Type | Description |
---|---|---|
200 OK |
Ok |
|
Other Status Codes |
Réponse d’erreur App Service. |
Sécurité
azure_auth
Flux OAuth2 Azure Active Directory
Type:
oauth2
Flux:
implicit
URL d’autorisation:
https://login.microsoftonline.com/common/oauth2/authorize
Étendues
Nom | Description |
---|---|
user_impersonation | emprunter l’identité de votre compte d’utilisateur |
Exemples
Get site instance info
Exemple de requête
Exemple de réponse
{
"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"
}
}
}
}
Définitions
Nom | Description |
---|---|
Container |
|
Container |
|
Container |
|
Container |
|
Container |
|
Container |
|
Default |
Réponse d’erreur App Service. |
Details | |
Error |
Modèle d’erreur. |
Site |
|
Web |
ContainerCpuStatistics
Nom | Type | Description |
---|---|---|
cpuUsage | ||
onlineCpuCount |
integer (int32) |
|
systemCpuUsage |
integer (int64) |
|
throttlingData |
ContainerCpuUsage
Nom | Type | Description |
---|---|---|
kernelModeUsage |
integer (int64) |
|
perCpuUsage |
integer[] (int64) |
|
totalUsage |
integer (int64) |
|
userModeUsage |
integer (int64) |
ContainerInfo
Nom | Type | Description |
---|---|---|
currentCpuStats | ||
currentTimeStamp |
string (date-time) |
|
eth0 | ||
id |
string |
|
memoryStats | ||
name |
string |
|
previousCpuStats | ||
previousTimeStamp |
string (date-time) |
ContainerMemoryStatistics
Nom | Type | Description |
---|---|---|
limit |
integer (int64) |
|
maxUsage |
integer (int64) |
|
usage |
integer (int64) |
ContainerNetworkInterfaceStatistics
Nom | Type | Description |
---|---|---|
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
Nom | Type | Description |
---|---|---|
periods |
integer (int32) |
|
throttledPeriods |
integer (int32) |
|
throttledTime |
integer (int32) |
DefaultErrorResponse
Réponse d’erreur App Service.
Nom | Type | Description |
---|---|---|
error |
Modèle d’erreur. |
Details
Nom | Type | Description |
---|---|---|
code |
string |
Chaîne standardisée pour identifier l’erreur par programmation. |
message |
string |
Description détaillée des erreurs et informations de débogage. |
target |
string |
Description détaillée des erreurs et informations de débogage. |
Error
Modèle d’erreur.
Nom | Type | Description |
---|---|---|
code |
string |
Chaîne standardisée pour identifier l’erreur par programmation. |
details |
Details[] |
Erreurs détaillées. |
innererror |
string |
Pour plus d’informations sur l’erreur de débogage. |
message |
string |
Description détaillée des erreurs et informations de débogage. |
target |
string |
Description détaillée des erreurs et informations de débogage. |
SiteRuntimeState
Valeur | Description |
---|---|
READY | |
STOPPED | |
UNKNOWN |
WebSiteInstanceStatus
Nom | Type | Description |
---|---|---|
id |
string |
ID de ressource. |
kind |
string |
Type de ressource. |
name |
string |
Nom de la ressource. |
properties.consoleUrl |
string |
Lien vers la console vers l’instance d’application web |
properties.containers |
<string,
Container |
|
properties.detectorUrl |
string |
Lien vers le portail de diagnostic et de résolution |
properties.healthCheckUrl |
string |
Lien vers la console vers l’instance d’application web |
properties.physicalZone |
string |
Zone physique dans laquelle l’instance se trouve |
properties.state | ||
properties.statusUrl |
string |
Lien vers GetStatusApi dans Kudu |
type |
string |
Type de ressource. |