Add Tunnels For A Vpn Site; Get The Detailed Ipsec Configurations For A Network - 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
<?xml version="1.0" encoding="UTF-8"

Add Tunnels for a VPN Site

This call adds tunnels to the specified VPN site.
Example 5-38. Adding Tunnels for a VPN Site
Request:
POST <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
Example
Where the remote site name is vsesite1.
POST /api/1.0/network/network-244/vpn/ipsec/vsesite1/connections
Content-Type: application/xml
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 391
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

Get the Detailed IPSec Configurations for a Network

You can retrieve a detailed VPN configuration for a network that contains the VPN server configurations, site
configurations, tunnel configurations, and the detailed configuration of all tunnels in all sites.
Example 5-39. Getting the Detailed VPN Configuration for a Network
Request:
GET <vshield_manager-uri>/api/1.0/network/<vdc-moref-id>/vpn/ipsec/detailedconfig
Example:
GET /api/1.0/network/dvportgroup-1004/vpn/ipsec/detailedconfig HTTP/1.1
Host: localhost:9998
authorization: Basic YWRtaW46ZGVmYXVsdA==
40
standalone="yes"?><VShieldEdgeConfig><VPNConfig><IpsecVPNConfig><SiteToSiteIpsec>
<VPNSite><Configuration><siteName>VSE2</siteName><remoteEndPointexternalIpAddress>
10.112.196.218</remoteEndPointexternalIpAddress><sharedSecret>psk2</sharedSecret>
<mtu>1500</mtu></Configuration><VPNTunnel><Configuration><tunnelName>tunnelVSE1
</tunnelName><remoteSiteSubnet>172.19.1.0/24</remoteSiteSubnet>
<encryptionAlgorithm>3des</encryptionAlgorithm></Configuration></VPNTunnel>
</VPNSite></SiteToSiteIpsec></IpsecVPNConfig></VPNConfig></VShieldEdgeConfig>
vpn/ipsec/<site-name>/connections
<VShieldEdgeConfig><VPNConfig><IpsecVPNConfig><SiteToSiteIpsec><VPNSite>
<VPNTunnel><Configuration><tunnelName>tunnelVSE1</tunnelName><remoteSiteSubnet>
172.19.1.0/24</remoteSiteSubnet><encryptionAlgorithm>3des</encryptionAlgorithm>
</Configuration></VPNTunnel></VPNSite></SiteToSiteIpsec></IpsecVPNConfig>
</VPNConfig></VShieldEdgeConfig>
VMware, Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VSHIELD APP 1.0.0 UPDATE 1 - API and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents