Sample Exchange

 View Only

VRealize Operations Tenant App . Postman Collection 

Jun 30, 2020 09:53 PM

vRealize Operations Tenant App provides a REST API for programatic access to pricing policies, bills and raw metrics in the vRealize Operations API. The API is documented on the Tenant App itself in https:///tenant-app-api/swagger-ui.html

The easiest way to get started is using the Postman Client to try out the APIs. Postman allows you to export code samples in many scripting and programming languages, so the purpose of this repository is to provide examples in a generic format using Postman.

Update July 8, 2020: Added Tenant Activation API calls


vRealize Operations Tenant App API collection for Postman

Overview

vRealize Operations Tenant App provides a REST API for programatic access to pricing policies, bills and raw metrics in the vRealize Operations API. The API is documented on the Tenant App itself in https:///tenant-app-api/swagger-ui.html

The easiest way to get started is using the Postman Client to try out the APIs. Postman allows you to export code samples in many scripting and programming languages, so the purpose of this repository is to provide examples in a generic format using Postman.

Prerequisites

Using the Samples

  1. Download the Postman collection file from the Samples folder
  2. Import the collection file into Postman
  3. Define your vRealize Operations environment. At a minimum the environment needs to contain:
  • user: your vRealize Operations user account
  • pass: your vRealize Operations user password
  • tentantapp: IP or hostname of the vRealize Operations Tenant App

For example:

user : admin
pass : VMware1!
tenantapp : 192.168.1.50

Be aware that the user usually is the provider admin user also used for during setup (configured in vRealize Operations)

Additional environment vars will be created by some of the API samples. There is usually no need to edit those.

Start with the "RUN FIRST - Get vROPS Auth Token" call, to authenticate. The token will be stored in a postman variable and used for subsequent API calls. Some examples use the "/suite-api" endpoint that allows to retrieve raw data from vRealize Operations. Refer to the vRealize Operations API Documentation for details, and check out the Postman collection for vRealize Operations

Tenant Activation

To publish Tenant App into the VCD tenant portal for an Org, run the "Activate Tenant - Step ..." calls:

  1. Create a User Role for VCD Tenant Admin users in vROPS (only has to be done once)
  2. Find the org and its IDs (name, UUID, resourceId). When this call succeeds, check the "Visualization" tab in postman's reponse area for a nice table view of all orgs (of the first response page)
  3. Delete an existing user for this Org (can always run, even no user yet exists): Add the org URN to the URL
  4. Create a new User for the Org to activate access. In the request body, replace username value with Org UUID, password with a random password (vROPS password complexity rules apply), email Address with orgUUID@org-name.org, firstname with orgUUID, last name with org name, and all further occurences of "resourceId" and "resourceIDs" with the org resource Id.

#Rest
#POSTMANCollection
#vRealizeOperations
#vcd
#MIT
#vCloudDirectorForServiceProviders
#TenantApp
#vRealizeOperationsManager

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
json file
vRealize Operations Tenant App.postman_collection.json   69 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.