Databases - List Principals
Returns a list of database principals of the given Kusto cluster and database.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals?api-version=2024-04-13
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
cluster
|
path | True |
string |
The name of the Kusto cluster. Regex pattern: |
database
|
path | True |
string |
The name of the database in the Kusto cluster. Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully retrieved the list of database principals. |
|
Other Status Codes |
Error response describing why the operation failed. |
Examples
KustoDatabaseListPrincipals
Sample request
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
Sample response
{
"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"
}
]
}
Definitions
Name | Description |
---|---|
Database |
A class representing database principal entity. |
Database |
The list Kusto database principals operation response. |
Database |
Database principal role. |
Database |
Database principal type. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
DatabasePrincipal
A class representing database principal entity.
Name | Type | Description |
---|---|---|
appId |
string |
Application id - relevant only for application principal type. |
string |
Database principal email if exists. |
|
fqn |
string |
Database principal fully qualified name. |
name |
string |
Database principal name. |
role |
Database principal role. |
|
tenantName |
string |
The tenant name of the principal |
type |
Database principal type. |
DatabasePrincipalListResult
The list Kusto database principals operation response.
Name | Type | Description |
---|---|---|
value |
The list of Kusto database principals. |
DatabasePrincipalRole
Database principal role.
Name | Type | Description |
---|---|---|
Admin |
string |
|
Ingestor |
string |
|
Monitor |
string |
|
UnrestrictedViewer |
string |
|
User |
string |
|
Viewer |
string |
DatabasePrincipalType
Database principal type.
Name | Type | Description |
---|---|---|
App |
string |
|
Group |
string |
|
User |
string |
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. |