次の方法で共有


Vpn Gateways - Start Packet Capture

指定したリソース グループ内の VPN ゲートウェイでパケット キャプチャを開始します。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/startpacketcapture?api-version=2024-05-01

URI パラメーター

名前 / 必須 説明
gatewayName
path True

string

ゲートウェイの名前。

resourceGroupName
path True

string

VpnGateway のリソース グループ名。

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。

api-version
query True

string

クライアント API のバージョン。

要求本文

名前 説明
filterData

string

VPN ゲートウェイでパケット キャプチャ パラメーターを開始します。

応答

名前 説明
200 OK

string

要求が成功しました。 VPN ゲートウェイで開始された操作パケット キャプチャ。

202 Accepted

受け入れられ、操作は非同期的に完了します。

Other Status Codes

CloudError

操作が失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

Start packet capture on vpn gateway with filter
Start packet capture on vpn gateway without filter

Start packet capture on vpn gateway with filter

要求のサンプル

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/vpngw/startpacketcapture?api-version=2024-05-01

{
  "filterData": "{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"
}

応答のサンプル

location: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/operationResults/{operationId}?api-version={api-version}
"\"{\"Status\":\"Successful\",\"Data\":null}\""

Start packet capture on vpn gateway without filter

要求のサンプル

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/vpngw/startpacketcapture?api-version=2024-05-01

応答のサンプル

location: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/operationResults/{operationId}?api-version={api-version}
"\"{\"Status\":\"Successful\",\"Data\":null}\""

定義

名前 説明
CloudError

サービスからのエラー応答。

CloudErrorBody

サービスからのエラー応答。

VpnGatewayPacketCaptureStartParameters

パケット キャプチャ パラメーターを開始します。

CloudError

サービスからのエラー応答。

名前 説明
error

CloudErrorBody

クラウド エラー本文。

CloudErrorBody

サービスからのエラー応答。

名前 説明
code

string

エラーの識別子。 コードは不変であり、プログラムで使用することを目的としています。

details

CloudErrorBody[]

エラーに関する追加の詳細の一覧。

message

string

ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。

target

string

特定のエラーのターゲット。 たとえば、エラーが発生したプロパティの名前です。

VpnGatewayPacketCaptureStartParameters

パケット キャプチャ パラメーターを開始します。

名前 説明
filterData

string

VPN ゲートウェイでパケット キャプチャ パラメーターを開始します。