Databases - List Principals
Gibt eine Liste der Datenbankprinzipale des angegebenen Kusto-Clusters und der Angegebenen Datenbank zurück.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals?api-version=2024-04-13
URI-Parameter
| Name | In | Erforderlich | Typ | Beschreibung |
|---|---|---|---|---|
|
cluster
|
path | True |
string pattern: ^.*$ |
Der Name des Kusto-Clusters. |
|
database
|
path | True |
string pattern: ^.*$ |
Der Name der Datenbank im Kusto-Cluster. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
Der Name der Ressourcengruppe. Bei dem Namen wird die Groß-/Kleinschreibung nicht beachtet. |
|
subscription
|
path | True |
string minLength: 1 |
Die ID des Zielabonnements. |
|
api-version
|
query | True |
string minLength: 1 |
Die API-Version, die für diesen Vorgang verwendet werden soll. |
Antworten
| Name | Typ | Beschreibung |
|---|---|---|
| 200 OK |
Die Liste der Datenbankprinzipale wurde erfolgreich abgerufen. |
|
| Other Status Codes |
Fehlerantwort, die beschreibt, warum der Vorgang fehlgeschlagen ist. |
Beispiele
KustoDatabaseListPrincipals
Beispielanforderung
POST https://management.azure.com/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/kustoCluster/databases/KustoDatabase8/listPrincipals?api-version=2024-04-13
Beispiel für eine Antwort
{
"value": [
{
"name": "Some User",
"role": "Admin",
"type": "User",
"fqn": "aaduser=some_guid",
"email": "user@microsoft.com",
"appId": ""
},
{
"name": "Kusto",
"role": "Viewer",
"type": "Group",
"fqn": "aadgroup=some_guid",
"email": "kusto@microsoft.com",
"appId": ""
},
{
"name": "SomeApp",
"role": "Admin",
"type": "App",
"fqn": "aadapp=some_guid_app_id",
"email": "",
"appId": "some_guid_app_id"
}
]
}
Definitionen
| Name | Beschreibung |
|---|---|
|
Database |
Eine Klasse, die die Datenbankprinzipalentität darstellt. |
|
Database |
Die Antwort auf den Kusto-Datenbankprinzipalvorgang. |
|
Database |
Datenbankprinzipalrolle. |
|
Database |
Datenbankprinzipaltyp. |
|
Error |
Der Ressourcenverwaltungsfehler zusätzliche Informationen. |
|
Error |
Das Fehlerdetails. |
|
Error |
Fehlerantwort |
DatabasePrincipal
Eine Klasse, die die Datenbankprinzipalentität darstellt.
| Name | Typ | Beschreibung |
|---|---|---|
| appId |
string |
Anwendungs-ID – nur für Anwendungsprinzipaltyp relevant. |
|
string |
Datenbankprinzipal-E-Mail, falls vorhanden. |
|
| fqn |
string |
Vollqualifizierter Datenbankprinzipalname. |
| name |
string |
Datenbankprinzipalname. |
| role |
Datenbankprinzipalrolle. |
|
| tenantName |
string |
Der Mandantenname des Prinzipals |
| type |
Datenbankprinzipaltyp. |
DatabasePrincipalListResult
Die Antwort auf den Kusto-Datenbankprinzipalvorgang.
| Name | Typ | Beschreibung |
|---|---|---|
| value |
Die Liste der Kusto-Datenbankprinzipale. |
DatabasePrincipalRole
Datenbankprinzipalrolle.
| Wert | Beschreibung |
|---|---|
| Admin | |
| Ingestor | |
| Monitor | |
| User | |
| UnrestrictedViewer | |
| Viewer |
DatabasePrincipalType
Datenbankprinzipaltyp.
| Wert | Beschreibung |
|---|---|
| App | |
| Group | |
| User |
ErrorAdditionalInfo
Der Ressourcenverwaltungsfehler zusätzliche Informationen.
| Name | Typ | Beschreibung |
|---|---|---|
| info |
object |
Die zusätzlichen Informationen. |
| type |
string |
Der zusätzliche Informationstyp. |
ErrorDetail
Das Fehlerdetails.
| Name | Typ | Beschreibung |
|---|---|---|
| additionalInfo |
Die zusätzlichen Informationen des Fehlers. |
|
| code |
string |
Der Fehlercode. |
| details |
Die Fehlerdetails. |
|
| message |
string |
Die Fehlermeldung. |
| target |
string |
Das Fehlerziel. |
ErrorResponse
Fehlerantwort
| Name | Typ | Beschreibung |
|---|---|---|
| error |
Das Fehlerobjekt. |