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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 132
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 27
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:
ScopeThisidentifiesavShieldManagerscopeobject,whichcaneitherbeavCenterdatacenterora
PortGroup(standardordistributedvirtualswitch).Securitygroupscanonlybecreatedonvalidscopes.
MembersThesecuritygroupobjectcontainsmembers.
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:
Vista de página 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 131 132

Comentários a estes Manuais

Sem comentários