7.3

Table Of Contents
The following example command requests a new tenant by calling the newTenant.json file.
curl --insecure -H "Content-Type: application/json" -H "Authorization: Bearer $token"
https://$vRA/identity/api/tenants/rainpole --data @C:\Temp\newTenant.json
Example: curl Command to Request a New Tenant With Parameters Inline
The following example command requests a new tenant with input parameters specified inline.
curl --insecure -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization:
Bearer $token" https://$vRA/identity/api/tenants/rainpole --data
'{"@type":"Tenant","id":"rainpole","urlName":"rainpole","name":"rainpoleTenant",
"description":"New Custom Tenant","contactEmail":null,"defaultTenant":false}'
Syntax for Listing All Tenant Identity Stores
GET /api/tenants/{tenantId}/directories lists all available identity stores for a named
vRealize Automation tenant, such as the default tenant vsphere.local.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL https://$vRA/identity/api/tenants/$tenantId/directories
$vRA Specifies the appliance name and fully qualified domain name, or IP address of the
vRealize Automation server.
$token Specifies a valid HTTP bearer token with necessary credentials.
$tenantId Specifies the ID of the tenant.
Output
The command output contains property names and values based on the command input parameters.
Programming Guide
VMware, Inc. 31