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

  • 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 16
VMware, Inc. 17
Chapter 2 vShield Manager Management
GET https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/techSupportLogs
Thetechnicalsupportlogisplacedinafile,howevertheRESTAPIhasnoprovisionfordownloadingit,and
wgetandcurldonothavepermissiontodownloadit,either .YoucanretrievethelogwithvShieldManager
byclickingSettings&Reports>Configuration>Support>[LogDownload]
Initiate.
User Management
TheauthenticationandauthorizationAPIsincludemethodstomanageusersandroles.
Get a List of Users
YoucanretrievealistofvShieldManagerusers,bothlocalusersandvCenteruserswhoareassignedarole.
Example 2-6. Get a list of users
Request:
GET https://<vsm-ip>/api/2.0/services/usermgmt/users/vsm
BeforeyouadduserstovShieldManager,thepreexistingdefaultsarelocaluseradminandthevCenteruser
administrator.
Get Information About a User
Youcanretrieveinformationaboutauser.
Example 2-7. Get information about a user
Request:
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-8. 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>
Zobrazit stránku 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 103 104

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

Žádné komentáře