VMware VSHIELD APP 1.0 - API Uživatelský manuál Strana 25

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 104
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 24
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:
ScopeidentifiesthescopeofavShieldManagerobject,whichcanbeeitheravSpheredatacenterora
portgroup(legacyordvPortgroup).Applicationscanbecreatedonlyonvalidscopes.
ApplicationThisisthemainapplicationobjectitself.
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>
Anonexistentscoperesultsina400BadRequesterror.
Zobrazit stránku 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 103 104

Komentáře k této Příručce

Žádné komentáře