
vShield API Programming Guide
42 VMware, Inc.
Example:
GET /api/1.0/network/network-244/vpn/ipsec/config HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
Get Timestamps of Last 10 VPN Configurations
Youcanretrievealistofthelast10VPNconfigurationchanges.Youcanusethereturnedtimestampstoreview
thedetailsofpastconfigurationsinaseparaterequest.
Example 5-45. Getting Last 10 VPN Configurations by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/vpn/snapshots
Get a VPN Configuration by Timestamp
YoucanretrieveandviewaspecifichistoricalVPNconfigurationbyspecifyingthetimestampwhenthe
configurationwasoverwritten.
Example 5-46. Getting a VPN Configuration by Timestamp
Request
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
vpn/snapshot/<snapshot-timestamp>
Revert to a VPN Configuration by Timestamp
YoucanreverttoapreviousVPNconfigurationbyspecifyingthetimestampofthepreviousconfiguration.
Example 5-47. Reverting to a VPN configuration by timestamp
Request:
PUT <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
vpn/snapshot/<snapshot-timestamp>
Delete the VPN Configuration on a vShield Edge
YoucandeletethecurrentVPNconfigurationtoclearVPNsettingsfromthevShieldEdgerunning
configuration.ThevShieldEdgesavesthedeletedconfigurationbymarkingitwithatimestamp.
Example 5-48. Deleting the VPN Configuration on a vShield Edge
Request:
DELETE <vShield_Manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
vpn/ipsec/config
Example:
DELETE /api/1.0/network/network-244/vpn/ipsec/config HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
Commenti su questo manuale