Skip to content

Commit

Permalink
add VpnGatewaypacketCapture api (#9832)
Browse files Browse the repository at this point in the history
* add VpnGatewaypacketCapture api

* add custom words

* add vpn connection packet capture

* fix naming errors

* fix error

* fix word

* fixing validation

* fix model error

* finish prettier

* fix test
  • Loading branch information
jiaczh authored Jul 8, 2020
1 parent a0ba65e commit 05cde49
Show file tree
Hide file tree
Showing 8 changed files with 444 additions and 1 deletion.
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,7 @@ SSTP
ssword
standardasciifolding
startlocalrun
startpacketcapture
startrun
startswith
starttask
Expand All @@ -1447,6 +1448,7 @@ stateful
staticsite
statusdir
stderror
stoppacketcapture
stopresize
stopword
stopwords
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"gatewayName": "gateway1",
"vpnConnectionName": "vpnConnection1",
"parameters": {
"linkConnectionNames": [
"siteLink1",
"siteLink2"
]
}
},
"responses": {
"202": {},
"200": {
"body": "\"{\"Status\":\"Successful\",\"Data\":null}\""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"gatewayName": "gateway1",
"vpnConnectionName": "vpnConnection1",
"parameters": {
"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}]}",
"linkConnectionNames": [
"siteLink1",
"siteLink2"
]
}
},
"responses": {
"202": {},
"200": {
"body": "\"{\"Status\":\"Successful\",\"Data\":null}\""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"gatewayName": "gateway1",
"vpnConnectionName": "vpnConnection1",
"parameters": {
"sasUrl": "https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D",
"linkConnectionNames": [
"vpnSiteLink1",
"vpnSiteLink2"
]
}
},
"responses": {
"202": {},
"200": {
"body": "\"{\"Status\":\"Successful\",\"Data\":null}\""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"gatewayName": "vpngw"
},
"responses": {
"202": {},
"200": {
"body": "\"{\"Status\":\"Successful\",\"Data\":null}\""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"gatewayName": "vpngw",
"parameters": {
"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}]}"
}
},
"responses": {
"202": {},
"200": {
"body": "\"{\"Status\":\"Successful\",\"Data\":null}\""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2020-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"gatewayName": "vpngw",
"parameters": {
"sasUrl": "https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"
}
},
"responses": {
"202": {},
"200": {
"body": "\"{\"Status\":\"Successful\",\"Data\":null}\""
}
}
}
Loading

0 comments on commit 05cde49

Please sign in to comment.