azure-native.azurearcdata.getSqlServerDatabase
Explore with Pulumi AI
Retrieves an Arc Sql Server database.
Uses Azure REST API version 2024-01-01.
Other available API versions: 2023-01-15-preview, 2024-05-01-preview, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azurearcdata [ApiVersion]
. See the version guide for details.
Using getSqlServerDatabase
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 getSqlServerDatabase(args: GetSqlServerDatabaseArgs, opts?: InvokeOptions): Promise<GetSqlServerDatabaseResult>
function getSqlServerDatabaseOutput(args: GetSqlServerDatabaseOutputArgs, opts?: InvokeOptions): Output<GetSqlServerDatabaseResult>
def get_sql_server_database(database_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
sql_server_instance_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlServerDatabaseResult
def get_sql_server_database_output(database_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
sql_server_instance_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlServerDatabaseResult]
func LookupSqlServerDatabase(ctx *Context, args *LookupSqlServerDatabaseArgs, opts ...InvokeOption) (*LookupSqlServerDatabaseResult, error)
func LookupSqlServerDatabaseOutput(ctx *Context, args *LookupSqlServerDatabaseOutputArgs, opts ...InvokeOption) LookupSqlServerDatabaseResultOutput
> Note: This function is named LookupSqlServerDatabase
in the Go SDK.
public static class GetSqlServerDatabase
{
public static Task<GetSqlServerDatabaseResult> InvokeAsync(GetSqlServerDatabaseArgs args, InvokeOptions? opts = null)
public static Output<GetSqlServerDatabaseResult> Invoke(GetSqlServerDatabaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlServerDatabaseResult> getSqlServerDatabase(GetSqlServerDatabaseArgs args, InvokeOptions options)
public static Output<GetSqlServerDatabaseResult> getSqlServerDatabase(GetSqlServerDatabaseArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:azurearcdata:getSqlServerDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Name string - Name of the database
- Resource
Group stringName - The name of the Azure resource group
- Sql
Server stringInstance Name - Name of SQL Server Instance
- Database
Name string - Name of the database
- Resource
Group stringName - The name of the Azure resource group
- Sql
Server stringInstance Name - Name of SQL Server Instance
- database
Name String - Name of the database
- resource
Group StringName - The name of the Azure resource group
- sql
Server StringInstance Name - Name of SQL Server Instance
- database
Name string - Name of the database
- resource
Group stringName - The name of the Azure resource group
- sql
Server stringInstance Name - Name of SQL Server Instance
- database_
name str - Name of the database
- resource_
group_ strname - The name of the Azure resource group
- sql_
server_ strinstance_ name - Name of SQL Server Instance
- database
Name String - Name of the database
- resource
Group StringName - The name of the Azure resource group
- sql
Server StringInstance Name - Name of SQL Server Instance
getSqlServerDatabase 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}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Properties
Pulumi.
Azure Native. Azure Arc Data. Outputs. Sql Server Database Resource Properties Response - Properties of Arc Sql Server database
- System
Data Pulumi.Azure Native. Azure Arc Data. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Dictionary<string, string>
- Resource tags.
- 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}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Properties
Sql
Server Database Resource Properties Response - Properties of Arc Sql Server database
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- map[string]string
- Resource tags.
- 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}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- properties
Sql
Server Database Resource Properties Response - Properties of Arc Sql Server database
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Map<String,String>
- Resource tags.
- 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}
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- properties
Sql
Server Database Resource Properties Response - Properties of Arc Sql Server database
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- {[key: string]: string}
- Resource tags.
- 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}
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- properties
Sql
Server Database Resource Properties Response - Properties of Arc Sql Server database
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Mapping[str, str]
- Resource tags.
- 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}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- properties Property Map
- Properties of Arc Sql Server database
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Map<String>
- Resource tags.
Supporting Types
BackupPolicyResponse
- Differential
Backup intHours - The differential backup interval in hours.
- Full
Backup intDays - The value indicating days between full backups.
- Retention
Period intDays - The retention period for all the databases in this managed instance.
- Transaction
Log intBackup Minutes - The value indicating minutes between transaction log backups.
- Differential
Backup intHours - The differential backup interval in hours.
- Full
Backup intDays - The value indicating days between full backups.
- Retention
Period intDays - The retention period for all the databases in this managed instance.
- Transaction
Log intBackup Minutes - The value indicating minutes between transaction log backups.
- differential
Backup IntegerHours - The differential backup interval in hours.
- full
Backup IntegerDays - The value indicating days between full backups.
- retention
Period IntegerDays - The retention period for all the databases in this managed instance.
- transaction
Log IntegerBackup Minutes - The value indicating minutes between transaction log backups.
- differential
Backup numberHours - The differential backup interval in hours.
- full
Backup numberDays - The value indicating days between full backups.
- retention
Period numberDays - The retention period for all the databases in this managed instance.
- transaction
Log numberBackup Minutes - The value indicating minutes between transaction log backups.
- differential_
backup_ inthours - The differential backup interval in hours.
- full_
backup_ intdays - The value indicating days between full backups.
- retention_
period_ intdays - The retention period for all the databases in this managed instance.
- transaction_
log_ intbackup_ minutes - The value indicating minutes between transaction log backups.
- differential
Backup NumberHours - The differential backup interval in hours.
- full
Backup NumberDays - The value indicating days between full backups.
- retention
Period NumberDays - The retention period for all the databases in this managed instance.
- transaction
Log NumberBackup Minutes - The value indicating minutes between transaction log backups.
SqlServerDatabaseResourcePropertiesResponse
- Earliest
Restore stringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- Last
Database stringUpload Time - The time when last successful database upload was performed.
- Provisioning
State string - The provisioning state of the Arc-enabled SQL Server database resource.
- Backup
Information Pulumi.Azure Native. Azure Arc Data. Inputs. Sql Server Database Resource Properties Response Backup Information - Backup
Policy Pulumi.Azure Native. Azure Arc Data. Inputs. Backup Policy Response - The backup profile for the SQL server.
- Collation
Name string - Collation of the database.
- Compatibility
Level int - Compatibility level of the database
- Create
Mode string - Database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. sourceDatabaseId and restorePointInTime must be specified.
- Database
Creation stringDate - Creation date of the database.
- Database
Options Pulumi.Azure Native. Azure Arc Data. Inputs. Sql Server Database Resource Properties Response Database Options - List of features that are enabled for the database
- Is
Read boolOnly - Whether the database is read only or not.
- Recovery
Mode string - Status of the database.
- Restore
Point stringIn Time - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
- Size
MB double - Size of the database.
- Source
Database stringId - The resource identifier of the source database associated with create operation of this database.
- Space
Available doubleMB - Space left of the database.
- State string
- State of the database.
- Earliest
Restore stringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- Last
Database stringUpload Time - The time when last successful database upload was performed.
- Provisioning
State string - The provisioning state of the Arc-enabled SQL Server database resource.
- Backup
Information SqlServer Database Resource Properties Response Backup Information - Backup
Policy BackupPolicy Response - The backup profile for the SQL server.
- Collation
Name string - Collation of the database.
- Compatibility
Level int - Compatibility level of the database
- Create
Mode string - Database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. sourceDatabaseId and restorePointInTime must be specified.
- Database
Creation stringDate - Creation date of the database.
- Database
Options SqlServer Database Resource Properties Response Database Options - List of features that are enabled for the database
- Is
Read boolOnly - Whether the database is read only or not.
- Recovery
Mode string - Status of the database.
- Restore
Point stringIn Time - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
- Size
MB float64 - Size of the database.
- Source
Database stringId - The resource identifier of the source database associated with create operation of this database.
- Space
Available float64MB - Space left of the database.
- State string
- State of the database.
- earliest
Restore StringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- last
Database StringUpload Time - The time when last successful database upload was performed.
- provisioning
State String - The provisioning state of the Arc-enabled SQL Server database resource.
- backup
Information SqlServer Database Resource Properties Response Backup Information - backup
Policy BackupPolicy Response - The backup profile for the SQL server.
- collation
Name String - Collation of the database.
- compatibility
Level Integer - Compatibility level of the database
- create
Mode String - Database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. sourceDatabaseId and restorePointInTime must be specified.
- database
Creation StringDate - Creation date of the database.
- database
Options SqlServer Database Resource Properties Response Database Options - List of features that are enabled for the database
- is
Read BooleanOnly - Whether the database is read only or not.
- recovery
Mode String - Status of the database.
- restore
Point StringIn Time - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
- size
MB Double - Size of the database.
- source
Database StringId - The resource identifier of the source database associated with create operation of this database.
- space
Available DoubleMB - Space left of the database.
- state String
- State of the database.
- earliest
Restore stringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- last
Database stringUpload Time - The time when last successful database upload was performed.
- provisioning
State string - The provisioning state of the Arc-enabled SQL Server database resource.
- backup
Information SqlServer Database Resource Properties Response Backup Information - backup
Policy BackupPolicy Response - The backup profile for the SQL server.
- collation
Name string - Collation of the database.
- compatibility
Level number - Compatibility level of the database
- create
Mode string - Database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. sourceDatabaseId and restorePointInTime must be specified.
- database
Creation stringDate - Creation date of the database.
- database
Options SqlServer Database Resource Properties Response Database Options - List of features that are enabled for the database
- is
Read booleanOnly - Whether the database is read only or not.
- recovery
Mode string - Status of the database.
- restore
Point stringIn Time - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
- size
MB number - Size of the database.
- source
Database stringId - The resource identifier of the source database associated with create operation of this database.
- space
Available numberMB - Space left of the database.
- state string
- State of the database.
- earliest_
restore_ strdate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- last_
database_ strupload_ time - The time when last successful database upload was performed.
- provisioning_
state str - The provisioning state of the Arc-enabled SQL Server database resource.
- backup_
information SqlServer Database Resource Properties Response Backup Information - backup_
policy BackupPolicy Response - The backup profile for the SQL server.
- collation_
name str - Collation of the database.
- compatibility_
level int - Compatibility level of the database
- create_
mode str - Database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. sourceDatabaseId and restorePointInTime must be specified.
- database_
creation_ strdate - Creation date of the database.
- database_
options SqlServer Database Resource Properties Response Database Options - List of features that are enabled for the database
- is_
read_ boolonly - Whether the database is read only or not.
- recovery_
mode str - Status of the database.
- restore_
point_ strin_ time - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
- size_
mb float - Size of the database.
- source_
database_ strid - The resource identifier of the source database associated with create operation of this database.
- space_
available_ floatmb - Space left of the database.
- state str
- State of the database.
- earliest
Restore StringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- last
Database StringUpload Time - The time when last successful database upload was performed.
- provisioning
State String - The provisioning state of the Arc-enabled SQL Server database resource.
- backup
Information Property Map - backup
Policy Property Map - The backup profile for the SQL server.
- collation
Name String - Collation of the database.
- compatibility
Level Number - Compatibility level of the database
- create
Mode String - Database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. sourceDatabaseId and restorePointInTime must be specified.
- database
Creation StringDate - Creation date of the database.
- database
Options Property Map - List of features that are enabled for the database
- is
Read BooleanOnly - Whether the database is read only or not.
- recovery
Mode String - Status of the database.
- restore
Point StringIn Time - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
- size
MB Number - Size of the database.
- source
Database StringId - The resource identifier of the source database associated with create operation of this database.
- space
Available NumberMB - Space left of the database.
- state String
- State of the database.
SqlServerDatabaseResourcePropertiesResponseBackupInformation
- Last
Full stringBackup - Date time of last full backup.
- Last
Log stringBackup - Date time of last log backup.
- Last
Full stringBackup - Date time of last full backup.
- Last
Log stringBackup - Date time of last log backup.
- last
Full StringBackup - Date time of last full backup.
- last
Log StringBackup - Date time of last log backup.
- last
Full stringBackup - Date time of last full backup.
- last
Log stringBackup - Date time of last log backup.
- last_
full_ strbackup - Date time of last full backup.
- last_
log_ strbackup - Date time of last log backup.
- last
Full StringBackup - Date time of last full backup.
- last
Log StringBackup - Date time of last log backup.
SqlServerDatabaseResourcePropertiesResponseDatabaseOptions
- Is
Auto boolClose On - Is
Auto boolCreate Stats On - Is
Auto boolShrink On - Is
Auto boolUpdate Stats On - Is
Encrypted bool - Is
Memory boolOptimization Enabled - Is
Remote boolData Archive Enabled - Is
Trustworthy boolOn
- Is
Auto boolClose On - Is
Auto boolCreate Stats On - Is
Auto boolShrink On - Is
Auto boolUpdate Stats On - Is
Encrypted bool - Is
Memory boolOptimization Enabled - Is
Remote boolData Archive Enabled - Is
Trustworthy boolOn
- is
Auto BooleanClose On - is
Auto BooleanCreate Stats On - is
Auto BooleanShrink On - is
Auto BooleanUpdate Stats On - is
Encrypted Boolean - is
Memory BooleanOptimization Enabled - is
Remote BooleanData Archive Enabled - is
Trustworthy BooleanOn
- is
Auto booleanClose On - is
Auto booleanCreate Stats On - is
Auto booleanShrink On - is
Auto booleanUpdate Stats On - is
Encrypted boolean - is
Memory booleanOptimization Enabled - is
Remote booleanData Archive Enabled - is
Trustworthy booleanOn
- is
Auto BooleanClose On - is
Auto BooleanCreate Stats On - is
Auto BooleanShrink On - is
Auto BooleanUpdate Stats On - is
Encrypted Boolean - is
Memory BooleanOptimization Enabled - is
Remote BooleanData Archive Enabled - is
Trustworthy BooleanOn
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0