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

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 132
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 131 132

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

Žádné komentáře