VMware VSHIELD APP 1.0 - API Manuel d'utilisateur Page 72

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 132
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 131 132

Commentaires sur ces manuels

Pas de commentaire