NSX-T Data Center REST API

Enable firewall on target resource in dfw context (Deprecated)

Deprecated:
Use the following Policy APIs -
PUT|PATCH /policy/api/v1/infra/tier-0s/<tier-0-id>
PUT|PATCH /policy/api/v1/infra/tier-1s/<tier-1-id>
The disable_firewall property must be set to false.

Request:

Method:
POST
URI Path(s):
/api/v1/firewall/status/{context-type}/{id}?action=enable_firewall
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TargetResourceStatus+

Example Response:

{ "target_id": "1253495c-ffe8-4d44-8ea7-37fe9fe2d97f", "target_status": "ENABLED" }

Required Permissions:

crud

Feature:

firewall_general Description:
Enable firewall on a target resource in dfw context types e.g. 'A specific logical router'

Additional Errors: