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

118 lines (117 loc) 4.63 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets the SQL container under an existing Azure Cosmos DB database account. * * Uses Azure REST API version 2016-03-31. * * Other available API versions: 2015-04-01, 2015-04-08, 2015-11-06, 2016-03-19. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cosmosdb [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDatabaseAccountSqlContainer(args: GetDatabaseAccountSqlContainerArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseAccountSqlContainerResult>; export interface GetDatabaseAccountSqlContainerArgs { /** * Cosmos DB database account name. */ accountName: string; /** * Cosmos DB container name. */ containerName: string; /** * Cosmos DB database name. */ databaseName: string; /** * Name of an Azure resource group. */ resourceGroupName: string; } /** * An Azure Cosmos DB container. */ export interface GetDatabaseAccountSqlContainerResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The conflict resolution policy for the container. */ readonly conflictResolutionPolicy?: outputs.cosmosdb.ConflictResolutionPolicyResponse; /** * Default time to live */ readonly defaultTtl?: number; /** * A system generated property representing the resource etag required for optimistic concurrency control. */ readonly etag?: string; /** * The unique resource identifier of the database account. */ readonly id: string; /** * The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container */ readonly indexingPolicy?: outputs.cosmosdb.IndexingPolicyResponse; /** * The location of the resource group to which the resource belongs. */ readonly location?: string; /** * The name of the database account. */ readonly name: string; /** * The configuration of the partition key to be used for partitioning data into multiple partitions */ readonly partitionKey?: outputs.cosmosdb.ContainerPartitionKeyResponse; /** * A system generated property. A unique identifier. */ readonly rid?: string; /** * Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". */ readonly tags?: { [key: string]: string; }; /** * A system generated property that denotes the last updated timestamp of the resource. */ readonly ts?: any; /** * The type of Azure resource. */ readonly type: string; /** * The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. */ readonly uniqueKeyPolicy?: outputs.cosmosdb.UniqueKeyPolicyResponse; } /** * Gets the SQL container under an existing Azure Cosmos DB database account. * * Uses Azure REST API version 2016-03-31. * * Other available API versions: 2015-04-01, 2015-04-08, 2015-11-06, 2016-03-19. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cosmosdb [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDatabaseAccountSqlContainerOutput(args: GetDatabaseAccountSqlContainerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseAccountSqlContainerResult>; export interface GetDatabaseAccountSqlContainerOutputArgs { /** * Cosmos DB database account name. */ accountName: pulumi.Input<string>; /** * Cosmos DB container name. */ containerName: pulumi.Input<string>; /** * Cosmos DB database name. */ databaseName: pulumi.Input<string>; /** * Name of an Azure resource group. */ resourceGroupName: pulumi.Input<string>; }