azure-native.azurearcdata.SqlServerDatabase
Explore with Pulumi AI
Arc Sql Server database Azure REST API version: 2023-01-15-preview.
Other available API versions: 2024-01-01, 2024-05-01-preview.
Example Usage
Create a Arc Sql Server database.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sqlServerDatabase = new AzureNative.AzureArcData.SqlServerDatabase("sqlServerDatabase", new()
{
DatabaseName = "testdb",
Location = "southeastasia",
Properties = new AzureNative.AzureArcData.Inputs.SqlServerDatabaseResourcePropertiesArgs
{
BackupInformation = new AzureNative.AzureArcData.Inputs.SqlServerDatabaseResourcePropertiesBackupInformationArgs
{
LastFullBackup = "2022-05-05T16:26:33.883Z",
LastLogBackup = "2022-05-10T16:26:33.883Z",
},
CollationName = "SQL_Latin1_General_CP1_CI_AS",
CompatibilityLevel = 150,
DatabaseCreationDate = "2022-04-05T16:26:33.883Z",
DatabaseOptions = new AzureNative.AzureArcData.Inputs.SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs
{
IsAutoCloseOn = true,
IsAutoCreateStatsOn = true,
IsAutoShrinkOn = true,
IsAutoUpdateStatsOn = true,
IsEncrypted = true,
IsMemoryOptimizationEnabled = true,
IsRemoteDataArchiveEnabled = true,
IsTrustworthyOn = true,
},
IsReadOnly = true,
RecoveryMode = AzureNative.AzureArcData.RecoveryMode.Full,
SizeMB = 150,
SpaceAvailableMB = 100,
State = AzureNative.AzureArcData.DatabaseState.Online,
},
ResourceGroupName = "testrg",
SqlServerInstanceName = "testSqlServerInstance",
Tags =
{
{ "mytag", "myval" },
},
});
});
package main
import (
azurearcdata "github.com/pulumi/pulumi-azure-native-sdk/azurearcdata/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurearcdata.NewSqlServerDatabase(ctx, "sqlServerDatabase", &azurearcdata.SqlServerDatabaseArgs{
DatabaseName: pulumi.String("testdb"),
Location: pulumi.String("southeastasia"),
Properties: &azurearcdata.SqlServerDatabaseResourcePropertiesArgs{
BackupInformation: &azurearcdata.SqlServerDatabaseResourcePropertiesBackupInformationArgs{
LastFullBackup: pulumi.String("2022-05-05T16:26:33.883Z"),
LastLogBackup: pulumi.String("2022-05-10T16:26:33.883Z"),
},
CollationName: pulumi.String("SQL_Latin1_General_CP1_CI_AS"),
CompatibilityLevel: pulumi.Int(150),
DatabaseCreationDate: pulumi.String("2022-04-05T16:26:33.883Z"),
DatabaseOptions: &azurearcdata.SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs{
IsAutoCloseOn: pulumi.Bool(true),
IsAutoCreateStatsOn: pulumi.Bool(true),
IsAutoShrinkOn: pulumi.Bool(true),
IsAutoUpdateStatsOn: pulumi.Bool(true),
IsEncrypted: pulumi.Bool(true),
IsMemoryOptimizationEnabled: pulumi.Bool(true),
IsRemoteDataArchiveEnabled: pulumi.Bool(true),
IsTrustworthyOn: pulumi.Bool(true),
},
IsReadOnly: pulumi.Bool(true),
RecoveryMode: pulumi.String(azurearcdata.RecoveryModeFull),
SizeMB: pulumi.Float64(150),
SpaceAvailableMB: pulumi.Float64(100),
State: pulumi.String(azurearcdata.DatabaseStateOnline),
},
ResourceGroupName: pulumi.String("testrg"),
SqlServerInstanceName: pulumi.String("testSqlServerInstance"),
Tags: pulumi.StringMap{
"mytag": pulumi.String("myval"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurearcdata.SqlServerDatabase;
import com.pulumi.azurenative.azurearcdata.SqlServerDatabaseArgs;
import com.pulumi.azurenative.azurearcdata.inputs.SqlServerDatabaseResourcePropertiesArgs;
import com.pulumi.azurenative.azurearcdata.inputs.SqlServerDatabaseResourcePropertiesBackupInformationArgs;
import com.pulumi.azurenative.azurearcdata.inputs.SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sqlServerDatabase = new SqlServerDatabase("sqlServerDatabase", SqlServerDatabaseArgs.builder()
.databaseName("testdb")
.location("southeastasia")
.properties(SqlServerDatabaseResourcePropertiesArgs.builder()
.backupInformation(SqlServerDatabaseResourcePropertiesBackupInformationArgs.builder()
.lastFullBackup("2022-05-05T16:26:33.883Z")
.lastLogBackup("2022-05-10T16:26:33.883Z")
.build())
.collationName("SQL_Latin1_General_CP1_CI_AS")
.compatibilityLevel(150)
.databaseCreationDate("2022-04-05T16:26:33.883Z")
.databaseOptions(SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs.builder()
.isAutoCloseOn(true)
.isAutoCreateStatsOn(true)
.isAutoShrinkOn(true)
.isAutoUpdateStatsOn(true)
.isEncrypted(true)
.isMemoryOptimizationEnabled(true)
.isRemoteDataArchiveEnabled(true)
.isTrustworthyOn(true)
.build())
.isReadOnly(true)
.recoveryMode("Full")
.sizeMB(150)
.spaceAvailableMB(100)
.state("Online")
.build())
.resourceGroupName("testrg")
.sqlServerInstanceName("testSqlServerInstance")
.tags(Map.of("mytag", "myval"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
sql_server_database = azure_native.azurearcdata.SqlServerDatabase("sqlServerDatabase",
database_name="testdb",
location="southeastasia",
properties={
"backup_information": {
"last_full_backup": "2022-05-05T16:26:33.883Z",
"last_log_backup": "2022-05-10T16:26:33.883Z",
},
"collation_name": "SQL_Latin1_General_CP1_CI_AS",
"compatibility_level": 150,
"database_creation_date": "2022-04-05T16:26:33.883Z",
"database_options": {
"is_auto_close_on": True,
"is_auto_create_stats_on": True,
"is_auto_shrink_on": True,
"is_auto_update_stats_on": True,
"is_encrypted": True,
"is_memory_optimization_enabled": True,
"is_remote_data_archive_enabled": True,
"is_trustworthy_on": True,
},
"is_read_only": True,
"recovery_mode": azure_native.azurearcdata.RecoveryMode.FULL,
"size_mb": 150,
"space_available_mb": 100,
"state": azure_native.azurearcdata.DatabaseState.ONLINE,
},
resource_group_name="testrg",
sql_server_instance_name="testSqlServerInstance",
tags={
"mytag": "myval",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sqlServerDatabase = new azure_native.azurearcdata.SqlServerDatabase("sqlServerDatabase", {
databaseName: "testdb",
location: "southeastasia",
properties: {
backupInformation: {
lastFullBackup: "2022-05-05T16:26:33.883Z",
lastLogBackup: "2022-05-10T16:26:33.883Z",
},
collationName: "SQL_Latin1_General_CP1_CI_AS",
compatibilityLevel: 150,
databaseCreationDate: "2022-04-05T16:26:33.883Z",
databaseOptions: {
isAutoCloseOn: true,
isAutoCreateStatsOn: true,
isAutoShrinkOn: true,
isAutoUpdateStatsOn: true,
isEncrypted: true,
isMemoryOptimizationEnabled: true,
isRemoteDataArchiveEnabled: true,
isTrustworthyOn: true,
},
isReadOnly: true,
recoveryMode: azure_native.azurearcdata.RecoveryMode.Full,
sizeMB: 150,
spaceAvailableMB: 100,
state: azure_native.azurearcdata.DatabaseState.Online,
},
resourceGroupName: "testrg",
sqlServerInstanceName: "testSqlServerInstance",
tags: {
mytag: "myval",
},
});
resources:
sqlServerDatabase:
type: azure-native:azurearcdata:SqlServerDatabase
properties:
databaseName: testdb
location: southeastasia
properties:
backupInformation:
lastFullBackup: 2022-05-05T16:26:33.883Z
lastLogBackup: 2022-05-10T16:26:33.883Z
collationName: SQL_Latin1_General_CP1_CI_AS
compatibilityLevel: 150
databaseCreationDate: 2022-04-05T16:26:33.883Z
databaseOptions:
isAutoCloseOn: true
isAutoCreateStatsOn: true
isAutoShrinkOn: true
isAutoUpdateStatsOn: true
isEncrypted: true
isMemoryOptimizationEnabled: true
isRemoteDataArchiveEnabled: true
isTrustworthyOn: true
isReadOnly: true
recoveryMode: Full
sizeMB: 150
spaceAvailableMB: 100
state: Online
resourceGroupName: testrg
sqlServerInstanceName: testSqlServerInstance
tags:
mytag: myval
Create SqlServerDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlServerDatabase(name: string, args: SqlServerDatabaseArgs, opts?: CustomResourceOptions);
@overload
def SqlServerDatabase(resource_name: str,
args: SqlServerDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlServerDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[SqlServerDatabaseResourcePropertiesArgs] = None,
resource_group_name: Optional[str] = None,
sql_server_instance_name: Optional[str] = None,
database_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSqlServerDatabase(ctx *Context, name string, args SqlServerDatabaseArgs, opts ...ResourceOption) (*SqlServerDatabase, error)
public SqlServerDatabase(string name, SqlServerDatabaseArgs args, CustomResourceOptions? opts = null)
public SqlServerDatabase(String name, SqlServerDatabaseArgs args)
public SqlServerDatabase(String name, SqlServerDatabaseArgs args, CustomResourceOptions options)
type: azure-native:azurearcdata:SqlServerDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SqlServerDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SqlServerDatabaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlServerDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlServerDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlServerDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlServerDatabaseResource = new AzureNative.AzureArcData.SqlServerDatabase("sqlServerDatabaseResource", new()
{
Properties = new AzureNative.AzureArcData.Inputs.SqlServerDatabaseResourcePropertiesArgs
{
BackupInformation = new AzureNative.AzureArcData.Inputs.SqlServerDatabaseResourcePropertiesBackupInformationArgs
{
LastFullBackup = "string",
LastLogBackup = "string",
},
CollationName = "string",
CompatibilityLevel = 0,
DatabaseCreationDate = "string",
DatabaseOptions = new AzureNative.AzureArcData.Inputs.SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs
{
IsAutoCloseOn = false,
IsAutoCreateStatsOn = false,
IsAutoShrinkOn = false,
IsAutoUpdateStatsOn = false,
IsEncrypted = false,
IsMemoryOptimizationEnabled = false,
IsRemoteDataArchiveEnabled = false,
IsTrustworthyOn = false,
},
IsReadOnly = false,
RecoveryMode = "string",
SizeMB = 0,
SpaceAvailableMB = 0,
State = "string",
},
ResourceGroupName = "string",
SqlServerInstanceName = "string",
DatabaseName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := azurearcdata.NewSqlServerDatabase(ctx, "sqlServerDatabaseResource", &azurearcdata.SqlServerDatabaseArgs{
Properties: &azurearcdata.SqlServerDatabaseResourcePropertiesArgs{
BackupInformation: &azurearcdata.SqlServerDatabaseResourcePropertiesBackupInformationArgs{
LastFullBackup: pulumi.String("string"),
LastLogBackup: pulumi.String("string"),
},
CollationName: pulumi.String("string"),
CompatibilityLevel: pulumi.Int(0),
DatabaseCreationDate: pulumi.String("string"),
DatabaseOptions: &azurearcdata.SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs{
IsAutoCloseOn: pulumi.Bool(false),
IsAutoCreateStatsOn: pulumi.Bool(false),
IsAutoShrinkOn: pulumi.Bool(false),
IsAutoUpdateStatsOn: pulumi.Bool(false),
IsEncrypted: pulumi.Bool(false),
IsMemoryOptimizationEnabled: pulumi.Bool(false),
IsRemoteDataArchiveEnabled: pulumi.Bool(false),
IsTrustworthyOn: pulumi.Bool(false),
},
IsReadOnly: pulumi.Bool(false),
RecoveryMode: pulumi.String("string"),
SizeMB: pulumi.Float64(0),
SpaceAvailableMB: pulumi.Float64(0),
State: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
SqlServerInstanceName: pulumi.String("string"),
DatabaseName: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var sqlServerDatabaseResource = new SqlServerDatabase("sqlServerDatabaseResource", SqlServerDatabaseArgs.builder()
.properties(SqlServerDatabaseResourcePropertiesArgs.builder()
.backupInformation(SqlServerDatabaseResourcePropertiesBackupInformationArgs.builder()
.lastFullBackup("string")
.lastLogBackup("string")
.build())
.collationName("string")
.compatibilityLevel(0)
.databaseCreationDate("string")
.databaseOptions(SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs.builder()
.isAutoCloseOn(false)
.isAutoCreateStatsOn(false)
.isAutoShrinkOn(false)
.isAutoUpdateStatsOn(false)
.isEncrypted(false)
.isMemoryOptimizationEnabled(false)
.isRemoteDataArchiveEnabled(false)
.isTrustworthyOn(false)
.build())
.isReadOnly(false)
.recoveryMode("string")
.sizeMB(0)
.spaceAvailableMB(0)
.state("string")
.build())
.resourceGroupName("string")
.sqlServerInstanceName("string")
.databaseName("string")
.location("string")
.tags(Map.of("string", "string"))
.build());
sql_server_database_resource = azure_native.azurearcdata.SqlServerDatabase("sqlServerDatabaseResource",
properties={
"backup_information": {
"last_full_backup": "string",
"last_log_backup": "string",
},
"collation_name": "string",
"compatibility_level": 0,
"database_creation_date": "string",
"database_options": {
"is_auto_close_on": False,
"is_auto_create_stats_on": False,
"is_auto_shrink_on": False,
"is_auto_update_stats_on": False,
"is_encrypted": False,
"is_memory_optimization_enabled": False,
"is_remote_data_archive_enabled": False,
"is_trustworthy_on": False,
},
"is_read_only": False,
"recovery_mode": "string",
"size_mb": 0,
"space_available_mb": 0,
"state": "string",
},
resource_group_name="string",
sql_server_instance_name="string",
database_name="string",
location="string",
tags={
"string": "string",
})
const sqlServerDatabaseResource = new azure_native.azurearcdata.SqlServerDatabase("sqlServerDatabaseResource", {
properties: {
backupInformation: {
lastFullBackup: "string",
lastLogBackup: "string",
},
collationName: "string",
compatibilityLevel: 0,
databaseCreationDate: "string",
databaseOptions: {
isAutoCloseOn: false,
isAutoCreateStatsOn: false,
isAutoShrinkOn: false,
isAutoUpdateStatsOn: false,
isEncrypted: false,
isMemoryOptimizationEnabled: false,
isRemoteDataArchiveEnabled: false,
isTrustworthyOn: false,
},
isReadOnly: false,
recoveryMode: "string",
sizeMB: 0,
spaceAvailableMB: 0,
state: "string",
},
resourceGroupName: "string",
sqlServerInstanceName: "string",
databaseName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:azurearcdata:SqlServerDatabase
properties:
databaseName: string
location: string
properties:
backupInformation:
lastFullBackup: string
lastLogBackup: string
collationName: string
compatibilityLevel: 0
databaseCreationDate: string
databaseOptions:
isAutoCloseOn: false
isAutoCreateStatsOn: false
isAutoShrinkOn: false
isAutoUpdateStatsOn: false
isEncrypted: false
isMemoryOptimizationEnabled: false
isRemoteDataArchiveEnabled: false
isTrustworthyOn: false
isReadOnly: false
recoveryMode: string
sizeMB: 0
spaceAvailableMB: 0
state: string
resourceGroupName: string
sqlServerInstanceName: string
tags:
string: string
SqlServerDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlServerDatabase resource accepts the following input properties:
- Properties
Pulumi.
Azure Native. Azure Arc Data. Inputs. Sql Server Database Resource Properties - Properties of Arc Sql Server 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
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Properties
Sql
Server Database Resource Properties Args - Properties of Arc Sql Server 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
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- properties
Sql
Server Database Resource Properties - Properties of Arc Sql Server 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
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- properties
Sql
Server Database Resource Properties - Properties of Arc Sql Server 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
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- properties
Sql
Server Database Resource Properties Args - Properties of Arc Sql Server database
- resource_
group_ strname - The name of the Azure resource group
- sql_
server_ strinstance_ name - Name of SQL Server Instance
- database_
name str - Name of the database
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- properties Property Map
- Properties of Arc Sql Server 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
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlServerDatabase resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- 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"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- 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"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- 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"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- 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"
Supporting Types
DatabaseState, DatabaseStateArgs
- Online
- Online
- Restoring
- Restoring
- Recovering
- Recovering
- Recovery
Pending - RecoveryPending
- Suspect
- Suspect
- Emergency
- Emergency
- Offline
- Offline
- Copying
- Copying
- Offline
Secondary - OfflineSecondary
- Database
State Online - Online
- Database
State Restoring - Restoring
- Database
State Recovering - Recovering
- Database
State Recovery Pending - RecoveryPending
- Database
State Suspect - Suspect
- Database
State Emergency - Emergency
- Database
State Offline - Offline
- Database
State Copying - Copying
- Database
State Offline Secondary - OfflineSecondary
- Online
- Online
- Restoring
- Restoring
- Recovering
- Recovering
- Recovery
Pending - RecoveryPending
- Suspect
- Suspect
- Emergency
- Emergency
- Offline
- Offline
- Copying
- Copying
- Offline
Secondary - OfflineSecondary
- Online
- Online
- Restoring
- Restoring
- Recovering
- Recovering
- Recovery
Pending - RecoveryPending
- Suspect
- Suspect
- Emergency
- Emergency
- Offline
- Offline
- Copying
- Copying
- Offline
Secondary - OfflineSecondary
- ONLINE
- Online
- RESTORING
- Restoring
- RECOVERING
- Recovering
- RECOVERY_PENDING
- RecoveryPending
- SUSPECT
- Suspect
- EMERGENCY
- Emergency
- OFFLINE
- Offline
- COPYING
- Copying
- OFFLINE_SECONDARY
- OfflineSecondary
- "Online"
- Online
- "Restoring"
- Restoring
- "Recovering"
- Recovering
- "Recovery
Pending" - RecoveryPending
- "Suspect"
- Suspect
- "Emergency"
- Emergency
- "Offline"
- Offline
- "Copying"
- Copying
- "Offline
Secondary" - OfflineSecondary
RecoveryMode, RecoveryModeArgs
- Full
- Full
- Bulk_
logged - Bulk-logged
- Simple
- Simple
- Recovery
Mode Full - Full
- Recovery
Mode_Bulk_Logged - Bulk-logged
- Recovery
Mode Simple - Simple
- Full
- Full
- Bulklogged
- Bulk-logged
- Simple
- Simple
- Full
- Full
- Bulk_
logged - Bulk-logged
- Simple
- Simple
- FULL
- Full
- BULK_LOGGED
- Bulk-logged
- SIMPLE
- Simple
- "Full"
- Full
- "Bulk-logged"
- Bulk-logged
- "Simple"
- Simple
SqlServerDatabaseResourceProperties, SqlServerDatabaseResourcePropertiesArgs
- Backup
Information Pulumi.Azure Native. Azure Arc Data. Inputs. Sql Server Database Resource Properties Backup Information - Collation
Name string - Collation of the database.
- Compatibility
Level int - Compatibility level of the database
- Database
Creation stringDate - Creation date of the database.
- Database
Options Pulumi.Azure Native. Azure Arc Data. Inputs. Sql Server Database Resource Properties 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 | Pulumi.Azure Native. Azure Arc Data. Recovery Mode - Status of the database.
- Size
MB double - Size of the database.
- Space
Available doubleMB - Space left of the database.
- State
string | Pulumi.
Azure Native. Azure Arc Data. Database State - State of the database.
- Backup
Information SqlServer Database Resource Properties Backup Information - Collation
Name string - Collation of the database.
- Compatibility
Level int - Compatibility level of the database
- Database
Creation stringDate - Creation date of the database.
- Database
Options SqlServer Database Resource Properties 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 | RecoveryMode - Status of the database.
- Size
MB float64 - Size of the database.
- Space
Available float64MB - Space left of the database.
- State
string | Database
State - State of the database.
- backup
Information SqlServer Database Resource Properties Backup Information - collation
Name String - Collation of the database.
- compatibility
Level Integer - Compatibility level of the database
- database
Creation StringDate - Creation date of the database.
- database
Options SqlServer Database Resource Properties 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 | RecoveryMode - Status of the database.
- size
MB Double - Size of the database.
- space
Available DoubleMB - Space left of the database.
- state
String | Database
State - State of the database.
- backup
Information SqlServer Database Resource Properties Backup Information - collation
Name string - Collation of the database.
- compatibility
Level number - Compatibility level of the database
- database
Creation stringDate - Creation date of the database.
- database
Options SqlServer Database Resource Properties 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 | RecoveryMode - Status of the database.
- size
MB number - Size of the database.
- space
Available numberMB - Space left of the database.
- state
string | Database
State - State of the database.
- backup_
information SqlServer Database Resource Properties Backup Information - collation_
name str - Collation of the database.
- compatibility_
level int - Compatibility level of the database
- database_
creation_ strdate - Creation date of the database.
- database_
options SqlServer Database Resource Properties 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 | RecoveryMode - Status of the database.
- size_
mb float - Size of the database.
- space_
available_ floatmb - Space left of the database.
- state
str | Database
State - State of the database.
- backup
Information Property Map - collation
Name String - Collation of the database.
- compatibility
Level Number - Compatibility level of the database
- 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 | "Full" | "Bulk-logged" | "Simple" - Status of the database.
- size
MB Number - Size of the database.
- space
Available NumberMB - Space left of the database.
- state
String | "Online" | "Restoring" | "Recovering" | "Recovery
Pending" | "Suspect" | "Emergency" | "Offline" | "Copying" | "Offline Secondary" - State of the database.
SqlServerDatabaseResourcePropertiesBackupInformation, SqlServerDatabaseResourcePropertiesBackupInformationArgs
- 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.
SqlServerDatabaseResourcePropertiesDatabaseOptions, SqlServerDatabaseResourcePropertiesDatabaseOptionsArgs
- 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
SqlServerDatabaseResourcePropertiesResponse, SqlServerDatabaseResourcePropertiesResponseArgs
- 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 - Collation
Name string - Collation of the database.
- Compatibility
Level int - Compatibility level of the database
- 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.
- Size
MB double - Size of the database.
- Space
Available doubleMB - Space left of the database.
- State string
- State of the database.
- Provisioning
State string - The provisioning state of the Arc-enabled SQL Server database resource.
- Backup
Information SqlServer Database Resource Properties Response Backup Information - Collation
Name string - Collation of the database.
- Compatibility
Level int - Compatibility level of the database
- 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.
- Size
MB float64 - Size of the database.
- Space
Available float64MB - Space left of the database.
- State string
- State of the database.
- provisioning
State String - The provisioning state of the Arc-enabled SQL Server database resource.
- backup
Information SqlServer Database Resource Properties Response Backup Information - collation
Name String - Collation of the database.
- compatibility
Level Integer - Compatibility level of the database
- 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.
- size
MB Double - Size of the database.
- space
Available DoubleMB - Space left of the database.
- state String
- State of the database.
- provisioning
State string - The provisioning state of the Arc-enabled SQL Server database resource.
- backup
Information SqlServer Database Resource Properties Response Backup Information - collation
Name string - Collation of the database.
- compatibility
Level number - Compatibility level of the database
- 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.
- size
MB number - Size of the database.
- space
Available numberMB - Space left of the database.
- state string
- State of the database.
- provisioning_
state str - The provisioning state of the Arc-enabled SQL Server database resource.
- backup_
information SqlServer Database Resource Properties Response Backup Information - collation_
name str - Collation of the database.
- compatibility_
level int - Compatibility level of the database
- 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.
- size_
mb float - Size of the database.
- space_
available_ floatmb - Space left of the database.
- state str
- State of the database.
- provisioning
State String - The provisioning state of the Arc-enabled SQL Server database resource.
- backup
Information Property Map - collation
Name String - Collation of the database.
- compatibility
Level Number - Compatibility level of the database
- 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.
- size
MB Number - Size of the database.
- space
Available NumberMB - Space left of the database.
- state String
- State of the database.
SqlServerDatabaseResourcePropertiesResponseBackupInformation, SqlServerDatabaseResourcePropertiesResponseBackupInformationArgs
- 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, SqlServerDatabaseResourcePropertiesResponseDatabaseOptionsArgs
- 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, SystemDataResponseArgs
- 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.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurearcdata:SqlServerDatabase testdb /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/sqlServerInstances/{sqlServerInstanceName}/databases/{databaseName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0