feat(provider): ресурс аллокации принимает имя организации (резолв в UUID через ResolveRefSvcParamValue, как в nubes_vc_vdc); конфиги и доки без org_uid
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
| Атрибут | Тип | Описание |
|
||||
|---|---|---|
|
||||
| `org_uid` | string, обязательный | UUID услуги «Организация в Cloud Director» |
|
||||
| `organization` | string, обязательный | Организация: имя из ЛК или её UUID |
|
||||
| `vip_configure` | string (JSON), обязательный | Массив аллокаций: `[{"name":"internet-ipv4-v1","count":"3"}]`. `count` — строка |
|
||||
| `keep_on_destroy` | bool, по умолчанию `false` | Не снимать квоту при `destroy` |
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
```hcl
|
||||
resource "nubes_vc_org_ip_allocation" "this" {
|
||||
org_uid = var.org_uid
|
||||
organization = var.organization
|
||||
|
||||
vip_configure = jsonencode([
|
||||
{ name = "internet-ipv4-v1", count = "3" }
|
||||
@@ -70,6 +70,6 @@ resource "nubes_vc_nsxt_snat" "this" {
|
||||
Оба ресурса импортируются по UUID родительской услуги:
|
||||
|
||||
```bash
|
||||
terraform import nubes_vc_org_ip_allocation.this <org_uid>
|
||||
terraform import nubes_vc_org_ip_allocation.this organ
|
||||
terraform import nubes_vc_nsxt_snat.this <nsxt_uid>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user