GetAccount

Uses this data source to access information about an existing NetApp Account.

NetApp Account Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.netapp.getAccount({
    resourceGroupName: "acctestRG",
    name: "acctestnetappaccount",
});
export const netappAccountId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure

example = azure.netapp.get_account(resource_group_name="acctestRG",
    name="acctestnetappaccount")
pulumi.export("netappAccountId", example.id)
using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.NetApp.GetAccount.InvokeAsync(new Azure.NetApp.GetAccountArgs
        {
            ResourceGroupName = "acctestRG",
            Name = "acctestnetappaccount",
        }));
        this.NetappAccountId = example.Apply(example => example.Id);
    }

    [Output("netappAccountId")]
    public Output<string> NetappAccountId { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/netapp"
	"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := netapp.LookupAccount(ctx, &netapp.LookupAccountArgs{
			ResourceGroupName: "acctestRG",
			Name:              "acctestnetappaccount",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("netappAccountId", example.Id)
		return nil
	})
}

Using GetAccount

function getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function  get_account(name=None, resource_group_name=None, opts=None)
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)

Note: This function is named LookupAccount in the Go SDK.

public static class GetAccount {
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the NetApp Account.

ResourceGroupName string

The Name of the Resource Group where the NetApp Account exists.

Name string

The name of the NetApp Account.

ResourceGroupName string

The Name of the Resource Group where the NetApp Account exists.

name string

The name of the NetApp Account.

resourceGroupName string

The Name of the Resource Group where the NetApp Account exists.

name str

The name of the NetApp Account.

resource_group_name str

The Name of the Resource Group where the NetApp Account exists.

GetAccount Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure Region where the NetApp Account exists.

Name string
ResourceGroupName string
Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure Region where the NetApp Account exists.

Name string
ResourceGroupName string
id string

The provider-assigned unique ID for this managed resource.

location string

The Azure Region where the NetApp Account exists.

name string
resourceGroupName string
id str

The provider-assigned unique ID for this managed resource.

location str

The Azure Region where the NetApp Account exists.

name str
resource_group_name str

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.