Tenants - List
Gets the tenants for your account.
GET https://management.azure.com/tenants?api-version=2022-12-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns an array of tenants. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
GetAllTenants
Sample request
Sample response
{
"value": [
{
"id": "/tenants/a70a1586-9c4a-4373-b907-1d310660dbd1",
"tenantId": "a70a1586-9c4a-4373-b907-1d310660dbd1",
"countryCode": "US",
"displayName": "Test_Test_aad50",
"domains": [
"aad50.ccsctp.net"
],
"tenantCategory": "ManagedBy",
"defaultDomain": "aad50.ccsctp.net",
"tenantType": "AAD"
},
{
"id": "/tenants/83abe5cd-bcc3-441a-bd86-e6a75360cecc",
"tenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc",
"countryCode": "US",
"displayName": "Contoso Corp.",
"domains": [
"auxteststagemanual.ccsctp.net"
],
"tenantCategory": "Home",
"defaultDomain": "auxteststagemanual.ccsctp.net",
"tenantType": "AAD"
},
{
"id": "/tenants/daea2e9b-847b-4c93-850d-2aa6f2d7af33",
"tenantId": "daea2e9b-847b-4c93-850d-2aa6f2d7af33",
"countryCode": "US",
"displayName": "TEST_TEST_RDV",
"domains": [
"rdvmohoro.ccsctp.net",
"rdvmohoro.mail.ccsctp.net",
"rdvmohoro.com"
],
"tenantCategory": "ProjectedBy",
"defaultDomain": "rdvmohoro.ccsctp.net",
"tenantType": "AAD",
"tenantBrandingLogoUrl": "logo1.logo.rdvmohoro.com"
}
],
"nextLink": "..."
}
Definitions
Name | Description |
---|---|
Cloud |
An error response for a resource management request. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Tenant |
Category of the tenant. |
Tenant |
Tenant Id information. |
Tenant |
Tenant Ids information. |
CloudError
An error response for a resource management request.
Name | Type | Description |
---|---|---|
error |
Error response |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
TenantCategory
Category of the tenant.
Name | Type | Description |
---|---|---|
Home |
string |
|
ManagedBy |
string |
|
ProjectedBy |
string |
TenantIdDescription
Tenant Id information.
Name | Type | Description |
---|---|---|
country |
string |
Country/region name of the address for the tenant. |
countryCode |
string |
Country/region abbreviation for the tenant. |
defaultDomain |
string |
The default domain for the tenant. |
displayName |
string |
The display name of the tenant. |
domains |
string[] |
The list of domains for the tenant. |
id |
string |
The fully qualified ID of the tenant. For example, /tenants/8d65815f-a5b6-402f-9298-045155da7d74 |
tenantBrandingLogoUrl |
string |
The tenant's branding logo URL. Only available for 'Home' tenant category. |
tenantCategory |
Category of the tenant. |
|
tenantId |
string |
The tenant ID. For example, 8d65815f-a5b6-402f-9298-045155da7d74 |
tenantType |
string |
The tenant type. Only available for 'Home' tenant category. |
TenantListResult
Tenant Ids information.
Name | Type | Description |
---|---|---|
nextLink |
string |
The URL to use for getting the next set of results. |
value |
An array of tenants. |