docs: full postgres documentation rewrite — sub-field tables, working HCL examples for create/modify/user/database

This commit is contained in:
“Naeel”
2026-07-03 17:02:08 +04:00
parent 1e3038af63
commit 595c9250a1
11 changed files with 412 additions and 117 deletions
@@ -0,0 +1,30 @@
# Resource nubes_postgres_backup — Example
Service: `nubes_postgres` (ID: 90)
[PostgreSQL (основной)](postgres.md) | [Operations](postgres_ops.md) | [Backup](postgres_backup.md) | [Example](postgres_backup_example.md)
## Copy-ready manifest (`postgres_backup_main.tf`)
```hcl
terraform {
required_providers {
nubes = {
source = "terra.k8c.ru/nubes/nubes"
version = "5.0.75"
}
}
}
provider "nubes" {
api_token = "token_***"
api_endpoint = "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc"
}
# Родительский ресурс — nubes_postgres должен быть создан заранее
# resource "nubes_postgres" "baza" { ... }
resource "nubes_postgres_backup" "example" {
postgres_id = nubes_postgres.baza.id
}
```