GetAccount
Use this data source to access information about an existing Azure Maps Account.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Maps.GetAccount.InvokeAsync(new Azure.Maps.GetAccountArgs
{
Name = "production",
ResourceGroupName = "maps",
}));
this.MapsAccountId = example.Apply(example => example.Id);
}
[Output("mapsAccountId")]
public Output<string> MapsAccountId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/maps"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := maps.LookupAccount(ctx, &maps.LookupAccountArgs{
Name: "production",
ResourceGroupName: "maps",
}, nil)
if err != nil {
return err
}
ctx.Export("mapsAccountId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.maps.get_account(name="production",
resource_group_name="maps")
pulumi.export("mapsAccountId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.maps.getAccount({
name: "production",
resourceGroupName: "maps",
});
export const mapsAccountId = example.then(example => example.id);Using GetAccount
function getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>function get_account(name=None, resource_group_name=None, tags=None, opts=None)func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)Note: This function is named
LookupAccountin the Go SDK.
public static class GetAccount {
public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Maps Account.
- Resource
Group stringName Specifies the name of the Resource Group in which the Maps Account is located.
- Dictionary<string, string>
- Name string
Specifies the name of the Maps Account.
- Resource
Group stringName Specifies the name of the Resource Group in which the Maps Account is located.
- map[string]string
- name string
Specifies the name of the Maps Account.
- resource
Group stringName Specifies the name of the Resource Group in which the Maps Account is located.
- {[key: string]: string}
- name str
Specifies the name of the Maps Account.
- resource_
group_ strname Specifies the name of the Resource Group in which the Maps Account is located.
- Dict[str, str]
GetAccount Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Primary
Access stringKey The primary key used to authenticate and authorize access to the Maps REST APIs.
- Resource
Group stringName - Secondary
Access stringKey The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.
- Sku
Name string The sku of the Azure Maps Account.
- XMs
Client stringId A unique identifier for the Maps Account.
- Dictionary<string, string>
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Primary
Access stringKey The primary key used to authenticate and authorize access to the Maps REST APIs.
- Resource
Group stringName - Secondary
Access stringKey The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.
- Sku
Name string The sku of the Azure Maps Account.
- XMs
Client stringId A unique identifier for the Maps Account.
- map[string]string
- id string
The provider-assigned unique ID for this managed resource.
- name string
- primary
Access stringKey The primary key used to authenticate and authorize access to the Maps REST APIs.
- resource
Group stringName - secondary
Access stringKey The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.
- sku
Name string The sku of the Azure Maps Account.
- x
Ms stringClient Id A unique identifier for the Maps Account.
- {[key: string]: string}
- id str
The provider-assigned unique ID for this managed resource.
- name str
- primary_
access_ strkey The primary key used to authenticate and authorize access to the Maps REST APIs.
- resource_
group_ strname - secondary_
access_ strkey The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.
- sku_
name str The sku of the Azure Maps Account.
- x_
ms_ strclient_ id A unique identifier for the Maps Account.
- Dict[str, str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.