Show / Hide Table of Contents

Class GetDatabase

Inheritance
System.Object
GetDatabase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.MSSql
Assembly: Pulumi.Azure.dll
Syntax
public static class GetDatabase

Methods

View Source

InvokeAsync(GetDatabaseArgs, InvokeOptions)

Use this data source to access information about an existing SQL database.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.MSSql.GetDatabase.InvokeAsync(new Azure.MSSql.GetDatabaseArgs
    {
        Name = "example-mssql-db",
        ServerId = "example-mssql-server-id",
    }));
    this.DatabaseId = example.Apply(example => example.Id);
}

[Output("databaseId")]
public Output<string> DatabaseId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetDatabaseArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetDatabaseResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.