forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added connection monitor apis to network watcher swagger + examples (A…
…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
Showing
7 changed files
with
810 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...r/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherConnectionMonitorCreate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherConnectionMonitorGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...ger/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherConnectionMonitorList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
...er/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherConnectionMonitorQuery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" : [] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...er/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherConnectionMonitorStart.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" : {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ger/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherConnectionMonitorStop.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" : {} | ||
} | ||
} |
Oops, something went wrong.