7.2

Table Of Contents
Parameter Description
URL hps://$host/identity/api/tenants/$tenantId --data @
$inputFileName.json
$token Species a valid HTTP bearer token with necessary credentials.
$host Species the host name and fully qualied domain name or IP
address of the vRealize Automation identity server.
$tenantId Species the ID of the tenant.
$tenantURL Species the URL of the tenant.
$tenantName Species the name of the tenant.
$description Species a description of the tenant.
$emailAddress Species the contact email address for the tenant.
JSON Input File Template
To simplify command line input, create a JSON le and call that le from the command line. To create a
JSON le, copy the following template to a new text le. To maintain formaing, use an XML editor. Replace
the italicized variables in the template with your specic values.
{
"@type" : "Tenant",
"id" : "$tenantId",
"urlName" : "$tenantURL",
"name" : "$tenantName",
"description" : "$description",
"contactEmail" : "$emailAddress",
"defaultTenant" : false
}
Output
The command output contains property names and values based on the command input parameters.
Chapter 3 REST API Use Cases
VMware, Inc. 21