UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

107 lines (106 loc) 3.92 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets a Kusto cluster database principalAssignment. * * Uses Azure REST API version 2024-04-13. * * Other available API versions: 2019-11-09, 2020-02-15, 2020-06-14, 2020-09-18, 2021-01-01, 2021-08-27, 2022-02-01, 2022-07-07, 2022-11-11, 2022-12-29, 2023-05-02, 2023-08-15. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native kusto [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDatabasePrincipalAssignment(args: GetDatabasePrincipalAssignmentArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabasePrincipalAssignmentResult>; export interface GetDatabasePrincipalAssignmentArgs { /** * The name of the Kusto cluster. */ clusterName: string; /** * The name of the database in the Kusto cluster. */ databaseName: string; /** * The name of the Kusto principalAssignment. */ principalAssignmentName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * Class representing a database principal assignment. */ export interface GetDatabasePrincipalAssignmentResult { /** * The service principal object id in AAD (Azure active directory) */ readonly aadObjectId: string; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * The name of the resource */ readonly name: string; /** * The principal ID assigned to the database principal. It can be a user email, application ID, or security group name. */ readonly principalId: string; /** * The principal name */ readonly principalName: string; /** * Principal type. */ readonly principalType: string; /** * The provisioned state of the resource. */ readonly provisioningState: string; /** * Database principal role. */ readonly role: string; /** * The tenant id of the principal */ readonly tenantId?: string; /** * The tenant name of the principal */ readonly tenantName: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Gets a Kusto cluster database principalAssignment. * * Uses Azure REST API version 2024-04-13. * * Other available API versions: 2019-11-09, 2020-02-15, 2020-06-14, 2020-09-18, 2021-01-01, 2021-08-27, 2022-02-01, 2022-07-07, 2022-11-11, 2022-12-29, 2023-05-02, 2023-08-15. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native kusto [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDatabasePrincipalAssignmentOutput(args: GetDatabasePrincipalAssignmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabasePrincipalAssignmentResult>; export interface GetDatabasePrincipalAssignmentOutputArgs { /** * The name of the Kusto cluster. */ clusterName: pulumi.Input<string>; /** * The name of the database in the Kusto cluster. */ databaseName: pulumi.Input<string>; /** * The name of the Kusto principalAssignment. */ principalAssignmentName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }