Freigeben über


Database Principal Assignments - Get

Ruft ein Kusto-ClusterdatenbankprinzipalAssignment ab.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}?api-version=2024-04-13

URI-Parameter

Name In Erforderlich Typ Beschreibung
clusterName
path True

string

pattern: ^.*$

Der Name des Kusto-Clusters.

databaseName
path True

string

pattern: ^.*$

Der Name der Datenbank im Kusto-Cluster.

principalAssignmentName
path True

string

pattern: ^.*$

Der Name des Kusto principalAssignment.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Der Name der Ressourcengruppe. Bei dem Namen wird die Groß-/Kleinschreibung nicht beachtet.

subscriptionId
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

DatabasePrincipalAssignment

Das Kusto-Clusterdatenbankprinzipalzuweisungsobjekt.

Other Status Codes

ErrorResponse

Fehlerantwort, die beschreibt, warum der Vorgang fehlgeschlagen ist.

Beispiele

KustoDatabasePrincipalAssignmentsGet

Beispielanforderung

GET https://management.azure.com/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/kustoCluster/databases/Kustodatabase8/principalAssignments/kustoprincipal1?api-version=2024-04-13

Beispiel für eine Antwort

{
  "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"
  }
}

Definitionen

Name Beschreibung
DatabasePrincipalAssignment

Klasse, die eine Datenbankprinzipalzuweisung darstellt.

DatabasePrincipalRole

Datenbankprinzipalrolle.

ErrorAdditionalInfo

Der Ressourcenverwaltungsfehler zusätzliche Informationen.

ErrorDetail

Das Fehlerdetails.

ErrorResponse

Fehlerantwort

PrincipalType

Prinzipaltyp.

ProvisioningState

Der bereitgestellte Zustand der Ressource.

DatabasePrincipalAssignment

Klasse, die eine Datenbankprinzipalzuweisung darstellt.

Name Typ Beschreibung
id

string

Vollqualifizierte Ressourcen-ID für die Ressource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Der Name der Ressource

properties.aadObjectId

string

Die Dienstprinzipalobjekt-ID in AAD (Azure Active Directory)

properties.principalId

string

Die Prinzipal-ID, die dem Datenbankprinzipal zugewiesen ist. Dabei kann es sich um eine Benutzer-E-Mail, Anwendungs-ID oder einen Sicherheitsgruppennamen handeln.

properties.principalName

string

Der Prinzipalname

properties.principalType

PrincipalType

Prinzipaltyp.

properties.provisioningState

ProvisioningState

Der bereitgestellte Zustand der Ressource.

properties.role

DatabasePrincipalRole

Datenbankprinzipalrolle.

properties.tenantId

string

Die Mandanten-ID des Prinzipals

properties.tenantName

string

Der Mandantenname des Prinzipals

type

string

Der Typ der Ressource. Z. B. "Microsoft.Compute/virtualMachines" oder "Microsoft.Storage/storageAccounts"

DatabasePrincipalRole

Datenbankprinzipalrolle.

Wert Beschreibung
Admin
Ingestor
Monitor
UnrestrictedViewer
User
Viewer

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

ErrorAdditionalInfo[]

Die zusätzlichen Informationen des Fehlers.

code

string

Der Fehlercode.

details

ErrorDetail[]

Die Fehlerdetails.

message

string

Die Fehlermeldung.

target

string

Das Fehlerziel.

ErrorResponse

Fehlerantwort

Name Typ Beschreibung
error

ErrorDetail

Das Fehlerobjekt.

PrincipalType

Prinzipaltyp.

Wert Beschreibung
App
Group
User

ProvisioningState

Der bereitgestellte Zustand der Ressource.

Wert Beschreibung
Canceled
Creating
Deleting
Failed
Moving
Running
Succeeded