VMware VSHIELD APP 1.0 - API Manual do Utilizador Página 26

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 132
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 25
vShield API Programming Guide
26 VMware, Inc.
<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-30. 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-31. 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-32. Delete an IPset
Request:
DELETE https://<vsm-ip>/api/2.0/services/ipset/<ipset-id>
Noinputrepresentationisneeded.Onsuccess,thisrequestreturns200HTTPOK.
Vista de página 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 131 132

Comentários a estes Manuais

Sem comentários