
vShield API Programming Guide
30 VMware, Inc.
Get Timestamps of Last 10 SNAT Rule Configurations for a vShield Edge
Example 5-15. Get Last 10 SNAT Rule Set Snapshots
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/snat/snapshots
Get SNAT Configuration by Snapshot Timestamp
Example 5-16. Get SNAT Configuration by Snapshot Timestamp
Request
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
snat/snapshot/<snapshot-timestamp>
Revert to an SNAT Configuration by Snapshot Timestamp
Example 5-17. Revert to an SNAT Configuration by Snapshot Timestamp
Request:
PUT <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
snat/snapshot/<snapshot-timestamp>
Delete All SNAT Rules on a vShield Edge
Example 5-18. Delete All SNAT Rules on a vShield Edge
Request:
DELETE <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/snat/rules
Example:
DELETE /api/1.0/network/network-244/snat/rules HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host:sdfsdf
Managing DNAT Rules
DNATmapspublicaddressestointernaladdresses.IfyouusePortGroupIsolation,youmustconfigure
DNATrulestoallowtrafficfromtheexternalnetworktotheinternalnetwork.
ThevShieldEdgesupportstwoformsofDNAT:
TraffictargetingapublicaddressisforwardedtoaninternalhostwiththegiveninternalIPaddress.
Traffictargetingaspecificportofapublicaddressisforwardedtoaninternalhostwiththegiveninternal
IPaddressonthespecifiedport.
Get the DNAT Rule Set
Example 5-19. Get the DNAT Rule Set on a vShield Edge
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/dnat/rules
Commenti su questo manuale