Management Plane API >
Security
>
Services
>
Firewall
Get firewall status for target resource in dfw context
Request:
Method:
GET
URI Path(s):
/api/v1/firewall/status/<context-type>/<id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a
Example Request:
GET https://<nsx-mgr>/api/v1/firewall/status/logical_routers/1253495c-ffe8-4d44-8ea7-37fe9fe2d97f
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TargetResourceStatus
+
TargetResourceStatus
(
schema
)
Name
Description
Type
Notes
target_id
Target ID
Identifier of the NSX resource.
string
Maximum length: 64
target_status
Firewall Status Type
Firewall status on a target logical resource.
FirewallStatusType
Required
Example Response:
{ "target_id": "1253495c-ffe8-4d44-8ea7-37fe9fe2d97f", "status": "ENABLED" }
Required Permissions:
read
Feature:
firewall_general
Description:
Fetches firewall status for a given target resource in supported dfw context types e.g. 'A specific logical router'
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable