You can use REST API reservation service to get the business group ID for a vRealize Automation reservation. The business group is also referred to as the subtenant in the API. When you create a reservation, you must supply the business group ID, also referred to as the subtenant ID, in the REST command line. Use this procedure to obtain the subTenantId value.

开始之前

  • Log in to vRealize Automation as a fabric group administrator.

  • Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.

  • Verify that you have a valid HTTP bearer token that matches your login credentials. See REST API Authentication.

过程

Get business group ID for a vRealize Automation reservation with the reservation service.
insecure -H "Accept:application/json" 
-H "Authorization: Bearer $token" 
https://$host/identity/api/tenants/qe/subtenants

The following JSON output is returned based on the command input.

{
	"links": [],
	"content": [{
		"@type": "Subtenant",
		"id": "7d7dbb19-d2dc-44a3-9fc2-7435552c8a05",
		"name": "Development",
		"description": " Development ",
		"subtenantRoles": null,
		"extensionData": {
			"entries": [{
				"key": "iaas-manager-emails",
				"value": {
					"type": "string",
					"value": "user1@mycompany.com"
				}
			}]
		},
		"tenant": "qe"
	},
	{
		"@type": "Subtenant",
		"id": "ade5b8d3-decf-405e-bd0b-297f976ef721",
		"name": "Finance",
		"description": "Finance",
		"subtenantRoles": null,
		"extensionData": {
			"entries": [{
				"key": "iaas-manager-emails",
				"value": {
					"type": "string",
					"value": " user1@mycompany.com "
				}
			}]
		},
		"tenant": "qe"
	},
	{
		"@type": "Subtenant",
		"id": "ef58f604-528d-4441-a219-4725bead629b",
		"name": "Test Sub Tenant",
		"description": "VMPS",
		"subtenantRoles": null,
		"extensionData": {
			"entries": []
		},
		"tenant": "qe"
	},
	{
		"@type": "Subtenant",
		"id": "92926c91-37de-4647-9aee-70b8d557ce8d",
		"name": "Quality Engineering",
		"description": "created by demo content",
		"subtenantRoles": null,
		"extensionData": {
			"entries": [{
				"key": "iaas-manager-emails",
				"value": {
					"type": "string",
					"value": " user1@mycompany.com "
				}
			}]
		},
		"tenant": "qe"
	}],
	"metadata": {
		"size": 20,
		"totalElements": 4,
		"totalPages": 1,
		"number": 1,
		"offset": 0
	}
}