-
Notifications
You must be signed in to change notification settings - Fork 5.6k
FirewallPolicy Application Rule with WebCategories #11049
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
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
38a8e58
FirewallPolicy Application Rule with WebCategories
ssripadham 4a5e531
azureWebCategories
ssripadham aca8dff
validated models/examples
ssripadham 3010267
Merge branch 'azwebcat' of https://github.com/ssripadham/azure-rest-a…
ssripadham 9d27c1c
fix json
ssripadham e2c348f
Remove redundant files
ssripadham 723bd68
prettier
ssripadham 0f0cfde
Fix PR comments
ssripadham b75d51a
Fixed file name
ssripadham 163973d
Fixing error
ssripadham 77c30ed
Spell Check fix
ssripadham 094740d
Changed operationId/Tags
ssripadham e360800
"x-ms-azure-resource": true
ssripadham ffe304a
Revert ""x-ms-azure-resource": true"
ssripadham 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
184 changes: 184 additions & 0 deletions
184
...cation/network/resource-manager/Microsoft.Network/stable/2020-07-01/azureWebCategory.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,184 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "NetworkManagementClient", | ||
| "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", | ||
| "version": "2020-07-01" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow.", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories/{name}": { | ||
| "get": { | ||
| "tags": [ | ||
| "WebCategories" | ||
| ], | ||
| "operationId": "WebCategories_Get", | ||
| "description": "Gets the specified Azure Web Category.", | ||
| "parameters": [ | ||
| { | ||
| "name": "name", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the azureWebCategory." | ||
| }, | ||
| { | ||
| "$ref": "./network.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "name": "$expand", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "string", | ||
| "description": "Expands resourceIds back referenced by the azureWebCategory resource." | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Request successful. The operation returns the resulting azureWebCategory resource.", | ||
| "schema": { | ||
| "$ref": "#/definitions/AzureWebCategory" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Unexpected error.", | ||
| "schema": { | ||
| "$ref": "./network.json#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Get Azure Web Category by name": { | ||
| "$ref": "./examples/AzureWebCategoryGet.json" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories": { | ||
| "get": { | ||
| "tags": [ | ||
| "WebCategories" | ||
| ], | ||
| "operationId": "WebCategories_ListBySubscription", | ||
| "description": "Gets all the Azure Web Categories in a subscription.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./network.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Success. The operation returns a list of Azure Web Category resources.", | ||
| "schema": { | ||
| "$ref": "#/definitions/AzureWebCategoryListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Unexpected Error.", | ||
| "schema": { | ||
| "$ref": "./network.json#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "List all Azure Web Categories for a given subscription": { | ||
| "$ref": "./examples/AzureWebCategoriesListBySubscription.json" | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "AzureWebCategoryPropertiesFormat": { | ||
| "properties": { | ||
| "group": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The name of the group that the category belongs to." | ||
| } | ||
| }, | ||
| "description": "Azure Web Category Properties." | ||
| }, | ||
| "AzureWebCategory": { | ||
ssripadham marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/AzureWebCategoryPropertiesFormat", | ||
| "description": "Properties of the Azure Web Category." | ||
| }, | ||
| "id": { | ||
markcowl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "string", | ||
| "description": "Resource ID." | ||
| }, | ||
| "name": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "Resource name." | ||
| }, | ||
| "type": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "Resource type." | ||
| }, | ||
| "etag": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "A unique read-only string that changes whenever the resource is updated." | ||
| } | ||
| }, | ||
| "description": "Azure Web Category Resource." | ||
| }, | ||
| "AzureWebCategoryListResult": { | ||
| "properties": { | ||
| "value": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/AzureWebCategory" | ||
| }, | ||
| "description": "List of Azure Web Categories for a given Subscription." | ||
| }, | ||
| "nextLink": { | ||
| "type": "string", | ||
| "description": "URL to get the next set of results." | ||
| } | ||
| }, | ||
| "description": "Response for ListAzureWebCategories API service call." | ||
| } | ||
| } | ||
| } | ||
23 changes: 23 additions & 0 deletions
23
...er/Microsoft.Network/stable/2020-07-01/examples/AzureWebCategoriesListBySubscription.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,23 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-07-01", | ||
| "subscriptionId": "4de8428a-4a92-4cea-90ff-b47128b8cab8" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Arts", | ||
| "id": "/subscriptions/4de8428a-4a92-4cea-90ff-b47128b8cab8/providers/Microsoft.Network/azureWebCategories/Arts", | ||
| "type": "Microsoft.Network/azureWebCategories", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "properties": { | ||
| "group": "General" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
...rk/resource-manager/Microsoft.Network/stable/2020-07-01/examples/AzureWebCategoryGet.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,20 @@ | ||
| { | ||
ssripadham marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "parameters": { | ||
| "api-version": "2020-07-01", | ||
| "subscriptionId": "4de8428a-4a92-4cea-90ff-b47128b8cab8", | ||
| "name": "Arts" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "Arts", | ||
| "id": "/subscriptions/4de8428a-4a92-4cea-90ff-b47128b8cab8/providers/Microsoft.Network/azureWebCategories/Arts", | ||
| "type": "Microsoft.Network/azureWebCategories", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "properties": { | ||
| "group": "General" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
52 changes: 52 additions & 0 deletions
52
...ork/stable/2020-07-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.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,52 @@ | ||
| { | ||
| "parameters": { | ||
| "ruleCollectionGroupName": "ruleCollectionGroup1", | ||
| "firewallPolicyName": "firewallPolicy", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2020-07-01", | ||
| "subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "ruleCollectionGroup1", | ||
| "id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleCollectionGroups/ruleCollectionGroup1", | ||
| "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "priority": 110, | ||
| "ruleCollections": [ | ||
| { | ||
| "ruleCollectionType": "FirewallPolicyFilterRuleCollection", | ||
| "name": "Example-Filter-Rule-Collection", | ||
| "priority": 200, | ||
| "action": { | ||
| "type": "Deny" | ||
| }, | ||
| "rules": [ | ||
| { | ||
| "ruleType": "ApplicationRule", | ||
| "name": "rule1", | ||
| "description": "Deny inbound rule", | ||
| "protocols": [ | ||
| { | ||
| "protocolType": "Https", | ||
| "port": 443 | ||
| } | ||
| ], | ||
| "sourceAddresses": [ | ||
| "216.58.216.164", | ||
| "10.0.0.0/24" | ||
| ], | ||
| "webCategories": [ | ||
| "Hacking" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
55 changes: 55 additions & 0 deletions
55
...rk/stable/2020-07-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.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,55 @@ | ||
| { | ||
| "parameters": { | ||
| "firewallPolicyName": "firewallPolicy", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2020-07-01", | ||
| "subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "ruleCollectionGroup1", | ||
| "id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleCollectionGroups/ruleCollectionGroup1", | ||
| "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "priority": 110, | ||
| "ruleCollections": [ | ||
| { | ||
| "name": "Example-Filter-Rule-Collection", | ||
| "ruleCollectionType": "FirewallPolicyFilterRuleCollection", | ||
| "priority": 120, | ||
| "action": { | ||
| "type": "Deny" | ||
| }, | ||
| "rules": [ | ||
| { | ||
| "ruleType": "ApplicationRule", | ||
| "name": "rule1", | ||
| "description": "Deny inbound rule", | ||
| "protocols": [ | ||
| { | ||
| "protocolType": "Https", | ||
| "port": 443 | ||
| } | ||
| ], | ||
| "sourceAddresses": [ | ||
| "216.58.216.164", | ||
| "10.0.0.0/24" | ||
| ], | ||
| "webCategories": [ | ||
| "Hacking" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.