Delen via


Cluster Principal Assignments - Get

Hiermee wordt een Kusto-cluster-principalAssignment opgehaald.

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

URI-parameters

Name In Vereist Type Description
clusterName
path True

string

pattern: ^.*$

De naam van het Kusto-cluster.

principalAssignmentName
path True

string

pattern: ^.*$

De naam van de Kusto principalAssignment.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

subscriptionId
path True

string

minLength: 1

De id van het doelabonnement.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Antwoorden

Name Type Description
200 OK

ClusterPrincipalAssignment

Het Kusto-clusterprincipaaltoewijzingsobject.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Voorbeelden

KustoClusterPrincipalAssignmentsGet

Voorbeeldaanvraag

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

Voorbeeldrespons

{
  "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/PrincipalAssignments/kustoprincipal1",
  "name": "kustoCluster/kustoprincipal1",
  "type": "Microsoft.Kusto/Clusters/PrincipalAssignments",
  "properties": {
    "role": "AllDatabasesAdmin",
    "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"
  }
}

Definities

Name Description
ClusterPrincipalAssignment

Klasse die een toewijzing van een clusterprincipaal vertegenwoordigt.

ClusterPrincipalRole

Clusterprincipaalrol.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

PrincipalType

Principal-type.

ProvisioningState

De ingerichte status van de resource.

ClusterPrincipalAssignment

Klasse die een toewijzing van een clusterprincipaal vertegenwoordigt.

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

De naam van de resource

properties.aadObjectId

string

De object-id van de service-principal in AAD (Azure Active Directory)

properties.principalId

string

De principal-id die is toegewezen aan de cluster-principal. Dit kan een gebruikers-e-mail, toepassings-id of naam van een beveiligingsgroep zijn.

properties.principalName

string

De principal-naam

properties.principalType

PrincipalType

Principal-type.

properties.provisioningState

ProvisioningState

De ingerichte status van de resource.

properties.role

ClusterPrincipalRole

Clusterprincipaalrol.

properties.tenantId

string

De tenant-id van de principal

properties.tenantName

string

De tenantnaam van de principal

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

ClusterPrincipalRole

Clusterprincipaalrol.

Waarde Description
AllDatabasesAdmin
AllDatabasesMonitor
AllDatabasesViewer

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

PrincipalType

Principal-type.

Waarde Description
App
Group
User

ProvisioningState

De ingerichte status van de resource.

Waarde Description
Canceled
Creating
Deleting
Failed
Moving
Running
Succeeded