vShield API Programming Guide
Get Timestamps of Last 10 VPN Configurations
You can retrieve a list of the last 10 VPN configuration changes. You can use the returned timestamps to review
the details of past configurations in a separate request.
Example 5-43. Getting Last 10 VPN Configurations by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/vpn/snapshots
Get a VPN Configuration by Timestamp
You can retrieve and view a specific historical VPN configuration by specifying the timestamp when the
configuration was overwritten.
Example 5-44. Getting a VPN Configuration by Timestamp
Request
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/
Revert to a VPN Configuration by Timestamp
You can revert to a previous VPN configuration by specifying the timestamp of the previous configuration.
Example 5-45. Reverting to a VPN configuration by timestamp
Request:
PUT <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/
Delete the VPN Configuration on a vShield Edge
You can delete the current VPN configuration to clear VPN settings from the vShield Edge running
configuration. The vShield Edge saves the deleted configuration by marking it with a timestamp.
Example 5-46. Deleting the VPN Configuration on a vShield Edge
Request:
DELETE <vShield_Manager-uri>/api/1.0/network/<portgroup-moid>/
Example:
DELETE /api/1.0/network/network-244/vpn/ipsec/config HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
44
vpn/snapshot/<snapshot-timestamp>
vpn/snapshot/<snapshot-timestamp>
vpn/ipsec/config
VMware, Inc.