-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Added PATCH flowLog API and example #9960
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
Merged
lirenhe
merged 5 commits into
Azure:network-june-release
from
irrogozh:network-june-release
Jul 2, 2020
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...manager/Microsoft.Network/stable/2020-06-01/examples/NetworkWatcherFlowLogUpdateTags.json
This file contains hidden or 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,46 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-06-01", | ||
| "subscriptionId": "subid", | ||
| "resourceGroupName": "rg1", | ||
| "networkWatcherName": "nw", | ||
| "flowLogName": "fl", | ||
| "parameters": { | ||
| "tags": { | ||
| "tag1": "value1", | ||
| "tag2": "value2" | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "Microsoft.Networkdesmond-rgdesmondcentral-nsg", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw/FlowLogs/fl", | ||
| "etag": "W/\"00000000-0000-0000-0000-000000000000\"", | ||
| "properties": { | ||
| "provisioningState": "Updating", | ||
| "targetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/desmondcentral-nsg", | ||
| "targetResourceGuid": "00000000-0000-0000-0000-000000000000", | ||
| "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/nwtest1mgvbfmqsigdxe", | ||
| "enabled": true, | ||
| "flowAnalyticsConfiguration": {}, | ||
| "retentionPolicy": { | ||
| "days": 0, | ||
| "enabled": false | ||
| }, | ||
| "format": { | ||
| "type": "JSON", | ||
| "version": 1 | ||
| } | ||
| }, | ||
| "tags": { | ||
| "tag1": "value1", | ||
| "tag2": "value2" | ||
| }, | ||
| "type": "Microsoft.Network/networkWatchers/FlowLogs", | ||
| "location": "centraluseuap" | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2100,6 +2100,70 @@ | |
| "final-state-via": "azure-async-operation" | ||
| } | ||
| }, | ||
| "patch": { | ||
| "tags": [ | ||
| "FlowLogs" | ||
| ], | ||
| "operationId": "FlowLogs_UpdateTags", | ||
| "description": "Update tags of the specified flow log.", | ||
| "parameters": [ | ||
| { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the resource group." | ||
| }, | ||
| { | ||
| "name": "networkWatcherName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the network watcher." | ||
| }, | ||
| { | ||
| "name": "flowLogName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the flow log." | ||
| }, | ||
| { | ||
| "name": "parameters", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "./network.json#/definitions/TagsObject" | ||
| }, | ||
| "description": "Parameters supplied to update flow log tags." | ||
| }, | ||
| { | ||
| "$ref": "./network.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Request successful. The operation returns updated flow log.", | ||
| "schema": { | ||
| "$ref": "#/definitions/FlowLog" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./networkWatcher.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Update flow log tags": { | ||
| "$ref": "./examples/NetworkWatcherFlowLogUpdateTags.json" | ||
| } | ||
| } | ||
| }, | ||
| "get": { | ||
| "tags": [ | ||
| "FlowLogs" | ||
|
|
@@ -4288,6 +4352,10 @@ | |
| "disableTraceRoute": { | ||
| "type": "boolean", | ||
| "description": "Value indicating whether path evaluation with trace route should be disabled." | ||
| }, | ||
| "destinationPortBehavior": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what are the allowed values here? Can it be a string enum so the user knows what can be entered in this property? |
||
| "type": "string", | ||
| "description": "Destination port behavior." | ||
| } | ||
| }, | ||
| "description": "Describes the TCP configuration." | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its best to not use euap regions in public examples