Article summary
Did you find this summary helpful?
Thank you for your feedback!
Get
/v2.1/networks/{networkId}/policy
Required permissions: ["network:read"]
.
Security
HTTP
Type bearer
Path parameters
networkId
stringRequired
Responses
200
Completed successfully
object
enabled
boolean
whether the policy is enabled.
allowed
boolean
whether the policy is accept or drop.
id
string
Any alphanumeric value w/o space
Min length1
Pattern^[a-zA-Z0-9]+$
policyRules
Array of object (FirewallPolicyRule)
an array of policy rules.
object
id
string
Any alphanumeric value w/o space
Min length1
Pattern^[a-zA-Z0-9]+$
name
string
Policy rule ID.
Min length5
Max length50
enabled
boolean
wether the rule is enabled.
allowed
boolean
wether the rule is enabled.
sources
object (SourcesAndDestinations)
destinations
object (SourcesAndDestinations)
services
Array of string
List of services objects IDs.
Min items1
string
Pattern^[a-zA-Z0-9_- ]+$
trace
boolean
whether the policy is traced.
401
Unauthorized
403
Forbidden
404
Network not found
Response
application/json
Click Try It! to start a request and see the response here!
Code Samples
x
curl --request GET \
--url https://virtserver.swaggerhub.com/perimeter81/public-api-yaml/1.0.0/v2.1/networks/%7BnetworkId%7D/policy \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'accept: application/json'
Was this article helpful?
Response
application/json
Click Try It! to start a request and see the response here!
Code Samples
xxxxxxxxxx
curl --request GET \
--url https://virtserver.swaggerhub.com/perimeter81/public-api-yaml/1.0.0/v2.1/networks/%7BnetworkId%7D/policy \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'accept: application/json'