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

  • 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 22
VMware, Inc. 23
Chapter 2 vShield Manager Management
<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-27. 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-28. 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-29. Create new security group
Request:
POST https://<vsm-ip>/api/2.0/services/securitygroup/<scope-moref>
Example:
Zobrazit stránku 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 103 104

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

Žádné komentáře