Get Details Of A Specific Firewall Rule; Get Timestamps Of Last 10 Firewall Rule Sets For A Vshield Edge; Get Firewall Rule Set By Timestamp; Revert To A Firewall Rule Set By Timestamp - VMware VSHIELD APP 1.0.0 UPDATE 1 - API Programming Manual

Vshield api
Hide thumbs Also See for VSHIELD APP 1.0.0 UPDATE 1 - API:
Table of Contents

Advertisement

vShield API Programming Guide
Example:
PUT /api/1.0/network/network-244/firewall/default/allow HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: 10.112.196.213

Get Details of a Specific Firewall Rule

You can view the details of a specific firewall rule applied on a vShield Edge.
Example 5-29. Get a Firewall Rule
Request:
GET <vShield_Manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/

Get Timestamps of Last 10 Firewall Rule Sets for a vShield Edge

Example 5-30. Get Last 10 Firewall Rule Set by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/firewall/snapshots

Get Firewall Rule Set by Timestamp

Example 5-31. Get Firewall Rule Set by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/

Revert to a Firewall Rule Set by Timestamp

Example 5-32. Revert to an DNAT Configuration by Snapshot Timestamp
Request:
PUT <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/

Delete All Firewall Rules on a vShield Edge

If you delete all firewall rules on a vShield Edge agent, the agent enforces the default policy on all incoming
and outgoing traffic sessions.
Example 5-33. Delete All Firewall Rules on a vShield Edge
Request:
DELETE <vShield_Manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/firewall/rules
36
firewall/rules/<rule-id>
firewall/snapshot/<snapshot-timestamp>
firewall/snapshot/<snapshot-timestamp>
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents