1. Packages
  2. Azure Native
  3. API Docs
  4. redisenterprise
  5. getDatabase
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.3.0 published on Monday, Apr 28, 2025 by Pulumi

azure-native.redisenterprise.getDatabase

Explore with Pulumi AI

azure-native logo
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.3.0 published on Monday, Apr 28, 2025 by Pulumi

    Gets information about a database in a RedisEnterprise cluster.

    Uses Azure REST API version 2024-03-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-06-01-preview, 2024-09-01-preview, 2024-10-01, 2025-04-01, 2025-05-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 getDatabase

    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 getDatabase(args: GetDatabaseArgs, opts?: InvokeOptions): Promise<GetDatabaseResult>
    function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatabaseResult>
    def get_database(cluster_name: Optional[str] = None,
                     database_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
    def get_database_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[GetDatabaseResult]
    func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
    func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput

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

    public static class GetDatabase 
    {
        public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
    public static Output<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:redisenterprise:getDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterName string
    The name of the Redis Enterprise cluster.
    DatabaseName string
    The name of the Redis Enterprise database.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ClusterName string
    The name of the Redis Enterprise cluster.
    DatabaseName string
    The name of the Redis Enterprise database.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    clusterName String
    The name of the Redis Enterprise cluster.
    databaseName String
    The name of the Redis Enterprise database.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    clusterName string
    The name of the Redis Enterprise cluster.
    databaseName string
    The name of the Redis Enterprise database.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    cluster_name str
    The name of the Redis Enterprise cluster.
    database_name str
    The name of the Redis Enterprise database.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    clusterName String
    The name of the Redis Enterprise cluster.
    databaseName String
    The name of the Redis Enterprise database.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.

    getDatabase Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    ProvisioningState string
    Current provisioning status of the database
    RedisVersion string
    Version of Redis the database is running on, e.g. '6.0'
    ResourceState string
    Current resource status of the database
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ClientProtocol string
    Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
    ClusteringPolicy string
    Clustering policy - default is OSSCluster. Specified at create time.
    DeferUpgrade string
    Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
    EvictionPolicy string
    Redis eviction policy - default is VolatileLRU
    GeoReplication Pulumi.AzureNative.RedisEnterprise.Outputs.DatabasePropertiesResponseGeoReplication
    Optional set of properties to configure geo replication for this database.
    Modules List<Pulumi.AzureNative.RedisEnterprise.Outputs.ModuleResponse>
    Optional set of redis modules to enable in this database - modules can only be added at creation time.
    Persistence Pulumi.AzureNative.RedisEnterprise.Outputs.PersistenceResponse
    Persistence settings
    Port int
    TCP port of the database endpoint. Specified at create time. Defaults to an available port.
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    ProvisioningState string
    Current provisioning status of the database
    RedisVersion string
    Version of Redis the database is running on, e.g. '6.0'
    ResourceState string
    Current resource status of the database
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ClientProtocol string
    Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
    ClusteringPolicy string
    Clustering policy - default is OSSCluster. Specified at create time.
    DeferUpgrade string
    Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
    EvictionPolicy string
    Redis eviction policy - default is VolatileLRU
    GeoReplication DatabasePropertiesResponseGeoReplication
    Optional set of properties to configure geo replication for this database.
    Modules []ModuleResponse
    Optional set of redis modules to enable in this database - modules can only be added at creation time.
    Persistence PersistenceResponse
    Persistence settings
    Port int
    TCP port of the database endpoint. Specified at create time. Defaults to an available port.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    provisioningState String
    Current provisioning status of the database
    redisVersion String
    Version of Redis the database is running on, e.g. '6.0'
    resourceState String
    Current resource status of the database
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    clientProtocol String
    Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
    clusteringPolicy String
    Clustering policy - default is OSSCluster. Specified at create time.
    deferUpgrade String
    Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
    evictionPolicy String
    Redis eviction policy - default is VolatileLRU
    geoReplication DatabasePropertiesResponseGeoReplication
    Optional set of properties to configure geo replication for this database.
    modules List<ModuleResponse>
    Optional set of redis modules to enable in this database - modules can only be added at creation time.
    persistence PersistenceResponse
    Persistence settings
    port Integer
    TCP port of the database endpoint. Specified at create time. Defaults to an available port.
    azureApiVersion string
    The Azure API version of the resource.
    id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name string
    The name of the resource
    provisioningState string
    Current provisioning status of the database
    redisVersion string
    Version of Redis the database is running on, e.g. '6.0'
    resourceState string
    Current resource status of the database
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    clientProtocol string
    Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
    clusteringPolicy string
    Clustering policy - default is OSSCluster. Specified at create time.
    deferUpgrade string
    Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
    evictionPolicy string
    Redis eviction policy - default is VolatileLRU
    geoReplication DatabasePropertiesResponseGeoReplication
    Optional set of properties to configure geo replication for this database.
    modules ModuleResponse[]
    Optional set of redis modules to enable in this database - modules can only be added at creation time.
    persistence PersistenceResponse
    Persistence settings
    port number
    TCP port of the database endpoint. Specified at create time. Defaults to an available port.
    azure_api_version str
    The Azure API version of the resource.
    id str
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name str
    The name of the resource
    provisioning_state str
    Current provisioning status of the database
    redis_version str
    Version of Redis the database is running on, e.g. '6.0'
    resource_state str
    Current resource status of the database
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    client_protocol str
    Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
    clustering_policy str
    Clustering policy - default is OSSCluster. Specified at create time.
    defer_upgrade str
    Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
    eviction_policy str
    Redis eviction policy - default is VolatileLRU
    geo_replication DatabasePropertiesResponseGeoReplication
    Optional set of properties to configure geo replication for this database.
    modules Sequence[ModuleResponse]
    Optional set of redis modules to enable in this database - modules can only be added at creation time.
    persistence PersistenceResponse
    Persistence settings
    port int
    TCP port of the database endpoint. Specified at create time. Defaults to an available port.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    provisioningState String
    Current provisioning status of the database
    redisVersion String
    Version of Redis the database is running on, e.g. '6.0'
    resourceState String
    Current resource status of the database
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    clientProtocol String
    Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
    clusteringPolicy String
    Clustering policy - default is OSSCluster. Specified at create time.
    deferUpgrade String
    Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
    evictionPolicy String
    Redis eviction policy - default is VolatileLRU
    geoReplication Property Map
    Optional set of properties to configure geo replication for this database.
    modules List<Property Map>
    Optional set of redis modules to enable in this database - modules can only be added at creation time.
    persistence Property Map
    Persistence settings
    port Number
    TCP port of the database endpoint. Specified at create time. Defaults to an available port.

    Supporting Types

    DatabasePropertiesResponseGeoReplication

    GroupNickname string
    Name for the group of linked database resources
    LinkedDatabases List<Pulumi.AzureNative.RedisEnterprise.Inputs.LinkedDatabaseResponse>
    List of database resources to link with this database
    GroupNickname string
    Name for the group of linked database resources
    LinkedDatabases []LinkedDatabaseResponse
    List of database resources to link with this database
    groupNickname String
    Name for the group of linked database resources
    linkedDatabases List<LinkedDatabaseResponse>
    List of database resources to link with this database
    groupNickname string
    Name for the group of linked database resources
    linkedDatabases LinkedDatabaseResponse[]
    List of database resources to link with this database
    group_nickname str
    Name for the group of linked database resources
    linked_databases Sequence[LinkedDatabaseResponse]
    List of database resources to link with this database
    groupNickname String
    Name for the group of linked database resources
    linkedDatabases List<Property Map>
    List of database resources to link with this database

    LinkedDatabaseResponse

    State string
    State of the link between the database resources.
    Id string
    Resource ID of a database resource to link with this database.
    State string
    State of the link between the database resources.
    Id string
    Resource ID of a database resource to link with this database.
    state String
    State of the link between the database resources.
    id String
    Resource ID of a database resource to link with this database.
    state string
    State of the link between the database resources.
    id string
    Resource ID of a database resource to link with this database.
    state str
    State of the link between the database resources.
    id str
    Resource ID of a database resource to link with this database.
    state String
    State of the link between the database resources.
    id String
    Resource ID of a database resource to link with this database.

    ModuleResponse

    Name string
    The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
    Version string
    The version of the module, e.g. '1.0'.
    Args string
    Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
    Name string
    The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
    Version string
    The version of the module, e.g. '1.0'.
    Args string
    Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
    name String
    The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
    version String
    The version of the module, e.g. '1.0'.
    args String
    Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
    name string
    The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
    version string
    The version of the module, e.g. '1.0'.
    args string
    Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
    name str
    The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
    version str
    The version of the module, e.g. '1.0'.
    args str
    Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
    name String
    The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'
    version String
    The version of the module, e.g. '1.0'.
    args String
    Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.

    PersistenceResponse

    AofEnabled bool
    Sets whether AOF is enabled.
    AofFrequency string
    Sets the frequency at which data is written to disk.
    RdbEnabled bool
    Sets whether RDB is enabled.
    RdbFrequency string
    Sets the frequency at which a snapshot of the database is created.
    AofEnabled bool
    Sets whether AOF is enabled.
    AofFrequency string
    Sets the frequency at which data is written to disk.
    RdbEnabled bool
    Sets whether RDB is enabled.
    RdbFrequency string
    Sets the frequency at which a snapshot of the database is created.
    aofEnabled Boolean
    Sets whether AOF is enabled.
    aofFrequency String
    Sets the frequency at which data is written to disk.
    rdbEnabled Boolean
    Sets whether RDB is enabled.
    rdbFrequency String
    Sets the frequency at which a snapshot of the database is created.
    aofEnabled boolean
    Sets whether AOF is enabled.
    aofFrequency string
    Sets the frequency at which data is written to disk.
    rdbEnabled boolean
    Sets whether RDB is enabled.
    rdbFrequency string
    Sets the frequency at which a snapshot of the database is created.
    aof_enabled bool
    Sets whether AOF is enabled.
    aof_frequency str
    Sets the frequency at which data is written to disk.
    rdb_enabled bool
    Sets whether RDB is enabled.
    rdb_frequency str
    Sets the frequency at which a snapshot of the database is created.
    aofEnabled Boolean
    Sets whether AOF is enabled.
    aofFrequency String
    Sets the frequency at which data is written to disk.
    rdbEnabled Boolean
    Sets whether RDB is enabled.
    rdbFrequency String
    Sets the frequency at which a snapshot of the database is created.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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.3.0 published on Monday, Apr 28, 2025 by Pulumi