
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:
Scope–ThisidentifiesavShieldManagerscopeobject,whichcaneitherbeavCenterdatacenterora
PortGroup(standardordistributedvirtualswitch).Securitygroupscanonlybecreatedonvalidscopes.
Members–Thesecuritygroupobjectcontainsmembers.
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:
Commentaires sur ces manuels