1. Packages
  2. Azure Native v1
  3. API Docs
  4. sql
  5. getManagedDatabase
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

azure-native-v1 logo
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 dictionary

    The following arguments are supported:

    DatabaseName string
    The name of the database.
    ManagedInstanceName string
    The name of the managed instance.
    ResourceGroupName string
    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.
    ManagedInstanceName string
    The name of the managed instance.
    ResourceGroupName string
    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.
    managedInstanceName String
    The name of the managed instance.
    resourceGroupName String
    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.
    managedInstanceName string
    The name of the managed instance.
    resourceGroupName string
    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_name str
    The name of the managed instance.
    resource_group_name str
    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.
    managedInstanceName String
    The name of the managed instance.
    resourceGroupName String
    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.
    DefaultSecondaryLocation string
    Geo paired region.
    EarliestRestorePoint string
    Earliest restore point in time for point in time restore.
    FailoverGroupId string
    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.
    Tags Dictionary<string, string>
    Resource tags.
    CreationDate string
    Creation date of the database.
    DefaultSecondaryLocation string
    Geo paired region.
    EarliestRestorePoint string
    Earliest restore point in time for point in time restore.
    FailoverGroupId string
    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.
    Tags map[string]string
    Resource tags.
    creationDate String
    Creation date of the database.
    defaultSecondaryLocation String
    Geo paired region.
    earliestRestorePoint String
    Earliest restore point in time for point in time restore.
    failoverGroupId String
    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.
    tags Map<String,String>
    Resource tags.
    creationDate string
    Creation date of the database.
    defaultSecondaryLocation string
    Geo paired region.
    earliestRestorePoint string
    Earliest restore point in time for point in time restore.
    failoverGroupId string
    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.
    tags {[key: string]: string}
    Resource tags.
    creation_date str
    Creation date of the database.
    default_secondary_location str
    Geo paired region.
    earliest_restore_point str
    Earliest restore point in time for point in time restore.
    failover_group_id str
    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.
    tags Mapping[str, str]
    Resource tags.
    creationDate String
    Creation date of the database.
    defaultSecondaryLocation String
    Geo paired region.
    earliestRestorePoint String
    Earliest restore point in time for point in time restore.
    failoverGroupId String
    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.
    tags Map<String>
    Resource tags.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    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