Get The Current Load Balancer Configuration On A Vshield Edge; Get The Configuration Of A Specific Load Balancing Server; Get Timestamps Of Last 10 Load Balancer Configurations - VMware VSHIELD APP 1.0 - API Programming Manual

Vshield api
Table of Contents

Advertisement

Add a load balancer in IP:Port format 
Content-Length: 539
<?xml version="1.0" encoding="UTF-8"

Get the Current Load Balancer Configuration on a vShield Edge

You can retrieve the current Load Balancer configuration on a vShield Edge to view settings such as configured 
listeners.
Example 5-50. Getting All Load Balancer Servers on a vShield Edge
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/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

You can retrieve the current configuration of a single Load Balancer listener on a vShield Edge.
Example 5-51. Getting the Configuration of a Specific Load Balancing Server
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/
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

You can retrieve a list of the last 10 Load Balancer configuration changes. You can use the returned timestamps 
to review the details of past configurations in a separate request.
Example 5-52. Getting the Last 10 Load Balancer Configurations by Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/
VMware, Inc.
standalone="yes"?><VShieldEdgeConfig><LoadBalancerConfig><Listener><externalIP
Address>10.112.196.218</externalIPAddress><BackEndServers><internalIPList>172.
17.1.11:8080,172.17.1.12:8081</internalIPList></BackEndServers><algorithm>ip-h
ash</algorithm></Listener><Listener><externalIPAddress>10.112.196.219</externa
lIPAddress><BackEndServers><internalIPList>172.17.1.13:80,172.17.1.14</interna
lIPList></BackEndServers><algorithm>round-robin</algorithm></Listener></LoadBa
lancerConfig></VShieldEdgeConfig>
loadbalancer/<loadbalancer-id>
loadbalancer/snapshots
Chapter 5 vShield Edge Management
47

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

Table of Contents