Resource servercore_dbaas_postgresql_extension_v1
Creates and manages a PostgreSQL extension using Public API v1. Applicable to PostgreSQL, PostgreSQL for 1C, and PostgreSQL TimescaleDB clusters. For more information about extensions, see the official Servercore documentation for PostgreSQL, PostgreSQL for 1C, and PostgreSQL TimescaleDB.
Example usage
resource "servercore_dbaas_postgresql_extension_v1" "extension_1" {
project_id = servercore_project_v2.project_1.id
region = "ru-3"
datastore_id = servercore_dbaas_postgresql_datastore_v1.cluster_1.id
database_id = servercore_dbaas_postgresql_database_v1.database_1.id
available_extension_id = data.servercore_dbaas_available_extension_v1.ae.available_extensions[0].id
}
Argument Reference
-
project_id— (Required) Unique identifier of the associated project. Changing this parameter recreates the extension. Retrieved from the servercore_project_v2 resource. Learn more about Projects. -
region— (Required) Pool where the database is located, for example,ru-3. Changing this parameter recreates the extension. Learn more about available pools in the Availability matrix. -
datastore_id— (Required) Unique identifier of the associated cluster. Changing this parameter recreates the extension. Retrieved from the servercore_dbaas_postgresql_datastore_v1 resource. -
database_id— (Required) Unique identifier of the associated database. Changing this parameter recreates the extension. Retrieved from the servercore_dbaas_postgresql_database_v1 resource. -
available_extension_id— (Required) Unique identifier of the extension to be created. Changing this parameter recreates the extension. Retrieved from the servercore_dbaas_available_extension_v1 data source.
Attributes Reference
status- Extension status.