Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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,68 @@
{
"parameters": {
"api-version": "2021-05-01",
"subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2",
"resourceGroupName": "rg1",
"firewallPolicyName": "firewallPolicy",
"parameters": {
"filters": [
{
"field": "Mode",
"values": [
"Deny"
]
}
],
"search": "",
"orderBy": {
"field": "severity",
"order": "Ascending"
},
"resultsPerPage": 20,
"skip": 0
}
},
"responses": {
"200": {
"body": {
"signatures": [
{
"signatureId": 2000015,
"mode": 2,
"severity": 1,
"direction": 2,
"group": "A Network Trojan was detected",
"description": "P2P Phatbot Control Connection",
"sourcePorts": [
"any"
],
"destinationPorts": [
"any"
],
"lastUpdated": "2010-07-30T00:00:00",
"inheritedFromParentPolicy": false,
"protocol": "tcp"
},
{
"signatureId": 2000106,
"mode": 2,
"severity": 1,
"direction": 1,
"group": "Attempted User Privilege Gain",
"description": "WEB_SERVER SQL sp_delete_alert attempt",
"sourcePorts": [
"any"
],
"destinationPorts": [
"any"
],
"lastUpdated": "2019-09-27T00:00:00",
"inheritedFromParentPolicy": false,
"protocol": "http"
}
],
"matchingRecordsCount": 2
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2021-05-01",
"subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2",
"resourceGroupName": "rg1",
"firewallPolicyName": "firewallPolicy",
"parameters": {
"filterName": "severity"
}
},
"responses": {
"200": {
"body": {
"filterValues": [
"low",
"medium",
"high"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2021-05-01",
"subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2",
"resourceGroupName": "rg1",
"firewallPolicyName": "firewallPolicy",
"parameters": {}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/IntrusionDetectionSignaturesOverrides/default",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IntrusionDetectionSignaturesOverrides

this type name does not match the spec

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource type name is "signatureOverrides" in the swagger spec, not "IntrusionDetectionSignaturesOverrides". It needs to be fixed in all examples that use the wrong name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the confusion, I fixed the issues.

"name": "default",
"type": "Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides",
"properties": {
"signatures": {
"2000105": "Off",
"2000106": "Deny"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2021-05-01",
"subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2",
"resourceGroupName": "rg1",
"firewallPolicyName": "firewallPolicy",
"parameters": {}
},
"responses": {
"200": {
"body": [
{
"id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/IntrusionDetectionSignaturesOverrides/default",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IntrusionDetectionSignaturesOverrides

wrong type name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"name": "default",
"type": "Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides",
"properties": {
"signatures": {
"2000105": "Off",
"2000106": "Deny"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2021-05-01",
"subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2",
"resourceGroupName": "rg1",
"firewallPolicyName": "firewallPolicy",
"parameters": {
"id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/IntrusionDetectionSignaturesOverrides/default",
"name": "default",
"type": "Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides",
"properties": {
"signatures": {
"2000105": "Off",
"2000106": "Deny"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/IntrusionDetectionSignaturesOverrides/default",
"name": "default",
"type": "Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides",
"properties": {
"signatures": {
"2000105": "Off",
"2000106": "Deny"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2021-05-01",
"subscriptionId": "e747cc13-97d4-4a79-b463-42d7f4e558f2",
"resourceGroupName": "rg1",
"firewallPolicyName": "firewallPolicy",
"parameters": {
"id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/IntrusionDetectionSignaturesOverrides/default",
"name": "default",
"type": "Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides",
"properties": {
"signatures": {
"2000105": "Off",
"2000106": "Deny"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/IntrusionDetectionSignaturesOverrides/default",
"name": "default",
"type": "Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides",
"properties": {
"signatures": {
"2000105": "Off",
"2000106": "Deny"
}
}
}
}
}
}
Loading