These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.sql.getManagedDatabase
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Gets a managed database. API Version: 2020-11-01-preview.
Using getManagedDatabase
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 getManagedDatabase(args: GetManagedDatabaseArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseResult>
function getManagedDatabaseOutput(args: GetManagedDatabaseOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseResult>def get_managed_database(database_name: Optional[str] = None,
                         managed_instance_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseResult
def get_managed_database_output(database_name: Optional[pulumi.Input[str]] = None,
                         managed_instance_name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseResult]func LookupManagedDatabase(ctx *Context, args *LookupManagedDatabaseArgs, opts ...InvokeOption) (*LookupManagedDatabaseResult, error)
func LookupManagedDatabaseOutput(ctx *Context, args *LookupManagedDatabaseOutputArgs, opts ...InvokeOption) LookupManagedDatabaseResultOutput> Note: This function is named LookupManagedDatabase in the Go SDK.
public static class GetManagedDatabase 
{
    public static Task<GetManagedDatabaseResult> InvokeAsync(GetManagedDatabaseArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabaseResult> Invoke(GetManagedDatabaseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedDatabaseResult> getManagedDatabase(GetManagedDatabaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure-native:sql:getManagedDatabase
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseName string
- The name of the database.
- ManagedInstance stringName 
- The name of the managed instance.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- DatabaseName string
- The name of the database.
- ManagedInstance stringName 
- The name of the managed instance.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- databaseName String
- The name of the database.
- managedInstance StringName 
- The name of the managed instance.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- databaseName string
- The name of the database.
- managedInstance stringName 
- The name of the managed instance.
- resourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- database_name str
- The name of the database.
- managed_instance_ strname 
- The name of the managed instance.
- resource_group_ strname 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- databaseName String
- The name of the database.
- managedInstance StringName 
- The name of the managed instance.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
getManagedDatabase Result
The following output properties are available:
- CreationDate string
- Creation date of the database.
- DefaultSecondary stringLocation 
- Geo paired region.
- EarliestRestore stringPoint 
- Earliest restore point in time for point in time restore.
- FailoverGroup stringId 
- Instance Failover Group resource identifier that this managed database belongs to.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- Resource name.
- Status string
- Status of the database.
- Type string
- Resource type.
- CatalogCollation string
- Collation of the metadata catalog.
- Collation string
- Collation of the managed database.
- Dictionary<string, string>
- Resource tags.
- CreationDate string
- Creation date of the database.
- DefaultSecondary stringLocation 
- Geo paired region.
- EarliestRestore stringPoint 
- Earliest restore point in time for point in time restore.
- FailoverGroup stringId 
- Instance Failover Group resource identifier that this managed database belongs to.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- Resource name.
- Status string
- Status of the database.
- Type string
- Resource type.
- CatalogCollation string
- Collation of the metadata catalog.
- Collation string
- Collation of the managed database.
- map[string]string
- Resource tags.
- creationDate String
- Creation date of the database.
- defaultSecondary StringLocation 
- Geo paired region.
- earliestRestore StringPoint 
- Earliest restore point in time for point in time restore.
- failoverGroup StringId 
- Instance Failover Group resource identifier that this managed database belongs to.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- Resource name.
- status String
- Status of the database.
- type String
- Resource type.
- catalogCollation String
- Collation of the metadata catalog.
- collation String
- Collation of the managed database.
- Map<String,String>
- Resource tags.
- creationDate string
- Creation date of the database.
- defaultSecondary stringLocation 
- Geo paired region.
- earliestRestore stringPoint 
- Earliest restore point in time for point in time restore.
- failoverGroup stringId 
- Instance Failover Group resource identifier that this managed database belongs to.
- id string
- Resource ID.
- location string
- Resource location.
- name string
- Resource name.
- status string
- Status of the database.
- type string
- Resource type.
- catalogCollation string
- Collation of the metadata catalog.
- collation string
- Collation of the managed database.
- {[key: string]: string}
- Resource tags.
- creation_date str
- Creation date of the database.
- default_secondary_ strlocation 
- Geo paired region.
- earliest_restore_ strpoint 
- Earliest restore point in time for point in time restore.
- failover_group_ strid 
- Instance Failover Group resource identifier that this managed database belongs to.
- id str
- Resource ID.
- location str
- Resource location.
- name str
- Resource name.
- status str
- Status of the database.
- type str
- Resource type.
- catalog_collation str
- Collation of the metadata catalog.
- collation str
- Collation of the managed database.
- Mapping[str, str]
- Resource tags.
- creationDate String
- Creation date of the database.
- defaultSecondary StringLocation 
- Geo paired region.
- earliestRestore StringPoint 
- Earliest restore point in time for point in time restore.
- failoverGroup StringId 
- Instance Failover Group resource identifier that this managed database belongs to.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- Resource name.
- status String
- Status of the database.
- type String
- Resource type.
- catalogCollation String
- Collation of the metadata catalog.
- collation String
- Collation of the managed database.
- Map<String>
- Resource tags.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi