Database Principal Assignments - Get
Ottiene un'entità database del cluster KustoAssignment.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}?api-version=2023-08-15
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
cluster
|
path | True |
string |
Nome del cluster Kusto. Regex pattern: |
database
|
path | True |
string |
Nome del database nel cluster Kusto. Regex pattern: |
principal
|
path | True |
string |
Nome dell'entità KustoAssignment. Regex pattern: |
resource
|
path | True |
string |
Nome del gruppo di risorse. Per il nome non viene fatta distinzione tra maiuscole e minuscole. |
subscription
|
path | True |
string |
ID della sottoscrizione di destinazione. |
api-version
|
query | True |
string |
Versione dell'API da usare per questa operazione. |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
200 OK |
Oggetto assegnazione dell'entità database del cluster Kusto. |
|
Other Status Codes |
Risposta di errore che descrive perché l'operazione non è riuscita. |
Esempio
KustoDatabasePrincipalAssignmentsGet
Sample Request
Sample Response
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1",
"name": "kustoCluster/Kustodatabase8/kustoprincipal1",
"type": "Microsoft.Kusto/Clusters/Databases/PrincipalAssignments",
"properties": {
"role": "Admin",
"principalId": "87654321-1234-1234-1234-123456789123",
"principalType": "App",
"tenantId": "12345678-1234-1234-1234-123456789123",
"tenantName": "tenantName",
"principalName": "TestApp",
"provisioningState": "Succeeded",
"aadObjectId": "98765432-1234-1234-1234-123456789123"
}
}
Definizioni
Nome | Descrizione |
---|---|
Database |
Classe che rappresenta un'assegnazione dell'entità database. |
Database |
Ruolo dell'entità database. |
Error |
Informazioni aggiuntive sulla gestione delle risorse. |
Error |
Dettagli dell'errore. |
Error |
Risposta di errore |
Principal |
Tipo di entità. |
Provisioning |
Stato di provisioning della risorsa. |
DatabasePrincipalAssignment
Classe che rappresenta un'assegnazione dell'entità database.
Nome | Tipo | Descrizione |
---|---|---|
id |
string |
ID di risorsa completo per la risorsa. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
nome della risorsa. |
properties.aadObjectId |
string |
ID oggetto dell'entità servizio in AAD (Azure active directory) |
properties.principalId |
string |
ID principale assegnato all'entità di database. Può essere un messaggio di posta elettronica dell'utente, un ID applicazione o un nome del gruppo di sicurezza. |
properties.principalName |
string |
Nome dell'entità |
properties.principalType |
Tipo di entità. |
|
properties.provisioningState |
Stato di provisioning della risorsa. |
|
properties.role |
Ruolo dell'entità database. |
|
properties.tenantId |
string |
ID tenant dell'entità |
properties.tenantName |
string |
Nome del tenant dell'entità |
type |
string |
Tipo di risorsa. Ad esempio, "Microsoft.Compute/virtualMachines" o "Microsoft.Storage/storageAccounts" |
DatabasePrincipalRole
Ruolo dell'entità database.
Nome | Tipo | Descrizione |
---|---|---|
Admin |
string |
|
Ingestor |
string |
|
Monitor |
string |
|
UnrestrictedViewer |
string |
|
User |
string |
|
Viewer |
string |
ErrorAdditionalInfo
Informazioni aggiuntive sulla gestione delle risorse.
Nome | Tipo | Descrizione |
---|---|---|
info |
object |
Informazioni aggiuntive. |
type |
string |
Tipo di informazioni aggiuntive. |
ErrorDetail
Dettagli dell'errore.
Nome | Tipo | Descrizione |
---|---|---|
additionalInfo |
Informazioni aggiuntive sull'errore. |
|
code |
string |
Codice di errore. |
details |
Dettagli dell'errore. |
|
message |
string |
Messaggio di errore. |
target |
string |
Destinazione dell'errore. |
ErrorResponse
Risposta di errore
Nome | Tipo | Descrizione |
---|---|---|
error |
Oggetto error. |
PrincipalType
Tipo di entità.
Nome | Tipo | Descrizione |
---|---|---|
App |
string |
|
Group |
string |
|
User |
string |
ProvisioningState
Stato di provisioning della risorsa.
Nome | Tipo | Descrizione |
---|---|---|
Canceled |
string |
|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Moving |
string |
|
Running |
string |
|
Succeeded |
string |