
VMware, Inc. 21
Chapter 2 vShield Manager Management
<value>10.112.201.8-10.112.201.14</value>
</ipset>
The<scope-moref>canbeadatacenterorportgroupofthe vCentertowhichvShieldManagerisconnected.
Intherequestbodyexample,arangeofIPaddressesonthe10.112netisspecified(201.8to201.14).
Get Details of an IPset
YoucanretrievedetailsaboutanIPset.
Example 2-20. Get details of an IPset
Request:
GET https://<vsm-ip>/api/2.0/services/ipset/<ipset-id>
The<ipset-id>isasreturnedbylistingtheIPsetonascope.
Modify an Existing IPset
YoucanmodifyanexistingIPsetandretrievedetailsaboutthemodifiedIPset.
Example 2-21. Modify an IPset
Request:
PUT https://<vsm-ip>/api/2.0/services/ipset/<ipset-id>
RequestBodyExample:
<ipset>
<objectId />
<type>
<typeName />
</type>
<description>
New Description
</description>
<name>TestIPSet2</name>
<revision>0</revision>
<objectTypeName />
<value>10.112.201.8-10.112.201.21</value>
</ipset>
The<ipset-id>isasreturnedbylistingtheIPsetonascope.Intherequestbodyexample,theIPaddress
rangeisdoubled.
Delete an IPset
YoucandeleteanIPset.Thetrailingbooleanflagindicatesforcedorunforceddelete.Withforceddelete,the
objectisdeletedevenifusedinotherplacessuchasfirewallrules,causinginvalidreferrals.Forunforced
delete,theobjectisdeletedonlyifitisnotusedbyotherconfiguration;otherwise
thedeletefails.
Example 2-22. Delete an IPset
Request:
DELETE https://<vsm-ip>/api/2.0/services/ipset/<ipset-id>
Noinputrepresentationisneeded.Onsuccess,thisrequestreturns200HTTPOK.
Comentarios a estos manuales