VMware VSHIELD APP 1.0 - API Manuel d'utilisateur Page 22

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 132
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 21
vShield API Programming Guide
22 VMware, Inc.
GET https://<vsm-ip>/api/2.0/services/usermgmt/user/<userId>
Userinformationincludesusername,fullname,emailaddress,whetherlocalornot,whetherenabled,
resourceobjects,roles,andscope.
Create a Local User on vShield Manager
YoucancreatealocalvShieldManageruser.
Example 2-18. Create a local user
RequestHeader:
POST https://<vsm-ip>/api/2.0/services/usermgmt/user/local
RequestBody:
<userInfo>
<userId>somebody</userId>
<password>123</password>
<fullname>Person Somebody</fullname>
<email>[email protected]</email>
<accessControlEntry>
<role>security_admin</role>
</accessControlEntry>
</userInfo>
Update a Local User Account
Youcanupdatealocaluseraccountincludingpassword.Ifapasswordisnotprovided,theexistingpassword
isretained.The<userId>variableintherequestheadershouldbesameastheonespecifiedinXML.TheAPI
returnsupdatedinformationfortheuser.
Example 2-19. Update a local user account
RequestHeader:
PUT https://<vsm-ip>/api/2.0/services/usermgmt/user/local/<userId>
RequestBody:
<userInfo>
<userId>somebody</userId>
<password>123</password>
<fullname>Person Somebody</fullname>
<email>[email protected]</email>
<accessControlEntry>
<role>security_admin</role>
<resource><resourceId>datacenter-312</resourceId></resource>
</accessControlEntry>
</userInfo>
Enable or Disable a User Account
Youcandisableorenableauseraccount,eitherlocaluserorvCenteruser.Whenauseraccountiscreated,the
accountisenabledbydefault.
Example 2-20. Enable or disable a user account
Request:
Vue de la page 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 131 132

Commentaires sur ces manuels

Pas de commentaire