1. Packages
  2. Azure Native
  3. API Docs
  4. maps
  5. listAccountKeys
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.maps.listAccountKeys

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.

Uses Azure REST API version 2024-07-01-preview.

Other available API versions: 2020-02-01-preview, 2021-02-01, 2021-07-01-preview, 2021-12-01-preview, 2023-06-01, 2023-08-01-preview, 2023-12-01-preview, 2024-01-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native maps [ApiVersion]. See the version guide for details.

Using listAccountKeys

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function listAccountKeys(args: ListAccountKeysArgs, opts?: InvokeOptions): Promise<ListAccountKeysResult>
function listAccountKeysOutput(args: ListAccountKeysOutputArgs, opts?: InvokeOptions): Output<ListAccountKeysResult>
Copy
def list_account_keys(account_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> ListAccountKeysResult
def list_account_keys_output(account_name: Optional[pulumi.Input[str]] = None,
                      resource_group_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[ListAccountKeysResult]
Copy
func ListAccountKeys(ctx *Context, args *ListAccountKeysArgs, opts ...InvokeOption) (*ListAccountKeysResult, error)
func ListAccountKeysOutput(ctx *Context, args *ListAccountKeysOutputArgs, opts ...InvokeOption) ListAccountKeysResultOutput
Copy

> Note: This function is named ListAccountKeys in the Go SDK.

public static class ListAccountKeys 
{
    public static Task<ListAccountKeysResult> InvokeAsync(ListAccountKeysArgs args, InvokeOptions? opts = null)
    public static Output<ListAccountKeysResult> Invoke(ListAccountKeysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListAccountKeysResult> listAccountKeys(ListAccountKeysArgs args, InvokeOptions options)
public static Output<ListAccountKeysResult> listAccountKeys(ListAccountKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:maps:listAccountKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Maps Account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Maps Account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Maps Account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Maps Account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Maps Account.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Maps Account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.

listAccountKeys Result

The following output properties are available:

PrimaryKey string
The primary key for accessing the Maps REST APIs.
PrimaryKeyLastUpdated string
The last updated date and time of the primary key.
SecondaryKey string
The secondary key for accessing the Maps REST APIs.
SecondaryKeyLastUpdated string
The last updated date and time of the secondary key.
PrimaryKey string
The primary key for accessing the Maps REST APIs.
PrimaryKeyLastUpdated string
The last updated date and time of the primary key.
SecondaryKey string
The secondary key for accessing the Maps REST APIs.
SecondaryKeyLastUpdated string
The last updated date and time of the secondary key.
primaryKey String
The primary key for accessing the Maps REST APIs.
primaryKeyLastUpdated String
The last updated date and time of the primary key.
secondaryKey String
The secondary key for accessing the Maps REST APIs.
secondaryKeyLastUpdated String
The last updated date and time of the secondary key.
primaryKey string
The primary key for accessing the Maps REST APIs.
primaryKeyLastUpdated string
The last updated date and time of the primary key.
secondaryKey string
The secondary key for accessing the Maps REST APIs.
secondaryKeyLastUpdated string
The last updated date and time of the secondary key.
primary_key str
The primary key for accessing the Maps REST APIs.
primary_key_last_updated str
The last updated date and time of the primary key.
secondary_key str
The secondary key for accessing the Maps REST APIs.
secondary_key_last_updated str
The last updated date and time of the secondary key.
primaryKey String
The primary key for accessing the Maps REST APIs.
primaryKeyLastUpdated String
The last updated date and time of the primary key.
secondaryKey String
The secondary key for accessing the Maps REST APIs.
secondaryKeyLastUpdated String
The last updated date and time of the secondary key.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi