VMware VSHIELD APP 1.0 - API User Manual Page 21

  • Download
  • Add to my manuals
  • Print
  • Page
    / 104
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 20
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.
Page view 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 103 104

Comments to this Manuals

No comments