Skip to content

Commit

Permalink
Added connection monitor apis to network watcher swagger + examples (A…
Browse files Browse the repository at this point in the history
…zure#2223)

* Added connection monitor apis to network watcher swagger + examples

* Fixed examples for connection monitor

* Fixed linter issues. Wdded ref to examples

* Deleted ref to examples
  • Loading branch information
irrogozh authored and alvadb committed Jan 9, 2018
1 parent 7f2c040 commit c008dd3
Show file tree
Hide file tree
Showing 7 changed files with 810 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters" : {
"api-version" : "2017-10-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"connectionMonitorName" : "cm1",
"location": "centraluseuap",
"parameters" : {
"properties": {
"source": {
"resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1"
},
"destination": {
"address": "bing.com",
"port": 80
},
"MonitoringIntervalInSeconds": 60
}
}
},
"responses" : {
"201" : {
"body" : {
"name" : "cm1",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
"etag" : "W/\"e7497f26-5f09-4559-900b-fe98f3dedb6f\"",
"properties" : {
"provisioningState": "Updating",
"source": {
"resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
"port": 0
},
"destination": {
"address": "bing.com",
"port": 80
},
"monitoringIntervalInSeconds": 60,
"autoStart": true,
"monitoringStatus": "NotStarted"
},
"location": "centraluseuap",
"type": "Microsoft.Network/networkWatchers/connectionMonitors"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters" : {
"api-version" : "2017-10-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"connectionMonitorName" : "cm1"
},
"responses" : {
"200" : {
"body" : {
"name" : "cm1",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"properties" : {
"provisioningState" : "Succeeded",
"source": {
"resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
"port": 0
},
"destination": {
"address": "bing.com",
"port": 80
},
"monitoringIntervalInSeconds": 60,
"autoStart": true,
"startTime": "2018-01-08T03:42:33.3387305Z",
"monitoringStatus": "Running"
},
"location": "centraluseuap",
"type": "Microsoft.Network/networkWatchers/connectionMonitors"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters" : {
"api-version" : "2017-10-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1"
},
"responses" : {
"200" : {
"body" : {
"value" : [
{
"name" : "cm1",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"properties" : {
"provisioningState" : "Succeeded",
"source": {
"resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
"port": 0
},
"destination": {
"address": "bing.com",
"port": 80
},
"monitoringIntervalInSeconds": 60,
"autoStart": true,
"startTime": "2018-01-08T03:42:33.3387305Z",
"monitoringStatus": "Running"
},
"location": "centraluseuap",
"type": "Microsoft.Network/networkWatchers/connectionMonitors"
},
{
"name" : "cm2",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm2",
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"properties" : {
"provisioningState" : "Succeeded",
"source": {
"resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm2",
"port": 0
},
"destination": {
"address": "google.com",
"port": 80
},
"monitoringIntervalInSeconds": 30,
"autoStart": true,
"startTime": "2018-01-08T05:42:33.3387305Z",
"monitoringStatus": "Running"
},
"location": "centraluseuap",
"type": "Microsoft.Network/networkWatchers/connectionMonitors"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters" : {
"api-version" : "2017-10-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"connectionMonitorName" : "cm1"
},
"responses" : {
"200" : {
"body" : {
"states" : [
{
"connectionState" : "Reachable",
"startTime" : "2018-01-08T03:42:33.3387305Z",
"endTime" : "2018-01-08T05:12:41.5265438Z",
"evaluationState" : "Completed",
"hops" : [
{
"type" : "Source",
"id" : "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
"address" : "10.1.1.4",
"resourceId" : "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
"nextHopIds" : [
"75c8d819-b208-4584-a311-1aa45ce753f9"
],
"issues" : []
},
{
"type" : "VirtualNetwork",
"id" : "75c8d819-b208-4584-a311-1aa45ce753f9",
"address" : "192.168.100.4",
"resourceId" : "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
"nextHopIds" : [],
"issues" : []
}
]
}
]
}
},
"202" : {
"body" : {
"states" : [
{
"connectionState" : "Reachable",
"startTime" : "2018-01-08T03:42:33.3387305Z",
"endTime" : "2018-01-08T05:12:41.5265438Z",
"evaluationState" : "Completed",
"hops" : [
{
"type" : "Source",
"id" : "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
"address" : "10.1.1.4",
"resourceId" : "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
"nextHopIds" : [
"75c8d819-b208-4584-a311-1aa45ce753f9"
],
"issues" : []
},
{
"type" : "VirtualNetwork",
"id" : "75c8d819-b208-4584-a311-1aa45ce753f9",
"address" : "192.168.100.4",
"resourceId" : "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
"nextHopIds" : [],
"issues" : []
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters" : {
"api-version" : "2017-10-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"connectionMonitorName" : "cm1"
},
"responses" : {
"200" : {},
"202" : {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters" : {
"api-version" : "2017-10-01",
"subscriptionId" : "subid",
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"connectionMonitorName" : "cm1"
},
"responses" : {
"200" : {},
"202" : {}
}
}
Loading

0 comments on commit c008dd3

Please sign in to comment.