[{"label":"Latest (v37.0)","version":"latest"},{"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

Description

Updates 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

Request

URL

URL


put
https://{api_host}/cloudapi/1.0.0/vdcGroups/{vdcGroupId}/dfwPolicies
Copy

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
}
defaultPolicy Optional

The default DFW security policy for the security domain.


boolean
enabled Optional

A flag indicating whether DFW configuration is enabled or not.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

202 Accepted

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

Errors

Errors

400

Invalid configuration.


404

The specified resource was not found

Code Samples

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.0)","version":"latest"},{"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
DFW Policies Operations
Feedback

Was this page helpful?