Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vtapfinal #3684

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"location" : "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"ipConfigurations" : [{
"ipConfigurations" : [
{
"name" : "ipconfig1",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1",
"properties" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
{
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/inboundNatRules/inbound1"
}
],
"virtualNetworkTaps": [
{
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/vTAP1"
},
{
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/vTAP2"
}
]
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters" : {
"subscriptionId": "subid",
"resourceGroupName": "testrg",
"networkInterfaceName": "mynic",
"tapConfigurationName": "tapconfiguration1",
"api-version": "2018-08-01",
"parameters": {
"properties": {
"virtualNetworkTap": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap"
}
},
"location": "centraluseuap"
},
"responses" : {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not valid examples. "responses" should be outside of parameters.

"200" : {
"body" : {
"name": "tapConfiguration1",
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1",
"etag": "etag",
"type": "Microsoft.Network/networkInterfaces/tapConfigurations",
"properties": {
"provisioningState": "Succeeded",
"virtualNetworkTap": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap"
}
}
}
},
"201" : {
"body" : {
"name": "tapConfiguration1",
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1",
"etag": "etag",
"type": "Microsoft.Network/networkInterfaces/tapConfigurations",
"properties": {
"provisioningState": "Succeeded",
"virtualNetworkTap": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1",
"networkInterfaceName": "test-networkinterface",
"tapConfigurationName": "test-tapconfiguration"
},
"responses" : {
"200" : { },
"202" : { },
"204" : { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "testrg",
"networkInterfaceName": "mynic",
"tapConfigurationName": "tapconfiguration1",
"api-version": "2018-08-01"
},
"responses": {
"200": {
"body":
{
"name": "tapConfiguration1",
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1",
"etag": "etag",
"type": "Microsoft.Network/networkInterfaces/tapConfigurations",
"properties": {
"provisioningState": "Succeeded",
"virtualNetworkTap": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1",
"networkInterfaceName": "mynic"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"name": "tapConfiguration1",
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1",
"etag": "etag",
"type": "Microsoft.Network/networkInterfaces/tapConfigurations",
"properties": {
"provisioningState": "Succeeded",
"virtualNetworkTap": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1",
"virtualNetworkTapName": "test-vtap",
"parameters": {
"properties": {
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/ipconfig1"
}
},
"location": "centraluseuap"
}
},
"responses" : {
"200" : {
"body" : {
"name": "testvtap",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap",
"etag": "etag",
"type": "Microsoft.Network/virtualNetworkTaps",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration"
}
]
}
}
},
"201" : {
"body" : {
"name": "testvtap",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap",
"etag": "etag",
"type": "Microsoft.Network/virtualNetworkTaps",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1",
"virtualNetworkTapName": "test-vtap"
},
"responses" : {
"200" : { },
"202" : { },
"204" : { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"virtualNetworkTapName" : "testvtap"
},
"responses" : {
"200" : {
"body" : {
"name": "testvtap",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap",
"etag": "etag",
"type": "Microsoft.Network/virtualNetworkTaps",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"name": "testvtap",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap",
"etag": "etag",
"type": "Microsoft.Network/virtualNetworkTaps",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration"
}
]
}
},
{
"name": "testvtap2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap2",
"etag": "etag",
"type": "Microsoft.Network/virtualNetworkTaps",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface3/tapConfigurations/testtapConfiguration"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"name": "testvtap",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap",
"etag": "etag",
"type": "Microsoft.Network/virtualNetworkTaps",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration"
}
]
}
},
{
"name": "testvtap2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap2",
"etag": "etag",
"type": "Microsoft.Network/virtualNetworkTaps",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface3/tapConfigurations/testtapConfiguration"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subid",
"resourceGroupName": "rg1",
"virtualNetworkTapName": "test-vtap",
"parameters": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
},
"responses" : {
"200" : {
"body" : {
"name" : "test-vtap",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/test-vtap",
"location" : "eastus",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties" : {
"provisioningState": "Succeeded",
"destinationNetworkInterfaceIPConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1"
},
"destinationPort": 4789,
"networkInterfaceTapConfigurations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration"
}
]
},
"type" : "Microsoft.Network/virtualNetworkTaps"
}
}
}
}
Loading