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

  • 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 27
vShield API Programming Guide
28 VMware, Inc.
<macset>
<objectId />
<type>
<typeName />
</type>
<description>Some description</description>
<name>TestMACSet1</name>
<revision>0</revision>
<objectTypeName />
<value>22:33:44:55:66:77,00:11:22:33:44:55</value>
</macset>
The<MACset-id>isasreturnedbylistingtheMACsetonascope.Intherequestbodyexample,oneMAC
addressfewerisspecified.
Delete a MACset
YoucandeleteaMACset.Thetrailingbooleanflagindicatesforcedorunforceddelete.Withforceddelete,the
objectisdeletedevenifusedinotherplacessuchasfirewallrules,causinginvalidreferrals.Forunforced
delete,theobjectisdeletedonlyifitisnotusedbyotherconfiguration;otherwise
thedeletefails.
Example 2-37. Delete a MACset
Request:
DELETE https://<vsm-ip>/api/2.0/services/macset/<macset-id>
Noinputrepresentationisneeded.Onsuccess,thisrequestreturns200HTTPOK.
Security Group Scope and Members
APIsareavailablefortwotypesofresources:
ScopeThisidentifiesavShieldManagerscopeobject,whichcaneitherbeavCenterdatacenterora
PortGroup(standardordistributedvirtualswitch).Securitygroupscanonlybecreatedonvalidscopes.
MembersThesecuritygroupobjectcontainsmembers.
List Security Groups Created on a Scope
Youcanretrieveallthesecuritygroupsthathavebeencreatedonaspecificscope.
Example 2-38. Get existing security groups
Request:
GET https://<vsm-ip>/api/2.0/services/securitygroup/scope/<scope-moref>
The<scope-moref>couldbethemanagedobjectreferenceofadatacenter.
Create Security Group on a Scope
Youcancreateanewsecuritygrouponthespecifiedscope.
Example 2-39. Create new security group
Request:
POST https://<vsm-ip>/api/2.0/services/securitygroup/<scope-moref>
Example:
Vue de la page 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 131 132

Commentaires sur ces manuels

Pas de commentaire