MENU
    Get firewall policy by network Id
    • 27 May 2025
    • 1 Minute to read
    • Contributors

      Get firewall policy by network Id


        Article summary

        Get
        /v2.1/networks/{networkId}/policy

        Required permissions: ["network:read"].

        Security
        HTTP
        Type bearer
        Path parameters
        networkId
        stringRequired
        Responses
        200

        Completed successfully

        Collapse all
        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

        Authentication
        Token
        *
        URL
        Parameters
        networkId*
        Response
        Click Try It! to start a request and see the response here!
        Code Samples

        Was this article helpful?

        Authentication
        Token
        *
        URL
        Parameters
        networkId*
        Response
        Click Try It! to start a request and see the response here!
        Code Samples