@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a Kusto pool database principalAssignment.
*
* Uses Azure REST API version 2021-04-01-preview.
*/
export declare function getDatabasePrincipalAssignment(args: GetDatabasePrincipalAssignmentArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabasePrincipalAssignmentResult>;
export interface GetDatabasePrincipalAssignmentArgs {
/**
* The name of the database in the Kusto pool.
*/
databaseName: string;
/**
* The name of the Kusto pool.
*/
kustoPoolName: string;
/**
* The name of the Kusto principalAssignment.
*/
principalAssignmentName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the workspace
*/
workspaceName: string;
}
/**
* Class representing a database principal assignment.
*/
export interface GetDatabasePrincipalAssignmentResult {
/**
* 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;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.synapse.SystemDataResponse;
/**
* 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 pool database principalAssignment.
*
* Uses Azure REST API version 2021-04-01-preview.
*/
export declare function getDatabasePrincipalAssignmentOutput(args: GetDatabasePrincipalAssignmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabasePrincipalAssignmentResult>;
export interface GetDatabasePrincipalAssignmentOutputArgs {
/**
* The name of the database in the Kusto pool.
*/
databaseName: pulumi.Input<string>;
/**
* The name of the Kusto pool.
*/
kustoPoolName: 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>;
/**
* The name of the workspace
*/
workspaceName: pulumi.Input<string>;
}