
VMware, Inc. 25
Chapter 2 vShield Manager Management
Delete a Security Group
Youcandeleteanexistingsecuritygroup.Theforce=flagindicatesifthedeleteshouldbeforcedorunforced.
Withforceddelete,theobjectisdeletedevenifusedinotherplacessuchasfirewallrules,causinginvalid
referrals.Forunforceddelete,theobjectisdeletedonlyifitisnot
usedbyotherconfiguration;otherwisethe
deletefails.
Example 2-33. Delete a security group
Request:
DELETE https://<vsm-ip>/api/2.0/services/securitygroup/<securitygroup-id>?force=<true|false>
Noinputrepresentationisneeded.Onsuccess,thisrequestreturns200HTTPOK.
Add Member to Security Group
Youcanaddanewmembertoasecuritygroup.
Example 2-34. Add a member to a security group
Request:
PUT https://<vsm-ip>/api/2.0/services/securitygroup/<securitygroup-id>/members/<member-moref>
Noinputrepresentationisneeded.Onsuccess,thisrequestreturns200HTTPOK.
Delete Member from Security Group
ThisAPIremovesamemberfromasecuritygroup.
Example 2-35. Delete member from a security group
Request:
DELETE https://<vsm-ip>/api/2.0/services/securitygroup/<securitygroup-id>/members/<member-moref>
Noinputrepresentationisneeded.Onsuccess,thisrequestreturns200HTTPOK.
Transport Set for Applications
ThevShieldtransportsetAPIsareusedtomanipulateapplications,andcontroltwotypesofresources:
Scope–identifiesthescopeofavShieldManagerobject,whichcanbeeitheravSpheredatacenterora
portgroup(legacyordvPortgroup).Applicationscanbecreatedonlyonvalidscopes.
Application–Thisisthemainapplicationobjectitself.
List Applications on a Scope
Youcanretrievealistofapplicationsthathavebeencreatedonthescopespecifiedbymanagedobject
reference<moref>.
Example 2-36. List applications on a given scope
Request:
GET https://<vsm-ip>/api/2.0/services/application/scope/<moref>
Anon‐existentscoperesultsina400BadRequesterror.
Comentários a estes Manuais