Share via


Web Apps - Get Network Trace Operation Slot V2

Ağ izlemesi yakalama için adlandırılmış işlemi alır (veya belirtilirse dağıtım yuvası) için açıklama.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/current/operationresults/{operationId}?api-version=2023-12-01

URI Parametreleri

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

string

Uygulamanın adı.

operationId
path True

string

İşlemin GUID'i.

resourceGroupName
path True

string

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

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

slot
path True

string

Dağıtım yuvasının adı. Yuva belirtilmezse, API üretim yuvası için bir işlem alır.

subscriptionId
path True

string

Azure abonelik kimliğiniz. Bu GUID biçimli bir dizedir (örn. 000000000-0000-0000-0000-000000000000).

api-version
query True

string

API Sürümü

Yanıtlar

Name Tür Description
200 OK

NetworkTrace[]

Tamam

202 Accepted

NetworkTrace[]

İşlem devam ediyor.

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 the current status of a network trace operation for a site

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/SampleApp/slots/Production/networkTraces/current/operationresults/c291433b-53ad-4c49-8cae-0a293eae1c6d?api-version=2023-12-01

Sample Response

[
  {
    "path": "D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip",
    "status": "Succeeded",
    "message": "Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"
  }
]
location: https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/SampleApp/networktraces/current/operationresults/c291433b-53ad-4c49-8cae-0a293eae1c6d
azure-asyncoperation: https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/SampleApp/networktraces/current/operationresults/c291433b-53ad-4c49-8cae-0a293eae1c6d
[
  {
    "path": "D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip",
    "status": "Succeeded",
    "message": "Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"
  }
]

Tanımlar

Name Description
DefaultErrorResponse

hata yanıtı App Service.

Details
Error

Hata modeli.

NetworkTrace

Ağ izlemesi

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.

NetworkTrace

Ağ izlemesi

Name Tür Description
message

string

Ağ izleme işleminin ayrıntılı iletisi, örneğin hata durumunda hata iletisi.

path

string

Yakalanan ağ izleme dosyasının yerel dosya yolu.

status

string

Ağ izleme işleminin geçerli durumu, Operation.Status (InProgress/Succeeded/Failed) ile aynı.