User manual VMWARE VSHIELD MANAGER 4.1 API PROGRAMMING GUIDE
Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets... DON'T FORGET : ALWAYS READ THE USER GUIDE BEFORE BUYING !!!
If this document matches the user guide, instructions manual or user manual, feature sets, schematics you are looking for, download it now. Lastmanuals provides you a fast and easy access to the user manual VMWARE VSHIELD MANAGER 4.1. We hope that this VMWARE VSHIELD MANAGER 4.1 user guide will be useful to you.
Lastmanuals help download the user guide VMWARE VSHIELD MANAGER 4.1.
You may also download the following manuals related to this product:
VMWARE VSHIELD MANAGER 4.1 QUICKSTART (1068 ko)
VMWARE VSHIELD MANAGER 4.1 ADMIN GUIDE (2157 ko)
Manual abstract: user guide VMWARE VSHIELD MANAGER 4.1API PROGRAMMING GUIDE
Detailed instructions for use are in the User's Guide.
[. . . ] vShield API Programming Guide
vShield Manager 4. 1 vShield App 1. 0 vShield Edge 1. 0 vShield Endpoint 1. 0
This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www. vmware. com/support/pubs.
EN-000434-00
vShield API Programming Guide
You can find the most up-to-date technical documentation on the VMware Web site at: http://www. vmware. com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware. com
Copyright © 2010 VMware, Inc. and international copyright and intellectual property laws. [. . . ] 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>/ snat/snapshot/<snapshot-timestamp>
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>/ snat/snapshot/<snapshot-timestamp>
VMware, Inc.
31
vShield API Programming Guide
Delete All SNAT Rules on a vShield Edge
Example 5-16. Delete All SNAT Rules on a vShield Edge Request:
DELETE <vshield_manager-uri>/api/1. 0/network/<portgroup-moid>/snat/rules
Example:
DELETE /api/1. 0/network/network-244/snat/rules HTTP/1. 1 Authorization: Basic YWRtaW46ZGVmYXVsdA== Host:sdfsdf
Managing DNAT Rules
DNAT maps public addresses to internal addresses. If you use Port Group Isolation, you must configure DNAT rules to allow traffic from the external network to the internal network. The vShield Edge supports two forms of DNAT:
Traffic targeting a public address is forwarded to an internal host with the given internal IP address. Traffic targeting a specific port of a public address is forwarded to an internal host with the given internal IP address on the specified port.
Get the DNAT Rule Set
Example 5-17. Get the DNAT Rule Set on a vShield Edge Request:
GET <vshield_manager-uri>/api/1. 0/network/<portgroup-moid>/dnat/rules
Example:
GET /api/1. 0/network/network-244/dnat/rules HTTP/1. 1 Authorization: Basic YWRtaW46ZGVmYXVsdA== Host: localhost
Post a DNAT Rule Set
You can post a DNAT rule set for a vShield Edge. The vShield Manager processes the posted XML file as a complete rule set for the specific vShield Edge. The current rule set is replaced with this new set of rules. Post a DNAT Rule Set on a vShield Edge Request:
POST <vshield_manager-uri>/api/1. 0/network/<portgroup-moid>/dnat/rules <VShieldEdgeConfig> <NATConfig> <NATRule> <protocol>tcp|udp|icmp|any</protocol> <internalIpAddress>see_below</internalIpAddress> <internalPort>see_below</internalPort> <externalIpAddress>see_below</externalIpAddress> <externalPort>see_below</externalPort> </NATRule> </NATConfig> </VShieldEdgeConfig>
32
VMware, Inc.
Chapter 5 vShield Edge Management
Rules:
You can add multiple DNAT rules by entering multiple <NATRule></NATRule> sections in the body. For <protocol /> options tcp and udp, you must specify internalPort and externalPort elements. For options icmp and any, the internalPort and externalPort elements are not expected. You must add <icmpType /> if you configure icmp as the protocol. To enable logging, add a <log /> element within <NATRule />. The externalIpAddress and internalIpAddress parameters can be entered in either of these formats.
<ipAddress>IpOrAny</ipAddress>
or
<IpRange> <rangeStart>low_ip_address</rangeStart> <rangeEnd>high_ip_address</rangeEnd> </IpRange>
The externalPort and internalPort parameters can be entered in either of these formats.
<port>PortOrAny</port>
or
<PortRange> <rangeStart>low_port</rangeStart> <rangeEnd>high_port</rangeEnd> </PortRange>
Example:
Multiple DNAT Rules
POST /api/1. 0/network/network-244/dnat/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: 617 <?xml version="1. 0" encoding="UTF-8" standalone="yes"?><VShieldEdgeConfig><NATConfig><NATRule><protocol>tcp</protoc ol><internalIpAddress><ipAddress>172. 16. 1. 11</ipAddress></internalIpAddress><i nternalPort><port>any</port></internalPort><externalIpAddress><ipAddress>10. 11 2. 196. 217</ipAddress></externalIpAddress><externalPort><port>any</port></exter nalPort></NATRule><NATRule><protocol>icmp</protocol><icmpType>any</icmpType><i nternalIpAddress><ipAddress>172. 16. 1. 11</ipAddress></internalIpAddress><extern alIpAddress><ipAddress>10. 112. 196. 218</ipAddress></externalIpAddress></NATRule ></NATConfig></VShieldEdgeConfig>
DNAT Rule with IP Range
content-length: 453 <?xml version="1. 0" encoding="UTF-8" standalone="yes"?><VShieldEdgeConfig><NATConfig><NATRule><protocol>tcp</protoc ol><internalIpAddress><IpRange><rangeStart>172. 17. 1. 10</rangeStart><rangeEnd>1 72. 17. 1. 15</rangeEnd></IpRange></internalIpAddress><internalPort><port>any</po rt></internalPort><externalIpAddress><ipAddress>10. 112. 196. 219</ipAddress></ex ternalIpAddress><externalPort><port>any</port></externalPort></NATRule></NATCo nfig></VShieldEdgeConfig>
VMware, Inc.
33
vShield API Programming Guide
DNAT Rule with Port Range
content-length: 518 <?xml version="1. 0" encoding="UTF-8" standalone="yes"?><VShieldEdgeConfig><NATConfig><NATRule><protocol>tcp</protoc ol><internalIpAddress><ipAddress>172. 17. 1. 11</ipAddress></internalIpAddress><i nternalPort><PortRange><rangeStart>15</rangeStart><rangeEnd>19</rangeEnd></Por tRange></internalPort><externalIpAddress><ipAddress>10. 112. 196. 219</ipAddress> </externalIpAddress><externalPort><PortRange><rangeStart>9915</rangeStart><ran geEnd>9919</rangeEnd></PortRange></externalPort></NATRule></NATConfig></VShiel dEdgeConfig>
DNAT Rule with IP and Port Range
content-length: 627 <?xml version="1. 0" encoding="UTF-8" standalone="yes"?><VShieldEdgeConfig><NATConfig><NATRule><protocol>tcp</protoc ol><internalIpAddress><IpRange><rangeStart>172. 17. 1. 15</rangeStart><rangeEnd>1 72. 17. 1. 19</rangeEnd></IpRange></internalIpAddress><internalPort><PortRange><r angeStart>15</rangeStart><rangeEnd>19</rangeEnd></PortRange></internalPort><ex ternalIpAddress><IpRange><rangeStart>10. 112. 196. 215</rangeStart><rangeEnd>10. 1 12. 196. 219</rangeEnd></IpRange></externalIpAddress><externalPort><PortRange><r angeStart>9915</rangeStart><rangeEnd>9919</rangeEnd></PortRange></externalPort ></NATRule></NATConfig></VShieldEdgeConfig>
Get Timestamps of Last 10 DNAT Rule Configurations for a vShield Edge
Example 5-19. Get Last 10 DNAT Rule Set Snapshots Request:
GET <vshield_manager-uri>/api/1. 0/network/<portgroup-moid>/dnat/snapshots
Get DNAT Configuration by Snapshot Timestamp
Example 5-20. Get DNAT Configuration by Snapshot Timestamp Request:
GET <vshield_manager-uri>/api/1. 0/network/<portgroup-moid>/ dnat/snapshot/<snapshot-timestamp>
Revert to an DNAT Configuration by Snapshot Timestamp
Example 5-21. Revert to an DNAT Configuration by Snapshot Timestamp Request:
PUT <vshield_manager-uri>/api/1. 0/network/<portgroup-moid>/ dnat/snapshot/<snapshot-timestamp>
34
VMware, Inc.
Chapter 5 vShield Edge Management
Delete All DNAT Rules
Example 5-22. Delete All DNAT Rules on a vShield Edge Request:
DELETE <vshield_manager-uri>/api/1. 0/network/<portgroup-moid>/dnat/rules
Example:
DELETE /api/1. 0/network/network-244/dnat/rules HTTP/1. 1 Authorization: Basic YWRtaW46ZGVmYXVsdA== Host:localhost
Configuring the vShield Edge Firewall
The vShield Edge provides firewall protection for incoming and outgoing sessions. The default firewall policy allows all traffic to pass. In addition to the default firewall policy, you can configure a set of rules to allow or deny traffic sessions to and from specific sources and destinations. [. . . ] data from VC failed for <> 40017=hostId is malformatted or of incorrect length : <>
Uninstalling the vShield Endpoint Service from an ESX Host
Before you uninstall the vShield Endpoint from the vShield Manager and ESX host, you must unregister the SVM from the vShield Endpoint service. CAUTION If any of the virtual machines that are running on the target ESX host cannot be migrated to another ESX host, these virtual machines must be powered off or migrated manually before the uninstallation can continue.
Unregister an SVM from vShield Endpoint
You must specify the virtual machine ID of the SVM to unregister the SVM from the vShield Endpoint service. Unregistering an SVM from vShield Endpoint Request:
DELETE <vshieldmanager-uri>/endpointsecurity/svm/<vmId>
Example:
DELETE /api/1. 0/endpointsecurity/svm/vm-1234 HTTP/1. 1 host: 10. 112. 199. 123:80 Authorization: Basic YWRtaW46ZGVmYXVsdA==
Response:
HTTP HTTP HTTP HTTP 204 No Content: The Endpoint Security VM is successfully unregistered. 401 Unauthorized: The username or password sent in Authorized header is wrong. [. . . ]
DISCLAIMER TO DOWNLOAD THE USER GUIDE VMWARE VSHIELD MANAGER 4.1 Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets... In any way can't Lastmanuals be held responsible if the document you are looking for is not available, incomplete, in a different language than yours, or if the model or language do not match the description. Lastmanuals, for instance, does not offer a translation service. Click on "Download the user manual" at the end of this Contract if you accept its terms, the downloading of the manual VMWARE VSHIELD MANAGER 4.1 will begin.