Tenants - Get
Pobiera szczegóły dzierżawy według identyfikatora.
GET https://prod.core.sphere.azure.net/v2/tenants/{tenantId}
Parametry identyfikatora URI
| Nazwa | W | Wymagane | Typ | Opis |
|---|---|---|---|---|
|
tenant
|
path | True |
string |
Identyfikator dzierżawy usługi Azure Sphere. |
Odpowiedzi
| Nazwa | Typ | Opis |
|---|---|---|
| 200 OK |
Powodzenie. |
Przykłady
Get tenant details
Sample Request
GET https://prod.core.sphere.azure.net/v2/tenants/768c2cd6-1bf0-4521-9f53-084a331d81cb
Sample Response
{
"Id": "768c2cd6-1bf0-4521-9f53-084a331d81cb",
"Name": "ContosoTenant",
"Roles": [
"Administrator",
"Contributor"
]
}
Definicje
TenantIdentity
| Nazwa | Typ | Opis |
|---|---|---|
| Id |
string |
Pobiera identyfikator dzierżawy. |
| Name |
string |
Uzyskaj przyjazną nazwę dzierżawy. |
| Roles |
string[] |
Pobierz role użytkownika w dzierżawie. |