GetElasticPool
Use this data source to access information about an existing SQL elastic pool.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.MSSql.GetElasticPool.InvokeAsync(new Azure.MSSql.GetElasticPoolArgs
{
Name = "mssqlelasticpoolname",
ResourceGroupName = "example-resources",
ServerName = "example-sql-server",
}));
this.ElasticpoolId = example.Apply(example => example.Id);
}
[Output("elasticpoolId")]
public Output<string> ElasticpoolId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/mssql"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := mssql.LookupElasticPool(ctx, &mssql.LookupElasticPoolArgs{
Name: "mssqlelasticpoolname",
ResourceGroupName: "example-resources",
ServerName: "example-sql-server",
}, nil)
if err != nil {
return err
}
ctx.Export("elasticpoolId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.mssql.get_elastic_pool(name="mssqlelasticpoolname",
resource_group_name="example-resources",
server_name="example-sql-server")
pulumi.export("elasticpoolId", example.id)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);Using GetElasticPool
function getElasticPool(args: GetElasticPoolArgs, opts?: InvokeOptions): Promise<GetElasticPoolResult>function get_elastic_pool(name=None, resource_group_name=None, server_name=None, opts=None)func LookupElasticPool(ctx *Context, args *LookupElasticPoolArgs, opts ...InvokeOption) (*LookupElasticPoolResult, error)Note: This function is named
LookupElasticPoolin the Go SDK.
public static class GetElasticPool {
public static Task<GetElasticPoolResult> InvokeAsync(GetElasticPoolArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the elastic pool.
- Resource
Group stringName The name of the resource group which contains the elastic pool.
- Server
Name string The name of the SQL Server which contains the elastic pool.
- Name string
The name of the elastic pool.
- Resource
Group stringName The name of the resource group which contains the elastic pool.
- Server
Name string The name of the SQL Server which contains the elastic pool.
- name string
The name of the elastic pool.
- resource
Group stringName The name of the resource group which contains the elastic pool.
- server
Name string The name of the SQL Server which contains the elastic pool.
- name str
The name of the elastic pool.
- resource_
group_ strname The name of the resource group which contains the elastic pool.
- server_
name str The name of the SQL Server which contains the elastic pool.
GetElasticPool Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- License
Type string The license type to apply for this database.
- Location string
Specifies the supported Azure location where the resource exists.
- Max
Size intBytes The max data size of the elastic pool in bytes.
- Max
Size doubleGb The max data size of the elastic pool in gigabytes.
- Name string
- Per
Db intMax Capacity The maximum capacity any one database can consume.
- Per
Db intMin Capacity The minimum capacity all databases are guaranteed.
- Resource
Group stringName - Server
Name string - Dictionary<string, string>
A mapping of tags to assign to the resource.
- Zone
Redundant bool Whether or not this elastic pool is zone redundant.
- Id string
The provider-assigned unique ID for this managed resource.
- License
Type string The license type to apply for this database.
- Location string
Specifies the supported Azure location where the resource exists.
- Max
Size intBytes The max data size of the elastic pool in bytes.
- Max
Size float64Gb The max data size of the elastic pool in gigabytes.
- Name string
- Per
Db intMax Capacity The maximum capacity any one database can consume.
- Per
Db intMin Capacity The minimum capacity all databases are guaranteed.
- Resource
Group stringName - Server
Name string - map[string]string
A mapping of tags to assign to the resource.
- Zone
Redundant bool Whether or not this elastic pool is zone redundant.
- id string
The provider-assigned unique ID for this managed resource.
- license
Type string The license type to apply for this database.
- location string
Specifies the supported Azure location where the resource exists.
- max
Size numberBytes The max data size of the elastic pool in bytes.
- max
Size numberGb The max data size of the elastic pool in gigabytes.
- name string
- per
Db numberMax Capacity The maximum capacity any one database can consume.
- per
Db numberMin Capacity The minimum capacity all databases are guaranteed.
- resource
Group stringName - server
Name string - {[key: string]: string}
A mapping of tags to assign to the resource.
- zone
Redundant boolean Whether or not this elastic pool is zone redundant.
- id str
The provider-assigned unique ID for this managed resource.
- license_
type str The license type to apply for this database.
- location str
Specifies the supported Azure location where the resource exists.
- max_
size_ floatbytes The max data size of the elastic pool in bytes.
- max_
size_ floatgb The max data size of the elastic pool in gigabytes.
- name str
- per_
db_ floatmax_ capacity The maximum capacity any one database can consume.
- per_
db_ floatmin_ capacity The minimum capacity all databases are guaranteed.
- resource_
group_ strname - server_
name str - Dict[str, str]
A mapping of tags to assign to the resource.
- zone_
redundant bool Whether or not this elastic pool is zone redundant.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.