Article summary
Did you find this summary helpful?
Thank you for your feedback!
Put
/v2.2/networks/{networkId}/policy
Required permissions: ["network:update"]
.
Security
HTTP
Type bearer
Path parameters
networkId
stringRequired
Min length1
Pattern^[a-zA-Z0-9]+$
Body parameters
object
enabled
boolean Required
whether the policy is enabled.
allowed
boolean Required
whether the policy is accept or drop.
id
ExampleZwAeo5wqiF
policyRules
Array of object (FirewallPolicyRule) Required
an array of policy rules.
object
id
name
string Required
Policy rule ID.
Min length5
Max length50
enabled
boolean Required
wether the rule is enabled.
allowed
boolean Required
wether the rule is enabled.
sources
object (SourcesAndDestinations) Required
OneOf
UsersAndGroups
object (UsersAndGroups)
users
Array of string (AlphanumericWithSpace)
List of IDs of users.
Min items1
Max items5
string
Any alphanumeric value with space
Min length1
Pattern^[a-zA-Z0-9 ]+$
groups
Array of string (AlphanumericWithSpace)
List of IDs of groups.
Min items1
string
Any alphanumeric value with space
Min length1
Pattern^[a-zA-Z0-9 ]+$
Addresses
object (Addresses)
addresses
Array of string (AlphanumericWithSpace) Required
List of IDs of address objects.
Min items1
string
Any alphanumeric value with space
Min length1
Pattern^[a-zA-Z0-9 ]+$
destinations
object (SourcesAndDestinations) Required
OneOf
UsersAndGroups
object (UsersAndGroups)
users
Array of string (AlphanumericWithSpace)
List of IDs of users.
Min items1
Max items5
string
Any alphanumeric value with space
Min length1
Pattern^[a-zA-Z0-9 ]+$
groups
Array of string (AlphanumericWithSpace)
List of IDs of groups.
Min items1
string
Any alphanumeric value with space
Min length1
Pattern^[a-zA-Z0-9 ]+$
Addresses
object (Addresses)
addresses
Array of string (AlphanumericWithSpace) Required
List of IDs of address objects.
Min items1
string
Any alphanumeric value with space
Min length1
Pattern^[a-zA-Z0-9 ]+$
services
Array of string
List of services objects IDs.
Min items1
string
Pattern^[a-zA-Z0-9_- ]+$
trace
boolean
whether the policy is traced.
Responses
202
Request accepted
object
statusUrl
string
samplingTime
integer
400
Bad request
401
Unauthorized
403
Forbidden
404
Network not found
Was this article helpful?