[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Update DFW Policies
DescriptionUpdates the DFW security policies for a given networking and security domain. A default security policy will be created when DFW is enabled. Removing a security policy will result in removal of the policy and all of its associated firewall rules.
Request
URLURL
https://{api_host}/cloudapi/1.0.0/vdcGroups/{vdcGroupId}/dfwPolicies
Path Parameters
Path Parameters
string
vdcGroupId
Required
Request Body
Request Body
DfwPolicies
of type(s) application/json
Required
{
"defaultPolicy": {
"description": "string",
"enabled": false,
"id": "string",
"name": "string",
"version": {
"version": 0
}
},
"enabled": false
}
boolean
enabled
Optional
A flag indicating whether DFW configuration is enabled or not.
Authentication
This operation uses the following authentication methods.
Errors
Error
400
Invalid configuration.
Error
404
The specified resource was not found
Code Samples
cURL Command
curl -X PUT -H "Content-Type: application/json" -d '{"defaultPolicy":{"description":"string","enabled":false,"id":"string","name":"string","version":{"version":0}},"enabled":false}' https://{api_host}/cloudapi/1.0.0/vdcGroups/{vdcGroupId}/dfwPolicies
[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Availability
Added in 35.0
On This Page
DFW Policies Operations
get