azure-native.sql.getDatabase
Explore with Pulumi AI
Gets a database.
Uses Azure REST API version 2023-08-01.
Other available API versions: 2014-04-01, 2017-03-01-preview, 2017-10-01-preview, 2019-06-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]
. See the version guide for details.
Using getDatabase
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabase(args: GetDatabaseArgs, opts?: InvokeOptions): Promise<GetDatabaseResult>
function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatabaseResult>
def get_database(database_name: Optional[str] = None,
expand: Optional[str] = None,
filter: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
def get_database_output(database_name: Optional[pulumi.Input[str]] = None,
expand: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
server_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseResult]
func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput
> Note: This function is named LookupDatabase
in the Go SDK.
public static class GetDatabase
{
public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
public static Output<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:sql:getDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Name string - The name of the database.
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string - The name of the server.
- Expand string
- The child resources to include in the response.
- Filter string
- An OData filter expression that filters elements in the collection.
- Database
Name string - The name of the database.
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string - The name of the server.
- Expand string
- The child resources to include in the response.
- Filter string
- An OData filter expression that filters elements in the collection.
- database
Name String - The name of the database.
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String - The name of the server.
- expand String
- The child resources to include in the response.
- filter String
- An OData filter expression that filters elements in the collection.
- database
Name string - The name of the database.
- resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name string - The name of the server.
- expand string
- The child resources to include in the response.
- filter string
- An OData filter expression that filters elements in the collection.
- database_
name str - The name of the database.
- resource_
group_ strname - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server_
name str - The name of the server.
- expand str
- The child resources to include in the response.
- filter str
- An OData filter expression that filters elements in the collection.
- database
Name String - The name of the database.
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String - The name of the server.
- expand String
- The child resources to include in the response.
- filter String
- An OData filter expression that filters elements in the collection.
getDatabase Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Creation
Date string - The creation date of the database (ISO8601 format).
- Current
Backup stringStorage Redundancy - The storage account type used to store backups for this database.
- Current
Service stringObjective Name - The current service level objective name of the database.
- Current
Sku Pulumi.Azure Native. Sql. Outputs. Sku Response - The name and tier of the SKU.
- Database
Id string - The ID of the database.
- Default
Secondary stringLocation - The default secondary region for this database.
- Earliest
Restore stringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- Failover
Group stringId - Failover Group resource identifier that this database belongs to.
- Id string
- Resource ID.
- Is
Infra boolEncryption Enabled - Infra encryption is enabled for this database.
- Kind string
- Kind of database. This is metadata used for the Azure portal experience.
- Location string
- Resource location.
- Managed
By string - Resource that manages the database.
- Max
Log doubleSize Bytes - The max log size for this database.
- Name string
- Resource name.
- Paused
Date string - The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready.
- Requested
Service stringObjective Name - The requested service level objective name of the database.
- Resumed
Date string - The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.
- Status string
- The status of the database.
- Type string
- Resource type.
- Auto
Pause intDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
- Availability
Zone string - Specifies the availability zone the database is pinned to.
- Catalog
Collation string - Collation of the metadata catalog.
- Collation string
- The collation of the database.
- Elastic
Pool stringId - The resource identifier of the elastic pool containing this database.
- Encryption
Protector string - The azure key vault URI of the database if it's configured with per Database Customer Managed Keys.
- Encryption
Protector boolAuto Rotation - The flag to enable or disable auto rotation of database encryption protector AKV key.
- Federated
Client stringId - The Client id used for cross tenant per database CMK scenario
- Free
Limit stringExhaustion Behavior Specifies the behavior when monthly free limits are exhausted for the free database.
AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month.
BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed.
- High
Availability intReplica Count - The number of secondary replicas associated with the Business Critical, Premium, or Hyperscale edition database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
- Identity
Pulumi.
Azure Native. Sql. Outputs. Database Identity Response - The Azure Active Directory identity of the database.
- Is
Ledger boolOn - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
- Keys
Dictionary<string, Pulumi.
Azure Native. Sql. Outputs. Database Key Response> - The resource ids of the user assigned identities to use
- License
Type string - The license type to apply for this database.
LicenseIncluded
if you need a license, orBasePrice
if you have a license and are eligible for the Azure Hybrid Benefit. - Maintenance
Configuration stringId - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
- Manual
Cutover bool Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier.
When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database.
To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state.
- Max
Size doubleBytes - The max size of the database expressed in bytes.
- Min
Capacity double - Minimal capacity that database will always have allocated, if not paused
- Perform
Cutover bool To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress.
This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress.
When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database.
- Preferred
Enclave stringType - Type of enclave requested on the database i.e. Default or VBS enclaves.
- Read
Scale string - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool.
- Requested
Backup stringStorage Redundancy - The storage account type to be used to store backups for this database.
- Secondary
Type string - The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby.
- Sku
Pulumi.
Azure Native. Sql. Outputs. Sku Response The database SKU.
The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the
Capabilities_ListByLocation
REST API or one of the following commands:az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
- Dictionary<string, string>
- Resource tags.
- Use
Free boolLimit - Whether or not the database uses free monthly limits. Allowed on one database in a subscription.
- Zone
Redundant bool - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
- Azure
Api stringVersion - The Azure API version of the resource.
- Creation
Date string - The creation date of the database (ISO8601 format).
- Current
Backup stringStorage Redundancy - The storage account type used to store backups for this database.
- Current
Service stringObjective Name - The current service level objective name of the database.
- Current
Sku SkuResponse - The name and tier of the SKU.
- Database
Id string - The ID of the database.
- Default
Secondary stringLocation - The default secondary region for this database.
- Earliest
Restore stringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- Failover
Group stringId - Failover Group resource identifier that this database belongs to.
- Id string
- Resource ID.
- Is
Infra boolEncryption Enabled - Infra encryption is enabled for this database.
- Kind string
- Kind of database. This is metadata used for the Azure portal experience.
- Location string
- Resource location.
- Managed
By string - Resource that manages the database.
- Max
Log float64Size Bytes - The max log size for this database.
- Name string
- Resource name.
- Paused
Date string - The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready.
- Requested
Service stringObjective Name - The requested service level objective name of the database.
- Resumed
Date string - The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.
- Status string
- The status of the database.
- Type string
- Resource type.
- Auto
Pause intDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
- Availability
Zone string - Specifies the availability zone the database is pinned to.
- Catalog
Collation string - Collation of the metadata catalog.
- Collation string
- The collation of the database.
- Elastic
Pool stringId - The resource identifier of the elastic pool containing this database.
- Encryption
Protector string - The azure key vault URI of the database if it's configured with per Database Customer Managed Keys.
- Encryption
Protector boolAuto Rotation - The flag to enable or disable auto rotation of database encryption protector AKV key.
- Federated
Client stringId - The Client id used for cross tenant per database CMK scenario
- Free
Limit stringExhaustion Behavior Specifies the behavior when monthly free limits are exhausted for the free database.
AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month.
BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed.
- High
Availability intReplica Count - The number of secondary replicas associated with the Business Critical, Premium, or Hyperscale edition database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
- Identity
Database
Identity Response - The Azure Active Directory identity of the database.
- Is
Ledger boolOn - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
- Keys
map[string]Database
Key Response - The resource ids of the user assigned identities to use
- License
Type string - The license type to apply for this database.
LicenseIncluded
if you need a license, orBasePrice
if you have a license and are eligible for the Azure Hybrid Benefit. - Maintenance
Configuration stringId - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
- Manual
Cutover bool Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier.
When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database.
To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state.
- Max
Size float64Bytes - The max size of the database expressed in bytes.
- Min
Capacity float64 - Minimal capacity that database will always have allocated, if not paused
- Perform
Cutover bool To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress.
This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress.
When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database.
- Preferred
Enclave stringType - Type of enclave requested on the database i.e. Default or VBS enclaves.
- Read
Scale string - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool.
- Requested
Backup stringStorage Redundancy - The storage account type to be used to store backups for this database.
- Secondary
Type string - The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby.
- Sku
Sku
Response The database SKU.
The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the
Capabilities_ListByLocation
REST API or one of the following commands:az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
- map[string]string
- Resource tags.
- Use
Free boolLimit - Whether or not the database uses free monthly limits. Allowed on one database in a subscription.
- Zone
Redundant bool - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
- azure
Api StringVersion - The Azure API version of the resource.
- creation
Date String - The creation date of the database (ISO8601 format).
- current
Backup StringStorage Redundancy - The storage account type used to store backups for this database.
- current
Service StringObjective Name - The current service level objective name of the database.
- current
Sku SkuResponse - The name and tier of the SKU.
- database
Id String - The ID of the database.
- default
Secondary StringLocation - The default secondary region for this database.
- earliest
Restore StringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- failover
Group StringId - Failover Group resource identifier that this database belongs to.
- id String
- Resource ID.
- is
Infra BooleanEncryption Enabled - Infra encryption is enabled for this database.
- kind String
- Kind of database. This is metadata used for the Azure portal experience.
- location String
- Resource location.
- managed
By String - Resource that manages the database.
- max
Log DoubleSize Bytes - The max log size for this database.
- name String
- Resource name.
- paused
Date String - The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready.
- requested
Service StringObjective Name - The requested service level objective name of the database.
- resumed
Date String - The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.
- status String
- The status of the database.
- type String
- Resource type.
- auto
Pause IntegerDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
- availability
Zone String - Specifies the availability zone the database is pinned to.
- catalog
Collation String - Collation of the metadata catalog.
- collation String
- The collation of the database.
- elastic
Pool StringId - The resource identifier of the elastic pool containing this database.
- encryption
Protector String - The azure key vault URI of the database if it's configured with per Database Customer Managed Keys.
- encryption
Protector BooleanAuto Rotation - The flag to enable or disable auto rotation of database encryption protector AKV key.
- federated
Client StringId - The Client id used for cross tenant per database CMK scenario
- free
Limit StringExhaustion Behavior Specifies the behavior when monthly free limits are exhausted for the free database.
AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month.
BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed.
- high
Availability IntegerReplica Count - The number of secondary replicas associated with the Business Critical, Premium, or Hyperscale edition database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
- identity
Database
Identity Response - The Azure Active Directory identity of the database.
- is
Ledger BooleanOn - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
- keys
Map<String,Database
Key Response> - The resource ids of the user assigned identities to use
- license
Type String - The license type to apply for this database.
LicenseIncluded
if you need a license, orBasePrice
if you have a license and are eligible for the Azure Hybrid Benefit. - maintenance
Configuration StringId - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
- manual
Cutover Boolean Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier.
When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database.
To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state.
- max
Size DoubleBytes - The max size of the database expressed in bytes.
- min
Capacity Double - Minimal capacity that database will always have allocated, if not paused
- perform
Cutover Boolean To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress.
This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress.
When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database.
- preferred
Enclave StringType - Type of enclave requested on the database i.e. Default or VBS enclaves.
- read
Scale String - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool.
- requested
Backup StringStorage Redundancy - The storage account type to be used to store backups for this database.
- secondary
Type String - The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby.
- sku
Sku
Response The database SKU.
The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the
Capabilities_ListByLocation
REST API or one of the following commands:az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
- Map<String,String>
- Resource tags.
- use
Free BooleanLimit - Whether or not the database uses free monthly limits. Allowed on one database in a subscription.
- zone
Redundant Boolean - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
- azure
Api stringVersion - The Azure API version of the resource.
- creation
Date string - The creation date of the database (ISO8601 format).
- current
Backup stringStorage Redundancy - The storage account type used to store backups for this database.
- current
Service stringObjective Name - The current service level objective name of the database.
- current
Sku SkuResponse - The name and tier of the SKU.
- database
Id string - The ID of the database.
- default
Secondary stringLocation - The default secondary region for this database.
- earliest
Restore stringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- failover
Group stringId - Failover Group resource identifier that this database belongs to.
- id string
- Resource ID.
- is
Infra booleanEncryption Enabled - Infra encryption is enabled for this database.
- kind string
- Kind of database. This is metadata used for the Azure portal experience.
- location string
- Resource location.
- managed
By string - Resource that manages the database.
- max
Log numberSize Bytes - The max log size for this database.
- name string
- Resource name.
- paused
Date string - The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready.
- requested
Service stringObjective Name - The requested service level objective name of the database.
- resumed
Date string - The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.
- status string
- The status of the database.
- type string
- Resource type.
- auto
Pause numberDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
- availability
Zone string - Specifies the availability zone the database is pinned to.
- catalog
Collation string - Collation of the metadata catalog.
- collation string
- The collation of the database.
- elastic
Pool stringId - The resource identifier of the elastic pool containing this database.
- encryption
Protector string - The azure key vault URI of the database if it's configured with per Database Customer Managed Keys.
- encryption
Protector booleanAuto Rotation - The flag to enable or disable auto rotation of database encryption protector AKV key.
- federated
Client stringId - The Client id used for cross tenant per database CMK scenario
- free
Limit stringExhaustion Behavior Specifies the behavior when monthly free limits are exhausted for the free database.
AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month.
BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed.
- high
Availability numberReplica Count - The number of secondary replicas associated with the Business Critical, Premium, or Hyperscale edition database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
- identity
Database
Identity Response - The Azure Active Directory identity of the database.
- is
Ledger booleanOn - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
- keys
{[key: string]: Database
Key Response} - The resource ids of the user assigned identities to use
- license
Type string - The license type to apply for this database.
LicenseIncluded
if you need a license, orBasePrice
if you have a license and are eligible for the Azure Hybrid Benefit. - maintenance
Configuration stringId - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
- manual
Cutover boolean Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier.
When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database.
To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state.
- max
Size numberBytes - The max size of the database expressed in bytes.
- min
Capacity number - Minimal capacity that database will always have allocated, if not paused
- perform
Cutover boolean To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress.
This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress.
When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database.
- preferred
Enclave stringType - Type of enclave requested on the database i.e. Default or VBS enclaves.
- read
Scale string - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool.
- requested
Backup stringStorage Redundancy - The storage account type to be used to store backups for this database.
- secondary
Type string - The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby.
- sku
Sku
Response The database SKU.
The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the
Capabilities_ListByLocation
REST API or one of the following commands:az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
- {[key: string]: string}
- Resource tags.
- use
Free booleanLimit - Whether or not the database uses free monthly limits. Allowed on one database in a subscription.
- zone
Redundant boolean - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
- azure_
api_ strversion - The Azure API version of the resource.
- creation_
date str - The creation date of the database (ISO8601 format).
- current_
backup_ strstorage_ redundancy - The storage account type used to store backups for this database.
- current_
service_ strobjective_ name - The current service level objective name of the database.
- current_
sku SkuResponse - The name and tier of the SKU.
- database_
id str - The ID of the database.
- default_
secondary_ strlocation - The default secondary region for this database.
- earliest_
restore_ strdate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- failover_
group_ strid - Failover Group resource identifier that this database belongs to.
- id str
- Resource ID.
- is_
infra_ boolencryption_ enabled - Infra encryption is enabled for this database.
- kind str
- Kind of database. This is metadata used for the Azure portal experience.
- location str
- Resource location.
- managed_
by str - Resource that manages the database.
- max_
log_ floatsize_ bytes - The max log size for this database.
- name str
- Resource name.
- paused_
date str - The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready.
- requested_
service_ strobjective_ name - The requested service level objective name of the database.
- resumed_
date str - The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.
- status str
- The status of the database.
- type str
- Resource type.
- auto_
pause_ intdelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
- availability_
zone str - Specifies the availability zone the database is pinned to.
- catalog_
collation str - Collation of the metadata catalog.
- collation str
- The collation of the database.
- elastic_
pool_ strid - The resource identifier of the elastic pool containing this database.
- encryption_
protector str - The azure key vault URI of the database if it's configured with per Database Customer Managed Keys.
- encryption_
protector_ boolauto_ rotation - The flag to enable or disable auto rotation of database encryption protector AKV key.
- federated_
client_ strid - The Client id used for cross tenant per database CMK scenario
- free_
limit_ strexhaustion_ behavior Specifies the behavior when monthly free limits are exhausted for the free database.
AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month.
BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed.
- high_
availability_ intreplica_ count - The number of secondary replicas associated with the Business Critical, Premium, or Hyperscale edition database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
- identity
Database
Identity Response - The Azure Active Directory identity of the database.
- is_
ledger_ boolon - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
- keys
Mapping[str, Database
Key Response] - The resource ids of the user assigned identities to use
- license_
type str - The license type to apply for this database.
LicenseIncluded
if you need a license, orBasePrice
if you have a license and are eligible for the Azure Hybrid Benefit. - maintenance_
configuration_ strid - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
- manual_
cutover bool Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier.
When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database.
To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state.
- max_
size_ floatbytes - The max size of the database expressed in bytes.
- min_
capacity float - Minimal capacity that database will always have allocated, if not paused
- perform_
cutover bool To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress.
This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress.
When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database.
- preferred_
enclave_ strtype - Type of enclave requested on the database i.e. Default or VBS enclaves.
- read_
scale str - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool.
- requested_
backup_ strstorage_ redundancy - The storage account type to be used to store backups for this database.
- secondary_
type str - The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby.
- sku
Sku
Response The database SKU.
The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the
Capabilities_ListByLocation
REST API or one of the following commands:az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
- Mapping[str, str]
- Resource tags.
- use_
free_ boollimit - Whether or not the database uses free monthly limits. Allowed on one database in a subscription.
- zone_
redundant bool - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
- azure
Api StringVersion - The Azure API version of the resource.
- creation
Date String - The creation date of the database (ISO8601 format).
- current
Backup StringStorage Redundancy - The storage account type used to store backups for this database.
- current
Service StringObjective Name - The current service level objective name of the database.
- current
Sku Property Map - The name and tier of the SKU.
- database
Id String - The ID of the database.
- default
Secondary StringLocation - The default secondary region for this database.
- earliest
Restore StringDate - This records the earliest start date and time that restore is available for this database (ISO8601 format).
- failover
Group StringId - Failover Group resource identifier that this database belongs to.
- id String
- Resource ID.
- is
Infra BooleanEncryption Enabled - Infra encryption is enabled for this database.
- kind String
- Kind of database. This is metadata used for the Azure portal experience.
- location String
- Resource location.
- managed
By String - Resource that manages the database.
- max
Log NumberSize Bytes - The max log size for this database.
- name String
- Resource name.
- paused
Date String - The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready.
- requested
Service StringObjective Name - The requested service level objective name of the database.
- resumed
Date String - The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.
- status String
- The status of the database.
- type String
- Resource type.
- auto
Pause NumberDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
- availability
Zone String - Specifies the availability zone the database is pinned to.
- catalog
Collation String - Collation of the metadata catalog.
- collation String
- The collation of the database.
- elastic
Pool StringId - The resource identifier of the elastic pool containing this database.
- encryption
Protector String - The azure key vault URI of the database if it's configured with per Database Customer Managed Keys.
- encryption
Protector BooleanAuto Rotation - The flag to enable or disable auto rotation of database encryption protector AKV key.
- federated
Client StringId - The Client id used for cross tenant per database CMK scenario
- free
Limit StringExhaustion Behavior Specifies the behavior when monthly free limits are exhausted for the free database.
AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month.
BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed.
- high
Availability NumberReplica Count - The number of secondary replicas associated with the Business Critical, Premium, or Hyperscale edition database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
- identity Property Map
- The Azure Active Directory identity of the database.
- is
Ledger BooleanOn - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
- keys Map<Property Map>
- The resource ids of the user assigned identities to use
- license
Type String - The license type to apply for this database.
LicenseIncluded
if you need a license, orBasePrice
if you have a license and are eligible for the Azure Hybrid Benefit. - maintenance
Configuration StringId - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
- manual
Cutover Boolean Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier.
When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database.
To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state.
- max
Size NumberBytes - The max size of the database expressed in bytes.
- min
Capacity Number - Minimal capacity that database will always have allocated, if not paused
- perform
Cutover Boolean To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress.
This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter.
This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress.
When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database.
- preferred
Enclave StringType - Type of enclave requested on the database i.e. Default or VBS enclaves.
- read
Scale String - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool.
- requested
Backup StringStorage Redundancy - The storage account type to be used to store backups for this database.
- secondary
Type String - The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby.
- sku Property Map
The database SKU.
The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the
Capabilities_ListByLocation
REST API or one of the following commands:az sql db list-editions -l <location> -o table
Get-AzSqlServerServiceObjective -Location <location>
- Map<String>
- Resource tags.
- use
Free BooleanLimit - Whether or not the database uses free monthly limits. Allowed on one database in a subscription.
- zone
Redundant Boolean - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
Supporting Types
DatabaseIdentityResponse
- Tenant
Id string - The Azure Active Directory tenant id.
- Type string
- The identity type
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Sql. Inputs. Database User Identity Response> - The resource ids of the user assigned identities to use
- Tenant
Id string - The Azure Active Directory tenant id.
- Type string
- The identity type
- User
Assigned map[string]DatabaseIdentities User Identity Response - The resource ids of the user assigned identities to use
- tenant
Id String - The Azure Active Directory tenant id.
- type String
- The identity type
- user
Assigned Map<String,DatabaseIdentities User Identity Response> - The resource ids of the user assigned identities to use
- tenant
Id string - The Azure Active Directory tenant id.
- type string
- The identity type
- user
Assigned {[key: string]: DatabaseIdentities User Identity Response} - The resource ids of the user assigned identities to use
- tenant_
id str - The Azure Active Directory tenant id.
- type str
- The identity type
- user_
assigned_ Mapping[str, Databaseidentities User Identity Response] - The resource ids of the user assigned identities to use
- tenant
Id String - The Azure Active Directory tenant id.
- type String
- The identity type
- user
Assigned Map<Property Map>Identities - The resource ids of the user assigned identities to use
DatabaseKeyResponse
- Creation
Date string - The database key creation date.
- Subregion string
- Subregion of the server key.
- Thumbprint string
- Thumbprint of the database key.
- Type string
- The database key type. Only supported value is 'AzureKeyVault'.
- Creation
Date string - The database key creation date.
- Subregion string
- Subregion of the server key.
- Thumbprint string
- Thumbprint of the database key.
- Type string
- The database key type. Only supported value is 'AzureKeyVault'.
- creation
Date String - The database key creation date.
- subregion String
- Subregion of the server key.
- thumbprint String
- Thumbprint of the database key.
- type String
- The database key type. Only supported value is 'AzureKeyVault'.
- creation
Date string - The database key creation date.
- subregion string
- Subregion of the server key.
- thumbprint string
- Thumbprint of the database key.
- type string
- The database key type. Only supported value is 'AzureKeyVault'.
- creation_
date str - The database key creation date.
- subregion str
- Subregion of the server key.
- thumbprint str
- Thumbprint of the database key.
- type str
- The database key type. Only supported value is 'AzureKeyVault'.
- creation
Date String - The database key creation date.
- subregion String
- Subregion of the server key.
- thumbprint String
- Thumbprint of the database key.
- type String
- The database key type. Only supported value is 'AzureKeyVault'.
DatabaseUserIdentityResponse
- Client
Id string - The Azure Active Directory client id.
- Principal
Id string - The Azure Active Directory principal id.
- Client
Id string - The Azure Active Directory client id.
- Principal
Id string - The Azure Active Directory principal id.
- client
Id String - The Azure Active Directory client id.
- principal
Id String - The Azure Active Directory principal id.
- client
Id string - The Azure Active Directory client id.
- principal
Id string - The Azure Active Directory principal id.
- client_
id str - The Azure Active Directory client id.
- principal_
id str - The Azure Active Directory principal id.
- client
Id String - The Azure Active Directory client id.
- principal
Id String - The Azure Active Directory principal id.
SkuResponse
- Name string
- The name of the SKU, typically, a letter + Number code, e.g. P3.
- Capacity int
- Capacity of the particular SKU.
- Family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
- Size of the particular SKU
- Tier string
- The tier or edition of the particular SKU, e.g. Basic, Premium.
- Name string
- The name of the SKU, typically, a letter + Number code, e.g. P3.
- Capacity int
- Capacity of the particular SKU.
- Family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
- Size of the particular SKU
- Tier string
- The tier or edition of the particular SKU, e.g. Basic, Premium.
- name String
- The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity Integer
- Capacity of the particular SKU.
- family String
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
- Size of the particular SKU
- tier String
- The tier or edition of the particular SKU, e.g. Basic, Premium.
- name string
- The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity number
- Capacity of the particular SKU.
- family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size string
- Size of the particular SKU
- tier string
- The tier or edition of the particular SKU, e.g. Basic, Premium.
- name str
- The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity int
- Capacity of the particular SKU.
- family str
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size str
- Size of the particular SKU
- tier str
- The tier or edition of the particular SKU, e.g. Basic, Premium.
- name String
- The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity Number
- Capacity of the particular SKU.
- family String
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
- Size of the particular SKU
- tier String
- The tier or edition of the particular SKU, e.g. Basic, Premium.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0