Add Tunnels For A Vpn Site; Get The Detailed Ipsec Configurations For A Network; Get The Detailed Configuration For A Vpn Site - VMware VSHIELD APP 1.0 - API Programming Manual

Vshield api
Table of Contents

Advertisement

vShield API Programming Guide

Add Tunnels for a VPN Site

This call adds tunnels to the specified VPN site.
Example 5-36. Adding Tunnels for a VPN Site
Request:
POST <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/vpn/ipsec/<site-name>/connections
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-37. Getting the Detailed VPN Configuration for a Network
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/vpn/ipsec/detailedconfig
Example:
GET /api/1.0/network/dvportgroup-1004/vpn/ipsec/detailedconfig HTTP/1.1
Host: localhost:9998
authorization: Basic YWRtaW46ZGVmYXVsdA==

Get the Detailed Configuration for a VPN Site

You can retrieve a detailed VPN configuration for a site that contains the VPN server configuration, site 
configuration, tunnel configuration, and the detailed configuration of all tunnels for the site.
Example 5-38. Getting the Detailed Configuration for a VPN Site
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/vpn/ipsec/<site-name>/detailedconfig
Example:
GET /api/1.0/network/resgroup-v107/vpn/ipsec/site01/detailedconfig HTTP/1.1
Host: localhost:9998
authorization: Basic YWRtaW46ZGVmYXVsdA==
42
<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></VShieldEdge
Config>
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents