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
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
Example 5-4. Managing CLI Credentials on a vShield Edge
Request:
PUT <vshield_manager-uri>/api/1.0/network/<vdc-moref-id>/cli/credentials
Managing DHCP
vShield Edge provides DHCP service to bind assigned IP addresses to MAC addresses, preventing MAC
spoofing attacks. 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
Get the DHCP Server Status
Example 5-5. Getting the Status of the DHCP Service on a vShield Edge
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/dhcp/service
Example:
GET /api/1.0/network/network-244/dhcp/service HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: 10.112.196.213
Start, Stop, or Restart the DHCP Service
Example 5-6. Starting or Stopping the DHCP Service on a vShield Edge
Request:
PUT <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/dhcp/action/
VMware, Inc.
"vShield Edge CLI Login Credentials Schema"
"DHCP Schema"
{start | stop | restart}
and password
on page 74.
on page 79.
Chapter 5 vShield Edge Management
) on a vShield Edge
25
Need help?
Do you have a question about the VSHIELD APP 1.0.0 UPDATE 1 - API and is the answer not in the manual?
Questions and answers