Skip to content

Commit

Permalink
Adding optional traffic analytics config fields to network watcher co…
Browse files Browse the repository at this point in the history
…nfig object for enhancing the Network Watcher cmdlets (#3023)

* Adding optional traffic analytics parameters with existing network watched flowlog configuration

* Updating the version

* Updating latest versoin in readme.md
  • Loading branch information
sayghosh authored and sergey-shandar committed May 10, 2018
1 parent b3f5a7a commit 4fd254a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -895,11 +895,12 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog": {
"post": {
"tags": [
"NetworkWatchers"
"NetworkWatchers",
"TrafficAnalytics"
],
"operationId": "NetworkWatchers_SetFlowLogConfiguration",
"x-ms-long-running-operation": true,
"description": "Configures flow log on a specified resource.",
"description": "Configures flow log and traffic analytics (optional) on a specified resource.",
"parameters": [
{
"name": "resourceGroupName",
Expand Down Expand Up @@ -933,7 +934,7 @@
],
"responses": {
"200": {
"description": "Successful request for setting flow log configuration.",
"description": "Successful request for setting flow log and traffic analytics (optional) configuration.",
"schema": {
"$ref": "#/definitions/FlowLogInformation"
}
Expand All @@ -950,11 +951,12 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus": {
"post": {
"tags": [
"NetworkWatchers"
"NetworkWatchers",
"TrafficAnalytics"
],
"operationId": "NetworkWatchers_GetFlowLogStatus",
"x-ms-long-running-operation": true,
"description": "Queries status of flow log on a specified resource.",
"description": "Queries status of flow log and traffic analytics (optional) on a specified resource.",
"parameters": [
{
"name": "resourceGroupName",
Expand All @@ -977,7 +979,7 @@
"schema": {
"$ref": "#/definitions/FlowLogStatusParameters"
},
"description": "Parameters that define a resource to query flow log status."
"description": "Parameters that define a resource to query flow log and traffic analytics (optional) status."
},
{
"$ref": "#/parameters/ApiVersionParameter"
Expand All @@ -988,7 +990,7 @@
],
"responses": {
"200": {
"description": "Successful request for query flow log status.",
"description": "Successful request for query flow log and traffic analytics (optional) status.",
"schema": {
"$ref": "#/definitions/FlowLogInformation"
}
Expand Down Expand Up @@ -2252,13 +2254,13 @@
}
},
"FlowLogStatusParameters": {
"description": "Parameters that define a resource to query flow log status.",
"description": "Parameters that define a resource to query flow log and traffic analytics (optional) status.",
"required": [
"targetResourceId"
],
"properties": {
"targetResourceId": {
"description": "The target resource where getting the flow logging status.",
"description": "The target resource where getting the flow log and and traffic analytics (optional) status.",
"type": "string"
}
}
Expand All @@ -2279,7 +2281,7 @@
}
},
"FlowLogInformation": {
"description": "Information on the configuration of flow log.",
"description": "Information on the configuration of flow log and traffic analytics (optional) .",
"required": [
"targetResourceId",
"properties"
Expand All @@ -2292,6 +2294,47 @@
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/FlowLogProperties"
},
"flowAnalyticsConfiguration": {
"$ref": "#/definitions/TrafficAnalyticsProperties"
}
}
},
"TrafficAnalyticsProperties": {
"description": "Parameters that define the configuration of traffic analytics.",
"required": [
"networkWatcherFlowAnalyticsConfiguration"
],
"properties": {
"networkWatcherFlowAnalyticsConfiguration": {
"$ref": "#/definitions/TrafficAnalyticsConfigurationProperties"
}
}
},
"TrafficAnalyticsConfigurationProperties": {
"description": "Parameters that define the configuration of traffic analytics.",
"required": [
"enabled",
"workspaceId",
"workspaceRegion",
"workspaceResourceId"
],
"properties": {
"enabled": {
"description": "Flag to enable/disable traffic analytics.",
"type": "boolean"
},
"workspaceId": {
"description": "The resource guid of the attached workspace",
"type": "string"
},
"workspaceRegion": {
"description": "The location of the attached workspace",
"type": "string"
},
"workspaceResourceId": {
"description": "Resource Id of the attached workspace ",
"type": "string"
}
}
},
Expand Down
1 change: 0 additions & 1 deletion specification/network/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ These are the global settings for the Network API.
title: NetworkManagementClient
description: Network Client
openapi-type: arm

tag: package-2018-05
```
Expand Down

0 comments on commit 4fd254a

Please sign in to comment.