UNPKG

@kengachu-pulumi/azure-native-documentdb

Version:

Pulumi Azure Native package for documentdb

88 lines (87 loc) 3.11 kB
import * as pulumi from "@pulumi/pulumi"; import * as types from "./types"; /** * Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. * * Uses Azure REST API version 2023-04-15. * * Other available API versions: 2023-09-15, 2023-09-15-preview, 2023-11-15, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15, 2024-05-15-preview, 2024-08-15, 2024-09-01-preview, 2024-11-15, 2024-12-01-preview. */ export declare function getMongoDBResourceMongoUserDefinition(args: GetMongoDBResourceMongoUserDefinitionArgs, opts?: pulumi.InvokeOptions): Promise<GetMongoDBResourceMongoUserDefinitionResult>; export interface GetMongoDBResourceMongoUserDefinitionArgs { /** * Cosmos DB database account name. */ accountName: string; /** * The ID for the User Definition {dbName.userName}. */ mongoUserDefinitionId: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * An Azure Cosmos DB User Definition */ export interface GetMongoDBResourceMongoUserDefinitionResult { /** * A custom definition for the USer Definition. */ readonly customData?: string; /** * The database name for which access is being granted for this User Definition. */ readonly databaseName?: string; /** * The unique resource identifier of the database account. */ readonly id: string; /** * The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256. */ readonly mechanisms?: string; /** * The name of the database account. */ readonly name: string; /** * The password for User Definition. Response does not contain user password. */ readonly password?: string; /** * The set of roles inherited by the User Definition. */ readonly roles?: types.outputs.RoleResponse[]; /** * The type of Azure resource. */ readonly type: string; /** * The user name for User Definition. */ readonly userName?: string; } /** * Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. * * Uses Azure REST API version 2023-04-15. * * Other available API versions: 2023-09-15, 2023-09-15-preview, 2023-11-15, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15, 2024-05-15-preview, 2024-08-15, 2024-09-01-preview, 2024-11-15, 2024-12-01-preview. */ export declare function getMongoDBResourceMongoUserDefinitionOutput(args: GetMongoDBResourceMongoUserDefinitionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMongoDBResourceMongoUserDefinitionResult>; export interface GetMongoDBResourceMongoUserDefinitionOutputArgs { /** * Cosmos DB database account name. */ accountName: pulumi.Input<string>; /** * The ID for the User Definition {dbName.userName}. */ mongoUserDefinitionId: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }