다음을 통해 공유


Web Apps - Get Network Trace Operation Slot V2

에 대한 설명 네트워크 추적 캡처(또는 지정된 경우 배포 슬롯)에 대한 명명된 작업을 가져옵니다.

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 매개 변수

Name In(다음 안에) 필수 형식 Description
name
path True

string

응용 프로그램의 이름입니다.

operationId
path True

string

작업의 GUID입니다.

resourceGroupName
path True

string

리소스가 속한 리소스 그룹의 이름입니다.

regex 패턴: ^[-\w\._\(\)]+[^\.]$

slot
path True

string

배포 슬롯의 이름입니다. 슬롯을 지정하지 않으면 API는 프로덕션 슬롯에 대한 작업을 가져옵니다.

subscriptionId
path True

string

Azure 구독 ID. GUID 형식 문자열입니다(예: 00000000-0000-0000-0000-0000-00000000000).

api-version
query True

string

API 버전

응답

Name 형식 Description
200 OK

NetworkTrace[]

정상

202 Accepted

NetworkTrace[]

작업이 진행 중입니다.

Other Status Codes

DefaultErrorResponse

오류 응답을 App Service.

보안

azure_auth

Azure Active Directory OAuth2 Flow

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

Get the current status of a network trace operation for a site

샘플 요청

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

샘플 응답

[
  {
    "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"
  }
]

정의

Name Description
DefaultErrorResponse

오류 응답을 App Service.

Details
Error

오류 모델.

NetworkTrace

네트워크 추적

DefaultErrorResponse

오류 응답을 App Service.

Name 형식 Description
error

Error

오류 모델.

Details

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다.

message

string

자세한 오류 설명 및 디버깅 정보입니다.

target

string

자세한 오류 설명 및 디버깅 정보입니다.

Error

오류 모델.

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다.

details

Details[]

자세한 오류입니다.

innererror

string

디버그 오류에 대한 자세한 정보입니다.

message

string

자세한 오류 설명 및 디버깅 정보입니다.

target

string

자세한 오류 설명 및 디버깅 정보입니다.

NetworkTrace

네트워크 추적

Name 형식 Description
message

string

네트워크 추적 작업의 자세한 메시지(예: 오류 발생 시 오류 메시지)

path

string

캡처된 네트워크 추적 파일의 로컬 파일 경로입니다.

status

string

Operation.Status(InProgress/Succeeded/Failed)와 동일한 네트워크 추적 작업의 현재 상태.