Create Firewall Policy

Verb URI Description
POST /fw/firewall_policies Creates a new Firewall Policy.

Normal Response Code: 201

Error Response Codes: Unauthorized (401).

This operation requires a request body.

This operation returns a response body.

 

Example 4.130. Create Firewall Policy: Request

POST /v2.0/fw/firewall_policies.json
User-Agent: python-neutronclient
Accept: application/json
                
{
    "firewall_policy": {
        "firewall_rules": [
            "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
        ],
        "name": "test-policy"
    }
}

 

Example 4.131. Create Firewall Policy: Response

HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
                
{
    "firewall_policy": {
        "audited": false,
        "description": "",
        "firewall_rules": [
            "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
        ],
        "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
        "name": "test-policy",
        "shared": false,
        "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
    }
}

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...