This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getSqlServerInstance.go
54 lines (49 loc) · 2.07 KB
/
getSqlServerInstance.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190724preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupSqlServerInstance(ctx *pulumi.Context, args *LookupSqlServerInstanceArgs, opts ...pulumi.InvokeOption) (*LookupSqlServerInstanceResult, error) {
var rv LookupSqlServerInstanceResult
err := ctx.Invoke("azure-nextgen:azuredata/v20190724preview:getSqlServerInstance", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupSqlServerInstanceArgs struct {
// The name of the Azure resource group
ResourceGroupName string `pulumi:"resourceGroupName"`
// Name of SQL Server Instance
SqlServerInstanceName string `pulumi:"sqlServerInstanceName"`
}
// A SqlServerInstance.
type LookupSqlServerInstanceResult struct {
// ARM Resource id of the container resource (Azure Arc for Servers)
ContainerResourceId string `pulumi:"containerResourceId"`
// The time when the resource was created.
CreateTime string `pulumi:"createTime"`
// SQL Server edition.
Edition string `pulumi:"edition"`
// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// The geo-location where the resource lives
Location string `pulumi:"location"`
// The name of the resource
Name string `pulumi:"name"`
// The cloud connectivity status.
Status string `pulumi:"status"`
// Read only system data
SystemData SystemDataResponse `pulumi:"systemData"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Type string `pulumi:"type"`
// The time when the resource was last updated.
UpdateTime string `pulumi:"updateTime"`
// The number of logical processors used by the SQL Server instance.
VCore string `pulumi:"vCore"`
// SQL Server version.
Version string `pulumi:"version"`
}