VMware VSHIELD APP 1.0 - API Uživatelský manuál Strana 38

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 104
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 37
vShield API Programming Guide
38 VMware, Inc.
Get Capabilities of a vShield Edge
ThiscallreturnscapabilitiesofthevShieldEdgeinstalledonthespecifiedportgroup.
The<internal-portgroup-vc-moref-id>isthemanagedobjectreferenceofanetworkordvPortGroup.
Example 5-3. Get Capabilities of a vShield Edge
Request:
GET https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge/capability
ForthespecifiedvShieldEdge,itshowscapabilityfortheVPN,loadbalancer,NAT,firewall,DHCP,andstatic
routing.ItalsoshowsthedvPortGroup’sID,Edgeversionnumber,andcompatibilitymode.
Switch to New API Version
ThevShield4.1RESTcalls(APIversion1.0)workwhenvShield5.0(API2.0)isinbackwardcompatibility
mode.Inregularmode,afteryouenableAPI2.0,theRESTcallsarenotbackwardcompatible.Note:
ClientscancontinuetouseREST1.0ontheiralreadyinstalledEdges.NewEdgescanbealsobeinstalled
anduseREST1.0,howevernewfeaturesarenotavailablewithoutusingtheREST2.0API.
Tousenewfeaturesexposedinversion2.0oftheRESTAPI,youmustupgradethevShieldEdge(see
“RequestSyncorUpgrade”onpage 50)andswitchtothenewAPIversion(seeExample 54below).
Oncetheswitchismade,youcannotdowngradeto(revertto)version1.0oftheRESTAPI.
ThiscallshowninExample 54switchestheRESTmodetolatest,soREST1.0cannolongeradministerthe
vShieldEdgeassociatedwith<internal-portgroup-vc-moref-id>.Thecompatibilitymodeswitchesfrom
backwardcompatibilitytoregular.
Example 5-4. Enable new API on vShield Edge
Request:
PUT https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/enable
Get Full Configuration of a vShield Edge
ThisAPIisusedtoreadthefullconfigurationpresentonEdge.
The<internal-portgroup-vc-moref-id>isthemanagedobjectreferenceofanetworkordvPortGroup.
Example 5-5. Get capabilities of a vShield Edge
Request:
GET https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
Theresponsebodymayincludetheseserviceconfigurationtags:installParams,routeConfig,natConfig,
firewallConfig,dhcpConfig,dhcpService,loadBalancerConfig,loadBalancerService,certificateStoreConfig,
ipsecSiteToSiteConfig,ipsecSiteToSiteService,syslogServerConfig,amongothers.
Change Configuration of a vShield Edge
ThiscallchangestheconfigurationofavShieldEdge.The<internal-portgroup-vc-moref-id>isthe
managedobjectreferenceofadvPortGroup.Allservices,orjustone,canbeconfiguredusingthiscall.
AvShieldEdgelicenseisrequired.EdgeBasiclicenseincludes:Install,NAT,Firewall,DHCP,staticrouting.
EdgePremiumlicensehandles:LoadBalancer,
VPN.
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 103 104

Komentáře k této Příručce

Žádné komentáře