import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing SQL elastic pool. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.mssql.getElasticPool({ * name: "mssqlelasticpoolname", * resourceGroupName: "example-resources", * serverName: "example-sql-server", * }); * export const elasticpoolId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Sql` - 2023-08-01-preview */ export declare function getElasticPool(args: GetElasticPoolArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getElasticPool. */ export interface GetElasticPoolArgs { /** * The name of the elastic pool. */ name: string; /** * The name of the resource group which contains the elastic pool. */ resourceGroupName: string; /** * The name of the SQL Server which contains the elastic pool. */ serverName: string; } /** * A collection of values returned by getElasticPool. */ export interface GetElasticPoolResult { /** * The type of enclave being used by the elastic pool. */ readonly enclaveType: string; /** * Specifies the number of high availability replicas for the elastic pool. */ readonly highAvailabilityReplicaCount: number; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The license type to apply for this elastic pool. */ readonly licenseType: string; /** * Specifies the supported Azure location where the resource exists. */ readonly location: string; /** * The max data size of the elastic pool in bytes. */ readonly maxSizeBytes: number; /** * The max data size of the elastic pool in gigabytes. */ readonly maxSizeGb: number; /** * Specifies the SKU Name for this Elasticpool. */ readonly name: string; /** * The maximum capacity any one database can consume. */ readonly perDbMaxCapacity: number; /** * The minimum capacity all databases are guaranteed. */ readonly perDbMinCapacity: number; readonly resourceGroupName: string; readonly serverName: string; /** * A `sku` block as defined below. */ readonly skus: outputs.mssql.GetElasticPoolSkus[]; /** * A mapping of tags to assign to the resource. */ readonly tags: { [key: string]: string; }; /** * Whether or not this elastic pool is zone redundant. */ readonly zoneRedundant: boolean; } /** * Use this data source to access information about an existing SQL elastic pool. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.mssql.getElasticPool({ * name: "mssqlelasticpoolname", * resourceGroupName: "example-resources", * serverName: "example-sql-server", * }); * export const elasticpoolId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Sql` - 2023-08-01-preview */ export declare function getElasticPoolOutput(args: GetElasticPoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getElasticPool. */ export interface GetElasticPoolOutputArgs { /** * The name of the elastic pool. */ name: pulumi.Input; /** * The name of the resource group which contains the elastic pool. */ resourceGroupName: pulumi.Input; /** * The name of the SQL Server which contains the elastic pool. */ serverName: pulumi.Input; }