
VMware, Inc. 27
Chapter 2 vShield Manager Management
List MACsets Created on a Scope
YoucanretrievealltheMACsetsthatwerecreatedonthespecifiedscope.
Example 2-33. List MACsets on a scope
Request:
GET https://<vsm-ip>/api/2.0/services/macset/scope/<scope-moref>
The<scope-moref>canbeadatacenterorportgroupofthevCentertowhichvShieldManagerisconnected.
Create a MACset on a Scope
YoucancreateaMACsetonthespecifiedscope.Onsuccess,theAPIreturnsastringidentifierforthenew
MACset.
Example 2-34. Create MACset on a scope
Request:
POST https://<vsm-ip>/api/2.0/services/macset/scope/<scope-moref>
RequestBodyExample:
<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,aa:bb:cc:dd:ee:ff</value>
</macset>
The<scope-moref>canbeadatacenterorportgroupofthe vCentertowhichvShieldManagerisconnected.
Intherequestbodyexample,acomma‐separatedlistofMACaddressesisspecified.
Get Details of a MACset
YoucanretrievedetailsaboutaMACset.
Example 2-35. Get details of a MACset
Request:
GET https://<vsm-ip>/api/2.0/services/macset/<macset-id>
The<MACset-id>isasreturnedbylistingtheMACsetonascope.
Modify an Existing MACset
YoucanmodifyanexistingMACsetandretrievedetailsaboutthemodifiedMACset.
Example 2-36. Modify details of a MACsets
Request:
PUT https://<vsm-ip>/api/2.0/services/MACset/<MACset-id>
RequestBodyExample:
Commenti su questo manuale