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

Added PATCH flowLog API and example #9960

Merged
merged 5 commits into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "Succeeded",
"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": "centralus"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -4288,6 +4352,18 @@
"disableTraceRoute": {
"type": "boolean",
"description": "Value indicating whether path evaluation with trace route should be disabled."
},
"destinationPortBehavior": {
Copy link
Contributor

Choose a reason for hiding this comment

The 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.",
"enum": [
"None",
"ListenIfAvailable"
],
"x-ms-enum": {
"name": "DestinationPortBehavior",
"modelAsString": true
}
}
},
"description": "Describes the TCP configuration."
Expand Down