Documentation
¶
Overview ¶
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
Index ¶
- type ActiveDirectoryAdministrator
- type ActiveDirectoryAdministratorArgs
- type ActiveDirectoryAdministratorState
- type Database
- type DatabaseArgs
- type DatabaseImport
- type DatabaseImportArgs
- func (DatabaseImportArgs) ElementType() reflect.Type
- func (i DatabaseImportArgs) ToDatabaseImportOutput() DatabaseImportOutput
- func (i DatabaseImportArgs) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
- func (i DatabaseImportArgs) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
- func (i DatabaseImportArgs) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
- type DatabaseImportInput
- type DatabaseImportOutput
- func (o DatabaseImportOutput) AdministratorLogin() pulumi.StringOutput
- func (o DatabaseImportOutput) AdministratorLoginPassword() pulumi.StringOutput
- func (o DatabaseImportOutput) AuthenticationType() pulumi.StringOutput
- func (DatabaseImportOutput) ElementType() reflect.Type
- func (o DatabaseImportOutput) OperationMode() pulumi.StringPtrOutput
- func (o DatabaseImportOutput) StorageKey() pulumi.StringOutput
- func (o DatabaseImportOutput) StorageKeyType() pulumi.StringOutput
- func (o DatabaseImportOutput) StorageUri() pulumi.StringOutput
- func (o DatabaseImportOutput) ToDatabaseImportOutput() DatabaseImportOutput
- func (o DatabaseImportOutput) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
- func (o DatabaseImportOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
- func (o DatabaseImportOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
- type DatabaseImportPtrInput
- type DatabaseImportPtrOutput
- func (o DatabaseImportPtrOutput) AdministratorLogin() pulumi.StringOutput
- func (o DatabaseImportPtrOutput) AdministratorLoginPassword() pulumi.StringOutput
- func (o DatabaseImportPtrOutput) AuthenticationType() pulumi.StringOutput
- func (o DatabaseImportPtrOutput) Elem() DatabaseImportOutput
- func (DatabaseImportPtrOutput) ElementType() reflect.Type
- func (o DatabaseImportPtrOutput) OperationMode() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) StorageKey() pulumi.StringOutput
- func (o DatabaseImportPtrOutput) StorageKeyType() pulumi.StringOutput
- func (o DatabaseImportPtrOutput) StorageUri() pulumi.StringOutput
- func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
- func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
- type DatabaseState
- type DatabaseThreatDetectionPolicy
- type DatabaseThreatDetectionPolicyArgs
- func (DatabaseThreatDetectionPolicyArgs) ElementType() reflect.Type
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
- type DatabaseThreatDetectionPolicyInput
- type DatabaseThreatDetectionPolicyOutput
- func (o DatabaseThreatDetectionPolicyOutput) DisabledAlerts() pulumi.StringArrayOutput
- func (DatabaseThreatDetectionPolicyOutput) ElementType() reflect.Type
- func (o DatabaseThreatDetectionPolicyOutput) EmailAccountAdmins() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o DatabaseThreatDetectionPolicyOutput) RetentionDays() pulumi.IntPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) State() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) StorageEndpoint() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) UseServerDefault() pulumi.StringPtrOutput
- type DatabaseThreatDetectionPolicyPtrInput
- type DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) DisabledAlerts() pulumi.StringArrayOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) Elem() DatabaseThreatDetectionPolicyOutput
- func (DatabaseThreatDetectionPolicyPtrOutput) ElementType() reflect.Type
- func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAccountAdmins() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) RetentionDays() pulumi.IntPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) State() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) StorageEndpoint() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) UseServerDefault() pulumi.StringPtrOutput
- type ElasticPool
- type ElasticPoolArgs
- type ElasticPoolState
- type FailoverGroup
- type FailoverGroupArgs
- type FailoverGroupPartnerServer
- type FailoverGroupPartnerServerArgs
- func (FailoverGroupPartnerServerArgs) ElementType() reflect.Type
- func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
- func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
- type FailoverGroupPartnerServerArray
- func (FailoverGroupPartnerServerArray) ElementType() reflect.Type
- func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
- func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
- type FailoverGroupPartnerServerArrayInput
- type FailoverGroupPartnerServerArrayOutput
- func (FailoverGroupPartnerServerArrayOutput) ElementType() reflect.Type
- func (o FailoverGroupPartnerServerArrayOutput) Index(i pulumi.IntInput) FailoverGroupPartnerServerOutput
- func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
- func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
- type FailoverGroupPartnerServerInput
- type FailoverGroupPartnerServerOutput
- func (FailoverGroupPartnerServerOutput) ElementType() reflect.Type
- func (o FailoverGroupPartnerServerOutput) Id() pulumi.StringOutput
- func (o FailoverGroupPartnerServerOutput) Location() pulumi.StringPtrOutput
- func (o FailoverGroupPartnerServerOutput) Role() pulumi.StringPtrOutput
- func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
- func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
- type FailoverGroupReadWriteEndpointFailoverPolicy
- type FailoverGroupReadWriteEndpointFailoverPolicyArgs
- func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType() reflect.Type
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadWriteEndpointFailoverPolicyInput
- type FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType() reflect.Type
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes() pulumi.IntPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadWriteEndpointFailoverPolicyPtrInput
- type FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Elem() FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes() pulumi.IntPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadonlyEndpointFailoverPolicy
- type FailoverGroupReadonlyEndpointFailoverPolicyArgs
- func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ElementType() reflect.Type
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadonlyEndpointFailoverPolicyInput
- type FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ElementType() reflect.Type
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadonlyEndpointFailoverPolicyPtrInput
- type FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) Elem() FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- type FailoverGroupState
- type FirewallRule
- type FirewallRuleArgs
- type FirewallRuleState
- type GetServerArgs
- type GetServerIdentity
- type GetServerIdentityArgs
- type GetServerIdentityArray
- type GetServerIdentityArrayInput
- type GetServerIdentityArrayOutput
- func (GetServerIdentityArrayOutput) ElementType() reflect.Type
- func (o GetServerIdentityArrayOutput) Index(i pulumi.IntInput) GetServerIdentityOutput
- func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput
- func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutputWithContext(ctx context.Context) GetServerIdentityArrayOutput
- type GetServerIdentityInput
- type GetServerIdentityOutput
- func (GetServerIdentityOutput) ElementType() reflect.Type
- func (o GetServerIdentityOutput) PrincipalId() pulumi.StringOutput
- func (o GetServerIdentityOutput) TenantId() pulumi.StringOutput
- func (o GetServerIdentityOutput) ToGetServerIdentityOutput() GetServerIdentityOutput
- func (o GetServerIdentityOutput) ToGetServerIdentityOutputWithContext(ctx context.Context) GetServerIdentityOutput
- func (o GetServerIdentityOutput) Type() pulumi.StringOutput
- type GetServerResult
- type LookupDatabaseArgs
- type LookupDatabaseResult
- type SqlServer
- type SqlServerArgs
- type SqlServerIdentity
- type SqlServerIdentityArgs
- func (SqlServerIdentityArgs) ElementType() reflect.Type
- func (i SqlServerIdentityArgs) ToSqlServerIdentityOutput() SqlServerIdentityOutput
- func (i SqlServerIdentityArgs) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
- func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
- func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
- type SqlServerIdentityInput
- type SqlServerIdentityOutput
- func (SqlServerIdentityOutput) ElementType() reflect.Type
- func (o SqlServerIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o SqlServerIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityOutput() SqlServerIdentityOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
- func (o SqlServerIdentityOutput) Type() pulumi.StringOutput
- type SqlServerIdentityPtrInput
- type SqlServerIdentityPtrOutput
- func (o SqlServerIdentityPtrOutput) Elem() SqlServerIdentityOutput
- func (SqlServerIdentityPtrOutput) ElementType() reflect.Type
- func (o SqlServerIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o SqlServerIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
- func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
- func (o SqlServerIdentityPtrOutput) Type() pulumi.StringOutput
- type SqlServerState
- type VirtualNetworkRule
- type VirtualNetworkRuleArgs
- type VirtualNetworkRuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveDirectoryAdministrator ¶
type ActiveDirectoryAdministrator struct { pulumi.CustomResourceState // The login name of the principal to set as the server administrator Login pulumi.StringOutput `pulumi:"login"` // The ID of the principal to set as the server administrator ObjectId pulumi.StringOutput `pulumi:"objectId"` // The name of the resource group for the SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server on which to set the administrator. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // The Azure Tenant ID TenantId pulumi.StringOutput `pulumi:"tenantId"` }
Allows you to set a user or group as the AD administrator for an Azure SQL server
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/sql_active_directory_administrator.html.markdown.
func GetActiveDirectoryAdministrator ¶
func GetActiveDirectoryAdministrator(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ActiveDirectoryAdministratorState, opts ...pulumi.ResourceOption) (*ActiveDirectoryAdministrator, error)
GetActiveDirectoryAdministrator gets an existing ActiveDirectoryAdministrator resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewActiveDirectoryAdministrator ¶
func NewActiveDirectoryAdministrator(ctx *pulumi.Context, name string, args *ActiveDirectoryAdministratorArgs, opts ...pulumi.ResourceOption) (*ActiveDirectoryAdministrator, error)
NewActiveDirectoryAdministrator registers a new resource with the given unique name, arguments, and options.
type ActiveDirectoryAdministratorArgs ¶
type ActiveDirectoryAdministratorArgs struct { // The login name of the principal to set as the server administrator Login pulumi.StringInput // The ID of the principal to set as the server administrator ObjectId pulumi.StringInput // The name of the resource group for the SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SQL Server on which to set the administrator. Changing this forces a new resource to be created. ServerName pulumi.StringInput // The Azure Tenant ID TenantId pulumi.StringInput }
The set of arguments for constructing a ActiveDirectoryAdministrator resource.
func (ActiveDirectoryAdministratorArgs) ElementType ¶ added in v1.12.0
func (ActiveDirectoryAdministratorArgs) ElementType() reflect.Type
type ActiveDirectoryAdministratorState ¶
type ActiveDirectoryAdministratorState struct { // The login name of the principal to set as the server administrator Login pulumi.StringPtrInput // The ID of the principal to set as the server administrator ObjectId pulumi.StringPtrInput // The name of the resource group for the SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server on which to set the administrator. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // The Azure Tenant ID TenantId pulumi.StringPtrInput }
func (ActiveDirectoryAdministratorState) ElementType ¶ added in v1.12.0
func (ActiveDirectoryAdministratorState) ElementType() reflect.Type
type Database ¶
type Database struct { pulumi.CustomResourceState // The name of the collation. Applies only if `createMode` is `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringOutput `pulumi:"collation"` // Specifies how to create the database. Valid values are: `Default`, `Copy`, `OnlineSecondary`, `NonReadableSecondary`, `PointInTimeRestore`, `Recovery`, `Restore` or `RestoreLongTermRetentionBackup`. Must be `Default` to create a new database. Defaults to `Default`. Please see [Azure SQL Database REST API](https://docs.microsoft.com/en-us/rest/api/sql/databases/createorupdate#createmode) CreateMode pulumi.StringPtrOutput `pulumi:"createMode"` // The creation date of the SQL Database. CreationDate pulumi.StringOutput `pulumi:"creationDate"` // The default secondary location of the SQL Database. DefaultSecondaryLocation pulumi.StringOutput `pulumi:"defaultSecondaryLocation"` // The edition of the database to be created. Applies only if `createMode` is `Default`. Valid values are: `Basic`, `Standard`, `Premium`, `DataWarehouse`, `Business`, `BusinessCritical`, `Free`, `GeneralPurpose`, `Hyperscale`, `Premium`, `PremiumRS`, `Standard`, `Stretch`, `System`, `System2`, or `Web`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). Edition pulumi.StringOutput `pulumi:"edition"` // The name of the elastic database pool. ElasticPoolName pulumi.StringOutput `pulumi:"elasticPoolName"` Encryption pulumi.StringOutput `pulumi:"encryption"` // A Database Import block as documented below. `createMode` must be set to `Default`. Import DatabaseImportPtrOutput `pulumi:"import"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The maximum size that the database can grow to. Applies only if `createMode` is `Default`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). MaxSizeBytes pulumi.StringOutput `pulumi:"maxSizeBytes"` // The name of the database. Name pulumi.StringOutput `pulumi:"name"` // Read-only connections will be redirected to a high-available replica. Please see [Use read-only replicas to load-balance read-only query workloads](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-read-scale-out). ReadScale pulumi.BoolPtrOutput `pulumi:"readScale"` // Use `requestedServiceObjectiveId` or `requestedServiceObjectiveName` to set the performance level for the database. // Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). RequestedServiceObjectiveId pulumi.StringOutput `pulumi:"requestedServiceObjectiveId"` // Use `requestedServiceObjectiveName` or `requestedServiceObjectiveId` to set the performance level for the database. Valid values are: `S0`, `S1`, `S2`, `S3`, `P1`, `P2`, `P4`, `P6`, `P11` and `ElasticPool`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). RequestedServiceObjectiveName pulumi.StringOutput `pulumi:"requestedServiceObjectiveName"` // The name of the resource group in which to create the database. This must be the same as Database Server resource group currently. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The point in time for the restore. Only applies if `createMode` is `PointInTimeRestore` e.g. 2013-11-08T22:00:40Z RestorePointInTime pulumi.StringOutput `pulumi:"restorePointInTime"` // The name of the SQL Server on which to create the database. ServerName pulumi.StringOutput `pulumi:"serverName"` // The deletion date time of the source database. Only applies to deleted databases where `createMode` is `PointInTimeRestore`. SourceDatabaseDeletionDate pulumi.StringOutput `pulumi:"sourceDatabaseDeletionDate"` // The URI of the source database if `createMode` value is not `Default`. SourceDatabaseId pulumi.StringOutput `pulumi:"sourceDatabaseId"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy DatabaseThreatDetectionPolicyOutput `pulumi:"threatDetectionPolicy"` }
Allows you to manage an Azure SQL Database
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/sql_database.html.markdown.
func GetDatabase ¶
func GetDatabase(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatabaseState, opts ...pulumi.ResourceOption) (*Database, error)
GetDatabase gets an existing Database resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDatabase ¶
func NewDatabase(ctx *pulumi.Context, name string, args *DatabaseArgs, opts ...pulumi.ResourceOption) (*Database, error)
NewDatabase registers a new resource with the given unique name, arguments, and options.
type DatabaseArgs ¶
type DatabaseArgs struct { // The name of the collation. Applies only if `createMode` is `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringPtrInput // Specifies how to create the database. Valid values are: `Default`, `Copy`, `OnlineSecondary`, `NonReadableSecondary`, `PointInTimeRestore`, `Recovery`, `Restore` or `RestoreLongTermRetentionBackup`. Must be `Default` to create a new database. Defaults to `Default`. Please see [Azure SQL Database REST API](https://docs.microsoft.com/en-us/rest/api/sql/databases/createorupdate#createmode) CreateMode pulumi.StringPtrInput // The edition of the database to be created. Applies only if `createMode` is `Default`. Valid values are: `Basic`, `Standard`, `Premium`, `DataWarehouse`, `Business`, `BusinessCritical`, `Free`, `GeneralPurpose`, `Hyperscale`, `Premium`, `PremiumRS`, `Standard`, `Stretch`, `System`, `System2`, or `Web`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). Edition pulumi.StringPtrInput // The name of the elastic database pool. ElasticPoolName pulumi.StringPtrInput // A Database Import block as documented below. `createMode` must be set to `Default`. Import DatabaseImportPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The maximum size that the database can grow to. Applies only if `createMode` is `Default`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). MaxSizeBytes pulumi.StringPtrInput // The name of the database. Name pulumi.StringPtrInput // Read-only connections will be redirected to a high-available replica. Please see [Use read-only replicas to load-balance read-only query workloads](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-read-scale-out). ReadScale pulumi.BoolPtrInput // Use `requestedServiceObjectiveId` or `requestedServiceObjectiveName` to set the performance level for the database. // Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). RequestedServiceObjectiveId pulumi.StringPtrInput // Use `requestedServiceObjectiveName` or `requestedServiceObjectiveId` to set the performance level for the database. Valid values are: `S0`, `S1`, `S2`, `S3`, `P1`, `P2`, `P4`, `P6`, `P11` and `ElasticPool`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). RequestedServiceObjectiveName pulumi.StringPtrInput // The name of the resource group in which to create the database. This must be the same as Database Server resource group currently. ResourceGroupName pulumi.StringInput // The point in time for the restore. Only applies if `createMode` is `PointInTimeRestore` e.g. 2013-11-08T22:00:40Z RestorePointInTime pulumi.StringPtrInput // The name of the SQL Server on which to create the database. ServerName pulumi.StringInput // The deletion date time of the source database. Only applies to deleted databases where `createMode` is `PointInTimeRestore`. SourceDatabaseDeletionDate pulumi.StringPtrInput // The URI of the source database if `createMode` value is not `Default`. SourceDatabaseId pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy DatabaseThreatDetectionPolicyPtrInput }
The set of arguments for constructing a Database resource.
func (DatabaseArgs) ElementType ¶ added in v1.12.0
func (DatabaseArgs) ElementType() reflect.Type
type DatabaseImport ¶ added in v1.12.0
type DatabaseImport struct { // Specifies the name of the SQL administrator. AdministratorLogin string `pulumi:"administratorLogin"` // Specifies the password of the SQL administrator. AdministratorLoginPassword string `pulumi:"administratorLoginPassword"` // Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`. AuthenticationType string `pulumi:"authenticationType"` // Specifies the type of import operation being performed. The only allowable value is `Import`. OperationMode *string `pulumi:"operationMode"` // Specifies the access key for the storage account. StorageKey string `pulumi:"storageKey"` // Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`. StorageKeyType string `pulumi:"storageKeyType"` // Specifies the blob URI of the .bacpac file. StorageUri string `pulumi:"storageUri"` }
type DatabaseImportArgs ¶ added in v1.12.0
type DatabaseImportArgs struct { // Specifies the name of the SQL administrator. AdministratorLogin pulumi.StringInput `pulumi:"administratorLogin"` // Specifies the password of the SQL administrator. AdministratorLoginPassword pulumi.StringInput `pulumi:"administratorLoginPassword"` // Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`. AuthenticationType pulumi.StringInput `pulumi:"authenticationType"` // Specifies the type of import operation being performed. The only allowable value is `Import`. OperationMode pulumi.StringPtrInput `pulumi:"operationMode"` // Specifies the access key for the storage account. StorageKey pulumi.StringInput `pulumi:"storageKey"` // Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`. StorageKeyType pulumi.StringInput `pulumi:"storageKeyType"` // Specifies the blob URI of the .bacpac file. StorageUri pulumi.StringInput `pulumi:"storageUri"` }
func (DatabaseImportArgs) ElementType ¶ added in v1.12.0
func (DatabaseImportArgs) ElementType() reflect.Type
func (DatabaseImportArgs) ToDatabaseImportOutput ¶ added in v1.12.0
func (i DatabaseImportArgs) ToDatabaseImportOutput() DatabaseImportOutput
func (DatabaseImportArgs) ToDatabaseImportOutputWithContext ¶ added in v1.12.0
func (i DatabaseImportArgs) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
func (DatabaseImportArgs) ToDatabaseImportPtrOutput ¶ added in v1.12.0
func (i DatabaseImportArgs) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
func (DatabaseImportArgs) ToDatabaseImportPtrOutputWithContext ¶ added in v1.12.0
func (i DatabaseImportArgs) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
type DatabaseImportInput ¶ added in v1.12.0
type DatabaseImportInput interface { pulumi.Input ToDatabaseImportOutput() DatabaseImportOutput ToDatabaseImportOutputWithContext(context.Context) DatabaseImportOutput }
type DatabaseImportOutput ¶ added in v1.12.0
type DatabaseImportOutput struct{ *pulumi.OutputState }
func (DatabaseImportOutput) AdministratorLogin ¶ added in v1.12.0
func (o DatabaseImportOutput) AdministratorLogin() pulumi.StringOutput
Specifies the name of the SQL administrator.
func (DatabaseImportOutput) AdministratorLoginPassword ¶ added in v1.12.0
func (o DatabaseImportOutput) AdministratorLoginPassword() pulumi.StringOutput
Specifies the password of the SQL administrator.
func (DatabaseImportOutput) AuthenticationType ¶ added in v1.12.0
func (o DatabaseImportOutput) AuthenticationType() pulumi.StringOutput
Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
func (DatabaseImportOutput) ElementType ¶ added in v1.12.0
func (DatabaseImportOutput) ElementType() reflect.Type
func (DatabaseImportOutput) OperationMode ¶ added in v1.12.0
func (o DatabaseImportOutput) OperationMode() pulumi.StringPtrOutput
Specifies the type of import operation being performed. The only allowable value is `Import`.
func (DatabaseImportOutput) StorageKey ¶ added in v1.12.0
func (o DatabaseImportOutput) StorageKey() pulumi.StringOutput
Specifies the access key for the storage account.
func (DatabaseImportOutput) StorageKeyType ¶ added in v1.12.0
func (o DatabaseImportOutput) StorageKeyType() pulumi.StringOutput
Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
func (DatabaseImportOutput) StorageUri ¶ added in v1.12.0
func (o DatabaseImportOutput) StorageUri() pulumi.StringOutput
Specifies the blob URI of the .bacpac file.
func (DatabaseImportOutput) ToDatabaseImportOutput ¶ added in v1.12.0
func (o DatabaseImportOutput) ToDatabaseImportOutput() DatabaseImportOutput
func (DatabaseImportOutput) ToDatabaseImportOutputWithContext ¶ added in v1.12.0
func (o DatabaseImportOutput) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
func (DatabaseImportOutput) ToDatabaseImportPtrOutput ¶ added in v1.12.0
func (o DatabaseImportOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
func (DatabaseImportOutput) ToDatabaseImportPtrOutputWithContext ¶ added in v1.12.0
func (o DatabaseImportOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
type DatabaseImportPtrInput ¶ added in v1.12.0
type DatabaseImportPtrInput interface { pulumi.Input ToDatabaseImportPtrOutput() DatabaseImportPtrOutput ToDatabaseImportPtrOutputWithContext(context.Context) DatabaseImportPtrOutput }
func DatabaseImportPtr ¶ added in v1.12.0
func DatabaseImportPtr(v *DatabaseImportArgs) DatabaseImportPtrInput
type DatabaseImportPtrOutput ¶ added in v1.12.0
type DatabaseImportPtrOutput struct{ *pulumi.OutputState }
func (DatabaseImportPtrOutput) AdministratorLogin ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) AdministratorLogin() pulumi.StringOutput
Specifies the name of the SQL administrator.
func (DatabaseImportPtrOutput) AdministratorLoginPassword ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) AdministratorLoginPassword() pulumi.StringOutput
Specifies the password of the SQL administrator.
func (DatabaseImportPtrOutput) AuthenticationType ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) AuthenticationType() pulumi.StringOutput
Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
func (DatabaseImportPtrOutput) Elem ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) Elem() DatabaseImportOutput
func (DatabaseImportPtrOutput) ElementType ¶ added in v1.12.0
func (DatabaseImportPtrOutput) ElementType() reflect.Type
func (DatabaseImportPtrOutput) OperationMode ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) OperationMode() pulumi.StringPtrOutput
Specifies the type of import operation being performed. The only allowable value is `Import`.
func (DatabaseImportPtrOutput) StorageKey ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) StorageKey() pulumi.StringOutput
Specifies the access key for the storage account.
func (DatabaseImportPtrOutput) StorageKeyType ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) StorageKeyType() pulumi.StringOutput
Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
func (DatabaseImportPtrOutput) StorageUri ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) StorageUri() pulumi.StringOutput
Specifies the blob URI of the .bacpac file.
func (DatabaseImportPtrOutput) ToDatabaseImportPtrOutput ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
func (DatabaseImportPtrOutput) ToDatabaseImportPtrOutputWithContext ¶ added in v1.12.0
func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
type DatabaseState ¶
type DatabaseState struct { // The name of the collation. Applies only if `createMode` is `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringPtrInput // Specifies how to create the database. Valid values are: `Default`, `Copy`, `OnlineSecondary`, `NonReadableSecondary`, `PointInTimeRestore`, `Recovery`, `Restore` or `RestoreLongTermRetentionBackup`. Must be `Default` to create a new database. Defaults to `Default`. Please see [Azure SQL Database REST API](https://docs.microsoft.com/en-us/rest/api/sql/databases/createorupdate#createmode) CreateMode pulumi.StringPtrInput // The creation date of the SQL Database. CreationDate pulumi.StringPtrInput // The default secondary location of the SQL Database. DefaultSecondaryLocation pulumi.StringPtrInput // The edition of the database to be created. Applies only if `createMode` is `Default`. Valid values are: `Basic`, `Standard`, `Premium`, `DataWarehouse`, `Business`, `BusinessCritical`, `Free`, `GeneralPurpose`, `Hyperscale`, `Premium`, `PremiumRS`, `Standard`, `Stretch`, `System`, `System2`, or `Web`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). Edition pulumi.StringPtrInput // The name of the elastic database pool. ElasticPoolName pulumi.StringPtrInput Encryption pulumi.StringPtrInput // A Database Import block as documented below. `createMode` must be set to `Default`. Import DatabaseImportPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The maximum size that the database can grow to. Applies only if `createMode` is `Default`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). MaxSizeBytes pulumi.StringPtrInput // The name of the database. Name pulumi.StringPtrInput // Read-only connections will be redirected to a high-available replica. Please see [Use read-only replicas to load-balance read-only query workloads](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-read-scale-out). ReadScale pulumi.BoolPtrInput // Use `requestedServiceObjectiveId` or `requestedServiceObjectiveName` to set the performance level for the database. // Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). RequestedServiceObjectiveId pulumi.StringPtrInput // Use `requestedServiceObjectiveName` or `requestedServiceObjectiveId` to set the performance level for the database. Valid values are: `S0`, `S1`, `S2`, `S3`, `P1`, `P2`, `P4`, `P6`, `P11` and `ElasticPool`. Please see [Azure SQL Database Service Tiers](https://azure.microsoft.com/en-gb/documentation/articles/sql-database-service-tiers/). RequestedServiceObjectiveName pulumi.StringPtrInput // The name of the resource group in which to create the database. This must be the same as Database Server resource group currently. ResourceGroupName pulumi.StringPtrInput // The point in time for the restore. Only applies if `createMode` is `PointInTimeRestore` e.g. 2013-11-08T22:00:40Z RestorePointInTime pulumi.StringPtrInput // The name of the SQL Server on which to create the database. ServerName pulumi.StringPtrInput // The deletion date time of the source database. Only applies to deleted databases where `createMode` is `PointInTimeRestore`. SourceDatabaseDeletionDate pulumi.StringPtrInput // The URI of the source database if `createMode` value is not `Default`. SourceDatabaseId pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy DatabaseThreatDetectionPolicyPtrInput }
func (DatabaseState) ElementType ¶ added in v1.12.0
func (DatabaseState) ElementType() reflect.Type
type DatabaseThreatDetectionPolicy ¶ added in v1.12.0
type DatabaseThreatDetectionPolicy struct { // Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`. DisabledAlerts []string `pulumi:"disabledAlerts"` // Should the account administrators be emailed when this alert is triggered? EmailAccountAdmins *string `pulumi:"emailAccountAdmins"` // A list of email addresses which alerts should be sent to. EmailAddresses []string `pulumi:"emailAddresses"` // Specifies the number of days to keep in the Threat Detection audit logs. RetentionDays *int `pulumi:"retentionDays"` // The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`. State *string `pulumi:"state"` // Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`. StorageEndpoint *string `pulumi:"storageEndpoint"` // Should the default server policy be used? Defaults to `Disabled`. UseServerDefault *string `pulumi:"useServerDefault"` }
type DatabaseThreatDetectionPolicyArgs ¶ added in v1.12.0
type DatabaseThreatDetectionPolicyArgs struct { // Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`. DisabledAlerts pulumi.StringArrayInput `pulumi:"disabledAlerts"` // Should the account administrators be emailed when this alert is triggered? EmailAccountAdmins pulumi.StringPtrInput `pulumi:"emailAccountAdmins"` // A list of email addresses which alerts should be sent to. EmailAddresses pulumi.StringArrayInput `pulumi:"emailAddresses"` // Specifies the number of days to keep in the Threat Detection audit logs. RetentionDays pulumi.IntPtrInput `pulumi:"retentionDays"` // The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`. State pulumi.StringPtrInput `pulumi:"state"` // Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`. StorageAccountAccessKey pulumi.StringPtrInput `pulumi:"storageAccountAccessKey"` // Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`. StorageEndpoint pulumi.StringPtrInput `pulumi:"storageEndpoint"` // Should the default server policy be used? Defaults to `Disabled`. UseServerDefault pulumi.StringPtrInput `pulumi:"useServerDefault"` }
func (DatabaseThreatDetectionPolicyArgs) ElementType ¶ added in v1.12.0
func (DatabaseThreatDetectionPolicyArgs) ElementType() reflect.Type
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutput ¶ added in v1.12.0
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutputWithContext ¶ added in v1.12.0
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutput ¶ added in v1.12.0
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutputWithContext ¶ added in v1.12.0
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
type DatabaseThreatDetectionPolicyInput ¶ added in v1.12.0
type DatabaseThreatDetectionPolicyInput interface { pulumi.Input ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput ToDatabaseThreatDetectionPolicyOutputWithContext(context.Context) DatabaseThreatDetectionPolicyOutput }
type DatabaseThreatDetectionPolicyOutput ¶ added in v1.12.0
type DatabaseThreatDetectionPolicyOutput struct{ *pulumi.OutputState }
func (DatabaseThreatDetectionPolicyOutput) DisabledAlerts ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) DisabledAlerts() pulumi.StringArrayOutput
Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`.
func (DatabaseThreatDetectionPolicyOutput) ElementType ¶ added in v1.12.0
func (DatabaseThreatDetectionPolicyOutput) ElementType() reflect.Type
func (DatabaseThreatDetectionPolicyOutput) EmailAccountAdmins ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) EmailAccountAdmins() pulumi.StringPtrOutput
Should the account administrators be emailed when this alert is triggered?
func (DatabaseThreatDetectionPolicyOutput) EmailAddresses ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) EmailAddresses() pulumi.StringArrayOutput
A list of email addresses which alerts should be sent to.
func (DatabaseThreatDetectionPolicyOutput) RetentionDays ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) RetentionDays() pulumi.IntPtrOutput
Specifies the number of days to keep in the Threat Detection audit logs.
func (DatabaseThreatDetectionPolicyOutput) State ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) State() pulumi.StringPtrOutput
The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`.
func (DatabaseThreatDetectionPolicyOutput) StorageAccountAccessKey ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyOutput) StorageEndpoint ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) StorageEndpoint() pulumi.StringPtrOutput
Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutput ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutputWithContext ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutput ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyOutput) UseServerDefault ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyOutput) UseServerDefault() pulumi.StringPtrOutput
Should the default server policy be used? Defaults to `Disabled`.
type DatabaseThreatDetectionPolicyPtrInput ¶ added in v1.12.0
type DatabaseThreatDetectionPolicyPtrInput interface { pulumi.Input ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput ToDatabaseThreatDetectionPolicyPtrOutputWithContext(context.Context) DatabaseThreatDetectionPolicyPtrOutput }
func DatabaseThreatDetectionPolicyPtr ¶ added in v1.12.0
func DatabaseThreatDetectionPolicyPtr(v *DatabaseThreatDetectionPolicyArgs) DatabaseThreatDetectionPolicyPtrInput
type DatabaseThreatDetectionPolicyPtrOutput ¶ added in v1.12.0
type DatabaseThreatDetectionPolicyPtrOutput struct{ *pulumi.OutputState }
func (DatabaseThreatDetectionPolicyPtrOutput) DisabledAlerts ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) DisabledAlerts() pulumi.StringArrayOutput
Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`.
func (DatabaseThreatDetectionPolicyPtrOutput) ElementType ¶ added in v1.12.0
func (DatabaseThreatDetectionPolicyPtrOutput) ElementType() reflect.Type
func (DatabaseThreatDetectionPolicyPtrOutput) EmailAccountAdmins ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAccountAdmins() pulumi.StringPtrOutput
Should the account administrators be emailed when this alert is triggered?
func (DatabaseThreatDetectionPolicyPtrOutput) EmailAddresses ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAddresses() pulumi.StringArrayOutput
A list of email addresses which alerts should be sent to.
func (DatabaseThreatDetectionPolicyPtrOutput) RetentionDays ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) RetentionDays() pulumi.IntPtrOutput
Specifies the number of days to keep in the Threat Detection audit logs.
func (DatabaseThreatDetectionPolicyPtrOutput) State ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) State() pulumi.StringPtrOutput
The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`.
func (DatabaseThreatDetectionPolicyPtrOutput) StorageAccountAccessKey ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyPtrOutput) StorageEndpoint ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) StorageEndpoint() pulumi.StringPtrOutput
Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutput ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyPtrOutput) UseServerDefault ¶ added in v1.12.0
func (o DatabaseThreatDetectionPolicyPtrOutput) UseServerDefault() pulumi.StringPtrOutput
Should the default server policy be used? Defaults to `Disabled`.
type ElasticPool ¶
type ElasticPool struct { pulumi.CustomResourceState // The creation date of the SQL Elastic Pool. CreationDate pulumi.StringOutput `pulumi:"creationDate"` // The maximum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMax pulumi.IntOutput `pulumi:"dbDtuMax"` // The minimum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMin pulumi.IntOutput `pulumi:"dbDtuMin"` // The total shared DTU for the elastic pool. Valid values depend on the `edition` which has been defined. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for valid combinations. Dtu pulumi.IntOutput `pulumi:"dtu"` // The edition of the elastic pool to be created. Valid values are `Basic`, `Standard`, and `Premium`. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for details. Changing this forces a new resource to be created. Edition pulumi.StringOutput `pulumi:"edition"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of `edition` and `dtu` and the limits documented in [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). If not defined when creating an elastic pool, the value is set to the size implied by `edition` and `dtu`. PoolSize pulumi.IntOutput `pulumi:"poolSize"` // The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Allows you to manage an Azure SQL Elastic Pool.
> **NOTE:** - This version of the `Elasticpool` resource is being **deprecated** and should no longer be used. Please use the mssql.ElasticPool version instead.
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/sql_elasticpool.html.markdown.
func GetElasticPool ¶
func GetElasticPool(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ElasticPoolState, opts ...pulumi.ResourceOption) (*ElasticPool, error)
GetElasticPool gets an existing ElasticPool resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewElasticPool ¶
func NewElasticPool(ctx *pulumi.Context, name string, args *ElasticPoolArgs, opts ...pulumi.ResourceOption) (*ElasticPool, error)
NewElasticPool registers a new resource with the given unique name, arguments, and options.
type ElasticPoolArgs ¶
type ElasticPoolArgs struct { // The maximum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMax pulumi.IntPtrInput // The minimum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMin pulumi.IntPtrInput // The total shared DTU for the elastic pool. Valid values depend on the `edition` which has been defined. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for valid combinations. Dtu pulumi.IntInput // The edition of the elastic pool to be created. Valid values are `Basic`, `Standard`, and `Premium`. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for details. Changing this forces a new resource to be created. Edition pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of `edition` and `dtu` and the limits documented in [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). If not defined when creating an elastic pool, the value is set to the size implied by `edition` and `dtu`. PoolSize pulumi.IntPtrInput // The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server. ResourceGroupName pulumi.StringInput // The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created. ServerName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a ElasticPool resource.
func (ElasticPoolArgs) ElementType ¶ added in v1.12.0
func (ElasticPoolArgs) ElementType() reflect.Type
type ElasticPoolState ¶
type ElasticPoolState struct { // The creation date of the SQL Elastic Pool. CreationDate pulumi.StringPtrInput // The maximum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMax pulumi.IntPtrInput // The minimum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMin pulumi.IntPtrInput // The total shared DTU for the elastic pool. Valid values depend on the `edition` which has been defined. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for valid combinations. Dtu pulumi.IntPtrInput // The edition of the elastic pool to be created. Valid values are `Basic`, `Standard`, and `Premium`. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for details. Changing this forces a new resource to be created. Edition pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of `edition` and `dtu` and the limits documented in [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). If not defined when creating an elastic pool, the value is set to the size implied by `edition` and `dtu`. PoolSize pulumi.IntPtrInput // The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (ElasticPoolState) ElementType ¶ added in v1.12.0
func (ElasticPoolState) ElementType() reflect.Type
type FailoverGroup ¶ added in v1.0.0
type FailoverGroup struct { pulumi.CustomResourceState // A list of database ids to add to the failover group Databases pulumi.StringArrayOutput `pulumi:"databases"` // the location of the failover group. Location pulumi.StringOutput `pulumi:"location"` // The name of the failover group. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of secondary servers as documented below PartnerServers FailoverGroupPartnerServerArrayOutput `pulumi:"partnerServers"` // A read/write policy as documented below ReadWriteEndpointFailoverPolicy FailoverGroupReadWriteEndpointFailoverPolicyOutput `pulumi:"readWriteEndpointFailoverPolicy"` // a read-only policy as documented below ReadonlyEndpointFailoverPolicy FailoverGroupReadonlyEndpointFailoverPolicyOutput `pulumi:"readonlyEndpointFailoverPolicy"` // The name of the resource group containing the SQL server ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // local replication role of the failover group instance. Role pulumi.StringOutput `pulumi:"role"` // The name of the primary SQL server. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Create a failover group of databases on a collection of Azure SQL servers.
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/sql_failover_group.html.markdown.
func GetFailoverGroup ¶ added in v1.0.0
func GetFailoverGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FailoverGroupState, opts ...pulumi.ResourceOption) (*FailoverGroup, error)
GetFailoverGroup gets an existing FailoverGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFailoverGroup ¶ added in v1.0.0
func NewFailoverGroup(ctx *pulumi.Context, name string, args *FailoverGroupArgs, opts ...pulumi.ResourceOption) (*FailoverGroup, error)
NewFailoverGroup registers a new resource with the given unique name, arguments, and options.
type FailoverGroupArgs ¶ added in v1.0.0
type FailoverGroupArgs struct { // A list of database ids to add to the failover group Databases pulumi.StringArrayInput // The name of the failover group. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of secondary servers as documented below PartnerServers FailoverGroupPartnerServerArrayInput // A read/write policy as documented below ReadWriteEndpointFailoverPolicy FailoverGroupReadWriteEndpointFailoverPolicyInput // a read-only policy as documented below ReadonlyEndpointFailoverPolicy FailoverGroupReadonlyEndpointFailoverPolicyPtrInput // The name of the resource group containing the SQL server ResourceGroupName pulumi.StringInput // The name of the primary SQL server. Changing this forces a new resource to be created. ServerName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a FailoverGroup resource.
func (FailoverGroupArgs) ElementType ¶ added in v1.12.0
func (FailoverGroupArgs) ElementType() reflect.Type
type FailoverGroupPartnerServer ¶ added in v1.12.0
type FailoverGroupPartnerServerArgs ¶ added in v1.12.0
type FailoverGroupPartnerServerArgs struct { // the SQL server ID Id pulumi.StringInput `pulumi:"id"` // the location of the failover group. Location pulumi.StringPtrInput `pulumi:"location"` // local replication role of the failover group instance. Role pulumi.StringPtrInput `pulumi:"role"` }
func (FailoverGroupPartnerServerArgs) ElementType ¶ added in v1.12.0
func (FailoverGroupPartnerServerArgs) ElementType() reflect.Type
func (FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutput ¶ added in v1.12.0
func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
func (FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutputWithContext ¶ added in v1.12.0
func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
type FailoverGroupPartnerServerArray ¶ added in v1.12.0
type FailoverGroupPartnerServerArray []FailoverGroupPartnerServerInput
func (FailoverGroupPartnerServerArray) ElementType ¶ added in v1.12.0
func (FailoverGroupPartnerServerArray) ElementType() reflect.Type
func (FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutput ¶ added in v1.12.0
func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
func (FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutputWithContext ¶ added in v1.12.0
func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
type FailoverGroupPartnerServerArrayInput ¶ added in v1.12.0
type FailoverGroupPartnerServerArrayInput interface { pulumi.Input ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput ToFailoverGroupPartnerServerArrayOutputWithContext(context.Context) FailoverGroupPartnerServerArrayOutput }
type FailoverGroupPartnerServerArrayOutput ¶ added in v1.12.0
type FailoverGroupPartnerServerArrayOutput struct{ *pulumi.OutputState }
func (FailoverGroupPartnerServerArrayOutput) ElementType ¶ added in v1.12.0
func (FailoverGroupPartnerServerArrayOutput) ElementType() reflect.Type
func (FailoverGroupPartnerServerArrayOutput) Index ¶ added in v1.12.0
func (o FailoverGroupPartnerServerArrayOutput) Index(i pulumi.IntInput) FailoverGroupPartnerServerOutput
func (FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutput ¶ added in v1.12.0
func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
func (FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
type FailoverGroupPartnerServerInput ¶ added in v1.12.0
type FailoverGroupPartnerServerInput interface { pulumi.Input ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput ToFailoverGroupPartnerServerOutputWithContext(context.Context) FailoverGroupPartnerServerOutput }
type FailoverGroupPartnerServerOutput ¶ added in v1.12.0
type FailoverGroupPartnerServerOutput struct{ *pulumi.OutputState }
func (FailoverGroupPartnerServerOutput) ElementType ¶ added in v1.12.0
func (FailoverGroupPartnerServerOutput) ElementType() reflect.Type
func (FailoverGroupPartnerServerOutput) Id ¶ added in v1.12.0
func (o FailoverGroupPartnerServerOutput) Id() pulumi.StringOutput
the SQL server ID
func (FailoverGroupPartnerServerOutput) Location ¶ added in v1.12.0
func (o FailoverGroupPartnerServerOutput) Location() pulumi.StringPtrOutput
the location of the failover group.
func (FailoverGroupPartnerServerOutput) Role ¶ added in v1.12.0
func (o FailoverGroupPartnerServerOutput) Role() pulumi.StringPtrOutput
local replication role of the failover group instance.
func (FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutput ¶ added in v1.12.0
func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
func (FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
type FailoverGroupReadWriteEndpointFailoverPolicy ¶ added in v1.12.0
type FailoverGroupReadWriteEndpointFailoverPolicy struct { // Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted GraceMinutes *int `pulumi:"graceMinutes"` // Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled` Mode string `pulumi:"mode"` }
type FailoverGroupReadWriteEndpointFailoverPolicyArgs ¶ added in v1.12.0
type FailoverGroupReadWriteEndpointFailoverPolicyArgs struct { // Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted GraceMinutes pulumi.IntPtrInput `pulumi:"graceMinutes"` // Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled` Mode pulumi.StringInput `pulumi:"mode"` }
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType ¶ added in v1.12.0
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType() reflect.Type
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput ¶ added in v1.12.0
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext ¶ added in v1.12.0
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶ added in v1.12.0
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type FailoverGroupReadWriteEndpointFailoverPolicyInput ¶ added in v1.12.0
type FailoverGroupReadWriteEndpointFailoverPolicyInput interface { pulumi.Input ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput }
type FailoverGroupReadWriteEndpointFailoverPolicyOutput ¶ added in v1.12.0
type FailoverGroupReadWriteEndpointFailoverPolicyOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType ¶ added in v1.12.0
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType() reflect.Type
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes() pulumi.IntPtrOutput
Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled`
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type FailoverGroupReadWriteEndpointFailoverPolicyPtrInput ¶ added in v1.12.0
type FailoverGroupReadWriteEndpointFailoverPolicyPtrInput interface { pulumi.Input ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput }
func FailoverGroupReadWriteEndpointFailoverPolicyPtr ¶ added in v1.12.0
func FailoverGroupReadWriteEndpointFailoverPolicyPtr(v *FailoverGroupReadWriteEndpointFailoverPolicyArgs) FailoverGroupReadWriteEndpointFailoverPolicyPtrInput
type FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
type FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType ¶ added in v1.12.0
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes() pulumi.IntPtrOutput
Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringOutput
Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled`
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type FailoverGroupReadonlyEndpointFailoverPolicy ¶ added in v1.12.0
type FailoverGroupReadonlyEndpointFailoverPolicy struct { // Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled` Mode string `pulumi:"mode"` }
type FailoverGroupReadonlyEndpointFailoverPolicyArgs ¶ added in v1.12.0
type FailoverGroupReadonlyEndpointFailoverPolicyArgs struct { // Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled` Mode pulumi.StringInput `pulumi:"mode"` }
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ElementType ¶ added in v1.12.0
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ElementType() reflect.Type
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput ¶ added in v1.12.0
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext ¶ added in v1.12.0
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext ¶ added in v1.12.0
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
type FailoverGroupReadonlyEndpointFailoverPolicyInput ¶ added in v1.12.0
type FailoverGroupReadonlyEndpointFailoverPolicyInput interface { pulumi.Input ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput }
type FailoverGroupReadonlyEndpointFailoverPolicyOutput ¶ added in v1.12.0
type FailoverGroupReadonlyEndpointFailoverPolicyOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ElementType ¶ added in v1.12.0
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ElementType() reflect.Type
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) Mode ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled`
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
type FailoverGroupReadonlyEndpointFailoverPolicyPtrInput ¶ added in v1.12.0
type FailoverGroupReadonlyEndpointFailoverPolicyPtrInput interface { pulumi.Input ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput }
func FailoverGroupReadonlyEndpointFailoverPolicyPtr ¶ added in v1.12.0
func FailoverGroupReadonlyEndpointFailoverPolicyPtr(v *FailoverGroupReadonlyEndpointFailoverPolicyArgs) FailoverGroupReadonlyEndpointFailoverPolicyPtrInput
type FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
type FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ElementType ¶ added in v1.12.0
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) Mode ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringOutput
Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled`
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext ¶ added in v1.12.0
func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
type FailoverGroupState ¶ added in v1.0.0
type FailoverGroupState struct { // A list of database ids to add to the failover group Databases pulumi.StringArrayInput // the location of the failover group. Location pulumi.StringPtrInput // The name of the failover group. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of secondary servers as documented below PartnerServers FailoverGroupPartnerServerArrayInput // A read/write policy as documented below ReadWriteEndpointFailoverPolicy FailoverGroupReadWriteEndpointFailoverPolicyPtrInput // a read-only policy as documented below ReadonlyEndpointFailoverPolicy FailoverGroupReadonlyEndpointFailoverPolicyPtrInput // The name of the resource group containing the SQL server ResourceGroupName pulumi.StringPtrInput // local replication role of the failover group instance. Role pulumi.StringPtrInput // The name of the primary SQL server. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (FailoverGroupState) ElementType ¶ added in v1.12.0
func (FailoverGroupState) ElementType() reflect.Type
type FirewallRule ¶
type FirewallRule struct { pulumi.CustomResourceState // The ending IP address to allow through the firewall for this rule. EndIpAddress pulumi.StringOutput `pulumi:"endIpAddress"` // The name of the firewall rule. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to // create the sql server. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server on which to create the Firewall Rule. ServerName pulumi.StringOutput `pulumi:"serverName"` // The starting IP address to allow through the firewall for this rule. StartIpAddress pulumi.StringOutput `pulumi:"startIpAddress"` }
Allows you to manage an Azure SQL Firewall Rule
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/sql_firewall_rule.html.markdown.
func GetFirewallRule ¶
func GetFirewallRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FirewallRuleState, opts ...pulumi.ResourceOption) (*FirewallRule, error)
GetFirewallRule gets an existing FirewallRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFirewallRule ¶
func NewFirewallRule(ctx *pulumi.Context, name string, args *FirewallRuleArgs, opts ...pulumi.ResourceOption) (*FirewallRule, error)
NewFirewallRule registers a new resource with the given unique name, arguments, and options.
type FirewallRuleArgs ¶
type FirewallRuleArgs struct { // The ending IP address to allow through the firewall for this rule. EndIpAddress pulumi.StringInput // The name of the firewall rule. Name pulumi.StringPtrInput // The name of the resource group in which to // create the sql server. ResourceGroupName pulumi.StringInput // The name of the SQL Server on which to create the Firewall Rule. ServerName pulumi.StringInput // The starting IP address to allow through the firewall for this rule. StartIpAddress pulumi.StringInput }
The set of arguments for constructing a FirewallRule resource.
func (FirewallRuleArgs) ElementType ¶ added in v1.12.0
func (FirewallRuleArgs) ElementType() reflect.Type
type FirewallRuleState ¶
type FirewallRuleState struct { // The ending IP address to allow through the firewall for this rule. EndIpAddress pulumi.StringPtrInput // The name of the firewall rule. Name pulumi.StringPtrInput // The name of the resource group in which to // create the sql server. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server on which to create the Firewall Rule. ServerName pulumi.StringPtrInput // The starting IP address to allow through the firewall for this rule. StartIpAddress pulumi.StringPtrInput }
func (FirewallRuleState) ElementType ¶ added in v1.12.0
func (FirewallRuleState) ElementType() reflect.Type
type GetServerArgs ¶ added in v0.18.6
type GetServerArgs struct { // The name of the SQL Server. Name string `pulumi:"name"` // Specifies the name of the Resource Group where the SQL Server exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getServer.
type GetServerIdentity ¶ added in v1.12.0
type GetServerIdentityArgs ¶ added in v1.12.0
type GetServerIdentityArgs struct { // The ID of the Principal (Client) in Azure Active Directory. PrincipalId pulumi.StringInput `pulumi:"principalId"` // The ID of the Azure Active Directory Tenant. TenantId pulumi.StringInput `pulumi:"tenantId"` // The identity type of the SQL Server. Type pulumi.StringInput `pulumi:"type"` }
func (GetServerIdentityArgs) ElementType ¶ added in v1.12.0
func (GetServerIdentityArgs) ElementType() reflect.Type
func (GetServerIdentityArgs) ToGetServerIdentityOutput ¶ added in v1.12.0
func (i GetServerIdentityArgs) ToGetServerIdentityOutput() GetServerIdentityOutput
func (GetServerIdentityArgs) ToGetServerIdentityOutputWithContext ¶ added in v1.12.0
func (i GetServerIdentityArgs) ToGetServerIdentityOutputWithContext(ctx context.Context) GetServerIdentityOutput
type GetServerIdentityArray ¶ added in v1.12.0
type GetServerIdentityArray []GetServerIdentityInput
func (GetServerIdentityArray) ElementType ¶ added in v1.12.0
func (GetServerIdentityArray) ElementType() reflect.Type
func (GetServerIdentityArray) ToGetServerIdentityArrayOutput ¶ added in v1.12.0
func (i GetServerIdentityArray) ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput
func (GetServerIdentityArray) ToGetServerIdentityArrayOutputWithContext ¶ added in v1.12.0
func (i GetServerIdentityArray) ToGetServerIdentityArrayOutputWithContext(ctx context.Context) GetServerIdentityArrayOutput
type GetServerIdentityArrayInput ¶ added in v1.12.0
type GetServerIdentityArrayInput interface { pulumi.Input ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput ToGetServerIdentityArrayOutputWithContext(context.Context) GetServerIdentityArrayOutput }
type GetServerIdentityArrayOutput ¶ added in v1.12.0
type GetServerIdentityArrayOutput struct{ *pulumi.OutputState }
func (GetServerIdentityArrayOutput) ElementType ¶ added in v1.12.0
func (GetServerIdentityArrayOutput) ElementType() reflect.Type
func (GetServerIdentityArrayOutput) Index ¶ added in v1.12.0
func (o GetServerIdentityArrayOutput) Index(i pulumi.IntInput) GetServerIdentityOutput
func (GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutput ¶ added in v1.12.0
func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput
func (GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutputWithContext ¶ added in v1.12.0
func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutputWithContext(ctx context.Context) GetServerIdentityArrayOutput
type GetServerIdentityInput ¶ added in v1.12.0
type GetServerIdentityInput interface { pulumi.Input ToGetServerIdentityOutput() GetServerIdentityOutput ToGetServerIdentityOutputWithContext(context.Context) GetServerIdentityOutput }
type GetServerIdentityOutput ¶ added in v1.12.0
type GetServerIdentityOutput struct{ *pulumi.OutputState }
func (GetServerIdentityOutput) ElementType ¶ added in v1.12.0
func (GetServerIdentityOutput) ElementType() reflect.Type
func (GetServerIdentityOutput) PrincipalId ¶ added in v1.12.0
func (o GetServerIdentityOutput) PrincipalId() pulumi.StringOutput
The ID of the Principal (Client) in Azure Active Directory.
func (GetServerIdentityOutput) TenantId ¶ added in v1.12.0
func (o GetServerIdentityOutput) TenantId() pulumi.StringOutput
The ID of the Azure Active Directory Tenant.
func (GetServerIdentityOutput) ToGetServerIdentityOutput ¶ added in v1.12.0
func (o GetServerIdentityOutput) ToGetServerIdentityOutput() GetServerIdentityOutput
func (GetServerIdentityOutput) ToGetServerIdentityOutputWithContext ¶ added in v1.12.0
func (o GetServerIdentityOutput) ToGetServerIdentityOutputWithContext(ctx context.Context) GetServerIdentityOutput
func (GetServerIdentityOutput) Type ¶ added in v1.12.0
func (o GetServerIdentityOutput) Type() pulumi.StringOutput
The identity type of the SQL Server.
type GetServerResult ¶ added in v0.18.6
type GetServerResult struct { // The administrator username of the SQL Server. AdministratorLogin string `pulumi:"administratorLogin"` // The fully qualified domain name of the SQL Server. Fqdn string `pulumi:"fqdn"` // id is the provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetServerIdentity `pulumi:"identities"` // The location of the Resource Group in which the SQL Server exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The version of the SQL Server. Version string `pulumi:"version"` }
A collection of values returned by getServer.
func GetServer ¶ added in v1.12.0
func GetServer(ctx *pulumi.Context, args *GetServerArgs, opts ...pulumi.InvokeOption) (*GetServerResult, error)
Use this data source to access information about an existing SQL Azure Database Server.
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/sql_server.html.markdown.
type LookupDatabaseArgs ¶ added in v1.12.0
type LookupDatabaseArgs struct { // The name of the SQL Database. Name string `pulumi:"name"` // Specifies the name of the Resource Group where the Azure SQL Database exists. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the SQL Server. ServerName string `pulumi:"serverName"` Tags map[string]string `pulumi:"tags"` }
A collection of arguments for invoking getDatabase.
type LookupDatabaseResult ¶ added in v1.12.0
type LookupDatabaseResult struct { // The name of the collation. Collation string `pulumi:"collation"` // The default secondary location of the SQL Database. DefaultSecondaryLocation string `pulumi:"defaultSecondaryLocation"` // The edition of the database. Edition string `pulumi:"edition"` // The name of the elastic database pool the database belongs to. ElasticPoolName string `pulumi:"elasticPoolName"` // The ID of the failover group the database belongs to. FailoverGroupId string `pulumi:"failoverGroupId"` // id is the provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The location of the Resource Group in which the SQL Server exists. Location string `pulumi:"location"` // The name of the database. Name string `pulumi:"name"` // Indicate if read-only connections will be redirected to a high-available replica. ReadScale bool `pulumi:"readScale"` // The name of the resource group in which the database resides. This will always be the same resource group as the Database Server. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the SQL Server on which to create the database. ServerName string `pulumi:"serverName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getDatabase.
func LookupDatabase ¶ added in v1.1.0
func LookupDatabase(ctx *pulumi.Context, args *LookupDatabaseArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseResult, error)
Use this data source to access information about an existing SQL Azure Database.
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/sql_database.html.markdown.
type SqlServer ¶
type SqlServer struct { pulumi.CustomResourceState // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringOutput `pulumi:"administratorLogin"` // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringOutput `pulumi:"administratorLoginPassword"` // The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net) FullyQualifiedDomainName pulumi.StringOutput `pulumi:"fullyQualifiedDomainName"` // An `identity` block as defined below. Identity SqlServerIdentityPtrOutput `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the SQL Server. This needs to be globally unique within Azure. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the SQL Server. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). Version pulumi.StringOutput `pulumi:"version"` }
Manages a SQL Azure Database Server.
> **Note:** All arguments including the administrator login and password will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/sql_server.html.markdown.
func GetSqlServer ¶
func GetSqlServer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SqlServerState, opts ...pulumi.ResourceOption) (*SqlServer, error)
GetSqlServer gets an existing SqlServer resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSqlServer ¶
func NewSqlServer(ctx *pulumi.Context, name string, args *SqlServerArgs, opts ...pulumi.ResourceOption) (*SqlServer, error)
NewSqlServer registers a new resource with the given unique name, arguments, and options.
type SqlServerArgs ¶
type SqlServerArgs struct { // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringInput // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringInput // An `identity` block as defined below. Identity SqlServerIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the SQL Server. This needs to be globally unique within Azure. Name pulumi.StringPtrInput // The name of the resource group in which to create the SQL Server. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). Version pulumi.StringInput }
The set of arguments for constructing a SqlServer resource.
func (SqlServerArgs) ElementType ¶ added in v1.12.0
func (SqlServerArgs) ElementType() reflect.Type
type SqlServerIdentity ¶ added in v1.12.0
type SqlServerIdentity struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Server. PrincipalId *string `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Server. TenantId *string `pulumi:"tenantId"` Type string `pulumi:"type"` }
type SqlServerIdentityArgs ¶ added in v1.12.0
type SqlServerIdentityArgs struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Server. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Server. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` Type pulumi.StringInput `pulumi:"type"` }
func (SqlServerIdentityArgs) ElementType ¶ added in v1.12.0
func (SqlServerIdentityArgs) ElementType() reflect.Type
func (SqlServerIdentityArgs) ToSqlServerIdentityOutput ¶ added in v1.12.0
func (i SqlServerIdentityArgs) ToSqlServerIdentityOutput() SqlServerIdentityOutput
func (SqlServerIdentityArgs) ToSqlServerIdentityOutputWithContext ¶ added in v1.12.0
func (i SqlServerIdentityArgs) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
func (SqlServerIdentityArgs) ToSqlServerIdentityPtrOutput ¶ added in v1.12.0
func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
func (SqlServerIdentityArgs) ToSqlServerIdentityPtrOutputWithContext ¶ added in v1.12.0
func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
type SqlServerIdentityInput ¶ added in v1.12.0
type SqlServerIdentityInput interface { pulumi.Input ToSqlServerIdentityOutput() SqlServerIdentityOutput ToSqlServerIdentityOutputWithContext(context.Context) SqlServerIdentityOutput }
type SqlServerIdentityOutput ¶ added in v1.12.0
type SqlServerIdentityOutput struct{ *pulumi.OutputState }
func (SqlServerIdentityOutput) ElementType ¶ added in v1.12.0
func (SqlServerIdentityOutput) ElementType() reflect.Type
func (SqlServerIdentityOutput) PrincipalId ¶ added in v1.12.0
func (o SqlServerIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityOutput) TenantId ¶ added in v1.12.0
func (o SqlServerIdentityOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityOutput) ToSqlServerIdentityOutput ¶ added in v1.12.0
func (o SqlServerIdentityOutput) ToSqlServerIdentityOutput() SqlServerIdentityOutput
func (SqlServerIdentityOutput) ToSqlServerIdentityOutputWithContext ¶ added in v1.12.0
func (o SqlServerIdentityOutput) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
func (SqlServerIdentityOutput) ToSqlServerIdentityPtrOutput ¶ added in v1.12.0
func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
func (SqlServerIdentityOutput) ToSqlServerIdentityPtrOutputWithContext ¶ added in v1.12.0
func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
func (SqlServerIdentityOutput) Type ¶ added in v1.12.0
func (o SqlServerIdentityOutput) Type() pulumi.StringOutput
type SqlServerIdentityPtrInput ¶ added in v1.12.0
type SqlServerIdentityPtrInput interface { pulumi.Input ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput ToSqlServerIdentityPtrOutputWithContext(context.Context) SqlServerIdentityPtrOutput }
func SqlServerIdentityPtr ¶ added in v1.12.0
func SqlServerIdentityPtr(v *SqlServerIdentityArgs) SqlServerIdentityPtrInput
type SqlServerIdentityPtrOutput ¶ added in v1.12.0
type SqlServerIdentityPtrOutput struct{ *pulumi.OutputState }
func (SqlServerIdentityPtrOutput) Elem ¶ added in v1.12.0
func (o SqlServerIdentityPtrOutput) Elem() SqlServerIdentityOutput
func (SqlServerIdentityPtrOutput) ElementType ¶ added in v1.12.0
func (SqlServerIdentityPtrOutput) ElementType() reflect.Type
func (SqlServerIdentityPtrOutput) PrincipalId ¶ added in v1.12.0
func (o SqlServerIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityPtrOutput) TenantId ¶ added in v1.12.0
func (o SqlServerIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutput ¶ added in v1.12.0
func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
func (SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutputWithContext ¶ added in v1.12.0
func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
func (SqlServerIdentityPtrOutput) Type ¶ added in v1.12.0
func (o SqlServerIdentityPtrOutput) Type() pulumi.StringOutput
type SqlServerState ¶
type SqlServerState struct { // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringPtrInput // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringPtrInput // The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net) FullyQualifiedDomainName pulumi.StringPtrInput // An `identity` block as defined below. Identity SqlServerIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the SQL Server. This needs to be globally unique within Azure. Name pulumi.StringPtrInput // The name of the resource group in which to create the SQL Server. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). Version pulumi.StringPtrInput }
func (SqlServerState) ElementType ¶ added in v1.12.0
func (SqlServerState) ElementType() reflect.Type
type VirtualNetworkRule ¶
type VirtualNetworkRule struct { pulumi.CustomResourceState // Create the virtual network rule before the subnet has the virtual network service endpoint enabled. The default value is false. IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrOutput `pulumi:"ignoreMissingVnetServiceEndpoint"` // The name of the SQL virtual network rule. Changing this forces a new resource to be created. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group where the SQL server resides. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server to which this SQL virtual network rule will be applied to. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // The ID of the subnet that the SQL server will be connected to. SubnetId pulumi.StringOutput `pulumi:"subnetId"` }
Allows you to add, update, or remove an Azure SQL server to a subnet of a virtual network.
> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/sql_virtual_network_rule.html.markdown.
func GetVirtualNetworkRule ¶
func GetVirtualNetworkRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VirtualNetworkRuleState, opts ...pulumi.ResourceOption) (*VirtualNetworkRule, error)
GetVirtualNetworkRule gets an existing VirtualNetworkRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewVirtualNetworkRule ¶
func NewVirtualNetworkRule(ctx *pulumi.Context, name string, args *VirtualNetworkRuleArgs, opts ...pulumi.ResourceOption) (*VirtualNetworkRule, error)
NewVirtualNetworkRule registers a new resource with the given unique name, arguments, and options.
type VirtualNetworkRuleArgs ¶
type VirtualNetworkRuleArgs struct { // Create the virtual network rule before the subnet has the virtual network service endpoint enabled. The default value is false. IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrInput // The name of the SQL virtual network rule. Changing this forces a new resource to be created. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Name pulumi.StringPtrInput // The name of the resource group where the SQL server resides. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SQL Server to which this SQL virtual network rule will be applied to. Changing this forces a new resource to be created. ServerName pulumi.StringInput // The ID of the subnet that the SQL server will be connected to. SubnetId pulumi.StringInput }
The set of arguments for constructing a VirtualNetworkRule resource.
func (VirtualNetworkRuleArgs) ElementType ¶ added in v1.12.0
func (VirtualNetworkRuleArgs) ElementType() reflect.Type
type VirtualNetworkRuleState ¶
type VirtualNetworkRuleState struct { // Create the virtual network rule before the subnet has the virtual network service endpoint enabled. The default value is false. IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrInput // The name of the SQL virtual network rule. Changing this forces a new resource to be created. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Name pulumi.StringPtrInput // The name of the resource group where the SQL server resides. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server to which this SQL virtual network rule will be applied to. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // The ID of the subnet that the SQL server will be connected to. SubnetId pulumi.StringPtrInput }
func (VirtualNetworkRuleState) ElementType ¶ added in v1.12.0
func (VirtualNetworkRuleState) ElementType() reflect.Type