-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add swagger specification for firewall policy resource #6708
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
sergey-shandar
merged 15 commits into
Azure:network-july-release
from
gimotwanMSFT:firewallPolicyResource
Jul 27, 2019
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c8c3678
Add swagger specification for firewall policy resource
gimotwanMSFT a08e114
Add the firewall policy spec to the list of files in readme.md
gimotwanMSFT 1c7ce5a
Add priority to the Filter Rule in example for Rule Group Get
gimotwanMSFT f588424
Encapsulate the response body in a body property
gimotwanMSFT 0035cd1
Suppress errors due to missing properties inhertied from base resource:
gimotwanMSFT 68b815f
Fix typo
gimotwanMSFT f9fe275
Fix Build errors
gimotwanMSFT da3a2b9
Address review comments
gimotwanMSFT 1d18f84
Revert capitalization of Tags and OperationId as Semantic valiation e…
gimotwanMSFT 8055a83
Drop 201 response from examples
gimotwanMSFT 75a1988
Capitalize first letter of the operationId and tags values
gimotwanMSFT 4641bc7
Add swagger changes for azure firewall in vHub
gimotwanMSFT 2b34e15
Add a ref to the example file for Azure Firewall in vHub
gimotwanMSFT 4cbb81f
Fix validation check
gimotwanMSFT d93b4f2
Address review comments
gimotwanMSFT 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
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
88 changes: 88 additions & 0 deletions
88
.../resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPutInHub.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,88 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-06-01", | ||
| "subscriptionId": "subid", | ||
| "resourceGroupName": "rg1", | ||
| "azureFirewallName": "azurefirewall", | ||
| "parameters": { | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "location": "West US", | ||
| "zones": [], | ||
| "properties": { | ||
| "threatIntelMode": "Alert", | ||
| "virtualHub": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" | ||
| }, | ||
| "firewallPolicy": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/policy1" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "azurefirewall", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", | ||
| "type": "Microsoft.Network/azureFirewalls", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "location": "West US", | ||
| "zones": [], | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "threatIntelMode": "Alert", | ||
| "virtualHub": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" | ||
| }, | ||
| "firewallPolicy": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/policy1" | ||
| }, | ||
| "hubIpAddresses": { | ||
| "publicIPAddresses": [ | ||
| { | ||
| "address": "13.73.240.12" | ||
| } | ||
| ], | ||
| "privateIPAddress": "10.0.0.0" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "name": "azurefirewall", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", | ||
| "type": "Microsoft.Network/azureFirewalls", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "location": "West US", | ||
| "zones": [], | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "threatIntelMode": "Alert", | ||
| "virtualHub": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" | ||
| }, | ||
| "firewallPolicy": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/policy1" | ||
| }, | ||
| "hubIpAddresses": { | ||
| "publicIPAddresses": [ | ||
| { | ||
| "address": "13.73.240.12" | ||
| } | ||
| ], | ||
| "privateIPAddress": "10.0.0.0" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
...k/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyDelete.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,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-06-01", | ||
| "subscriptionId": "subid", | ||
| "resourceGroupName": "rg1", | ||
| "firewallPolicyName": "firewallPolicy" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "202": {}, | ||
| "204": {} | ||
| } | ||
| } |
33 changes: 33 additions & 0 deletions
33
...work/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyGet.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,33 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-06-01", | ||
| "subscriptionId": "subid", | ||
| "resourceGroupName": "rg1", | ||
| "firewallPolicyName": "firewallPolicy" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "firewallPolicy", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", | ||
| "type": "Microsoft.Network/firewallPolicies", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "location": "West US", | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "threatIntelMode": "Alert", | ||
| "ruleGroups": [ | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" | ||
| } | ||
| ], | ||
| "firewalls": [] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
35 changes: 35 additions & 0 deletions
35
...nager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListByResourceGroup.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,35 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-06-01", | ||
| "subscriptionId": "subid", | ||
| "resourceGroupName": "rg1" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "firewallPolicy", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", | ||
| "type": "Microsoft.Network/firewallPolicies", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "location": "West US", | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "threatIntelMode": "Alert", | ||
| "ruleGroups": [ | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" | ||
| } | ||
| ], | ||
| "firewalls": [] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
34 changes: 34 additions & 0 deletions
34
...anager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListBySubscription.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,34 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-06-01", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "firewallPolicy", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", | ||
| "type": "Microsoft.Network/firewallPolicies", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "location": "West US", | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "threatIntelMode": "Alert", | ||
| "ruleGroups": [ | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" | ||
| } | ||
| ], | ||
| "firewalls": [] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
69 changes: 69 additions & 0 deletions
69
...work/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyPut.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,69 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-06-01", | ||
| "subscriptionId": "subid", | ||
| "resourceGroupName": "rg1", | ||
| "firewallPolicyName": "firewallPolicy", | ||
| "parameters": { | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "location": "West US", | ||
| "properties": { | ||
| "threatIntelMode": "Alert" | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "firewallPolicy", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", | ||
| "type": "Microsoft.Network/firewallPolicies", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "location": "West US", | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "threatIntelMode": "Alert", | ||
| "ruleGroups": [ | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/rulegroup1" | ||
| }, | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/rulegroup2" | ||
| } | ||
| ], | ||
| "firewalls": [] | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "name": "firewallPolicy", | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", | ||
| "type": "Microsoft.Network/firewallPolicies", | ||
| "etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
| "location": "West US", | ||
| "tags": { | ||
| "key1": "value1" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "threatIntelMode": "Alert", | ||
| "ruleGroups": [ | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" | ||
| }, | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/rulegroup2" | ||
| } | ||
| ], | ||
| "firewalls": [] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
...e-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupDelete.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,14 @@ | ||
| { | ||
| "parameters": { | ||
| "ruleGroupName": "ruleGroup1", | ||
| "firewallPolicyName": "firewallPolicy", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2019-06-01", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "202": {}, | ||
| "204": {} | ||
| } | ||
| } |
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.