Force A Vshield Edge To Synchronize With The Vshield Manager; Manage Cli Credentials On A Vshield Edge; Managing Dhcp - VMware VSHIELD APP 1.0 - API Programming Manual

Vshield api
Table of Contents

Advertisement

vShield API Programming Guide

Force a vShield Edge to Synchronize with the vShield Manager

If the configuration of a vShield Edge is out of sync with what shows in the vShield Manager user interface, 
you can force the vShield Manager to push the latest configuration to a vShield Edge.
Example 5-1. Forcing a vShield Edge to Sync with the vShield Manager
Request:
PUT <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/action/forcesync
Example:
PUT /api/1.0/network/network-244/action/forcesync HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost

Manage CLI Credentials on a vShield Edge

You can set and change login credentials for the CLI on a vShield Edge virtual appliance via REST. 
You can change the default CLI login credentials (username admin and password default) on a vShield Edge 
via REST. 
You can use lower‐case letters, numbers, and underscores in the CLI username. The username must start with 
a letter and be between 1 and 33 characters in length. The password cannot have spaces and must be at least 1 
character in length.
For the schema, see "vShield Edge CLI Login Credentials Schema" on page 76.
Example 5-2. Managing CLI Credentials on a vShield Edge
Request:
PUT <vshield_manager-uri>/api/1.0/network/<portgroup-moid>/cli/credentials
Example:
PUT /api/1.0/network/network-244/cli/credentials HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: 10.112.196.213
<?xml version="1.0" encoding="UTF-8"

Managing DHCP

vShield Edge provides DHCP service to bind assigned IP addresses to MAC addresses. All virtual machines 
protected by a vShield Edge can obtain IP addresses dynamically from the vShield Edge DHCP service.
vShield Edge supports IP address pooling and one‐to‐one static IP address allocation based on the vCenter 
managed object ID (vmid) and interface ID (interfaceId) of the requesting client.
vShield Edge DHCP service adheres to the following rules:
Listens on the vShield Edge internal interface (InternalInterface) for DHCP discovery.
Uses the IP address of the internal interface on the vShield Edge as the default gateway address for all 
clients, and the broadcast and subnetMask values of the internal interface for the container network.
All DHCP settings configured by using REST requests appear under the vShield Edge > DHCP tab for the 
appropriate vShield Edge in the vShield Manager user interface and vSphere Client plug‐in.
For the DHCP schema, see "DHCP Schema" on page 81.
26
standalone="yes"?><VShieldEdgeConfig><CLILoginCredentials><username>newuser</usern
ame><password>newpasswd</password></CLILoginCredentials></VShieldEdgeConfig>
VMware, Inc.

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

Subscribe to Our Youtube Channel

Table of Contents