In this post we will learn how to install Management Packs in vROPs via API.
For vCenter we don’t have to install any management pack as its shipped with vROPs by default and we just have to create vCenter credentials and configure adapter. Below steps can be followed to configure VC adapter.
1: Obtain Session Token: vROPs session token is obtained via POST call.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Method: POST URL: https://<vrops-fqdn>/suite-api/api/auth/token/acquire Headers: Content-Type : application\json Accept : application\json Auth: No Auth Body: { "username" : "vROPs-User", "password" : "Password" } |
Sample Output:
1 2 3 4 5 6 |
{ "token": "dd05ef7a-2019-4742-89b0-831460a8ca5a::1068428f-05a6-4bb8-b2c8-75aa7a7214bf", "validity": 1582804658913, "expiresAt": "Thursday, February 27, 2020 11:57:38 AM UTC", "roles": [] } |
The token id obtained in output is passed as “Authorization: vRealizeOpsToken token_value” header in all subsequent GET and POST calls.… Read More