azure-native.documentdb.listDatabaseAccountKeys
Explore with Pulumi AI
Lists the access keys for the specified Azure Cosmos DB database account. Azure REST API version: 2023-04-15.
Other available API versions: 2021-04-01-preview, 2023-03-15-preview, 2023-09-15, 2023-09-15-preview, 2023-11-15, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15, 2024-05-15-preview, 2024-08-15, 2024-09-01-preview, 2024-11-15, 2024-12-01-preview.
Using listDatabaseAccountKeys
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 listDatabaseAccountKeys(args: ListDatabaseAccountKeysArgs, opts?: InvokeOptions): Promise<ListDatabaseAccountKeysResult>
function listDatabaseAccountKeysOutput(args: ListDatabaseAccountKeysOutputArgs, opts?: InvokeOptions): Output<ListDatabaseAccountKeysResult>def list_database_account_keys(account_name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> ListDatabaseAccountKeysResult
def list_database_account_keys_output(account_name: Optional[pulumi.Input[str]] = None,
                               resource_group_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[ListDatabaseAccountKeysResult]func ListDatabaseAccountKeys(ctx *Context, args *ListDatabaseAccountKeysArgs, opts ...InvokeOption) (*ListDatabaseAccountKeysResult, error)
func ListDatabaseAccountKeysOutput(ctx *Context, args *ListDatabaseAccountKeysOutputArgs, opts ...InvokeOption) ListDatabaseAccountKeysResultOutput> Note: This function is named ListDatabaseAccountKeys in the Go SDK.
public static class ListDatabaseAccountKeys 
{
    public static Task<ListDatabaseAccountKeysResult> InvokeAsync(ListDatabaseAccountKeysArgs args, InvokeOptions? opts = null)
    public static Output<ListDatabaseAccountKeysResult> Invoke(ListDatabaseAccountKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ListDatabaseAccountKeysResult> listDatabaseAccountKeys(ListDatabaseAccountKeysArgs args, InvokeOptions options)
public static Output<ListDatabaseAccountKeysResult> listDatabaseAccountKeys(ListDatabaseAccountKeysArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:documentdb:listDatabaseAccountKeys
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountName string
- Cosmos DB database account name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- AccountName string
- Cosmos DB database account name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- accountName String
- Cosmos DB database account name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- accountName string
- Cosmos DB database account name.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- account_name str
- Cosmos DB database account name.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- accountName String
- Cosmos DB database account name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
listDatabaseAccountKeys Result
The following output properties are available:
- PrimaryMaster stringKey 
- Base 64 encoded value of the primary read-write key.
- PrimaryReadonly stringMaster Key 
- Base 64 encoded value of the primary read-only key.
- SecondaryMaster stringKey 
- Base 64 encoded value of the secondary read-write key.
- SecondaryReadonly stringMaster Key 
- Base 64 encoded value of the secondary read-only key.
- PrimaryMaster stringKey 
- Base 64 encoded value of the primary read-write key.
- PrimaryReadonly stringMaster Key 
- Base 64 encoded value of the primary read-only key.
- SecondaryMaster stringKey 
- Base 64 encoded value of the secondary read-write key.
- SecondaryReadonly stringMaster Key 
- Base 64 encoded value of the secondary read-only key.
- primaryMaster StringKey 
- Base 64 encoded value of the primary read-write key.
- primaryReadonly StringMaster Key 
- Base 64 encoded value of the primary read-only key.
- secondaryMaster StringKey 
- Base 64 encoded value of the secondary read-write key.
- secondaryReadonly StringMaster Key 
- Base 64 encoded value of the secondary read-only key.
- primaryMaster stringKey 
- Base 64 encoded value of the primary read-write key.
- primaryReadonly stringMaster Key 
- Base 64 encoded value of the primary read-only key.
- secondaryMaster stringKey 
- Base 64 encoded value of the secondary read-write key.
- secondaryReadonly stringMaster Key 
- Base 64 encoded value of the secondary read-only key.
- primary_master_ strkey 
- Base 64 encoded value of the primary read-write key.
- primary_readonly_ strmaster_ key 
- Base 64 encoded value of the primary read-only key.
- secondary_master_ strkey 
- Base 64 encoded value of the secondary read-write key.
- secondary_readonly_ strmaster_ key 
- Base 64 encoded value of the secondary read-only key.
- primaryMaster StringKey 
- Base 64 encoded value of the primary read-write key.
- primaryReadonly StringMaster Key 
- Base 64 encoded value of the primary read-only key.
- secondaryMaster StringKey 
- Base 64 encoded value of the secondary read-write key.
- secondaryReadonly StringMaster Key 
- Base 64 encoded value of the secondary read-only key.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0