1. Packages
  2. Azure Native v2
  3. API Docs
  4. cache
  5. listDatabaseKeys
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.cache.listDatabaseKeys

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Retrieves the access keys for the RedisEnterprise database. Azure REST API version: 2023-03-01-preview.

Other available API versions: 2023-07-01, 2023-08-01-preview, 2023-10-01-preview, 2023-11-01, 2024-02-01, 2024-03-01-preview, 2024-06-01-preview, 2024-09-01-preview, 2024-10-01.

Using listDatabaseKeys

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 listDatabaseKeys(args: ListDatabaseKeysArgs, opts?: InvokeOptions): Promise<ListDatabaseKeysResult>
function listDatabaseKeysOutput(args: ListDatabaseKeysOutputArgs, opts?: InvokeOptions): Output<ListDatabaseKeysResult>
Copy
def list_database_keys(cluster_name: Optional[str] = None,
                       database_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> ListDatabaseKeysResult
def list_database_keys_output(cluster_name: Optional[pulumi.Input[str]] = None,
                       database_name: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[ListDatabaseKeysResult]
Copy
func ListDatabaseKeys(ctx *Context, args *ListDatabaseKeysArgs, opts ...InvokeOption) (*ListDatabaseKeysResult, error)
func ListDatabaseKeysOutput(ctx *Context, args *ListDatabaseKeysOutputArgs, opts ...InvokeOption) ListDatabaseKeysResultOutput
Copy

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

public static class ListDatabaseKeys 
{
    public static Task<ListDatabaseKeysResult> InvokeAsync(ListDatabaseKeysArgs args, InvokeOptions? opts = null)
    public static Output<ListDatabaseKeysResult> Invoke(ListDatabaseKeysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListDatabaseKeysResult> listDatabaseKeys(ListDatabaseKeysArgs args, InvokeOptions options)
public static Output<ListDatabaseKeysResult> listDatabaseKeys(ListDatabaseKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:cache:listDatabaseKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the RedisEnterprise cluster.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ClusterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the RedisEnterprise cluster.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
clusterName
This property is required.
Changes to this property will trigger replacement.
String
The name of the RedisEnterprise cluster.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
clusterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the RedisEnterprise cluster.
databaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
cluster_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the RedisEnterprise cluster.
database_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the database.
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.
clusterName
This property is required.
Changes to this property will trigger replacement.
String
The name of the RedisEnterprise cluster.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.

listDatabaseKeys Result

The following output properties are available:

PrimaryKey string
The current primary key that clients can use to authenticate
SecondaryKey string
The current secondary key that clients can use to authenticate
PrimaryKey string
The current primary key that clients can use to authenticate
SecondaryKey string
The current secondary key that clients can use to authenticate
primaryKey String
The current primary key that clients can use to authenticate
secondaryKey String
The current secondary key that clients can use to authenticate
primaryKey string
The current primary key that clients can use to authenticate
secondaryKey string
The current secondary key that clients can use to authenticate
primary_key str
The current primary key that clients can use to authenticate
secondary_key str
The current secondary key that clients can use to authenticate
primaryKey String
The current primary key that clients can use to authenticate
secondaryKey String
The current secondary key that clients can use to authenticate

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi