azure-native.redisenterprise.getDatabase
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Cluster
Name string - The name of the Redis Enterprise cluster.
 - 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.
 - 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.
 - 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.
 - 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.
 - 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.
 - database
Name String - The name of the Redis Enterprise database.
 - resource
Group StringName  - The name of the resource group. The name is case insensitive.
 
getDatabase Result
The following output properties are available:
- Azure
Api stringVersion  - 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
 - Provisioning
State string - Current provisioning status of the database
 - Redis
Version string - Version of Redis the database is running on, e.g. '6.0'
 - Resource
State string - Current resource status of the database
 - Type string
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - Client
Protocol string - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
 - Clustering
Policy string - Clustering policy - default is OSSCluster. Specified at create time.
 - Defer
Upgrade string - Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
 - Eviction
Policy string - Redis eviction policy - default is VolatileLRU
 - Geo
Replication Pulumi.Azure Native. Redis Enterprise. Outputs. Database Properties Response Geo Replication  - Optional set of properties to configure geo replication for this database.
 - Modules
List<Pulumi.
Azure Native. Redis Enterprise. Outputs. Module Response>  - Optional set of redis modules to enable in this database - modules can only be added at creation time.
 - Persistence
Pulumi.
Azure Native. Redis Enterprise. Outputs. Persistence Response  - Persistence settings
 - Port int
 - TCP port of the database endpoint. Specified at create time. Defaults to an available port.
 
- Azure
Api stringVersion  - 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
 - Provisioning
State string - Current provisioning status of the database
 - Redis
Version string - Version of Redis the database is running on, e.g. '6.0'
 - Resource
State string - Current resource status of the database
 - Type string
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - Client
Protocol string - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
 - Clustering
Policy string - Clustering policy - default is OSSCluster. Specified at create time.
 - Defer
Upgrade string - Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
 - Eviction
Policy string - Redis eviction policy - default is VolatileLRU
 - Geo
Replication DatabaseProperties Response Geo Replication  - Optional set of properties to configure geo replication for this database.
 - Modules
[]Module
Response  - Optional set of redis modules to enable in this database - modules can only be added at creation time.
 - Persistence
Persistence
Response  - Persistence settings
 - Port int
 - TCP port of the database endpoint. Specified at create time. Defaults to an available port.
 
- azure
Api StringVersion  - 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
 - provisioning
State String - Current provisioning status of the database
 - redis
Version String - Version of Redis the database is running on, e.g. '6.0'
 - resource
State String - Current resource status of the database
 - type String
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - client
Protocol String - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
 - clustering
Policy String - Clustering policy - default is OSSCluster. Specified at create time.
 - defer
Upgrade String - Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
 - eviction
Policy String - Redis eviction policy - default is VolatileLRU
 - geo
Replication DatabaseProperties Response Geo Replication  - Optional set of properties to configure geo replication for this database.
 - modules
List<Module
Response>  - Optional set of redis modules to enable in this database - modules can only be added at creation time.
 - persistence
Persistence
Response  - Persistence settings
 - port Integer
 - TCP port of the database endpoint. Specified at create time. Defaults to an available port.
 
- azure
Api stringVersion  - 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
 - provisioning
State string - Current provisioning status of the database
 - redis
Version string - Version of Redis the database is running on, e.g. '6.0'
 - resource
State string - Current resource status of the database
 - type string
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - client
Protocol string - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
 - clustering
Policy string - Clustering policy - default is OSSCluster. Specified at create time.
 - defer
Upgrade string - Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
 - eviction
Policy string - Redis eviction policy - default is VolatileLRU
 - geo
Replication DatabaseProperties Response Geo Replication  - Optional set of properties to configure geo replication for this database.
 - modules
Module
Response[]  - Optional set of redis modules to enable in this database - modules can only be added at creation time.
 - persistence
Persistence
Response  - Persistence settings
 - port number
 - TCP port of the database endpoint. Specified at create time. Defaults to an available port.
 
- azure_
api_ strversion  - 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 DatabaseProperties Response Geo Replication  - Optional set of properties to configure geo replication for this database.
 - modules
Sequence[Module
Response]  - Optional set of redis modules to enable in this database - modules can only be added at creation time.
 - persistence
Persistence
Response  - Persistence settings
 - port int
 - TCP port of the database endpoint. Specified at create time. Defaults to an available port.
 
- azure
Api StringVersion  - 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
 - provisioning
State String - Current provisioning status of the database
 - redis
Version String - Version of Redis the database is running on, e.g. '6.0'
 - resource
State String - Current resource status of the database
 - type String
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - client
Protocol String - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
 - clustering
Policy String - Clustering policy - default is OSSCluster. Specified at create time.
 - defer
Upgrade String - Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade
 - eviction
Policy String - Redis eviction policy - default is VolatileLRU
 - geo
Replication 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    
- Group
Nickname string - Name for the group of linked database resources
 - Linked
Databases List<Pulumi.Azure Native. Redis Enterprise. Inputs. Linked Database Response>  - List of database resources to link with this database
 
- Group
Nickname string - Name for the group of linked database resources
 - Linked
Databases []LinkedDatabase Response  - List of database resources to link with this database
 
- group
Nickname String - Name for the group of linked database resources
 - linked
Databases List<LinkedDatabase Response>  - List of database resources to link with this database
 
- group
Nickname string - Name for the group of linked database resources
 - linked
Databases LinkedDatabase Response[]  - List of database resources to link with this database
 
- group_
nickname str - Name for the group of linked database resources
 - linked_
databases Sequence[LinkedDatabase Response]  - List of database resources to link with this database
 
- group
Nickname String - Name for the group of linked database resources
 - linked
Databases List<Property Map> - List of database resources to link with this database
 
LinkedDatabaseResponse  
ModuleResponse 
PersistenceResponse 
- Aof
Enabled bool - Sets whether AOF is enabled.
 - Aof
Frequency string - Sets the frequency at which data is written to disk.
 - Rdb
Enabled bool - Sets whether RDB is enabled.
 - Rdb
Frequency string - Sets the frequency at which a snapshot of the database is created.
 
- Aof
Enabled bool - Sets whether AOF is enabled.
 - Aof
Frequency string - Sets the frequency at which data is written to disk.
 - Rdb
Enabled bool - Sets whether RDB is enabled.
 - Rdb
Frequency string - Sets the frequency at which a snapshot of the database is created.
 
- aof
Enabled Boolean - Sets whether AOF is enabled.
 - aof
Frequency String - Sets the frequency at which data is written to disk.
 - rdb
Enabled Boolean - Sets whether RDB is enabled.
 - rdb
Frequency String - Sets the frequency at which a snapshot of the database is created.
 
- aof
Enabled boolean - Sets whether AOF is enabled.
 - aof
Frequency string - Sets the frequency at which data is written to disk.
 - rdb
Enabled boolean - Sets whether RDB is enabled.
 - rdb
Frequency 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.
 
- aof
Enabled Boolean - Sets whether AOF is enabled.
 - aof
Frequency String - Sets the frequency at which data is written to disk.
 - rdb
Enabled Boolean - Sets whether RDB is enabled.
 - rdb
Frequency 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