
VMware, Inc. 45
Chapter 5 vShield Edge Management
AddaloadbalancerinIP:Portformat
Content-Length: 539
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><VShieldEdgeConfig><LoadBalancerConfig><Listener>
<externalIPAddress>10.112.196.218</externalIPAddress><BackEndServers>
<internalIPList>172.17.1.11:8080,172.17.1.12:8081</internalIPList>
</BackEndServers><algorithm>ip-hash</algorithm></Listener><Listener>
<externalIPAddress>10.112.196.219</externalIPAddress><BackEndServers>
<internalIPList>172.17.1.13:80,172.17.1.14</internalIPList></BackEndServers>
<algorithm>round-robin</algorithm></Listener></LoadBalancerConfig>
</VShieldEdgeConfig>
Get the Current Load Balancer Configuration on a vShield Edge
YoucanretrievethecurrentLoadBalancerconfigurationonavShieldEdgetoviewsettingssuchasconfigured
listeners.
Example 5-52. Getting All Load Balancer Servers on a vShield Edge
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/loadbalancer
Example:
GET /api/1.0/network/network-244/loadbalancer HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:80
Get the Configuration of a Specific Load Balancing Server
YoucanretrievethecurrentconfigurationofasingleLoadBalancerlisteneronavShieldEdge.
Example 5-53. Getting the Configuration of a Specific Load Balancing Server
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
loadbalancer/<loadbalancer-id>
Example:
GET /api/1.0/network/network-244/loadbalancer/3 HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:80
Get Timestamps of Last 10 Load Balancer Configurations
Youcanretrievealistofthelast10LoadBalancerconfigurationchanges.Youcanusethereturnedtimestamps
toreviewthedetailsofpastconfigurationsinaseparaterequest.
Example 5-54. Getting the Last 10 Load Balancer Configurations by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
loadbalancer/snapshots
Commentaires sur ces manuels