Policy: GCP > SQL > Instance > Database Flags > SQL Server > Template
The template is used to generate the keys and values for database flags under GCP SQL instance.
Database flags are configurable parameters that allow to customize the behavior and performance of the Cloud SQL instance. These flags can be used to set various database engine options, such as enabling or disabling specific features, tuning performance settings, or adjusting the default behavior of the database. Changes to database flags usually require a restart of the instance to take effect.
Flags not defined in SQL Instance Databse Flags Template will not be modified or deleted. Setting a flag value to undefined
or null
will result in the flag being deleted.
Sample flags supported for SQL Server DB engine:
SQL Server: external scripts enabled: off cross db ownership chaining: off user connections: 10 user options: 2 remote access: off 3625: on contained database authentication: off
See SQL Server database flags for more information.
Note: cross db ownership chaining
flag is deprecated for all SQL Server versions. Going forward, you can't set its value to on. However, if you have this flag enabled, we strongly recommend that you either remove the flag from your database or set it to off
.
Resource Types
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Controls
Policy Packs
This policy setting is used by the following policy packs:
Policy Specification
Schema Type |
|
---|---|
Default |
|
Examples [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/resourceLogging
- tmod:@turbot/gcp-sql#/policy/types/instanceSqlDatabaseFlagsTemplate
- turbot graphql policy-type --id "tmod:@turbot/gcp-sql#/policy/types/instanceSqlDatabaseFlagsTemplate"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-sql#/policy/types/instanceSqlDatabaseFlagsTemplate"
Get Policy TypeGet Policy Settings