Class GetServer
Inheritance
System.Object
GetServer
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.PostgreSql
Assembly: Pulumi.Azure.dll
Syntax
public static class GetServer
Methods
View SourceInvokeAsync(GetServerArgs, InvokeOptions)
Use this data source to access information about an existing PostgreSQL Azure Database Server.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.PostgreSql.GetServer.InvokeAsync(new Azure.PostgreSql.GetServerArgs
{
Name = "postgresql-server-1",
ResourceGroupName = "api-rg-pro",
}));
this.PostgresqlServerId = example.Apply(example => example.Id);
}
[Output("postgresqlServerId")]
public Output<string> PostgresqlServerId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetServerResult> InvokeAsync(GetServerArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServerArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServerResult> |