published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Retrieves the access keys for the Redis Enterprise database.
Uses Azure REST API version 2025-05-01-preview.
Other available API versions: 2020-10-01-preview, 2021-02-01-preview, 2021-03-01, 2021-08-01, 2022-01-01, 2022-11-01-preview, 2023-03-01-preview, 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, 2025-04-01, 2025-07-01, 2025-08-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native redisenterprise [ApiVersion]. See the version guide for details.
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>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]func ListDatabaseKeys(ctx *Context, args *ListDatabaseKeysArgs, opts ...InvokeOption) (*ListDatabaseKeysResult, error)
func ListDatabaseKeysOutput(ctx *Context, args *ListDatabaseKeysOutputArgs, opts ...InvokeOption) ListDatabaseKeysResultOutput> 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)
}public static CompletableFuture<ListDatabaseKeysResult> listDatabaseKeys(ListDatabaseKeysArgs args, InvokeOptions options)
public static Output<ListDatabaseKeysResult> listDatabaseKeys(ListDatabaseKeysArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:redisenterprise:listDatabaseKeys
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Name string - The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens
- Database
Name string - The name of the Redis Enterprise database.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Cluster
Name string - The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens
- Database
Name string - The name of the Redis Enterprise database.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- cluster
Name String - The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens
- database
Name String - The name of the Redis Enterprise database.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- cluster
Name string - The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens
- database
Name string - The name of the Redis Enterprise database.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- cluster_
name str - The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens
- database_
name str - The name of the Redis Enterprise database.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- cluster
Name String - The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens
- database
Name String - The name of the Redis Enterprise database.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
listDatabaseKeys Result
The following output properties are available:
- Primary
Key string - The current primary key that clients can use to authenticate
- Secondary
Key string - The current secondary key that clients can use to authenticate
- Primary
Key string - The current primary key that clients can use to authenticate
- Secondary
Key string - The current secondary key that clients can use to authenticate
- primary
Key String - The current primary key that clients can use to authenticate
- secondary
Key String - The current secondary key that clients can use to authenticate
- primary
Key string - The current primary key that clients can use to authenticate
- secondary
Key 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
- primary
Key String - The current primary key that clients can use to authenticate
- secondary
Key String - The current secondary key that clients can use to authenticate
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Friday, Mar 20, 2026 by Pulumi
