Get Timestamps Of Last 10 Snat Rule Configurations For A Vshield Edge; Get Snat Configuration By Snapshot Timestamp; Revert To An Snat Configuration By Snapshot Timestamp - VMware VSHIELD APP 1.0 - API Programming Manual

Vshield api
Table of Contents

Advertisement

SNAT does not support port and protocol parameters.
Example:
Multiple SNAT Rules
POST /api/1.0/network/network-244/snat/rules HTTP/1.1
content-type: application/xml; charset=UTF-8
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: 10.112.196.213
accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
content-length: 310
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
SNAT Rule with IP Range
content-length: 563
<?xml version="1.0" encoding="UTF-8"

Get Timestamps of Last 10 SNAT Rule Configurations for a vShield Edge

Example 5-13. Get Last 10 SNAT Rule Set Snapshots
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/snat/snapshots

Get SNAT Configuration by Snapshot Timestamp

Example 5-14. Get SNAT Configuration by Snapshot Timestamp
Request
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/

Revert to an SNAT Configuration by Snapshot Timestamp

Example 5-15. Revert to an SNAT Configuration by Snapshot Timestamp
Request:
PUT <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/
VMware, Inc.
<VShieldEdgeConfig><NATConfig><NATRule><internalIpAddress><ipAddress>172.17.1.
11</ipAddress></internalIpAddress><externalIpAddress><ipAddress>10.112.196.219
</ipAddress></externalIpAddress></NATRule></NATConfig></VShieldEdgeConfig>
standalone="yes"?><VShieldEdgeConfig><NATConfig><NATRule><internalIpAddress><I
pRange><rangeStart>172.17.1.40</rangeStart><rangeEnd>172.17.1.45</rangeEnd></I
pRange></internalIpAddress><externalIpAddress><IpRange><rangeStart>10.112.196.
218</rangeStart><rangeEnd>10.112.196.219</rangeEnd></IpRange></externalIpAddre
ss></NATRule><NATRule><internalIpAddress><ipAddress>172.17.1.54</ipAddress></i
nternalIpAddress><externalIpAddress><ipAddress>10.112.196.217</ipAddress></ext
ernalIpAddress></NATRule></NATConfig></VShieldEdgeConfig>
snat/snapshot/<snapshot-timestamp>
snat/snapshot/<snapshot-timestamp>
Chapter 5 vShield Edge Management
31

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents