azure-native.azurearcdata.SqlServerDatabase
Explore with Pulumi AI
Arc Sql Server database
Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2023-01-15-preview.
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.
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",
},
BackupPolicy = new AzureNative.AzureArcData.Inputs.BackupPolicyArgs
{
DifferentialBackupHours = 12,
FullBackupDays = 1,
RetentionPeriodDays = 1,
TransactionLogBackupMinutes = 30,
},
CollationName = "SQL_Latin1_General_CP1_CI_AS",
CompatibilityLevel = 150,
CreateMode = AzureNative.AzureArcData.DatabaseCreateMode.PointInTimeRestore,
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,
RestorePointInTime = "2022-05-05T16:26:33.883Z",
SizeMB = 150,
SourceDatabaseId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/testSqlServerInstance/testsqlManagedInstance/databases/MyDatabase",
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/v3"
"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"),
},
BackupPolicy: &azurearcdata.BackupPolicyArgs{
DifferentialBackupHours: pulumi.Int(12),
FullBackupDays: pulumi.Int(1),
RetentionPeriodDays: pulumi.Int(1),
TransactionLogBackupMinutes: pulumi.Int(30),
},
CollationName: pulumi.String("SQL_Latin1_General_CP1_CI_AS"),
CompatibilityLevel: pulumi.Int(150),
CreateMode: pulumi.String(azurearcdata.DatabaseCreateModePointInTimeRestore),
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),
RestorePointInTime: pulumi.String("2022-05-05T16:26:33.883Z"),
SizeMB: pulumi.Float64(150),
SourceDatabaseId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/testSqlServerInstance/testsqlManagedInstance/databases/MyDatabase"),
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.BackupPolicyArgs;
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())
.backupPolicy(BackupPolicyArgs.builder()
.differentialBackupHours(12)
.fullBackupDays(1)
.retentionPeriodDays(1)
.transactionLogBackupMinutes(30)
.build())
.collationName("SQL_Latin1_General_CP1_CI_AS")
.compatibilityLevel(150)
.createMode("PointInTimeRestore")
.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")
.restorePointInTime("2022-05-05T16:26:33.883Z")
.sizeMB(150.0)
.sourceDatabaseId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/testSqlServerInstance/testsqlManagedInstance/databases/MyDatabase")
.spaceAvailableMB(100.0)
.state("Online")
.build())
.resourceGroupName("testrg")
.sqlServerInstanceName("testSqlServerInstance")
.tags(Map.of("mytag", "myval"))
.build());
}
}
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",
},
backupPolicy: {
differentialBackupHours: 12,
fullBackupDays: 1,
retentionPeriodDays: 1,
transactionLogBackupMinutes: 30,
},
collationName: "SQL_Latin1_General_CP1_CI_AS",
compatibilityLevel: 150,
createMode: azure_native.azurearcdata.DatabaseCreateMode.PointInTimeRestore,
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,
restorePointInTime: "2022-05-05T16:26:33.883Z",
sizeMB: 150,
sourceDatabaseId: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/testSqlServerInstance/testsqlManagedInstance/databases/MyDatabase",
spaceAvailableMB: 100,
state: azure_native.azurearcdata.DatabaseState.Online,
},
resourceGroupName: "testrg",
sqlServerInstanceName: "testSqlServerInstance",
tags: {
mytag: "myval",
},
});
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",
},
"backup_policy": {
"differential_backup_hours": 12,
"full_backup_days": 1,
"retention_period_days": 1,
"transaction_log_backup_minutes": 30,
},
"collation_name": "SQL_Latin1_General_CP1_CI_AS",
"compatibility_level": 150,
"create_mode": azure_native.azurearcdata.DatabaseCreateMode.POINT_IN_TIME_RESTORE,
"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,
"restore_point_in_time": "2022-05-05T16:26:33.883Z",
"size_mb": 150,
"source_database_id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/testSqlServerInstance/testsqlManagedInstance/databases/MyDatabase",
"space_available_mb": 100,
"state": azure_native.azurearcdata.DatabaseState.ONLINE,
},
resource_group_name="testrg",
sql_server_instance_name="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
backupPolicy:
differentialBackupHours: 12
fullBackupDays: 1
retentionPeriodDays: 1
transactionLogBackupMinutes: 30
collationName: SQL_Latin1_General_CP1_CI_AS
compatibilityLevel: 150
createMode: PointInTimeRestore
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
restorePointInTime: 2022-05-05T16:26:33.883Z
sizeMB: 150
sourceDatabaseId: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/testSqlServerInstance/testsqlManagedInstance/databases/MyDatabase
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",
},
BackupPolicy = new AzureNative.AzureArcData.Inputs.BackupPolicyArgs
{
DifferentialBackupHours = 0,
FullBackupDays = 0,
RetentionPeriodDays = 0,
TransactionLogBackupMinutes = 0,
},
CollationName = "string",
CompatibilityLevel = 0,
CreateMode = "string",
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",
RestorePointInTime = "string",
SizeMB = 0,
SourceDatabaseId = "string",
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"),
},
BackupPolicy: &azurearcdata.BackupPolicyArgs{
DifferentialBackupHours: pulumi.Int(0),
FullBackupDays: pulumi.Int(0),
RetentionPeriodDays: pulumi.Int(0),
TransactionLogBackupMinutes: pulumi.Int(0),
},
CollationName: pulumi.String("string"),
CompatibilityLevel: pulumi.Int(0),
CreateMode: pulumi.String("string"),
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"),
RestorePointInTime: pulumi.String("string"),
SizeMB: pulumi.Float64(0),
SourceDatabaseId: pulumi.String("string"),
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())
.backupPolicy(BackupPolicyArgs.builder()
.differentialBackupHours(0)
.fullBackupDays(0)
.retentionPeriodDays(0)
.transactionLogBackupMinutes(0)
.build())
.collationName("string")
.compatibilityLevel(0)
.createMode("string")
.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")
.restorePointInTime("string")
.sizeMB(0.0)
.sourceDatabaseId("string")
.spaceAvailableMB(0.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",
},
"backup_policy": {
"differential_backup_hours": 0,
"full_backup_days": 0,
"retention_period_days": 0,
"transaction_log_backup_minutes": 0,
},
"collation_name": "string",
"compatibility_level": 0,
"create_mode": "string",
"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",
"restore_point_in_time": "string",
"size_mb": 0,
"source_database_id": "string",
"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",
},
backupPolicy: {
differentialBackupHours: 0,
fullBackupDays: 0,
retentionPeriodDays: 0,
transactionLogBackupMinutes: 0,
},
collationName: "string",
compatibilityLevel: 0,
createMode: "string",
databaseCreationDate: "string",
databaseOptions: {
isAutoCloseOn: false,
isAutoCreateStatsOn: false,
isAutoShrinkOn: false,
isAutoUpdateStatsOn: false,
isEncrypted: false,
isMemoryOptimizationEnabled: false,
isRemoteDataArchiveEnabled: false,
isTrustworthyOn: false,
},
isReadOnly: false,
recoveryMode: "string",
restorePointInTime: "string",
sizeMB: 0,
sourceDatabaseId: "string",
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
backupPolicy:
differentialBackupHours: 0
fullBackupDays: 0
retentionPeriodDays: 0
transactionLogBackupMinutes: 0
collationName: string
compatibilityLevel: 0
createMode: string
databaseCreationDate: string
databaseOptions:
isAutoCloseOn: false
isAutoCreateStatsOn: false
isAutoShrinkOn: false
isAutoUpdateStatsOn: false
isEncrypted: false
isMemoryOptimizationEnabled: false
isRemoteDataArchiveEnabled: false
isTrustworthyOn: false
isReadOnly: false
recoveryMode: string
restorePointInTime: string
sizeMB: 0
sourceDatabaseId: string
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:
- Azure
Api stringVersion - The Azure API version of the resource.
- 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"
- Azure
Api stringVersion - The Azure API version of the resource.
- 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"
- azure
Api StringVersion - The Azure API version of the resource.
- 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"
- azure
Api stringVersion - The Azure API version of the resource.
- 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"
- azure_
api_ strversion - The Azure API version of the resource.
- 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"
- azure
Api StringVersion - The Azure API version of the resource.
- 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
BackupPolicy, BackupPolicyArgs
- 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.
BackupPolicyResponse, BackupPolicyResponseArgs
- 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.
DatabaseCreateMode, DatabaseCreateModeArgs
- Default
- Default
- Point
In Time Restore - PointInTimeRestore
- Database
Create Mode Default - Default
- Database
Create Mode Point In Time Restore - PointInTimeRestore
- Default
- Default
- Point
In Time Restore - PointInTimeRestore
- Default
- Default
- Point
In Time Restore - PointInTimeRestore
- DEFAULT
- Default
- POINT_IN_TIME_RESTORE
- PointInTimeRestore
- "Default"
- Default
- "Point
In Time Restore" - PointInTimeRestore
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 - Backup
Policy Pulumi.Azure Native. Azure Arc Data. Inputs. Backup Policy - 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 | Pulumi.Azure Native. Azure Arc Data. Database Create Mode - 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 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.
- 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 | Pulumi.
Azure Native. Azure Arc Data. Database State - State of the database.
- Backup
Information SqlServer Database Resource Properties Backup Information - Backup
Policy BackupPolicy - 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 | DatabaseCreate Mode - 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 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.
- 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 | Database
State - State of the database.
- backup
Information SqlServer Database Resource Properties Backup Information - backup
Policy BackupPolicy - 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 | DatabaseCreate Mode - 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 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.
- 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 | Database
State - State of the database.
- backup
Information SqlServer Database Resource Properties Backup Information - backup
Policy BackupPolicy - 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 | DatabaseCreate Mode - 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 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.
- 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 | Database
State - State of the database.
- backup_
information SqlServer Database Resource Properties Backup Information - backup_
policy BackupPolicy - 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 | DatabaseCreate Mode - 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 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.
- 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 | Database
State - State of the database.
- 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 | "Default" | "PointIn Time Restore" - 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 | "Full" | "Bulk-logged" | "Simple" - 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 | "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
- 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, 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