Create Dfw Rule

Create Dfw Rule

Creates a Firewall Rule for a given DFW Security Policy.

Request
URI
POST
https://{api_host}/cloudapi/1.0.0/vdcGroups/{vdcGroupId}/dfwPolicies/{policyId}/rules
COPY
Path Parameters
string
vdcGroupId
Required

vdcGroupId

string
policyId
Required

policyId

string
vdcGroupId
Required

vdcGroupId

string
policyId
Required

policyId


Request Body
DfwRule of type(s) application/json
Optional
This request body class requires all of the following: FirewallRule , InlineDfwRule1
{
    "id": "string",
    "name": "string",
    "description": "string",
    "sourceFirewallGroups": [
        {
            "name": "string",
            "id": "string"
        }
    ],
    "sourceFirewallIpAddresses": [
        "string"
    ],
    "destinationFirewallGroups": [
        {
            "name": "string",
            "id": "string"
        }
    ],
    "destinationFirewallIpAddresses": [
        "string"
    ],
    "applicationPortProfiles": [
        {
            "name": "string",
            "id": "string"
        }
    ],
    "ipProtocol": {},
    "action": {},
    "actionValue": "string",
    "direction": {},
    "logging": false,
    "networkContextProfiles": [
        {
            "name": "string",
            "id": "string"
        }
    ],
    "enabled": false,
    "version": {
        "version": 0
    },
    "comments": "string",
    "appliedTo": {
        "name": "string",
        "id": "string"
    },
    "loggingId": "string",
    "relativePosition": {
        "adjacentRuleId": "string",
        "rulePosition": "string"
    },
    "sourceGroupsExcluded": false,
    "destinationGroupsExcluded": false
}
Authentication
This operation uses the following authentication methods.
Responses
202

The request have been accepted and the task to monitor the request is in the Location header.

Operation doesn't return any data structure