Skip to content

Commit

Permalink
Update sequence numbers and refactor API calls
Browse files Browse the repository at this point in the history
- Incremented sequence numbers for several rules.
- Changed the URL and request body format in a toggle rule.
- Updated metadata for consistency across various rules.
  • Loading branch information
sirkirby committed Feb 6, 2025
1 parent de29ea5 commit 67d4ec7
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 8 deletions.
2 changes: 1 addition & 1 deletion GetFirewallRule.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: GetFirewallRule
type: http
seq: 6
seq: 7
}

get {
Expand Down
2 changes: 1 addition & 1 deletion GetFirewallRules.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: GetFirewallRules
type: http
seq: 5
seq: 6
}

get {
Expand Down
2 changes: 1 addition & 1 deletion GetTrafficRoutes.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: GetTrafficRoutes
type: http
seq: 11
seq: 12
}

get {
Expand Down
2 changes: 1 addition & 1 deletion GetTrafficRule.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: GetTrafficRule
type: http
seq: 9
seq: 10
}

get {
Expand Down
2 changes: 1 addition & 1 deletion GetTrafficRules.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: GetTrafficRules
type: http
seq: 8
seq: 9
}

get {
Expand Down
28 changes: 28 additions & 0 deletions ToggleFirewalPolicyBatch.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
meta {
name: ToggleFirewalPolicyBatch
type: http
seq: 5
}

put {
url: https://{{udm-ip}}/proxy/network/v2/api/site/default/firewall-policies/batch
body: json
auth: none
}

headers {
x-csrf-token: {{csrf-token}}
Cookie: {{cookie}}
Content-Type: application/json
Accept: application/json
}

body:json {
[{"_id":"{{rule-id}}","enabled":false}]
}

vars:pre-request {
rule-id:
csrf-token: bru.getEnvVar("csrf-token")
cookie: bru.getEnvVar("cookie")
}
2 changes: 1 addition & 1 deletion ToggleFirewallRule.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: ToggleFirewallRule
type: http
seq: 7
seq: 8
}

put {
Expand Down
2 changes: 1 addition & 1 deletion ToggleTrafficRoute.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: ToggleTrafficRoute
type: http
seq: 12
seq: 13
}

put {
Expand Down
2 changes: 1 addition & 1 deletion ToggleTrafficRule.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: ToggleTrafficRule
type: http
seq: 10
seq: 11
}

put {
Expand Down

0 comments on commit 67d4ec7

Please sign in to comment.