Update Dfw Rule
Updates a specific firewall rule for a given DFW security policy.
Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/vdcGroups/{vdcGroupId}/dfwPolicies/{policyId}/rules/{ruleId}
COPY
Path Parameters
string
vdcGroupId
Required
vdcGroupId
string
policyId
Required
policyId
string
ruleId
Required
ruleId
Request Body
DfwRule
of type(s)
application/json
Optional
{
"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
}
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
400
Invalid configuration.
Returns
Error
of type(s)
*/*;version=39.1
"Error Object"
string
minorErrorCode
Required
minorErrorCode
string
message
Required
message
string
stackTrace
Optional
stackTrace
404
The specified resource was not found
Returns
Error
of type(s)
*/*;version=39.1
"Error Object"
string
minorErrorCode
Required
minorErrorCode
string
message
Required
message
string
stackTrace
Optional
stackTrace
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string"}' https://{api_host}/cloudapi/1.0.0/vdcGroups/{vdcGroupId}/dfwPolicies/{policyId}/rules/{ruleId}
Availability
Added in 35.0
On This Page
Dfw Policy Operations
GET
Get Dfw Policy
PUT
Update Dfw Policy
DELETE
Delete Dfw Policy
GET
Get Dfw Rules
POST
Create Dfw Rule
PUT
Update Dfw Rules
GET
Get Dfw Rule
PUT
Update Dfw Rule
DELETE
Delete Dfw Rule
GET
Get Dfw Logs