
vShield API Programming Guide
46 VMware, Inc.
Delete Load Balancer Configuration
Example 5-23. Delete load balancer configuration
POST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<loadbalancerConfig/>
</vshieldEdgeConfig>
Miscellaneous
YoualsousetheEdgePOSTcalltoreconfigureIPinterfaces,changecredentials,andstartremotelogging.
Reconfigure Edge Interfaces
Example 5-24. Reconfigure IP interfaces
POST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<applianceConfig>
<hostName>vShieldEdge-network-12</hostName>
<interface>
<networkId>network-12</networkId>
<ipAddress>192.168.10.12</ipAddress>
<subnetMask>255.255.255.0</subnetMask>
<mtu>1500</mtu>
</interface>
<interface>
<isUplink>true</isUplink>
<networkId>network-13</networkId>
<ipAddress>10.112.2.151</ipAddress>
<subnetMask>255.255.254.0</subnetMask>
<defaultGw>10.112.3.253</defaultGw>
<mtu>2000</mtu>
</interface>
</applianceConfig>
</vshieldEdgeConfig>
YoucannotchangethemacAddressortheportGroupoftheinterfacethatiscurrentlyattached.
Set vShield Edge Credentials
Example 5-25. Set vShield Edge credentials
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<cliLoginCredentials>
<username>test</username>
<password>new-secret</password>
</cliLoginCredentials>
</vshieldEdgeConfig>
Configure Remote Logging
YoucanconfigurearemotesyslogserverforvShieldloggingatthedesignatedIPaddress.Amaximumof
twoIPaddressescanbeconfigured.
Example 5-26. Configure remote logging
POST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<syslogServerConfig>
<ipAddress>10.112.2.149</ipAddress>
</syslogServerConfig>
Commentaires sur ces manuels