Share via


Web Apps - Get Instance Info

Bir uygulamanın tüm ölçek genişletme örneklerini alır için açıklama.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}?api-version=2023-12-01

URI Parametreleri

Name İçinde Gerekli Tür Description
instanceId
path True

string

name
path True

string

Uygulamanın adı.

resourceGroupName
path True

string

Kaynağın ait olduğu kaynak grubunun adı.

Regex pattern: ^[-\w\._\(\)]+[^\.]$

subscriptionId
path True

string

Azure abonelik kimliğiniz. Bu GUID biçimli bir dizedir (örneğin, 000000000-0000-0000-0000-00000000000000).

api-version
query True

string

API Sürümü

Yanıtlar

Name Tür Description
200 OK

WebSiteInstanceStatus

Tamam

Other Status Codes

DefaultErrorResponse

hata yanıtı App Service.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

Get site instance info

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/tests346/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"
      }
    }
  }
}

Tanımlar

Name Description
ContainerCpuStatistics
ContainerCpuUsage
ContainerInfo
ContainerMemoryStatistics
ContainerNetworkInterfaceStatistics
ContainerThrottlingData
DefaultErrorResponse

hata yanıtı App Service.

Details
Error

Hata modeli.

SiteRuntimeState
WebSiteInstanceStatus

ContainerCpuStatistics

Name Tür Description
cpuUsage

ContainerCpuUsage

onlineCpuCount

integer

systemCpuUsage

integer

throttlingData

ContainerThrottlingData

ContainerCpuUsage

Name Tür Description
kernelModeUsage

integer

perCpuUsage

integer[]

totalUsage

integer

userModeUsage

integer

ContainerInfo

Name Tür Description
currentCpuStats

ContainerCpuStatistics

currentTimeStamp

string

eth0

ContainerNetworkInterfaceStatistics

id

string

memoryStats

ContainerMemoryStatistics

name

string

previousCpuStats

ContainerCpuStatistics

previousTimeStamp

string

ContainerMemoryStatistics

Name Tür Description
limit

integer

maxUsage

integer

usage

integer

ContainerNetworkInterfaceStatistics

Name Tür Description
rxBytes

integer

rxDropped

integer

rxErrors

integer

rxPackets

integer

txBytes

integer

txDropped

integer

txErrors

integer

txPackets

integer

ContainerThrottlingData

Name Tür Description
periods

integer

throttledPeriods

integer

throttledTime

integer

DefaultErrorResponse

hata yanıtı App Service.

Name Tür Description
error

Error

Hata modeli.

Details

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

Error

Hata modeli.

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

details

Details[]

Ayrıntılı hatalar.

innererror

string

Hata ayıklamak için daha fazla bilgi.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

SiteRuntimeState

Name Tür Description
READY

string

STOPPED

string

UNKNOWN

string

WebSiteInstanceStatus

Name Tür Description
id

string

Kaynak Kimliği.

kind

string

Bir tür kaynak.

name

string

Kaynak Adı.

properties.consoleUrl

string

Konsolu web uygulaması örneğine bağlama

properties.containers

<string,  ContainerInfo>

properties.detectorUrl

string

Tanılama ve Çözme Portalı bağlantısı

properties.healthCheckUrl

string

Konsolu web uygulaması örneğine bağlama

properties.state

SiteRuntimeState

properties.statusUrl

string

Kudu'da GetStatusApi bağlantısı

type

string

Kaynak türü.