VMware VSHIELD APP 1.0 - API Manuale Utente Pagina 72

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 132
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 71
vShield API Programming Guide
72 VMware, Inc.
Example 6-15. Get SpoofGuard settings
Example:
GET https://<vsm-ip>/api/2.0/spoofGuard/<contextID>?list=<querytype>
Where
contextIDcanbethedatacenterIDornetworkIDoftheportGroupwhichhasbeenmarkedas
namespace.
querytypecanbeoneofthese:status,active,inActive,activeSinceLastPublished,requireReview,
duplicates,orunPublished.
Save SpoofGuard IP Settings
YoucansavealistofSpoofGuardsettings.
Example 6-16. Save SpoofGuard settings
Example:
POST https://<vsm-ip>/api/2.0/spoofGuard/<contextID>?action=<todo>
The<todo>actioncouldbeoneof:approve,delete,publish,saveApproved.
AnXMLrepresentationofVnicIdListisexpectedinthemessagebodyfordeleteandapproveactions.Ifthe
actionispublishthennomessagebodyisrequired.IftheactionissaveApprovedthenanXMLrepresentation
ofVnicInfoisexpected.
Working with Namespaces
AvShieldnamespaceisasetofvNICsthatshareacommonIPaddressdomain.Theydonothaveoverlapping
IPaddresses,sotheyarereachableallatoncebysimpleroutingorswitching.ThereisnoNATbetweenthem.
AnyIPaddressinthenamespacereferstothesamevNIC
regardlessofwhereyoulookatitfromwithinthe
IPaddressdomain.
Adatacenter(asmanagedbyvCenterServer)storesalistofvShieldnamespaces.Thenamespaceitselfcan
specifyanetworknameasanobjectID,oritcancontainalistofIPaddresses.
Add Namespace in a Datacenter
YoucandefineanewvShieldnamespaceinthedatacenterspecifiedby<datacenter-id>.
Example 6-17. Add namespace in a datacenter
Request:
POST https://<vsm-ip>/api/2.0/namespace/datacenter/<datacenter-id>
RequestBody:
<VshieldConfiguration xmlns="vmware.vshield.global.20.namespace">
<namespace type="PORTGROUP" id="0">
<namespacePortGroup>
<id>network-184</id>
</namespacePortGroup>
</namespace>
</VshieldConfiguration>
Intherequest,<namespace-id>specifiesthevShieldnamespacename.
Vedere la pagina 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 131 132

Commenti su questo manuale

Nessun commento