
VMware, Inc. 27
Chapter 5 vShield Edge Management
Example:
GET /api/1.0/network/network-244/dhcp/config HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: 10.112.196.213
Get Timestamps of Last 10 DHCP Configurations
Youcangetalistofthelast10DHCPconfigurationsbytimestamp.
Example 5-9. Getting Last 10 DHCP Configurations
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/dhcp/snapshots
Get a DHCP Configuration by Timestamp
YoucanviewthedetailsofapastDHCPconfigurationbyspecifyingthetimestampofthesnapshot.
Example 5-10. Getting a DHCP Configuration by Snapshot Timestamp
Request:
GET <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
dhcp/snapshot/<snapshot-timestamp>
Revert to a DHCP Configuration by Timestamp
YoucanreverttoapreviousDHCPconfigurationbyspecifyingthetimestampofthesnapshot.Thecurrent
configurationissavedforfuturereference.
Example 5-11. Revert to an DHCP Configuration by Timestamp
Request:
PUT <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/
dhcp/snapshot/<snapshot-timestamp>
Delete the DHCP Configuration on a vShield Edge
YoucandeletethecurrentDHCPconfigurationavShieldEdge.
Example 5-12. Delete the DHCP Configuration on a vShield Edge
Request:
DELETE <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/dhcp/config
Example:
DELETE /api/1.0/network/network-244/dhcp/config HTTP/1.1
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: 10.112.196.213
Komentáře k této Příručce