Compare commits

..

2 Commits
4.9.3 ... 4.8.5

Author SHA1 Message Date
f33b8e3e7d 4.8.5 2025-08-12 12:05:17 +03:00
asteam
5d15e83d56 4.8.4 2025-07-31 15:51:28 +03:00
428 changed files with 3291 additions and 7100 deletions

View File

@@ -1,9 +1,8 @@
## Version 4.9.3 ## Version 4.8.5
### Исправлено ### Исправлено
#### kvmvm #### kvmvm
| Идентификатор<br>задачи | Описание | | Идентификатор<br>задачи | Описание |
| --- | --- | | --- | --- |
| BATF-1016 | Ошибка при изменении полей `ram` и `cpu`, приводящая к невозможности измения параметров виртуальной машины в resources `decort_kvmvm` и `decort_cb_kvmvm` в cloudapi/kvmvm и в cloudbroker/kvmvm | | BATF-1053 | Перезагрузка виртуальной машины при изменении полей `ram` и `cpu` в resources `decort_kvmvm` и `decort_cb_kvmvm` в cloudapi/kvmvm и в cloudbroker/kvmvm |
| BATF-1018 | Ошибка при изменении поля `started`, приводящая к невозможности запуска виртуальной машины в resources `decort_kvmvm` в cloudapi/kvmvm |

View File

@@ -7,7 +7,7 @@ ZIPDIR = ./zip
BINARY=${NAME} BINARY=${NAME}
WORKPATH= ./examples/terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAMESPACE}/${VERSION}/${OS_ARCH} WORKPATH= ./examples/terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAMESPACE}/${VERSION}/${OS_ARCH}
MAINPATH = ./cmd/decort/ MAINPATH = ./cmd/decort/
VERSION=4.9.3 VERSION=4.8.5
OS_ARCH=$(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH) OS_ARCH=$(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH)
FILES = ${BINARY}_${VERSION}_darwin_amd64\ FILES = ${BINARY}_${VERSION}_darwin_amd64\

View File

@@ -6,7 +6,6 @@ Terraform provider для платформы Digital Energy Cloud Orchestration
| Версия DECORT API | Версия провайдера Terraform | | Версия DECORT API | Версия провайдера Terraform |
| ------ | ------ | | ------ | ------ |
| 4.3.0 | 4.9.x |
| 4.2.0 | 4.8.x | | 4.2.0 | 4.8.x |
| 4.1.0 | 4.7.x | | 4.1.0 | 4.7.x |
| 4.0.0 | 4.6.x | | 4.0.0 | 4.6.x |
@@ -48,8 +47,7 @@ Terraform provider для платформы Digital Energy Cloud Orchestration
- Работа с resource groups, - Работа с resource groups,
- Работа с snapshots, - Работа с snapshots,
- Работа с stacks, - Работа с stacks,
- Работа с VINS, - Работа с VINS.
- Работа с SEPs.
- Режим администратора: - Режим администратора:
- Работа с accounts, - Работа с accounts,

View File

@@ -40,7 +40,6 @@ description: |-
- `deactivation_time` (Number) - `deactivation_time` (Number)
- `deleted_by` (String) - `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `displayname` (String) - `displayname` (String)
- `guid` (Number) - `guid` (Number)
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.

View File

@@ -51,7 +51,6 @@ Read-Only:
- `compute_features` (List of String) - `compute_features` (List of String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `status` (String) - `status` (String)
- `updated_time` (Number) - `updated_time` (Number)

View File

@@ -52,7 +52,6 @@ Read-Only:
- `compute_features` (List of String) - `compute_features` (List of String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `status` (String) - `status` (String)
- `updated_time` (Number) - `updated_time` (Number)

View File

@@ -56,7 +56,6 @@ Read-Only:
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String) - `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `milestones` (Number) - `milestones` (Number)
- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources)) - `resources` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources))
- `rg_id` (Number) - `rg_id` (Number)

View File

@@ -72,7 +72,6 @@ Optional:
Read-Only: Read-Only:
- `chipset` (String)
- `id` (Number) - `id` (Number)
- `ip_addresses` (List of String) - `ip_addresses` (List of String)
- `name` (String) - `name` (String)

View File

@@ -39,7 +39,6 @@ description: |-
- `deactivation_time` (Number) - `deactivation_time` (Number)
- `deleted_by` (String) - `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `displayname` (String) - `displayname` (String)
- `guid` (Number) - `guid` (Number)
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.

View File

@@ -61,7 +61,6 @@ Read-Only:
- `deactivation_time` (Number) - `deactivation_time` (Number)
- `deleted_by` (String) - `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `displayname` (String) - `displayname` (String)
- `guid` (Number) - `guid` (Number)
- `meta` (List of String) - `meta` (List of String)

View File

@@ -60,7 +60,6 @@ Read-Only:
- `deactivation_time` (Number) - `deactivation_time` (Number)
- `deleted_by` (String) - `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `displayname` (String) - `displayname` (String)
- `guid` (Number) - `guid` (Number)
- `meta` (List of String) - `meta` (List of String)

View File

@@ -56,7 +56,6 @@ Read-Only:
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String) - `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `milestones` (Number) - `milestones` (Number)
- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources)) - `resources` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources))
- `rg_id` (Number) - `rg_id` (Number)

View File

@@ -37,7 +37,6 @@ description: |-
- `tags` (String) - `tags` (String)
- `timestamp` (Number) - `timestamp` (Number)
- `timestamp_end` (Number) - `timestamp_end` (Number)
- `ttl` (String)
- `user` (String) - `user` (String)
<a id="nestedblock--timeouts"></a> <a id="nestedblock--timeouts"></a>

View File

@@ -45,7 +45,6 @@ Read-Only:
- `cmd` (String) - `cmd` (String)
- `guid` (String) - `guid` (String)
- `nid` (Number) - `nid` (Number)
- `physical_node` (Boolean)
- `state` (String) - `state` (String)
- `time_create` (Number) - `time_create` (Number)
- `time_start` (Number) - `time_start` (Number)

View File

@@ -21,7 +21,6 @@ description: |-
- `max_status_code` (Number) find by HTTP max status code - `max_status_code` (Number) find by HTTP max status code
- `min_status_code` (Number) find by HTTP min status code - `min_status_code` (Number) find by HTTP min status code
- `page` (Number) page number - `page` (Number) page number
- `request_id` (String) request id
- `size` (Number) page size - `size` (Number) page size
- `sort_by` (String) sort by one of supported fields, format +|-(field) - `sort_by` (String) sort by one of supported fields, format +|-(field)
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
@@ -49,16 +48,9 @@ Optional:
Read-Only: Read-Only:
- `args` (String)
- `call` (String) - `call` (String)
- `guid` (String) - `guid` (String)
- `kwargs` (String)
- `remote_addr` (String)
- `responsetime` (Number) - `responsetime` (Number)
- `result` (String)
- `status_code` (Number) - `status_code` (Number)
- `tags` (String)
- `timestamp` (Number) - `timestamp` (Number)
- `timestamp_end` (Number)
- `ttl` (String)
- `user` (String) - `user` (String)

View File

@@ -30,9 +30,7 @@ description: |-
- `acl` (String) - `acl` (String)
- `boot_partition` (Number) - `boot_partition` (Number)
- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedatt--computes))
- `created_by` (String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String) - `desc` (String)
- `destruction_time` (Number) - `destruction_time` (Number)
@@ -47,8 +45,6 @@ description: |-
- `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) - `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune))
- `iqn` (String) - `iqn` (String)
- `login` (String) - `login` (String)
- `machine_id` (Number)
- `machine_name` (String)
- `milestones` (Number) - `milestones` (Number)
- `order` (Number) - `order` (Number)
- `params` (String) - `params` (String)
@@ -56,7 +52,7 @@ description: |-
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)
@@ -68,15 +64,12 @@ description: |-
- `sep_id` (Number) - `sep_id` (Number)
- `sep_type` (String) - `sep_type` (String)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots))
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) - `type` (String)
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) - `vmid` (Number)
<a id="nestedblock--timeouts"></a> <a id="nestedblock--timeouts"></a>

View File

@@ -57,9 +57,7 @@ Read-Only:
- `acl` (String) - `acl` (String)
- `boot_partition` (Number) - `boot_partition` (Number)
- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes))
- `created_by` (String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String) - `desc` (String)
- `destruction_time` (Number) - `destruction_time` (Number)
@@ -83,7 +81,7 @@ Read-Only:
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)
@@ -95,15 +93,12 @@ Read-Only:
- `sep_id` (Number) - `sep_id` (Number)
- `sep_type` (String) - `sep_type` (String)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots))
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) - `type` (String)
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) - `vmid` (Number)
<a id="nestedobjatt--items--computes"></a> <a id="nestedobjatt--items--computes"></a>

View File

@@ -54,9 +54,7 @@ Read-Only:
- `acl` (String) - `acl` (String)
- `boot_partition` (Number) - `boot_partition` (Number)
- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes))
- `created_by` (String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String) - `desc` (String)
- `destruction_time` (Number) - `destruction_time` (Number)
@@ -80,7 +78,7 @@ Read-Only:
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)
@@ -92,15 +90,12 @@ Read-Only:
- `sep_id` (Number) - `sep_id` (Number)
- `sep_type` (String) - `sep_type` (String)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots))
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) - `type` (String)
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) - `vmid` (Number)
<a id="nestedobjatt--items--computes"></a> <a id="nestedobjatt--items--computes"></a>

View File

@@ -77,7 +77,7 @@ Read-Only:
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)

View File

@@ -53,7 +53,7 @@ description: |-
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)

View File

@@ -43,7 +43,6 @@ description: |-
- `name` (String) - `name` (String)
- `network` (String) - `network` (String)
- `network_id` (Number) - `network_id` (Number)
- `ntp` (List of String)
- `ovs_bridge` (String) - `ovs_bridge` (String)
- `pre_reservations_num` (Number) - `pre_reservations_num` (Number)
- `prefix` (Number) - `prefix` (Number)

View File

@@ -50,7 +50,7 @@ description: |-
- `network_interface_naming` (String) - `network_interface_naming` (String)
- `password` (String) Optional password for the image - `password` (String) Optional password for the image
- `pool_name` (String) pool for image create - `pool_name` (String) pool for image create
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `reference_id` (String) - `reference_id` (String)

View File

@@ -79,7 +79,7 @@ Read-Only:
- `network_interface_naming` (String) - `network_interface_naming` (String)
- `password` (String) - `password` (String)
- `pool_name` (String) - `pool_name` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `reference_id` (String) - `reference_id` (String)

View File

@@ -65,6 +65,7 @@ Read-Only:
- `images` (List of Number) - `images` (List of Number)
- `login` (String) - `login` (String)
- `mem_allocation_ratio` (Number) - `mem_allocation_ratio` (Number)
- `meta` (List of String)
- `name` (String) - `name` (String)
- `packages` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages)) - `packages` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages))
- `passwd` (String) - `passwd` (String)

View File

@@ -37,7 +37,6 @@ description: |-
- `boot_disk_id` (Number) - `boot_disk_id` (Number)
- `boot_disk_size` (Number) - `boot_disk_size` (Number)
- `boot_order` (List of String) - `boot_order` (List of String)
- `boot_type` (String)
- `cd_image_id` (Number) - `cd_image_id` (Number)
- `chipset` (String) - `chipset` (String)
- `clone_reference` (Number) - `clone_reference` (Number)
@@ -56,13 +55,11 @@ description: |-
- `driver` (String) - `driver` (String)
- `gid` (Number) - `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `hot_resize` (Boolean)
- `hp_backed` (Boolean) - `hp_backed` (Boolean)
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.
- `image_id` (Number) - `image_id` (Number)
- `image_name` (String) - `image_name` (String)
- `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces)) - `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces))
- `loader_type` (String)
- `lock_status` (String) - `lock_status` (String)
- `manager_id` (Number) - `manager_id` (Number)
- `manager_type` (String) - `manager_type` (String)
@@ -75,12 +72,11 @@ description: |-
- `natable_vins_network` (String) - `natable_vins_network` (String)
- `natable_vins_network_name` (String) - `natable_vins_network_name` (String)
- `need_reboot` (Boolean) - `need_reboot` (Boolean)
- `network_interface_naming` (String)
- `numa_affinity` (String) - `numa_affinity` (String)
- `numa_node_id` (Number) - `numa_node_id` (Number)
- `os_users` (List of Object) (see [below for nested schema](#nestedatt--os_users)) - `os_users` (List of Object) (see [below for nested schema](#nestedatt--os_users))
- `pci_devices` (List of Number) - `pci_devices` (List of Number)
- `pinned` (Number) - `pinned` (Boolean)
- `pool` (String) - `pool` (String)
- `preferred_cpu` (List of Number) - `preferred_cpu` (List of Number)
- `ram` (Number) - `ram` (Number)
@@ -103,7 +99,7 @@ description: |-
- `updated_time` (Number) - `updated_time` (Number)
- `user_data` (String) - `user_data` (String)
- `user_managed` (Boolean) - `user_managed` (Boolean)
- `vgpus` (List of Object) List of virtual GPUs (see [below for nested schema](#nestedatt--vgpus)) - `vgpus` (List of Number)
- `virtual_image_id` (Number) - `virtual_image_id` (Number)
- `virtual_image_name` (String) - `virtual_image_name` (String)
- `vnc_password` (String) - `vnc_password` (String)
@@ -187,7 +183,7 @@ Read-Only:
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)
@@ -198,7 +194,6 @@ Read-Only:
- `role` (String) - `role` (String)
- `sep_id` (Number) - `sep_id` (Number)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--disks--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--disks--snapshots))
@@ -337,29 +332,3 @@ Read-Only:
- `key` (String) - `key` (String)
- `val` (String) - `val` (String)
<a id="nestedatt--vgpus"></a>
### Nested Schema for `vgpus`
Read-Only:
- `account_id` (Number)
- `bus_number` (Number)
- `created_time` (Number)
- `deleted_time` (Number)
- `gid` (Number)
- `guid` (Number)
- `id` (Number)
- `last_claimed_by` (Number)
- `last_update_time` (Number)
- `mode` (String)
- `pci_slot` (Number)
- `pgpuid` (Number)
- `profile_id` (Number)
- `ram` (Number)
- `reference_id` (String)
- `rg_id` (Number)
- `status` (String)
- `type` (String)
- `vmid` (Number)

View File

@@ -33,7 +33,6 @@ description: |-
- `size` (Number) - `size` (Number)
- `sort_by` (String) sort by one of supported fields, format +|-(field) - `sort_by` (String) sort by one of supported fields, format +|-(field)
- `stack_id` (Number) Find by stack ID - `stack_id` (Number) Find by stack ID
- `stack_name` (String) Find by node name.
- `status` (String) Find by status - `status` (String) Find by status
- `tech_status` (String) Find by tech status - `tech_status` (String) Find by tech status
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
@@ -68,7 +67,6 @@ Read-Only:
- `arch` (String) - `arch` (String)
- `auto_start_w_node` (Boolean) - `auto_start_w_node` (Boolean)
- `boot_order` (List of String) - `boot_order` (List of String)
- `boot_type` (String)
- `bootdisk_size` (Number) - `bootdisk_size` (Number)
- `cd_image_id` (Number) - `cd_image_id` (Number)
- `chipset` (String) - `chipset` (String)
@@ -89,11 +87,9 @@ Read-Only:
- `driver` (String) - `driver` (String)
- `gid` (Number) - `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `hot_resize` (Boolean)
- `hp_backed` (Boolean) - `hp_backed` (Boolean)
- `image_id` (Number) - `image_id` (Number)
- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) - `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces))
- `loader_type` (String)
- `lock_status` (String) - `lock_status` (String)
- `manager_id` (Number) - `manager_id` (Number)
- `manager_type` (String) - `manager_type` (String)
@@ -101,12 +97,10 @@ Read-Only:
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `need_reboot` (Boolean) - `need_reboot` (Boolean)
- `network_interface_naming` (String)
- `nid` (Number)
- `numa_affinity` (String) - `numa_affinity` (String)
- `numa_node_id` (Number) - `numa_node_id` (Number)
- `os_users` (List of Object) (see [below for nested schema](#nestedobjatt--items--os_users)) - `os_users` (List of Object) (see [below for nested schema](#nestedobjatt--items--os_users))
- `pinned` (Number) - `pinned` (Boolean)
- `preferred_cpu` (List of Number) - `preferred_cpu` (List of Number)
- `ram` (Number) - `ram` (Number)
- `reference_id` (String) - `reference_id` (String)
@@ -117,7 +111,6 @@ Read-Only:
- `rg_name` (String) - `rg_name` (String)
- `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets)) - `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets))
- `stack_id` (Number) - `stack_id` (Number)
- `stack_name` (String)
- `stateless_sep_id` (Number) - `stateless_sep_id` (Number)
- `stateless_sep_type` (String) - `stateless_sep_type` (String)
- `status` (String) - `status` (String)

View File

@@ -62,10 +62,8 @@ Read-Only:
- `arch` (String) - `arch` (String)
- `auto_start_w_node` (Boolean) - `auto_start_w_node` (Boolean)
- `boot_order` (List of String) - `boot_order` (List of String)
- `boot_type` (String)
- `bootdisk_size` (Number) - `bootdisk_size` (Number)
- `cd_image_id` (Number) - `cd_image_id` (Number)
- `chipset` (String)
- `clone_reference` (Number) - `clone_reference` (Number)
- `clones` (List of Number) - `clones` (List of Number)
- `compute_id` (Number) - `compute_id` (Number)
@@ -83,11 +81,9 @@ Read-Only:
- `driver` (String) - `driver` (String)
- `gid` (Number) - `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `hot_resize` (Boolean)
- `hp_backed` (Boolean) - `hp_backed` (Boolean)
- `image_id` (Number) - `image_id` (Number)
- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) - `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces))
- `loader_type` (String)
- `lock_status` (String) - `lock_status` (String)
- `manager_id` (Number) - `manager_id` (Number)
- `manager_type` (String) - `manager_type` (String)
@@ -95,11 +91,10 @@ Read-Only:
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `need_reboot` (Boolean) - `need_reboot` (Boolean)
- `network_interface_naming` (String)
- `numa_affinity` (String) - `numa_affinity` (String)
- `numa_node_id` (Number) - `numa_node_id` (Number)
- `os_users` (List of Object) (see [below for nested schema](#nestedobjatt--items--os_users)) - `os_users` (List of Object) (see [below for nested schema](#nestedobjatt--items--os_users))
- `pinned` (Number) - `pinned` (Boolean)
- `preferred_cpu` (List of Number) - `preferred_cpu` (List of Number)
- `ram` (Number) - `ram` (Number)
- `reference_id` (String) - `reference_id` (String)
@@ -110,7 +105,6 @@ Read-Only:
- `rg_name` (String) - `rg_name` (String)
- `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets)) - `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets))
- `stack_id` (Number) - `stack_id` (Number)
- `stack_name` (String)
- `stateless_sep_id` (Number) - `stateless_sep_id` (Number)
- `stateless_sep_type` (String) - `stateless_sep_type` (String)
- `status` (String) - `status` (String)
@@ -178,7 +172,6 @@ Read-Only:
Read-Only: Read-Only:
- `bus_number` (Number)
- `conn_id` (Number) - `conn_id` (Number)
- `conn_type` (String) - `conn_type` (String)
- `def_gw` (String) - `def_gw` (String)
@@ -186,10 +179,8 @@ Read-Only:
- `flip_group_id` (Number) - `flip_group_id` (Number)
- `guid` (String) - `guid` (String)
- `ip_address` (String) - `ip_address` (String)
- `libvirt_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces--libvirt_settings))
- `listen_ssh` (Boolean) - `listen_ssh` (Boolean)
- `mac` (String) - `mac` (String)
- `mtu` (Number)
- `name` (String) - `name` (String)
- `net_id` (Number) - `net_id` (Number)
- `net_type` (String) - `net_type` (String)
@@ -201,20 +192,6 @@ Read-Only:
- `type` (String) - `type` (String)
- `vnfs` (List of Number) - `vnfs` (List of Number)
<a id="nestedobjatt--items--interfaces--libvirt_settings"></a>
### Nested Schema for `items.interfaces.libvirt_settings`
Read-Only:
- `event_idx` (String)
- `guid` (String)
- `ioeventfd` (String)
- `queues` (Number)
- `rx_queue_size` (Number)
- `tx_queue_size` (Number)
- `txmode` (String)
<a id="nestedobjatt--items--interfaces--qos"></a> <a id="nestedobjatt--items--interfaces--qos"></a>
### Nested Schema for `items.interfaces.qos` ### Nested Schema for `items.interfaces.qos`

View File

@@ -46,6 +46,7 @@ description: |-
- `lock_status` (String) - `lock_status` (String)
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `register_computes` (Boolean)
- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) - `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits))
- `resource_types` (List of String) - `resource_types` (List of String)
- `secret` (String) - `secret` (String)

View File

@@ -70,6 +70,7 @@ Read-Only:
- `lock_status` (String) - `lock_status` (String)
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `register_computes` (Boolean)
- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) - `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits))
- `resource_types` (List of String) - `resource_types` (List of String)
- `rg_id` (Number) - `rg_id` (Number)

View File

@@ -68,6 +68,7 @@ Read-Only:
- `lock_status` (String) - `lock_status` (String)
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `register_computes` (Boolean)
- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) - `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits))
- `resource_types` (List of String) - `resource_types` (List of String)
- `rg_id` (Number) - `rg_id` (Number)

View File

@@ -1,59 +0,0 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "decort_cb_sep_and_pools_available_list Data Source - terraform-provider-decort"
subcategory: ""
description: |-
---
# decort_cb_sep_and_pools_available_list (Data Source)
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `account_id` (Number) Account ID
### Optional
- `rg_id` (Number) Resource group ID
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
### Read-Only
- `entry_count` (Number) Number of available SEP entries
- `id` (String) The ID of this resource.
- `items` (List of Object) List of available SEPs (see [below for nested schema](#nestedatt--items))
<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`
Optional:
- `default` (String)
- `read` (String)
<a id="nestedatt--items"></a>
### Nested Schema for `items`
Read-Only:
- `pools` (List of Object) (see [below for nested schema](#nestedobjatt--items--pools))
- `sep_id` (Number)
- `sep_name` (String)
- `sep_type` (String)
<a id="nestedobjatt--items--pools"></a>
### Nested Schema for `items.pools`
Read-Only:
- `name` (String)
- `system` (Boolean)
- `types` (List of String)

View File

@@ -1,38 +0,0 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "decort_cb_sep_template Data Source - terraform-provider-decort"
subcategory: ""
description: |-
---
# decort_cb_sep_template (Data Source)
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `lang` (String) language
- `sep_type` (String) type of sep
### Optional
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
### Read-Only
- `id` (String) The ID of this resource.
- `sep_template` (String)
<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`
Optional:
- `default` (String)
- `read` (String)

View File

@@ -27,7 +27,6 @@ description: |-
- `rg_id` (Number) Find by rg id - `rg_id` (Number) Find by rg id
- `size` (Number) Page size - `size` (Number) Page size
- `sort_by` (String) sort by one of supported fields, format +|-(field) - `sort_by` (String) sort by one of supported fields, format +|-(field)
- `status` (String) sort by status
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `vnfdev_id` (Number) find by VNF Device id - `vnfdev_id` (Number) find by VNF Device id

View File

@@ -29,9 +29,7 @@ description: |-
- `account_name` (String) The name of the subscriber '(account') to whom this disk belongs - `account_name` (String) The name of the subscriber '(account') to whom this disk belongs
- `acl` (String) - `acl` (String)
- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedatt--computes))
- `created_by` (String)
- `created_time` (Number) Created time - `created_time` (Number) Created time
- `deleted_by` (String)
- `deleted_time` (Number) Deleted time - `deleted_time` (Number) Deleted time
- `desc` (String) Description of disk - `desc` (String) Description of disk
- `destruction_time` (Number) Time of final deletion - `destruction_time` (Number) Time of final deletion
@@ -42,15 +40,12 @@ description: |-
- `image_id` (Number) Image ID - `image_id` (Number) Image ID
- `images` (List of String) IDs of images using the disk - `images` (List of String) IDs of images using the disk
- `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) - `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune))
- `machine_id` (Number)
- `machine_name` (String)
- `milestones` (Number) Milestones
- `order` (Number) Disk order - `order` (Number) Disk order
- `params` (String) Disk params - `params` (String) Disk params
- `parent_id` (Number) ID of the parent disk - `parent_id` (Number) ID of the parent disk
- `pci_slot` (Number) ID of the pci slot to which the disk is connected - `pci_slot` (Number) ID of the pci slot to which the disk is connected
- `pool` (String) Pool for disk location - `pool` (String) Pool for disk location
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_time` (Number) Time of the last deletion attempt - `purge_time` (Number) Time of the last deletion attempt
- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) - `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication))
- `res_id` (String) Resource ID - `res_id` (String) Resource ID
@@ -59,15 +54,12 @@ description: |-
- `sep_id` (Number) Storage endpoint provider ID to create disk - `sep_id` (Number) Storage endpoint provider ID to create disk
- `sep_type` (String) Type SEP. Defines the type of storage system and contains one of the values set in the cloud platform - `sep_type` (String) Type SEP. Defines the type of storage system and contains one of the values set in the cloud platform
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) Size in GB - `size_max` (Number) Size in GB
- `size_used` (Number) Number of used space, in GB - `size_used` (Number) Number of used space, in GB
- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots))
- `status` (String) Disk status - `status` (String) Disk status
- `tech_status` (String) Technical status of the disk - `tech_status` (String) Technical status of the disk
- `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp' - `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp'
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) Virtual Machine ID (Deprecated) - `vmid` (Number) Virtual Machine ID (Deprecated)
<a id="nestedblock--timeouts"></a> <a id="nestedblock--timeouts"></a>

View File

@@ -56,9 +56,7 @@ Read-Only:
- `account_name` (String) - `account_name` (String)
- `acl` (String) - `acl` (String)
- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes))
- `created_by` (String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String) - `desc` (String)
- `destruction_time` (Number) - `destruction_time` (Number)
@@ -71,13 +69,12 @@ Read-Only:
- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) - `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune))
- `machine_id` (Number) - `machine_id` (Number)
- `machine_name` (String) - `machine_name` (String)
- `milestones` (Number)
- `order` (Number) - `order` (Number)
- `params` (String) - `params` (String)
- `parent_id` (Number) - `parent_id` (Number)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_time` (Number) - `purge_time` (Number)
- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication)) - `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication))
- `res_id` (String) - `res_id` (String)
@@ -86,15 +83,12 @@ Read-Only:
- `sep_id` (Number) - `sep_id` (Number)
- `sep_type` (String) - `sep_type` (String)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots))
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) - `type` (String)
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) - `vmid` (Number)
<a id="nestedobjatt--items--computes"></a> <a id="nestedobjatt--items--computes"></a>

View File

@@ -53,9 +53,7 @@ Read-Only:
- `account_name` (String) - `account_name` (String)
- `acl` (String) - `acl` (String)
- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes))
- `created_by` (String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String) - `desc` (String)
- `destruction_time` (Number) - `destruction_time` (Number)
@@ -68,13 +66,12 @@ Read-Only:
- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) - `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune))
- `machine_id` (Number) - `machine_id` (Number)
- `machine_name` (String) - `machine_name` (String)
- `milestones` (Number)
- `order` (Number) - `order` (Number)
- `params` (String) - `params` (String)
- `parent_id` (Number) - `parent_id` (Number)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_time` (Number) - `purge_time` (Number)
- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication)) - `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication))
- `res_id` (String) - `res_id` (String)
@@ -83,15 +80,12 @@ Read-Only:
- `sep_id` (Number) - `sep_id` (Number)
- `sep_type` (String) - `sep_type` (String)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots))
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) - `type` (String)
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) - `vmid` (Number)
<a id="nestedobjatt--items--computes"></a> <a id="nestedobjatt--items--computes"></a>

View File

@@ -46,7 +46,7 @@ description: |-
- `parent_id` (Number) ID of the parent disk - `parent_id` (Number) ID of the parent disk
- `pci_slot` (Number) ID of the pci slot to which the disk is connected - `pci_slot` (Number) ID of the pci slot to which the disk is connected
- `pool` (String) Pool for disk location - `pool` (String) Pool for disk location
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_time` (Number) Time of the last deletion attempt - `purge_time` (Number) Time of the last deletion attempt
- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) - `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication))
- `res_id` (String) Resource ID - `res_id` (String) Resource ID

View File

@@ -43,7 +43,6 @@ description: |-
- `net_name` (String) - `net_name` (String)
- `network` (String) - `network` (String)
- `network_id` (Number) - `network_id` (Number)
- `ntp` (List of String)
- `pre_reservations_num` (Number) - `pre_reservations_num` (Number)
- `prefix` (Number) - `prefix` (Number)
- `pri_vnf_dev_id` (Number) - `pri_vnf_dev_id` (Number)

View File

@@ -21,7 +21,6 @@ description: |-
- `by_id` (Number) Find by ID - `by_id` (Number) Find by ID
- `name` (String) Find by name - `name` (String) Find by name
- `network` (String) - `network` (String)
- `ovs_bridge` (String) Name of the openVswitch bridge
- `page` (Number) Page number - `page` (Number) Page number
- `size` (Number) Page size - `size` (Number) Page size
- `sort_by` (String) sort by one of supported fields, format +|-(field) - `sort_by` (String) sort by one of supported fields, format +|-(field)

View File

@@ -50,7 +50,7 @@ description: |-
- `network_interface_naming` (String) - `network_interface_naming` (String)
- `password` (String) - `password` (String)
- `pool_name` (String) - `pool_name` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `res_id` (String) - `res_id` (String)
@@ -58,7 +58,6 @@ description: |-
- `sep_id` (Number) - `sep_id` (Number)
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `size` (Number) - `size` (Number)
- `snapshot_id` (String)
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) - `type` (String)

View File

@@ -33,7 +33,6 @@ description: |-
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String) - `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String)
- `extnet_id` (Number) ID of the external network to connect workers to. If omitted network will be chosen by the platfom. - `extnet_id` (Number) ID of the external network to connect workers to. If omitted network will be chosen by the platfom.
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.
- `k8s_ci_name` (String) - `k8s_ci_name` (String)

View File

@@ -35,7 +35,6 @@ description: |-
- `arch` (String) - `arch` (String)
- `auto_start_w_node` (Boolean) - `auto_start_w_node` (Boolean)
- `boot_order` (List of String) - `boot_order` (List of String)
- `boot_type` (String)
- `bootdisk_size` (Number) - `bootdisk_size` (Number)
- `cd_image_id` (Number) - `cd_image_id` (Number)
- `chipset` (String) - `chipset` (String)
@@ -55,12 +54,10 @@ description: |-
- `driver` (String) - `driver` (String)
- `gid` (Number) - `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `hot_resize` (Boolean)
- `hp_backed` (Boolean) - `hp_backed` (Boolean)
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.
- `image_id` (Number) - `image_id` (Number)
- `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces)) - `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces))
- `loader_type` (String)
- `lock_status` (String) - `lock_status` (String)
- `manager_id` (Number) - `manager_id` (Number)
- `manager_type` (String) - `manager_type` (String)
@@ -73,7 +70,6 @@ description: |-
- `natable_vins_network` (String) - `natable_vins_network` (String)
- `natable_vins_network_name` (String) - `natable_vins_network_name` (String)
- `need_reboot` (Boolean) - `need_reboot` (Boolean)
- `network_interface_naming` (String)
- `numa_affinity` (String) - `numa_affinity` (String)
- `numa_node_id` (Number) - `numa_node_id` (Number)
- `os_users` (List of Object) (see [below for nested schema](#nestedatt--os_users)) - `os_users` (List of Object) (see [below for nested schema](#nestedatt--os_users))
@@ -97,7 +93,7 @@ description: |-
- `updated_time` (Number) - `updated_time` (Number)
- `user_managed` (Boolean) - `user_managed` (Boolean)
- `userdata` (String) - `userdata` (String)
- `vgpus` (List of Object) List of virtual GPUs (see [below for nested schema](#nestedatt--vgpus)) - `vgpus` (List of Number)
- `virtual_image_id` (Number) - `virtual_image_id` (Number)
- `virtual_image_name` (String) - `virtual_image_name` (String)
- `vnc_password` (String) - `vnc_password` (String)
@@ -218,7 +214,7 @@ Read-Only:
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)
- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--disks--replication)) - `replication` (List of Object) (see [below for nested schema](#nestedobjatt--disks--replication))
@@ -226,7 +222,6 @@ Read-Only:
- `role` (String) - `role` (String)
- `sep_id` (Number) - `sep_id` (Number)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_available` (Number)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--disks--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--disks--snapshots))
@@ -357,29 +352,3 @@ Read-Only:
- `guid` (String) - `guid` (String)
- `label` (String) - `label` (String)
- `timestamp` (Number) - `timestamp` (Number)
<a id="nestedatt--vgpus"></a>
### Nested Schema for `vgpus`
Read-Only:
- `account_id` (Number)
- `bus_number` (Number)
- `created_time` (Number)
- `deleted_time` (Number)
- `gid` (Number)
- `guid` (Number)
- `id` (Number)
- `last_claimed_by` (Number)
- `last_update_time` (Number)
- `mode` (String)
- `pci_slot` (Number)
- `pgpuid` (Number)
- `profile_id` (Number)
- `ram` (Number)
- `reference_id` (String)
- `rg_id` (Number)
- `status` (String)
- `type` (String)
- `vmid` (Number)

View File

@@ -64,7 +64,6 @@ Read-Only:
- `arch` (String) - `arch` (String)
- `auto_start_w_node` (Boolean) - `auto_start_w_node` (Boolean)
- `boot_order` (List of String) - `boot_order` (List of String)
- `boot_type` (String)
- `bootdisk_size` (Number) - `bootdisk_size` (Number)
- `cd_image_id` (Number) - `cd_image_id` (Number)
- `chipset` (String) - `chipset` (String)
@@ -85,11 +84,9 @@ Read-Only:
- `driver` (String) - `driver` (String)
- `gid` (Number) - `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `hot_resize` (Boolean)
- `hp_backed` (Boolean) - `hp_backed` (Boolean)
- `image_id` (Number) - `image_id` (Number)
- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) - `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces))
- `loader_type` (String)
- `lock_status` (String) - `lock_status` (String)
- `manager_id` (Number) - `manager_id` (Number)
- `manager_type` (String) - `manager_type` (String)
@@ -97,7 +94,6 @@ Read-Only:
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `need_reboot` (Boolean) - `need_reboot` (Boolean)
- `network_interface_naming` (String)
- `numa_affinity` (String) - `numa_affinity` (String)
- `numa_node_id` (Number) - `numa_node_id` (Number)
- `pinned` (Boolean) - `pinned` (Boolean)

View File

@@ -62,7 +62,6 @@ Read-Only:
- `arch` (String) - `arch` (String)
- `auto_start_w_node` (Boolean) - `auto_start_w_node` (Boolean)
- `boot_order` (List of String) - `boot_order` (List of String)
- `boot_type` (String)
- `bootdisk_size` (Number) - `bootdisk_size` (Number)
- `cd_image_id` (Number) - `cd_image_id` (Number)
- `chipset` (String) - `chipset` (String)
@@ -83,11 +82,9 @@ Read-Only:
- `driver` (String) - `driver` (String)
- `gid` (Number) - `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `hot_resize` (Boolean)
- `hp_backed` (Boolean) - `hp_backed` (Boolean)
- `image_id` (Number) - `image_id` (Number)
- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) - `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces))
- `loader_type` (String)
- `lock_status` (String) - `lock_status` (String)
- `manager_id` (Number) - `manager_id` (Number)
- `manager_type` (String) - `manager_type` (String)
@@ -95,7 +92,6 @@ Read-Only:
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `need_reboot` (Boolean) - `need_reboot` (Boolean)
- `network_interface_naming` (String)
- `numa_affinity` (String) - `numa_affinity` (String)
- `numa_node_id` (Number) - `numa_node_id` (Number)
- `pinned` (Boolean) - `pinned` (Boolean)

View File

@@ -55,4 +55,3 @@ Read-Only:
- `location_code` (String) - `location_code` (String)
- `meta` (List of String) - `meta` (List of String)
- `name` (String) - `name` (String)
- `sdn_support` (Boolean)

View File

@@ -46,6 +46,7 @@ description: |-
- `lock_status` (String) - `lock_status` (String)
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `register_computes` (Boolean)
- `res_types` (List of String) - `res_types` (List of String)
- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) - `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits))
- `secret` (String) - `secret` (String)

View File

@@ -70,6 +70,7 @@ Read-Only:
- `lock_status` (String) - `lock_status` (String)
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `register_computes` (Boolean)
- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) - `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits))
- `resource_types` (List of String) - `resource_types` (List of String)
- `rg_id` (Number) - `rg_id` (Number)

View File

@@ -68,6 +68,7 @@ Read-Only:
- `lock_status` (String) - `lock_status` (String)
- `milestones` (Number) - `milestones` (Number)
- `name` (String) - `name` (String)
- `register_computes` (Boolean)
- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) - `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits))
- `resource_types` (List of String) - `resource_types` (List of String)
- `rg_id` (Number) - `rg_id` (Number)

View File

@@ -1,59 +0,0 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "decort_sep_and_pools_available_list Data Source - terraform-provider-decort"
subcategory: ""
description: |-
---
# decort_sep_and_pools_available_list (Data Source)
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `account_id` (Number) Account ID
### Optional
- `rg_id` (Number) Resource group ID
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
### Read-Only
- `entry_count` (Number) Number of available SEP entries
- `id` (String) The ID of this resource.
- `items` (List of Object) List of available SEPs (see [below for nested schema](#nestedatt--items))
<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`
Optional:
- `default` (String)
- `read` (String)
<a id="nestedatt--items"></a>
### Nested Schema for `items`
Read-Only:
- `pools` (List of Object) (see [below for nested schema](#nestedobjatt--items--pools))
- `sep_id` (Number)
- `sep_name` (String)
- `sep_type` (String)
<a id="nestedobjatt--items--pools"></a>
### Nested Schema for `items.pools`
Read-Only:
- `name` (String)
- `system` (Boolean)
- `types` (List of String)

View File

@@ -26,7 +26,6 @@ description: |-
- `rg_id` (Number) Filter by RG ID - `rg_id` (Number) Filter by RG ID
- `size` (Number) Page size - `size` (Number) Page size
- `sort_by` (String) sort by one of supported fields, format +|-(field) - `sort_by` (String) sort by one of supported fields, format +|-(field)
- `status` (String) sort by status
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `vnf_dev_id` (Number) Filter by VNF Device id - `vnf_dev_id` (Number) Filter by VNF Device id

View File

@@ -18,14 +18,13 @@ description: |-
### Required ### Required
- `account_name` (String) account name - `account_name` (String) account name
- `username` (String) username of owner the account
### Optional ### Optional
- `desc` (String) description
- `emailaddress` (String) email - `emailaddress` (String) email
- `enable` (Boolean) enable/disable account - `enable` (Boolean) enable/disable account
- `permanently` (Boolean) whether to completely delete the account - `permanently` (Boolean) whether to completely delete the account
- `reason` (String) reason for deactivation
- `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits)) - `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits))
- `restore` (Boolean) restore a deleted account - `restore` (Boolean) restore a deleted account
- `send_access_emails` (Boolean) if true send emails when a user is granted access to resources - `send_access_emails` (Boolean) if true send emails when a user is granted access to resources

View File

@@ -28,7 +28,6 @@ description: |-
### Optional ### Optional
- `chipset` (String)
- `cloud_init` (String) Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases. - `cloud_init` (String) Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.
- `compgroup_id` (Number) - `compgroup_id` (Number)
- `extnets` (List of Number) list of external networks to connect computes to - `extnets` (List of Number) list of external networks to connect computes to
@@ -84,7 +83,6 @@ Optional:
Read-Only: Read-Only:
- `chipset` (String)
- `id` (Number) - `id` (Number)
- `ip_addresses` (List of String) - `ip_addresses` (List of String)
- `name` (String) - `name` (String)

View File

@@ -27,11 +27,9 @@ description: |-
- `compute_features` (Set of String) - `compute_features` (Set of String)
- `cpu_allocation_parameter` (String) set cpu allocation parameter - `cpu_allocation_parameter` (String) set cpu allocation parameter
- `cpu_allocation_ratio` (Number) set cpu allocation ratio - `cpu_allocation_ratio` (Number) set cpu allocation ratio
- `desc` (String) description
- `emailaddress` (String) email - `emailaddress` (String) email
- `enable` (Boolean) enable/disable account - `enable` (Boolean) enable/disable account
- `permanently` (Boolean) whether to completely delete the account - `permanently` (Boolean) whether to completely delete the account
- `reason` (String) reason for restore or deactivation
- `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits)) - `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits))
- `restore` (Boolean) restore a deleted account - `restore` (Boolean) restore a deleted account
- `send_access_emails` (Boolean) if true send emails when a user is granted access to resources - `send_access_emails` (Boolean) if true send emails when a user is granted access to resources

View File

@@ -17,6 +17,7 @@ description: |-
### Required ### Required
- `gid` (Number) grid (platform) ID where this template should be create in
- `name` (String) Name of the rescue disk - `name` (String) Name of the rescue disk
- `url` (String) URL where to download ISO from - `url` (String) URL where to download ISO from
@@ -44,7 +45,6 @@ description: |-
- `ckey` (String) - `ckey` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String) - `desc` (String)
- `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) - `history` (List of Object) (see [below for nested schema](#nestedatt--history))
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.
@@ -52,8 +52,9 @@ description: |-
- `image_type` (String) Image type linux, windows or other - `image_type` (String) Image type linux, windows or other
- `last_modified` (Number) - `last_modified` (Number)
- `link_to` (Number) - `link_to` (Number)
- `meta` (List of String) meta
- `milestones` (Number) - `milestones` (Number)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `reference_id` (String) - `reference_id` (String)

View File

@@ -19,7 +19,9 @@ description: |-
- `account_id` (Number) - `account_id` (Number)
- `disk_name` (String) - `disk_name` (String)
- `gid` (Number)
- `size_max` (Number) - `size_max` (Number)
- `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp'
### Optional ### Optional
@@ -33,6 +35,7 @@ description: |-
- `restore` (Boolean) restore deleting disk - `restore` (Boolean) restore deleting disk
- `sep_id` (Number) - `sep_id` (Number)
- `shareable` (Boolean) - `shareable` (Boolean)
- `ssd_size` (Number)
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
### Read-Only ### Read-Only
@@ -41,30 +44,25 @@ description: |-
- `acl` (String) - `acl` (String)
- `boot_partition` (Number) - `boot_partition` (Number)
- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedatt--computes))
- `created_by` (String)
- `created_time` (Number) - `created_time` (Number)
- `deleted_by` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `destruction_time` (Number) - `destruction_time` (Number)
- `devicename` (String) - `devicename` (String)
- `disk_id` (Number) - `disk_id` (Number)
- `disk_path` (String) - `disk_path` (String)
- `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.
- `image_id` (Number) - `image_id` (Number)
- `images` (List of String) - `images` (List of String)
- `iqn` (String) - `iqn` (String)
- `login` (String) - `login` (String)
- `machine_id` (Number)
- `machine_name` (String)
- `milestones` (Number) - `milestones` (Number)
- `order` (Number) - `order` (Number)
- `params` (String) - `params` (String)
- `parent_id` (Number) - `parent_id` (Number)
- `passwd` (String) - `passwd` (String)
- `pci_slot` (Number) - `pci_slot` (Number)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `purge_time` (Number) - `purge_time` (Number)
- `reality_device_number` (Number) - `reality_device_number` (Number)
@@ -78,9 +76,6 @@ description: |-
- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots))
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp'
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) - `vmid` (Number)
<a id="nestedblock--iotune"></a> <a id="nestedblock--iotune"></a>

View File

@@ -18,19 +18,21 @@ description: |-
### Required ### Required
- `boot_type` (String) Boot type of image bios or uefi - `boot_type` (String) Boot type of image bios or uefi
- `gid` (Number) grid (platform) ID where this template should be create in
- `image_type` (String) Image type linux, windows or other - `image_type` (String) Image type linux, windows or other
- `name` (String) Name of the rescue disk - `name` (String) Name of the rescue disk
- `url` (String) URL where to download media from
### Optional ### Optional
- `account_id` (Number) AccountId to make the image exclusive - `account_id` (Number) AccountId to make the image exclusive
- `accounts` (List of Number)
- `architecture` (String) binary architecture of this image, one of X86_64 - `architecture` (String) binary architecture of this image, one of X86_64
- `bootable` (Boolean) Does this image boot OS - `bootable` (Boolean) Does this image boot OS
- `computeci_id` (Number) - `computeci_id` (Number)
- `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] - `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ]
- `enabled` (Boolean) - `enabled` (Boolean)
- `enabled_stacks` (List of Number) - `enabled_stacks` (List of Number)
- `file_path` (String) path to image file
- `hot_resize` (Boolean) Does this machine supports hot resize - `hot_resize` (Boolean) Does this machine supports hot resize
- `network_interface_naming` (String) select a network interface naming pattern for your Linux machine. eth - onboard, ens - pci slot naming - `network_interface_naming` (String) select a network interface naming pattern for your Linux machine. eth - onboard, ens - pci slot naming
- `password` (String) Optional password for the image - `password` (String) Optional password for the image
@@ -40,6 +42,7 @@ description: |-
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `sync_mode` (Boolean) Create image from a media identified by URL (in synchronous mode) - `sync_mode` (Boolean) Create image from a media identified by URL (in synchronous mode)
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `url` (String) URL where to download media from
- `username` (String) Optional username for the image - `username` (String) Optional username for the image
- `username_dl` (String) username for upload binary media - `username_dl` (String) username for upload binary media
@@ -49,7 +52,6 @@ description: |-
- `cd_presented_to` (String) - `cd_presented_to` (String)
- `deleted_time` (Number) - `deleted_time` (Number)
- `desc` (String) - `desc` (String)
- `gid` (Number)
- `guid` (Number) - `guid` (Number)
- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) - `history` (List of Object) (see [below for nested schema](#nestedatt--history))
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.
@@ -57,7 +59,7 @@ description: |-
- `last_modified` (Number) - `last_modified` (Number)
- `link_to` (Number) - `link_to` (Number)
- `milestones` (Number) - `milestones` (Number)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `reference_id` (String) - `reference_id` (String)

View File

@@ -19,12 +19,13 @@ description: |-
- `boot_type` (String) Boot type of image BIOS or UEFI - `boot_type` (String) Boot type of image BIOS or UEFI
- `compute_id` (Number) Compute Id - `compute_id` (Number) Compute Id
- `image_type` (String) Image type linux, windows or unknown - `image_type` (String) Image type linux, windows or other
- `name` (String) Name of the rescue disk - `name` (String) Name of the rescue disk
### Optional ### Optional
- `account_id` (Number) AccountId to make the image exclusive - `account_id` (Number) AccountId to make the image exclusive
- `accounts` (List of Number)
- `async_mode` (Boolean) create an image in async/sync mode - `async_mode` (Boolean) create an image in async/sync mode
- `bootable` (Boolean) Does this image boot OS - `bootable` (Boolean) Does this image boot OS
- `computeci_id` (Number) - `computeci_id` (Number)
@@ -34,6 +35,7 @@ description: |-
- `network_interface_naming` (String) select a network interface naming pattern for your Linux machine. eth - onboard, ens - pci slot naming - `network_interface_naming` (String) select a network interface naming pattern for your Linux machine. eth - onboard, ens - pci slot naming
- `password` (String) Optional password for the image - `password` (String) Optional password for the image
- `pool_name` (String) pool for image create - `pool_name` (String) pool for image create
- `sep_id` (Number) storage endpoint provider ID
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `username` (String) Optional username for the image - `username` (String) Optional username for the image
@@ -54,14 +56,13 @@ description: |-
- `last_modified` (Number) - `last_modified` (Number)
- `link_to` (Number) - `link_to` (Number)
- `milestones` (Number) - `milestones` (Number)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `reference_id` (String) - `reference_id` (String)
- `res_id` (String) - `res_id` (String)
- `res_name` (String) - `res_name` (String)
- `rescuecd` (Boolean) - `rescuecd` (Boolean)
- `sep_id` (Number) storage endpoint provider ID
- `size` (Number) - `size` (Number)
- `snapshot_id` (String) snapshot id - `snapshot_id` (String) snapshot id
- `status` (String) - `status` (String)

View File

@@ -21,12 +21,13 @@ description: |-
- `boot_type` (String) Boot type of image BIOS or UEFI - `boot_type` (String) Boot type of image BIOS or UEFI
- `disk_id` (Number) Disk Id - `disk_id` (Number) Disk Id
- `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] - `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ]
- `image_type` (String) Image type linux, windows or unknown - `image_type` (String) Image type linux, windows or other
- `name` (String) Name of the rescue disk - `name` (String) Name of the rescue disk
### Optional ### Optional
- `account_id` (Number) AccountId to make the image exclusive - `account_id` (Number) AccountId to make the image exclusive
- `accounts` (List of Number)
- `async_mode` (Boolean) create an image in async/sync mode - `async_mode` (Boolean) create an image in async/sync mode
- `bootable` (Boolean) Does this image boot OS - `bootable` (Boolean) Does this image boot OS
- `computeci_id` (Number) - `computeci_id` (Number)
@@ -36,6 +37,7 @@ description: |-
- `network_interface_naming` (String) select a network interface naming pattern for your Linux machine. eth - onboard, ens - pci slot naming - `network_interface_naming` (String) select a network interface naming pattern for your Linux machine. eth - onboard, ens - pci slot naming
- `password` (String) Optional password for the image - `password` (String) Optional password for the image
- `pool_name` (String) pool for image create - `pool_name` (String) pool for image create
- `sep_id` (Number) storage endpoint provider ID
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `username` (String) Optional username for the image - `username` (String) Optional username for the image
@@ -54,14 +56,13 @@ description: |-
- `last_modified` (Number) - `last_modified` (Number)
- `link_to` (Number) - `link_to` (Number)
- `milestones` (Number) - `milestones` (Number)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `reference_id` (String) - `reference_id` (String)
- `res_id` (String) - `res_id` (String)
- `res_name` (String) - `res_name` (String)
- `rescuecd` (Boolean) - `rescuecd` (Boolean)
- `sep_id` (Number) storage endpoint provider ID
- `size` (Number) - `size` (Number)
- `snapshot_id` (String) snapshot id - `snapshot_id` (String) snapshot id
- `status` (String) - `status` (String)

View File

@@ -31,12 +31,12 @@ description: |-
- `anti_affinity_rules` (Block List) (see [below for nested schema](#nestedblock--anti_affinity_rules)) - `anti_affinity_rules` (Block List) (see [below for nested schema](#nestedblock--anti_affinity_rules))
- `auto_start_w_node` (Boolean) - `auto_start_w_node` (Boolean)
- `boot_disk_size` (Number) This compute instance boot disk size in GB. Make sure it is large enough to accomodate selected OS image. - `boot_disk_size` (Number) This compute instance boot disk size in GB. Make sure it is large enough to accomodate selected OS image.
- `boot_type` (String) Type of image upload.
- `cd` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--cd)) - `cd` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--cd))
- `chipset` (String) Type of the emulated system. - `chipset` (String) Type of the emulated system.
- `cloud_init` (String) Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases. - `cloud_init` (String) Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.
- `cpu_pin` (Boolean) Run VM on dedicated CPUs. To use this feature, the system must be pre-configured by allocating CPUs on the physical node. - `cpu_pin` (Boolean) Run VM on dedicated CPUs. To use this feature, the system must be pre-configured by allocating CPUs on the physical node.
- `custom_fields` (String) - `custom_fields` (String)
- `depresent` (Boolean) whether to depresent compute disks from node or not
- `description` (String) Optional text description of this compute instance. - `description` (String) Optional text description of this compute instance.
- `detach_disks` (Boolean) - `detach_disks` (Boolean)
- `disks` (Block List) (see [below for nested schema](#nestedblock--disks)) - `disks` (Block List) (see [below for nested schema](#nestedblock--disks))
@@ -45,15 +45,12 @@ description: |-
- `force_pin` (Boolean) - `force_pin` (Boolean)
- `force_resize` (Boolean) Flag for resize compute - `force_resize` (Boolean) Flag for resize compute
- `force_stop` (Boolean) Flag for redeploy compute - `force_stop` (Boolean) Flag for redeploy compute
- `hot_resize` (Boolean) Type of image vm.
- `hp_backed` (Boolean) Use Huge Pages to allocate RAM of the virtual machine. The system must be pre-configured by allocating Huge Pages on the physical node. - `hp_backed` (Boolean) Use Huge Pages to allocate RAM of the virtual machine. The system must be pre-configured by allocating Huge Pages on the physical node.
- `image_id` (Number) ID of the OS image to base this compute instance on. - `image_id` (Number) ID of the OS image to base this compute instance on.
- `ipa_type` (String) compute purpose - `ipa_type` (String) compute purpose
- `is` (String) system name - `is` (String) system name
- `libvirt_settings` (Block Set) Configure libvirt virtio interface parameters. You can only delete values locally. Data on the platform cannot be deleted. (see [below for nested schema](#nestedblock--libvirt_settings)) - `libvirt_settings` (Block Set) Configure libvirt virtio interface parameters. You can only delete values locally. Data on the platform cannot be deleted. (see [below for nested schema](#nestedblock--libvirt_settings))
- `loader_type` (String) Type of image vm. - `network` (Block Set, Max: 8) Optional network connection(s) for this compute. You may specify several network blocks, one for each connection. (see [below for nested schema](#nestedblock--network))
- `network` (Block Set) Optional network connection(s) for this compute. You may specify several network blocks, one for each connection. (see [below for nested schema](#nestedblock--network))
- `network_interface_naming` (String) Name of netfowrk interface.
- `numa_affinity` (String) Rule for VM placement with NUMA affinity. - `numa_affinity` (String) Rule for VM placement with NUMA affinity.
- `pause` (Boolean) - `pause` (Boolean)
- `pci_devices` (Set of Number) ID of the connected pci devices - `pci_devices` (Set of Number) ID of the connected pci devices
@@ -112,7 +109,7 @@ description: |-
- `need_reboot` (Boolean) - `need_reboot` (Boolean)
- `numa_node_id` (Number) - `numa_node_id` (Number)
- `os_users` (List of Object) Guest OS users provisioned on this compute instance. (see [below for nested schema](#nestedatt--os_users)) - `os_users` (List of Object) Guest OS users provisioned on this compute instance. (see [below for nested schema](#nestedatt--os_users))
- `pinned` (Number) - `pinned` (Boolean)
- `reference_id` (String) - `reference_id` (String)
- `registered` (Boolean) - `registered` (Boolean)
- `res_name` (String) - `res_name` (String)
@@ -127,7 +124,7 @@ description: |-
- `updated_by` (String) - `updated_by` (String)
- `updated_time` (Number) - `updated_time` (Number)
- `user_managed` (Boolean) - `user_managed` (Boolean)
- `vgpus` (List of Object) List of virtual GPUs (see [below for nested schema](#nestedatt--vgpus)) - `vgpus` (List of Number)
- `virtual_image_id` (Number) - `virtual_image_id` (Number)
- `virtual_image_name` (String) - `virtual_image_name` (String)
- `vnc_password` (String) - `vnc_password` (String)
@@ -191,7 +188,6 @@ Optional:
Read-Only: Read-Only:
- `disk_id` (Number) Disk ID - `disk_id` (Number) Disk ID
- `present_to` (Map of Number)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
@@ -226,10 +222,13 @@ Required:
Optional: Optional:
- `ip_address` (String) Optional IP address to assign to this connection. This IP should belong to the selected network and free for use. - `ip_address` (String) Optional IP address to assign to this connection. This IP should belong to the selected network and free for use.
- `mac` (String) MAC address associated with this connection. MAC address is assigned automatically.
- `mtu` (Number) Maximum transmission unit, used only for DPDK type, must be 1-9216 - `mtu` (Number) Maximum transmission unit, used only for DPDK type, must be 1-9216
- `weight` (Number) weight the network if you need to sort network list, the smallest attach first. zero or null weight attach last - `weight` (Number) weight the network if you need to sort network list, the smallest attach first. zero or null weight attach last
Read-Only:
- `mac` (String) MAC address associated with this connection. MAC address is assigned automatically.
<a id="nestedblock--port_forwarding"></a> <a id="nestedblock--port_forwarding"></a>
### Nested Schema for `port_forwarding` ### Nested Schema for `port_forwarding`
@@ -382,29 +381,3 @@ Read-Only:
- `guid` (String) - `guid` (String)
- `label` (String) - `label` (String)
- `timestamp` (Number) - `timestamp` (Number)
<a id="nestedatt--vgpus"></a>
### Nested Schema for `vgpus`
Read-Only:
- `account_id` (Number)
- `bus_number` (Number)
- `created_time` (Number)
- `deleted_time` (Number)
- `gid` (Number)
- `guid` (Number)
- `id` (Number)
- `last_claimed_by` (Number)
- `last_update_time` (Number)
- `mode` (String)
- `pci_slot` (Number)
- `pgpuid` (Number)
- `profile_id` (Number)
- `ram` (Number)
- `reference_id` (String)
- `rg_id` (Number)
- `status` (String)
- `type` (String)
- `vmid` (Number)

View File

@@ -37,6 +37,7 @@ description: |-
- `ipcidr` (String) Address of the netowrk inside the private network segment (aka ViNS) if def_net_type=PRIVATE - `ipcidr` (String) Address of the netowrk inside the private network segment (aka ViNS) if def_net_type=PRIVATE
- `owner` (String) username - owner of this RG. Leave blank to set current user as owner - `owner` (String) username - owner of this RG. Leave blank to set current user as owner
- `permanently` (Boolean) flag to permanently delete resource group - `permanently` (Boolean) flag to permanently delete resource group
- `register_computes` (Boolean) Register computes in registration system
- `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits)) - `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits))
- `restore` (Boolean) restore deleted rg - `restore` (Boolean) restore deleted rg
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

View File

@@ -49,9 +49,10 @@ description: |-
- `image_id` (Number) Image id - `image_id` (Number) Image id
- `image_type` (String) Image type linux, windows or other - `image_type` (String) Image type linux, windows or other
- `last_modified` (Number) - `last_modified` (Number)
- `meta` (List of String) meta
- `milestones` (Number) - `milestones` (Number)
- `pool_name` (String) pool for image create - `pool_name` (String) pool for image create
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `reference_id` (String) - `reference_id` (String)

View File

@@ -19,6 +19,7 @@ description: |-
- `account_id` (Number) The unique ID of the subscriber-owner of the disk - `account_id` (Number) The unique ID of the subscriber-owner of the disk
- `disk_name` (String) Name of disk - `disk_name` (String) Name of disk
- `gid` (Number) ID of the grid (platform)
- `size_max` (Number) Size in GB - `size_max` (Number) Size in GB
### Optional ### Optional
@@ -31,30 +32,26 @@ description: |-
- `sep_id` (Number) Storage endpoint provider ID to create disk - `sep_id` (Number) Storage endpoint provider ID to create disk
- `shareable` (Boolean) - `shareable` (Boolean)
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp'
### Read-Only ### Read-Only
- `account_name` (String) The name of the subscriber '(account') to whom this disk belongs - `account_name` (String) The name of the subscriber '(account') to whom this disk belongs
- `acl` (String) - `acl` (String)
- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) - `computes` (List of Object) (see [below for nested schema](#nestedatt--computes))
- `created_by` (String)
- `created_time` (Number) Created time - `created_time` (Number) Created time
- `deleted_by` (String)
- `deleted_time` (Number) Deleted time - `deleted_time` (Number) Deleted time
- `destruction_time` (Number) Time of final deletion - `destruction_time` (Number) Time of final deletion
- `devicename` (String) Name of the device - `devicename` (String) Name of the device
- `disk_id` (Number) Disk ID. Duplicates the value of the ID parameter - `disk_id` (Number) Disk ID. Duplicates the value of the ID parameter
- `gid` (Number) ID of the grid (platform)
- `id` (String) The ID of this resource. - `id` (String) The ID of this resource.
- `image_id` (Number) Image ID - `image_id` (Number) Image ID
- `images` (List of String) IDs of images using the disk - `images` (List of String) IDs of images using the disk
- `machine_id` (Number)
- `machine_name` (String)
- `order` (Number) Disk order - `order` (Number) Disk order
- `params` (String) Disk params - `params` (String) Disk params
- `parent_id` (Number) ID of the parent disk - `parent_id` (Number) ID of the parent disk
- `pci_slot` (Number) ID of the pci slot to which the disk is connected - `pci_slot` (Number) ID of the pci slot to which the disk is connected
- `present_to` (Map of Number) - `present_to` (List of Number)
- `purge_time` (Number) Time of the last deletion attempt - `purge_time` (Number) Time of the last deletion attempt
- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) - `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication))
- `res_id` (String) Resource ID - `res_id` (String) Resource ID
@@ -65,9 +62,6 @@ description: |-
- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) - `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots))
- `status` (String) Disk status - `status` (String) Disk status
- `tech_status` (String) Technical status of the disk - `tech_status` (String) Technical status of the disk
- `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp'
- `updated_by` (String)
- `updated_time` (Number)
- `vmid` (Number) Virtual Machine ID (Deprecated) - `vmid` (Number) Virtual Machine ID (Deprecated)
<a id="nestedblock--iotune"></a> <a id="nestedblock--iotune"></a>

View File

@@ -21,7 +21,7 @@ description: |-
- `boot_type` (String) Boot type of image bios or uefi - `boot_type` (String) Boot type of image bios or uefi
- `drivers` (List of String) - `drivers` (List of String)
- `name` (String) Name of the rescue disk - `name` (String) Name of the rescue disk
- `type` (String) Image type linux, windows or unknown - `type` (String) Image type linux, windows or other
- `url` (String) URL where to download media from - `url` (String) URL where to download media from
### Optional ### Optional
@@ -56,14 +56,13 @@ description: |-
- `last_modified` (Number) - `last_modified` (Number)
- `link_to` (Number) - `link_to` (Number)
- `milestones` (Number) - `milestones` (Number)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `res_id` (String) - `res_id` (String)
- `rescuecd` (Boolean) - `rescuecd` (Boolean)
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `size` (Number) - `size` (Number)
- `snapshot_id` (String)
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `unc_path` (String) - `unc_path` (String)

View File

@@ -20,7 +20,7 @@ description: |-
- `boot_type` (String) Boot type of image BIOS or UEFI - `boot_type` (String) Boot type of image BIOS or UEFI
- `compute_id` (Number) Compute Id - `compute_id` (Number) Compute Id
- `name` (String) Name of the rescue disk - `name` (String) Name of the rescue disk
- `type` (String) Image type linux, windows or unknown - `type` (String) Image type linux, windows or other
### Optional ### Optional
@@ -29,6 +29,7 @@ description: |-
- `hot_resize` (Boolean) Does this machine supports hot resize - `hot_resize` (Boolean) Does this machine supports hot resize
- `password` (String) Optional password for the image - `password` (String) Optional password for the image
- `pool_name` (String) pool for image create - `pool_name` (String) pool for image create
- `sep_id` (Number) storage endpoint provider ID
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `username` (String) Optional username for the image - `username` (String) Optional username for the image
@@ -54,15 +55,13 @@ description: |-
- `link_to` (Number) - `link_to` (Number)
- `milestones` (Number) - `milestones` (Number)
- `network_interface_naming` (String) - `network_interface_naming` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `res_id` (String) - `res_id` (String)
- `rescuecd` (Boolean) - `rescuecd` (Boolean)
- `sep_id` (Number) storage endpoint provider ID
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `size` (Number) - `size` (Number)
- `snapshot_id` (String)
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `unc_path` (String) - `unc_path` (String)

View File

@@ -22,7 +22,7 @@ description: |-
- `disk_id` (Number) Disk Id - `disk_id` (Number) Disk Id
- `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] - `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ]
- `name` (String) Name of the rescue disk - `name` (String) Name of the rescue disk
- `type` (String) Image type linux, windows or unknown - `type` (String) Image type linux, windows or other
### Optional ### Optional
@@ -32,6 +32,7 @@ description: |-
- `hot_resize` (Boolean) Does this machine supports hot resize - `hot_resize` (Boolean) Does this machine supports hot resize
- `password` (String) Optional password for the image - `password` (String) Optional password for the image
- `pool_name` (String) pool for image create - `pool_name` (String) pool for image create
- `sep_id` (Number) storage endpoint provider ID
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `username` (String) Optional username for the image - `username` (String) Optional username for the image
@@ -54,15 +55,13 @@ description: |-
- `link_to` (Number) - `link_to` (Number)
- `milestones` (Number) - `milestones` (Number)
- `network_interface_naming` (String) - `network_interface_naming` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `res_id` (String) - `res_id` (String)
- `rescuecd` (Boolean) - `rescuecd` (Boolean)
- `sep_id` (Number) storage endpoint provider ID
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `size` (Number) - `size` (Number)
- `snapshot_id` (String)
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `unc_path` (String) - `unc_path` (String)

View File

@@ -50,7 +50,7 @@ description: |-
- `network_interface_naming` (String) - `network_interface_naming` (String)
- `password` (String) - `password` (String)
- `pool_name` (String) - `pool_name` (String)
- `present_to` (Map of Number) - `present_to` (List of Number)
- `provider_name` (String) - `provider_name` (String)
- `purge_attempts` (Number) - `purge_attempts` (Number)
- `res_id` (String) - `res_id` (String)
@@ -58,7 +58,6 @@ description: |-
- `sep_id` (Number) - `sep_id` (Number)
- `shared_with` (List of Number) - `shared_with` (List of Number)
- `size` (Number) - `size` (Number)
- `snapshot_id` (String)
- `status` (String) - `status` (String)
- `tech_status` (String) - `tech_status` (String)
- `type` (String) - `type` (String)

View File

@@ -30,7 +30,6 @@ description: |-
- `anti_affinity_rules` (Block List) (see [below for nested schema](#nestedblock--anti_affinity_rules)) - `anti_affinity_rules` (Block List) (see [below for nested schema](#nestedblock--anti_affinity_rules))
- `auto_start_w_node` (Boolean) Flag for start compute after node exits from MAINTENANCE state - `auto_start_w_node` (Boolean) Flag for start compute after node exits from MAINTENANCE state
- `boot_disk_size` (Number) This compute instance boot disk size in GB. Make sure it is large enough to accomodate selected OS image. - `boot_disk_size` (Number) This compute instance boot disk size in GB. Make sure it is large enough to accomodate selected OS image.
- `boot_type` (String) Type of image upload.
- `cd` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--cd)) - `cd` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--cd))
- `chipset` (String) Type of the emulated system. - `chipset` (String) Type of the emulated system.
- `cloud_init` (String) Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases. - `cloud_init` (String) Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.
@@ -43,14 +42,11 @@ description: |-
- `extra_disks` (Set of Number) Optional list of IDs of extra disks to attach to this compute. You may specify several extra disks. - `extra_disks` (Set of Number) Optional list of IDs of extra disks to attach to this compute. You may specify several extra disks.
- `force_resize` (Boolean) Flag for resize compute - `force_resize` (Boolean) Flag for resize compute
- `force_stop` (Boolean) Flag for redeploy compute - `force_stop` (Boolean) Flag for redeploy compute
- `hot_resize` (Boolean) Type of image vm.
- `hp_backed` (Boolean) Use Huge Pages to allocate RAM of the virtual machine. The system must be pre-configured by allocating Huge Pages on the physical node. - `hp_backed` (Boolean) Use Huge Pages to allocate RAM of the virtual machine. The system must be pre-configured by allocating Huge Pages on the physical node.
- `image_id` (Number) ID of the OS image to base this compute instance on. - `image_id` (Number) ID of the OS image to base this compute instance on.
- `ipa_type` (String) compute purpose - `ipa_type` (String) compute purpose
- `is` (String) system name - `is` (String) system name
- `loader_type` (String) Type of image vm. - `network` (Block Set, Max: 8) Optional network connection(s) for this compute. You may specify several network blocks, one for each connection. (see [below for nested schema](#nestedblock--network))
- `network` (Block Set) Optional network connection(s) for this compute. You may specify several network blocks, one for each connection. (see [below for nested schema](#nestedblock--network))
- `network_interface_naming` (String) Name of netfowrk interface.
- `numa_affinity` (String) Rule for VM placement with NUMA affinity. - `numa_affinity` (String) Rule for VM placement with NUMA affinity.
- `pause` (Boolean) - `pause` (Boolean)
- `pci_devices` (Set of Number) ID of the connected pci devices - `pci_devices` (Set of Number) ID of the connected pci devices
@@ -66,6 +62,7 @@ description: |-
- `snapshot` (Block Set) (see [below for nested schema](#nestedblock--snapshot)) - `snapshot` (Block Set) (see [below for nested schema](#nestedblock--snapshot))
- `snapshot_delete_async` (Boolean) - `snapshot_delete_async` (Boolean)
- `started` (Boolean) Is compute started. - `started` (Boolean) Is compute started.
- `stateless` (Boolean) Compute will be stateless (SVA_KVM_X86) if set to True
- `tags` (Block Set) (see [below for nested schema](#nestedblock--tags)) - `tags` (Block Set) (see [below for nested schema](#nestedblock--tags))
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `user_access` (Block Set) (see [below for nested schema](#nestedblock--user_access)) - `user_access` (Block Set) (see [below for nested schema](#nestedblock--user_access))
@@ -121,7 +118,7 @@ description: |-
- `updated_by` (String) - `updated_by` (String)
- `updated_time` (Number) - `updated_time` (Number)
- `user_managed` (Boolean) - `user_managed` (Boolean)
- `vgpus` (List of Object) List of virtual GPUs (see [below for nested schema](#nestedatt--vgpus)) - `vgpus` (List of Number)
- `virtual_image_id` (Number) - `virtual_image_id` (Number)
- `virtual_image_name` (String) - `virtual_image_name` (String)
- `vnc_password` (String) - `vnc_password` (String)
@@ -184,7 +181,6 @@ Optional:
Read-Only: Read-Only:
- `disk_id` (Number) Disk ID - `disk_id` (Number) Disk ID
- `present_to` (Map of Number)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size_max` (Number) - `size_max` (Number)
- `size_used` (Number) - `size_used` (Number)
@@ -201,10 +197,13 @@ Required:
Optional: Optional:
- `ip_address` (String) Optional IP address to assign to this connection. This IP should belong to the selected network and free for use. - `ip_address` (String) Optional IP address to assign to this connection. This IP should belong to the selected network and free for use.
- `mac` (String) MAC address associated with this connection. MAC address is assigned automatically.
- `mtu` (Number) Maximum transmission unit, used only for DPDK type, must be 1-9216 - `mtu` (Number) Maximum transmission unit, used only for DPDK type, must be 1-9216
- `weight` (Number) weight the network if you need to sort network list, the smallest attach first. zero or null weight attach last - `weight` (Number) weight the network if you need to sort network list, the smallest attach first. zero or null weight attach last
Read-Only:
- `mac` (String) MAC address associated with this connection. MAC address is assigned automatically.
<a id="nestedblock--port_forwarding"></a> <a id="nestedblock--port_forwarding"></a>
### Nested Schema for `port_forwarding` ### Nested Schema for `port_forwarding`
@@ -278,7 +277,6 @@ Read-Only:
- `image_id` (Number) - `image_id` (Number)
- `permanently` (Boolean) - `permanently` (Boolean)
- `pool` (String) - `pool` (String)
- `present_to` (Map of Number)
- `sep_id` (Number) - `sep_id` (Number)
- `shareable` (Boolean) - `shareable` (Boolean)
- `size` (Number) - `size` (Number)
@@ -360,29 +358,3 @@ Read-Only:
- `guid` (String) - `guid` (String)
- `label` (String) - `label` (String)
- `timestamp` (Number) - `timestamp` (Number)
<a id="nestedatt--vgpus"></a>
### Nested Schema for `vgpus`
Read-Only:
- `account_id` (Number)
- `bus_number` (Number)
- `created_time` (Number)
- `deleted_time` (Number)
- `gid` (Number)
- `guid` (Number)
- `id` (Number)
- `last_claimed_by` (Number)
- `last_update_time` (Number)
- `mode` (String)
- `pci_slot` (Number)
- `pgpuid` (Number)
- `profile_id` (Number)
- `ram` (Number)
- `reference_id` (String)
- `rg_id` (Number)
- `status` (String)
- `type` (String)
- `vmid` (Number)

View File

@@ -35,6 +35,7 @@ description: |-
- `owner` (String) - `owner` (String)
- `permanently` (Boolean) Set to True if you want force delete non-empty RG - `permanently` (Boolean) Set to True if you want force delete non-empty RG
- `quota` (Block List, Max: 1) Quota settings for this resource group. (see [below for nested schema](#nestedblock--quota)) - `quota` (Block List, Max: 1) Quota settings for this resource group. (see [below for nested schema](#nestedblock--quota))
- `register_computes` (Boolean) Register computes in registration system
- `restore` (Boolean) - `restore` (Boolean)
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `uniq_pools` (List of String) - `uniq_pools` (List of String)

2
go.mod
View File

@@ -8,7 +8,7 @@ require (
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0
github.com/sirupsen/logrus v1.9.0 github.com/sirupsen/logrus v1.9.0
golang.org/x/net v0.23.0 golang.org/x/net v0.23.0
repository.basistech.ru/BASIS/decort-golang-sdk v1.11.6 repository.basistech.ru/BASIS/decort-golang-sdk v1.10.2
) )
require ( require (

4
go.sum
View File

@@ -273,5 +273,5 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
repository.basistech.ru/BASIS/decort-golang-sdk v1.11.6 h1:CTcMkUJgwDsUA+Az8FI5iLpZDk4ubOO4JnAfbOwDnM0= repository.basistech.ru/BASIS/decort-golang-sdk v1.10.2 h1:sA/ZngL4xvkyz8lVGkqbi2RBi4CrHJjho2WV21KX918=
repository.basistech.ru/BASIS/decort-golang-sdk v1.11.6/go.mod h1:OaUynHHuSjWMzpfyoL4au6oLcUogqUkPPBKA15pbHWo= repository.basistech.ru/BASIS/decort-golang-sdk v1.10.2/go.mod h1:OaUynHHuSjWMzpfyoL4au6oLcUogqUkPPBKA15pbHWo=

View File

@@ -35,7 +35,6 @@ import (
"repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/lb" "repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/lb"
"repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/locations" "repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/locations"
"repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/rg" "repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/rg"
"repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/sep"
"repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/snapshot" "repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/snapshot"
"repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/stack" "repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/stack"
"repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/vfpool" "repository.basistech.ru/BASIS/terraform-provider-decort/internal/service/cloudapi/vfpool"
@@ -160,7 +159,6 @@ func newDataSourcesMap() map[string]*schema.Resource {
"decort_k8s_wg_cloud_init": k8s.DataSourceK8sWgCloudInit(), "decort_k8s_wg_cloud_init": k8s.DataSourceK8sWgCloudInit(),
"decort_rg_resource_consumption_list": rg.DataSourceRGResourceConsumptionList(), "decort_rg_resource_consumption_list": rg.DataSourceRGResourceConsumptionList(),
"decort_rg_resource_consumption_get": rg.DataSourceRGResourceConsumptionGet(), "decort_rg_resource_consumption_get": rg.DataSourceRGResourceConsumptionGet(),
"decort_sep_and_pools_available_list": sep.DataSourceAvailableSEPAndPoolsList(),
"decort_cb_account": cb_account.DataSourceAccount(), "decort_cb_account": cb_account.DataSourceAccount(),
"decort_cb_account_list": cb_account.DataSourceAccountList(), "decort_cb_account_list": cb_account.DataSourceAccountList(),
@@ -243,12 +241,10 @@ func newDataSourcesMap() map[string]*schema.Resource {
"decort_cb_rg_usage": cb_rg.DataSourceRgUsage(), "decort_cb_rg_usage": cb_rg.DataSourceRgUsage(),
"decort_cb_sep_list": cb_sep.DataSourceSepList(), "decort_cb_sep_list": cb_sep.DataSourceSepList(),
"decort_cb_sep": cb_sep.DataSourceSep(), "decort_cb_sep": cb_sep.DataSourceSep(),
"decort_cb_sep_and_pools_available_list": cb_sep.DataSourceAvailableSEPAndPoolsList(),
"decort_cb_sep_consumption": cb_sep.DataSourceSepConsumption(), "decort_cb_sep_consumption": cb_sep.DataSourceSepConsumption(),
"decort_cb_sep_disk_list": cb_sep.DataSourceSepDiskList(), "decort_cb_sep_disk_list": cb_sep.DataSourceSepDiskList(),
"decort_cb_sep_config": cb_sep.DataSourceSepConfig(), "decort_cb_sep_config": cb_sep.DataSourceSepConfig(),
"decort_cb_sep_pool": cb_sep.DataSourceSepPool(), "decort_cb_sep_pool": cb_sep.DataSourceSepPool(),
"decort_cb_sep_template": cb_sep.DataSourceSepTemplate(),
"decort_cb_lb": cb_lb.DataSourceLB(), "decort_cb_lb": cb_lb.DataSourceLB(),
"decort_cb_lb_list": cb_lb.DataSourceLBList(), "decort_cb_lb_list": cb_lb.DataSourceLBList(),
"decort_cb_lb_list_deleted": cb_lb.DataSourceLBListDeleted(), "decort_cb_lb_list_deleted": cb_lb.DataSourceLBListDeleted(),

View File

@@ -326,10 +326,6 @@ func dataSourceAccountSchemaMake() map[string]*schema.Schema {
Type: schema.TypeFloat, Type: schema.TypeFloat,
Computed: true, Computed: true,
}, },
"desc": {
Type: schema.TypeString,
Computed: true,
},
"deleted_by": { "deleted_by": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,

View File

@@ -49,7 +49,6 @@ func flattenAccountList(al *account.ListAccounts) []map[string]interface{} {
"acl": flattenRgAcl(acc.ACL), "acl": flattenRgAcl(acc.ACL),
"compute_features": acc.ComputeFeatures, "compute_features": acc.ComputeFeatures,
"created_time": acc.CreatedTime, "created_time": acc.CreatedTime,
"desc": acc.Description,
"deleted_time": acc.DeletedTime, "deleted_time": acc.DeletedTime,
"account_id": acc.ID, "account_id": acc.ID,
"account_name": acc.Name, "account_name": acc.Name,
@@ -177,10 +176,6 @@ func dataSourceAccountListSchemaMake() map[string]*schema.Schema {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"desc": {
Type: schema.TypeString,
Computed: true,
},
"deleted_time": { "deleted_time": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,

View File

@@ -50,7 +50,6 @@ func flattenAccountRGList(argl *account.ListRG) []map[string]interface{} {
"resources": flattenAccRGResources(arg.Resources), "resources": flattenAccRGResources(arg.Resources),
"created_by": arg.CreatedBy, "created_by": arg.CreatedBy,
"created_time": arg.CreatedTime, "created_time": arg.CreatedTime,
"desc": arg.Description,
"deleted_by": arg.DeletedBy, "deleted_by": arg.DeletedBy,
"deleted_time": arg.DeletedTime, "deleted_time": arg.DeletedTime,
"rg_id": arg.RGID, "rg_id": arg.RGID,
@@ -315,10 +314,6 @@ func dataSourceAccountRGListSchemaMake() map[string]*schema.Schema {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"desc": {
Type: schema.TypeString,
Computed: true,
},
"deleted_by": { "deleted_by": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,

View File

@@ -7,7 +7,6 @@ import (
func flattenAccount(d *schema.ResourceData, acc account.RecordAccount) error { func flattenAccount(d *schema.ResourceData, acc account.RecordAccount) error {
d.Set("dc_location", acc.DCLocation) d.Set("dc_location", acc.DCLocation)
d.Set("desc", acc.Description)
// d.Set("resources", flattenAccResources(acc.Resources)) // d.Set("resources", flattenAccResources(acc.Resources))
d.Set("ckey", acc.CKey) d.Set("ckey", acc.CKey)
d.Set("acl", flattenAccAcl(acc.ACL)) d.Set("acl", flattenAccAcl(acc.ACL))
@@ -17,11 +16,9 @@ func flattenAccount(d *schema.ResourceData, acc account.RecordAccount) error {
d.Set("created_by", acc.CreatedBy) d.Set("created_by", acc.CreatedBy)
d.Set("created_time", acc.CreatedTime) d.Set("created_time", acc.CreatedTime)
d.Set("deactivation_time", acc.DeactivationTime) d.Set("deactivation_time", acc.DeactivationTime)
d.Set("desc", acc.Description)
d.Set("deleted_by", acc.DeletedBy) d.Set("deleted_by", acc.DeletedBy)
d.Set("deleted_time", acc.DeletedTime) d.Set("deleted_time", acc.DeletedTime)
d.Set("displayname", acc.DisplayName) d.Set("displayname", acc.DisplayName)
d.Set("enable", flattenEnabled(acc.Status))
d.Set("guid", acc.GUID) d.Set("guid", acc.GUID)
d.Set("account_id", acc.ID) d.Set("account_id", acc.ID)
d.Set("account_name", acc.Name) d.Set("account_name", acc.Name)
@@ -46,10 +43,6 @@ func flattenAccount(d *schema.ResourceData, acc account.RecordAccount) error {
return nil return nil
} }
func flattenEnabled(status string) bool {
return status == "CONFIRMED"
}
func flattenAccComputes(acs account.Computes) []map[string]interface{} { func flattenAccComputes(acs account.Computes) []map[string]interface{} {
res := make([]map[string]interface{}, 0) res := make([]map[string]interface{}, 0)
temp := map[string]interface{}{ temp := map[string]interface{}{

View File

@@ -176,7 +176,6 @@ func resourceAccountUpdate(ctx context.Context, d *schema.ResourceData, m interf
if d.HasChange("enable") { if d.HasChange("enable") {
reqSwitch := account.DisableEnableRequest{ reqSwitch := account.DisableEnableRequest{
AccountID: accountId, AccountID: accountId,
Reason: d.Get("reason").(string),
} }
enable := d.Get("enable").(bool) enable := d.Get("enable").(bool)
@@ -208,11 +207,6 @@ func resourceAccountUpdate(ctx context.Context, d *schema.ResourceData, m interf
updated = true updated = true
} }
if d.HasChange("desc") {
req.Description = d.Get("desc").(string)
updated = true
}
if d.HasChange("resource_limits") { if d.HasChange("resource_limits") {
resLimit := d.Get("resource_limits").([]interface{})[0] resLimit := d.Get("resource_limits").([]interface{})[0]
resLimitConv := resLimit.(map[string]interface{}) resLimitConv := resLimit.(map[string]interface{})
@@ -400,10 +394,10 @@ func resourceAccountSchemaMake() map[string]*schema.Schema {
Required: true, Required: true,
Description: "account name", Description: "account name",
}, },
"desc": { "username": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Required: true,
Description: "description", Description: "username of owner the account",
}, },
"emailaddress": { "emailaddress": {
Type: schema.TypeString, Type: schema.TypeString,
@@ -431,11 +425,6 @@ func resourceAccountSchemaMake() map[string]*schema.Schema {
}, },
}, },
}, },
"reason": {
Type: schema.TypeString,
Optional: true,
Description: "reason for deactivation",
},
"restore": { "restore": {
Type: schema.TypeBool, Type: schema.TypeBool,
Optional: true, Optional: true,
@@ -450,7 +439,6 @@ func resourceAccountSchemaMake() map[string]*schema.Schema {
"enable": { "enable": {
Type: schema.TypeBool, Type: schema.TypeBool,
Optional: true, Optional: true,
Computed: true,
Description: "enable/disable account", Description: "enable/disable account",
}, },
"resource_limits": { "resource_limits": {

View File

@@ -105,7 +105,6 @@ func flattenBSGroupComputes(bsgcs bservice.ListGroupComputes) []map[string]inter
"ip_addresses": bsgc.IPAddresses, "ip_addresses": bsgc.IPAddresses,
"name": bsgc.Name, "name": bsgc.Name,
"os_users": flattenBSGroupOSUsers(bsgc.OSUsers), "os_users": flattenBSGroupOSUsers(bsgc.OSUsers),
"chipset": bsgc.Chipset,
} }
res = append(res, temp) res = append(res, temp)
} }
@@ -150,10 +149,6 @@ func dataSourceBasicServiceGroupSchemaMake() map[string]*schema.Schema {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"chipset": {
Type: schema.TypeString,
Computed: true,
},
"os_users": { "os_users": {
Type: schema.TypeList, Type: schema.TypeList,
Computed: true, Computed: true,

View File

@@ -100,10 +100,6 @@ func resourceBasicServiceGroupCreate(ctx context.Context, d *schema.ResourceData
req.ExtNets = res req.ExtNets = res
} }
if chipset, ok := d.GetOk("chipset"); ok {
req.Chipset = chipset.(string)
}
compgroupId, err := c.CloudAPI().BService().GroupAdd(ctx, req) compgroupId, err := c.CloudAPI().BService().GroupAdd(ctx, req)
if err != nil { if err != nil {
return diag.FromErr(err) return diag.FromErr(err)
@@ -176,7 +172,6 @@ func resourceBasicServiceGroupUpdate(ctx context.Context, d *schema.ResourceData
ServiceID: uint64(d.Get("service_id").(int)), ServiceID: uint64(d.Get("service_id").(int)),
CompGroupID: uint64(d.Get("compgroup_id").(int)), CompGroupID: uint64(d.Get("compgroup_id").(int)),
Count: int64(d.Get("comp_count").(int)), Count: int64(d.Get("comp_count").(int)),
Chipset: d.Get("chipset").(string),
Mode: d.Get("mode").(string), Mode: d.Get("mode").(string),
} }
@@ -419,12 +414,6 @@ func resourceBasicServiceGroupSchemaMake() map[string]*schema.Schema {
Optional: true, Optional: true,
Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.", Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.",
}, },
"chipset": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"i440fx", "Q35"}, false),
Default: "i440fx",
},
/// ///
"role": { "role": {
Type: schema.TypeString, Type: schema.TypeString,
@@ -514,10 +503,6 @@ func resourceBasicServiceGroupSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Elem: &schema.Resource{ Elem: &schema.Resource{
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"chipset": {
Type: schema.TypeString,
Computed: true,
},
"id": { "id": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,

View File

@@ -101,19 +101,11 @@ func dataSourceDiskSchemaMake() map[string]*schema.Schema {
}, },
}, },
}, },
"created_by": {
Type: schema.TypeString,
Computed: true,
},
"created_time": { "created_time": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
Description: "Created time", Description: "Created time",
}, },
"deleted_by": {
Type: schema.TypeString,
Computed: true,
},
"deleted_time": { "deleted_time": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -245,24 +237,16 @@ func dataSourceDiskSchemaMake() map[string]*schema.Schema {
// Computed: true, // Computed: true,
// Description: "Login to access the disk", // Description: "Login to access the disk",
// }, // },
"milestones": { // "milestones": {
Type: schema.TypeInt, // Type: schema.TypeInt,
Computed: true, // Computed: true,
Description: "Milestones", // Description: "Milestones",
}, // },
"disk_name": { "disk_name": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
Description: "Name of disk", Description: "Name of disk",
}, },
"machine_id": {
Type: schema.TypeInt,
Computed: true,
},
"machine_name": {
Type: schema.TypeString,
Computed: true,
},
"order": { "order": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -294,7 +278,7 @@ func dataSourceDiskSchemaMake() map[string]*schema.Schema {
Description: "Pool for disk location", Description: "Pool for disk location",
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -316,27 +300,27 @@ func dataSourceDiskSchemaMake() map[string]*schema.Schema {
Elem: &schema.Resource{ Elem: &schema.Resource{
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"disk_id": { "disk_id": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"pool_id": { "pool_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"role": { "role": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"self_volume_id": { "self_volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"storage_id": { "storage_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"volume_id": { "volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
}, },
@@ -382,10 +366,6 @@ func dataSourceDiskSchemaMake() map[string]*schema.Schema {
Type: schema.TypeBool, Type: schema.TypeBool,
Computed: true, Computed: true,
}, },
"size_available": {
Type: schema.TypeFloat,
Computed: true,
},
"size_max": { "size_max": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -454,14 +434,6 @@ func dataSourceDiskSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Virtual Machine ID (Deprecated)", Description: "Virtual Machine ID (Deprecated)",
}, },
"updated_by": {
Type: schema.TypeString,
Computed: true,
},
"updated_time": {
Type: schema.TypeInt,
Computed: true,
},
} }
return rets return rets

View File

@@ -163,10 +163,6 @@ func dataSourceDiskListSchemaMake() map[string]*schema.Schema {
}, },
}, },
}, },
"created_by": {
Type: schema.TypeString,
Computed: true,
},
"created_time": { "created_time": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -318,15 +314,11 @@ func dataSourceDiskListSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Machine name", Description: "Machine name",
}, },
"deleted_by": { // "milestones": {
Type: schema.TypeString, // Type: schema.TypeInt,
Computed: true, // Computed: true,
}, // Description: "Milestones",
"milestones": { // },
Type: schema.TypeInt,
Computed: true,
Description: "Milestones",
},
"disk_name": { "disk_name": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
@@ -363,7 +355,7 @@ func dataSourceDiskListSchemaMake() map[string]*schema.Schema {
Description: "Pool for disk location", Description: "Pool for disk location",
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -395,27 +387,27 @@ func dataSourceDiskListSchemaMake() map[string]*schema.Schema {
Elem: &schema.Resource{ Elem: &schema.Resource{
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"disk_id": { "disk_id": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"pool_id": { "pool_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"role": { "role": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"self_volume_id": { "self_volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"storage_id": { "storage_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"volume_id": { "volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
}, },
@@ -451,10 +443,6 @@ func dataSourceDiskListSchemaMake() map[string]*schema.Schema {
Type: schema.TypeBool, Type: schema.TypeBool,
Computed: true, Computed: true,
}, },
"size_available": {
Type: schema.TypeFloat,
Computed: true,
},
"size_max": { "size_max": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -523,14 +511,6 @@ func dataSourceDiskListSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Virtual Machine ID (Deprecated)", Description: "Virtual Machine ID (Deprecated)",
}, },
"updated_by": {
Type: schema.TypeString,
Computed: true,
},
"updated_time": {
Type: schema.TypeInt,
Computed: true,
},
}, },
}, },
}, },

View File

@@ -303,7 +303,7 @@ func dataSourceDiskReplicationSchemaMake() map[string]*schema.Schema {
Description: "Pool for disk location", Description: "Pool for disk location",
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -325,27 +325,27 @@ func dataSourceDiskReplicationSchemaMake() map[string]*schema.Schema {
Elem: &schema.Resource{ Elem: &schema.Resource{
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"disk_id": { "disk_id": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"pool_id": { "pool_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"role": { "role": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"self_volume_id": { "self_volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"storage_id": { "storage_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"volume_id": { "volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
}, },

View File

@@ -149,19 +149,11 @@ func dataSourceDiskDeletedListSchemaMake() map[string]*schema.Schema {
}, },
}, },
}, },
"created_by": {
Type: schema.TypeString,
Computed: true,
},
"created_time": { "created_time": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
Description: "Created time", Description: "Created time",
}, },
"deleted_by": {
Type: schema.TypeString,
Computed: true,
},
"deleted_time": { "deleted_time": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -308,11 +300,11 @@ func dataSourceDiskDeletedListSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Machine name", Description: "Machine name",
}, },
"milestones": { // "milestones": {
Type: schema.TypeInt, // Type: schema.TypeInt,
Computed: true, // Computed: true,
Description: "Milestones", // Description: "Milestones",
}, // },
"disk_name": { "disk_name": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
@@ -349,7 +341,7 @@ func dataSourceDiskDeletedListSchemaMake() map[string]*schema.Schema {
Description: "Pool for disk location", Description: "Pool for disk location",
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -371,27 +363,27 @@ func dataSourceDiskDeletedListSchemaMake() map[string]*schema.Schema {
Elem: &schema.Resource{ Elem: &schema.Resource{
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"disk_id": { "disk_id": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"pool_id": { "pool_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"role": { "role": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"self_volume_id": { "self_volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"storage_id": { "storage_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"volume_id": { "volume_id": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
}, },
@@ -437,10 +429,6 @@ func dataSourceDiskDeletedListSchemaMake() map[string]*schema.Schema {
Type: schema.TypeBool, Type: schema.TypeBool,
Computed: true, Computed: true,
}, },
"size_available": {
Type: schema.TypeFloat,
Computed: true,
},
"size_max": { "size_max": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -509,14 +497,6 @@ func dataSourceDiskDeletedListSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Virtual Machine ID (Deprecated)", Description: "Virtual Machine ID (Deprecated)",
}, },
"updated_by": {
Type: schema.TypeString,
Computed: true,
},
"updated_time": {
Type: schema.TypeInt,
Computed: true,
},
}, },
}, },
}, },

View File

@@ -77,9 +77,7 @@ func flattenDisk(d *schema.ResourceData, disk *disks.RecordDisk) {
d.Set("acl", string(diskAcl)) d.Set("acl", string(diskAcl))
// d.Set("boot_partition", disk.BootPartition) // d.Set("boot_partition", disk.BootPartition)
d.Set("computes", flattenDiskComputes(disk.Computes)) d.Set("computes", flattenDiskComputes(disk.Computes))
d.Set("created_by", disk.CreatedBy)
d.Set("created_time", disk.CreatedTime) d.Set("created_time", disk.CreatedTime)
d.Set("deleted_by", disk.DeletedBy)
d.Set("deleted_time", disk.DeletedTime) d.Set("deleted_time", disk.DeletedTime)
d.Set("desc", disk.Description) d.Set("desc", disk.Description)
d.Set("destruction_time", disk.DestructionTime) d.Set("destruction_time", disk.DestructionTime)
@@ -93,9 +91,7 @@ func flattenDisk(d *schema.ResourceData, disk *disks.RecordDisk) {
d.Set("iotune", flattenIOTune(disk.IOTune)) d.Set("iotune", flattenIOTune(disk.IOTune))
// d.Set("iqn", disk.IQN) // d.Set("iqn", disk.IQN)
// d.Set("login", disk.Login) // d.Set("login", disk.Login)
d.Set("machine_id", disk.MachineID) // d.Set("milestones", disk.Milestones)
d.Set("machine_name", disk.MachineName)
d.Set("milestones", disk.Milestones)
d.Set("disk_name", disk.Name) d.Set("disk_name", disk.Name)
d.Set("order", disk.Order) d.Set("order", disk.Order)
d.Set("params", disk.Params) d.Set("params", disk.Params)
@@ -114,7 +110,6 @@ func flattenDisk(d *schema.ResourceData, disk *disks.RecordDisk) {
d.Set("role", disk.Role) d.Set("role", disk.Role)
d.Set("sep_id", disk.SepID) d.Set("sep_id", disk.SepID)
d.Set("sep_type", disk.SepType) d.Set("sep_type", disk.SepType)
d.Set("size_available", disk.SizeAvailable)
d.Set("size_max", disk.SizeMax) d.Set("size_max", disk.SizeMax)
d.Set("size_used", disk.SizeUsed) d.Set("size_used", disk.SizeUsed)
d.Set("shareable", disk.Shareable) d.Set("shareable", disk.Shareable)
@@ -123,8 +118,6 @@ func flattenDisk(d *schema.ResourceData, disk *disks.RecordDisk) {
d.Set("tech_status", disk.TechStatus) d.Set("tech_status", disk.TechStatus)
d.Set("type", disk.Type) d.Set("type", disk.Type)
d.Set("vmid", disk.VMID) d.Set("vmid", disk.VMID)
d.Set("updated_by", disk.UpdatedBy)
d.Set("updated_time", disk.UpdatedTime)
} }
func flattenDiskReplication(rep disks.ItemReplication) []map[string]interface{} { func flattenDiskReplication(rep disks.ItemReplication) []map[string]interface{} {
@@ -218,9 +211,7 @@ func flattenDiskList(dl *disks.ListDisks) []map[string]interface{} {
"account_name": disk.AccountName, "account_name": disk.AccountName,
"acl": string(diskAcl), "acl": string(diskAcl),
"computes": flattenDiskComputes(disk.Computes), "computes": flattenDiskComputes(disk.Computes),
"created_by": disk.CreatedBy,
"created_time": disk.CreatedTime, "created_time": disk.CreatedTime,
"deleted_by": disk.DeletedBy,
"deleted_time": disk.DeletedTime, "deleted_time": disk.DeletedTime,
"desc": disk.Description, "desc": disk.Description,
"destruction_time": disk.DestructionTime, "destruction_time": disk.DestructionTime,
@@ -232,7 +223,6 @@ func flattenDiskList(dl *disks.ListDisks) []map[string]interface{} {
"iotune": flattenIOTune(disk.IOTune), "iotune": flattenIOTune(disk.IOTune),
"machine_id": disk.MachineID, "machine_id": disk.MachineID,
"machine_name": disk.MachineName, "machine_name": disk.MachineName,
"milestones": disk.Milestones,
"disk_name": disk.Name, "disk_name": disk.Name,
"order": disk.Order, "order": disk.Order,
"params": disk.Params, "params": disk.Params,
@@ -248,7 +238,6 @@ func flattenDiskList(dl *disks.ListDisks) []map[string]interface{} {
"sep_id": disk.SepID, "sep_id": disk.SepID,
"sep_type": disk.SepType, "sep_type": disk.SepType,
"shareable": disk.Shareable, "shareable": disk.Shareable,
"size_available": disk.SizeAvailable,
"size_max": disk.SizeMax, "size_max": disk.SizeMax,
"size_used": disk.SizeUsed, "size_used": disk.SizeUsed,
"snapshots": flattenDiskSnapshotList(disk.Snapshots), "snapshots": flattenDiskSnapshotList(disk.Snapshots),
@@ -256,8 +245,6 @@ func flattenDiskList(dl *disks.ListDisks) []map[string]interface{} {
"tech_status": disk.TechStatus, "tech_status": disk.TechStatus,
"type": disk.Type, "type": disk.Type,
"vmid": disk.VMID, "vmid": disk.VMID,
"updated_by": disk.UpdatedBy,
"updated_time": disk.UpdatedTime,
} }
res = append(res, temp) res = append(res, temp)
} }

View File

@@ -36,6 +36,7 @@ import (
"context" "context"
"fmt" "fmt"
"strconv" "strconv"
"strings"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/disks" "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/disks"
@@ -46,6 +47,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
) )
func resourceDiskCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { func resourceDiskCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
@@ -60,9 +62,23 @@ func resourceDiskCreate(ctx context.Context, d *schema.ResourceData, m interface
return diag.Errorf("resourceDiskCreate: can't create Disk because AccountID %d is not allowed or does not exist", d.Get("account_id").(int)) return diag.Errorf("resourceDiskCreate: can't create Disk because AccountID %d is not allowed or does not exist", d.Get("account_id").(int))
} }
haveGID, err := existGID(ctx, d, m)
if err != nil {
return diag.FromErr(err)
}
if !haveGID {
return diag.Errorf("resourceDiskCreate: can't create Disk because GID %d is not allowed or does not exist", d.Get("gid").(int))
}
req.AccountID = uint64(d.Get("account_id").(int)) req.AccountID = uint64(d.Get("account_id").(int))
req.GID = uint64(d.Get("gid").(int))
req.Name = d.Get("disk_name").(string) req.Name = d.Get("disk_name").(string)
req.Size = uint64(d.Get("size_max").(int)) req.Size = uint64(d.Get("size_max").(int))
if typeRaw, ok := d.GetOk("type"); ok {
req.Type = strings.ToUpper(typeRaw.(string))
} else {
req.Type = "D"
}
if sepId, ok := d.GetOk("sep_id"); ok { if sepId, ok := d.GetOk("sep_id"); ok {
req.SEPID = uint64(sepId.(int)) req.SEPID = uint64(sepId.(int))
@@ -194,6 +210,14 @@ func resourceDiskUpdate(ctx context.Context, d *schema.ResourceData, m interface
return diag.Errorf("resourceDiskUpdate: can't update Disk because AccountID %d is not allowed or does not exist", d.Get("account_id").(int)) return diag.Errorf("resourceDiskUpdate: can't update Disk because AccountID %d is not allowed or does not exist", d.Get("account_id").(int))
} }
haveGID, err := existGID(ctx, d, m)
if err != nil {
return diag.FromErr(err)
}
if !haveGID {
return diag.Errorf("resourceDiskUpdate: can't update Disk because GID %d is not allowed or does not exist", d.Get("gid").(int))
}
disk, err := utilityDiskCheckPresence(ctx, d, m) disk, err := utilityDiskCheckPresence(ctx, d, m)
if err != nil { if err != nil {
d.SetId("") d.SetId("")
@@ -353,14 +377,6 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
//ForceNew: true, //ForceNew: true,
Description: "The unique ID of the subscriber-owner of the disk", Description: "The unique ID of the subscriber-owner of the disk",
}, },
"created_by": {
Type: schema.TypeString,
Computed: true,
},
"deleted_by": {
Type: schema.TypeString,
Computed: true,
},
"disk_name": { "disk_name": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
@@ -371,6 +387,12 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
Required: true, Required: true,
Description: "Size in GB", Description: "Size in GB",
}, },
"gid": {
Type: schema.TypeInt,
Required: true,
//ForceNew: true,
Description: "ID of the grid (platform)",
},
"pool": { "pool": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
@@ -389,6 +411,13 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Description of disk", Description: "Description of disk",
}, },
"type": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"D", "B", "T"}, false),
Description: "The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp'",
},
"detach": { "detach": {
Type: schema.TypeBool, Type: schema.TypeBool,
Optional: true, Optional: true,
@@ -495,7 +524,7 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
}, },
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -556,11 +585,6 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Name of the device", Description: "Name of the device",
}, },
"gid": {
Type: schema.TypeInt,
Computed: true,
Description: "ID of the grid (platform)",
},
// "disk_path": { // "disk_path": {
// Type: schema.TypeString, // Type: schema.TypeString,
// Computed: true, // Computed: true,
@@ -599,14 +623,6 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
// Computed: true, // Computed: true,
// Description: "Milestones", // Description: "Milestones",
// }, // },
"machine_id": {
Type: schema.TypeInt,
Computed: true,
},
"machine_name": {
Type: schema.TypeString,
Computed: true,
},
"order": { "order": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -622,11 +638,6 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "ID of the parent disk", Description: "ID of the parent disk",
}, },
"type": {
Type: schema.TypeString,
Computed: true,
Description: "The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp'",
},
// "passwd": { // "passwd": {
// Type: schema.TypeString, // Type: schema.TypeString,
// Computed: true, // Computed: true,
@@ -768,14 +779,6 @@ func resourceDiskSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
Description: "Virtual Machine ID (Deprecated)", Description: "Virtual Machine ID (Deprecated)",
}, },
"updated_by": {
Type: schema.TypeString,
Computed: true,
},
"updated_time": {
Type: schema.TypeInt,
Computed: true,
},
} }
return rets return rets

View File

@@ -454,7 +454,7 @@ func resourceDiskReplicationSchemaMake() map[string]*schema.Schema {
Description: "ID of the pci slot to which the disk is connected", Description: "ID of the pci slot to which the disk is connected",
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,

View File

@@ -270,13 +270,6 @@ func dataSourceExtnetSchemaMake() map[string]*schema.Schema {
}, },
}, },
}, },
"ntp": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
} }
return res return res
} }

View File

@@ -107,11 +107,6 @@ func dataSourceExtnetListSchemaMake() map[string]*schema.Schema {
Optional: true, Optional: true,
Description: "Page size", Description: "Page size",
}, },
"ovs_bridge": {
Type: schema.TypeString,
Optional: true,
Description: "Name of the openVswitch bridge",
},
"items": { "items": {
Type: schema.TypeList, Type: schema.TypeList,
Computed: true, Computed: true,

View File

@@ -24,7 +24,6 @@ func flattenExtnet(d *schema.ResourceData, e *extnet.RecordExtNet) {
d.Set("net_name", e.Name) d.Set("net_name", e.Name)
d.Set("network", e.Network) d.Set("network", e.Network)
d.Set("network_id", e.NetworkID) d.Set("network_id", e.NetworkID)
d.Set("ntp", e.NTP)
d.Set("pre_reservations_num", e.PreReservationsNum) d.Set("pre_reservations_num", e.PreReservationsNum)
d.Set("prefix", e.Prefix) d.Set("prefix", e.Prefix)
d.Set("pri_vnf_dev_id", e.PriVNFDevID) d.Set("pri_vnf_dev_id", e.PriVNFDevID)

View File

@@ -46,11 +46,11 @@ func utilityExtnetListCheckPresence(ctx context.Context, d *schema.ResourceData,
c := m.(*controller.ControllerCfg) c := m.(*controller.ControllerCfg)
req := extnet.ListRequest{} req := extnet.ListRequest{}
if accountID, ok := d.GetOk("account_id"); ok { if accountId, ok := d.GetOk("account_id"); ok {
req.AccountID = uint64(accountID.(int)) req.AccountID = uint64(accountId.(int))
} }
if byID, ok := d.GetOk("by_id"); ok { if by_id, ok := d.GetOk("by_id"); ok {
req.ByID = uint64(byID.(int)) req.ByID = uint64(by_id.(int))
} }
if name, ok := d.GetOk("name"); ok { if name, ok := d.GetOk("name"); ok {
req.Name = name.(string) req.Name = name.(string)
@@ -58,11 +58,11 @@ func utilityExtnetListCheckPresence(ctx context.Context, d *schema.ResourceData,
if network, ok := d.GetOk("network"); ok { if network, ok := d.GetOk("network"); ok {
req.Network = network.(string) req.Network = network.(string)
} }
if vlanID, ok := d.GetOk("vlan_id"); ok { if vlan_id, ok := d.GetOk("vlan_id"); ok {
req.VLANID = uint64(vlanID.(int)) req.VLANID = uint64(vlan_id.(int))
} }
if vnfDevID, ok := d.GetOk("vnfdev_id"); ok { if vnfdev_id, ok := d.GetOk("vnfdev_id"); ok {
req.VNFDevID = uint64(vnfDevID.(int)) req.VNFDevID = uint64(vnfdev_id.(int))
} }
if status, ok := d.GetOk("status"); ok { if status, ok := d.GetOk("status"); ok {
req.Status = status.(string) req.Status = status.(string)
@@ -77,10 +77,6 @@ func utilityExtnetListCheckPresence(ctx context.Context, d *schema.ResourceData,
req.Size = uint64(size.(int)) req.Size = uint64(size.(int))
} }
if ovsBridge, ok := d.GetOk("ovs_bridge"); ok {
req.OVSBridge = ovsBridge.(string)
}
log.Debugf("utilityExtnetListCheckPresence") log.Debugf("utilityExtnetListCheckPresence")
extnetList, err := c.CloudAPI().ExtNet().List(ctx, req) extnetList, err := c.CloudAPI().ExtNet().List(ctx, req)
if err != nil { if err != nil {

View File

@@ -58,7 +58,6 @@ func flattenImage(d *schema.ResourceData, img *image.RecordImage) {
d.Set("sep_id", img.SepID) d.Set("sep_id", img.SepID)
d.Set("shared_with", img.SharedWith) d.Set("shared_with", img.SharedWith)
d.Set("size", img.Size) d.Set("size", img.Size)
d.Set("snapshot_id", img.SnapshotID)
d.Set("status", img.Status) d.Set("status", img.Status)
d.Set("tech_status", img.TechStatus) d.Set("tech_status", img.TechStatus)
d.Set("type", img.Type) d.Set("type", img.Type)

View File

@@ -169,7 +169,7 @@ func dataSourceImageExtendSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -198,10 +198,6 @@ func dataSourceImageExtendSchemaMake() map[string]*schema.Schema {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"snapshot_id": {
Type: schema.TypeString,
Computed: true,
},
"status": { "status": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,

View File

@@ -68,8 +68,8 @@ func resourceImageSchemaMake(sch map[string]*schema.Schema) map[string]*schema.S
sch["type"] = &schema.Schema{ sch["type"] = &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ValidateFunc: validation.StringInSlice([]string{"linux", "windows", "unknown"}, true), ValidateFunc: validation.StringInSlice([]string{"linux", "windows", "other"}, true),
Description: "Image type linux, windows or unknown", Description: "Image type linux, windows or other",
} }
sch["hot_resize"] = &schema.Schema{ sch["hot_resize"] = &schema.Schema{

View File

@@ -90,6 +90,9 @@ func resourceImageFromBlankComputeCreate(ctx context.Context, d *schema.Resource
if accountId, ok := d.GetOk("account_id"); ok { if accountId, ok := d.GetOk("account_id"); ok {
req.AccountID = uint64(accountId.(int)) req.AccountID = uint64(accountId.(int))
} }
if sepId, ok := d.GetOk("sep_id"); ok {
req.SepID = uint64(sepId.(int))
}
if poolName, ok := d.GetOk("pool_name"); ok { if poolName, ok := d.GetOk("pool_name"); ok {
req.PoolName = poolName.(string) req.PoolName = poolName.(string)
} }
@@ -299,8 +302,8 @@ func resourceImageFromBlankComputeSchemaMake() map[string]*schema.Schema {
"type": { "type": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ValidateFunc: validation.StringInSlice([]string{"linux", "windows", "unknown"}, true), ValidateFunc: validation.StringInSlice([]string{"linux", "windows", "other"}, true),
Description: "Image type linux, windows or unknown", Description: "Image type linux, windows or other",
}, },
"username": { "username": {
@@ -323,6 +326,7 @@ func resourceImageFromBlankComputeSchemaMake() map[string]*schema.Schema {
}, },
"sep_id": { "sep_id": {
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true,
Computed: true, Computed: true,
Description: "storage endpoint provider ID", Description: "storage endpoint provider ID",
}, },
@@ -453,7 +457,7 @@ func resourceImageFromBlankComputeSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -478,10 +482,6 @@ func resourceImageFromBlankComputeSchemaMake() map[string]*schema.Schema {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"snapshot_id": {
Type: schema.TypeString,
Computed: true,
},
"status": { "status": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,

View File

@@ -93,6 +93,9 @@ func resourceImageFromPlatformDiskCreate(ctx context.Context, d *schema.Resource
if accountId, ok := d.GetOk("account_id"); ok { if accountId, ok := d.GetOk("account_id"); ok {
req.AccountID = uint64(accountId.(int)) req.AccountID = uint64(accountId.(int))
} }
if sepId, ok := d.GetOk("sep_id"); ok {
req.SepID = uint64(sepId.(int))
}
if poolName, ok := d.GetOk("pool_name"); ok { if poolName, ok := d.GetOk("pool_name"); ok {
req.PoolName = poolName.(string) req.PoolName = poolName.(string)
} }
@@ -289,8 +292,8 @@ func resourceImageFromPlatformDiskSchemaMake() map[string]*schema.Schema {
"type": { "type": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ValidateFunc: validation.StringInSlice([]string{"linux", "windows", "unknown"}, true), ValidateFunc: validation.StringInSlice([]string{"linux", "windows", "other"}, true),
Description: "Image type linux, windows or unknown", Description: "Image type linux, windows or other",
}, },
"architecture": { "architecture": {
Type: schema.TypeString, Type: schema.TypeString,
@@ -319,6 +322,7 @@ func resourceImageFromPlatformDiskSchemaMake() map[string]*schema.Schema {
}, },
"sep_id": { "sep_id": {
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true,
Computed: true, Computed: true,
Description: "storage endpoint provider ID", Description: "storage endpoint provider ID",
}, },
@@ -450,7 +454,7 @@ func resourceImageFromPlatformDiskSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -475,10 +479,6 @@ func resourceImageFromPlatformDiskSchemaMake() map[string]*schema.Schema {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"snapshot_id": {
Type: schema.TypeString,
Computed: true,
},
"status": { "status": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,

View File

@@ -357,10 +357,6 @@ func dataSourceK8sSchemaMake() map[string]*schema.Schema {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"desc": {
Type: schema.TypeString,
Computed: true,
},
"deleted_by": { "deleted_by": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,

View File

@@ -240,7 +240,6 @@ func flattenK8sData(d *schema.ResourceData, cluster k8s.RecordK8S, masters []com
d.Set("k8sci_id", cluster.CIID) d.Set("k8sci_id", cluster.CIID)
d.Set("created_by", cluster.CreatedBy) d.Set("created_by", cluster.CreatedBy)
d.Set("created_time", cluster.CreatedTime) d.Set("created_time", cluster.CreatedTime)
d.Set("desc", cluster.Description)
d.Set("deleted_by", cluster.DeletedBy) d.Set("deleted_by", cluster.DeletedBy)
d.Set("deleted_time", cluster.DeletedTime) d.Set("deleted_time", cluster.DeletedTime)
d.Set("k8s_ci_name", cluster.K8CIName) d.Set("k8s_ci_name", cluster.K8CIName)
@@ -354,7 +353,6 @@ func flattenResourceK8sCP(d *schema.ResourceData, k8s k8s.RecordK8S, masters []c
d.Set("bservice_id", k8s.BServiceID) d.Set("bservice_id", k8s.BServiceID)
d.Set("created_by", k8s.CreatedBy) d.Set("created_by", k8s.CreatedBy)
d.Set("created_time", k8s.CreatedTime) d.Set("created_time", k8s.CreatedTime)
d.Set("desc", k8s.Description)
d.Set("deleted_by", k8s.DeletedBy) d.Set("deleted_by", k8s.DeletedBy)
d.Set("deleted_time", k8s.DeletedTime) d.Set("deleted_time", k8s.DeletedTime)
d.Set("k8s_ci_name", k8s.K8CIName) d.Set("k8s_ci_name", k8s.K8CIName)
@@ -395,7 +393,6 @@ func flattenResourceK8s(d *schema.ResourceData, k8s k8s.RecordK8S, masters []com
d.Set("bservice_id", k8s.BServiceID) d.Set("bservice_id", k8s.BServiceID)
d.Set("created_by", k8s.CreatedBy) d.Set("created_by", k8s.CreatedBy)
d.Set("created_time", k8s.CreatedTime) d.Set("created_time", k8s.CreatedTime)
d.Set("desc", k8s.Description)
d.Set("deleted_by", k8s.DeletedBy) d.Set("deleted_by", k8s.DeletedBy)
d.Set("deleted_time", k8s.DeletedTime) d.Set("deleted_time", k8s.DeletedTime)
d.Set("k8s_ci_name", k8s.K8CIName) d.Set("k8s_ci_name", k8s.K8CIName)

View File

@@ -359,7 +359,7 @@ func computeListDisksSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
}, },
"present_to": { "present_to": {
Type: schema.TypeMap, Type: schema.TypeList,
Computed: true, Computed: true,
Elem: &schema.Schema{ Elem: &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
@@ -422,10 +422,6 @@ func computeListDisksSchemaMake() map[string]*schema.Schema {
Type: schema.TypeBool, Type: schema.TypeBool,
Computed: true, Computed: true,
}, },
"size_available": {
Type: schema.TypeFloat,
Computed: true,
},
"size_max": { "size_max": {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
@@ -970,88 +966,10 @@ func dataSourceComputeSchemaMake() map[string]*schema.Schema {
Computed: true, Computed: true,
}, },
"vgpus": { "vgpus": {
Type: schema.TypeList, Type: schema.TypeList,
Computed: true, Computed: true,
Description: "List of virtual GPUs", Elem: &schema.Schema{
Elem: &schema.Resource{ Type: schema.TypeInt,
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeInt,
Computed: true,
},
"gid": {
Type: schema.TypeInt,
Computed: true,
},
"type": {
Type: schema.TypeString,
Computed: true,
},
"mode": {
Type: schema.TypeString,
Computed: true,
},
"status": {
Type: schema.TypeString,
Computed: true,
},
"profile_id": {
Type: schema.TypeInt,
Computed: true,
},
"ram": {
Type: schema.TypeInt,
Computed: true,
},
"last_update_time": {
Type: schema.TypeInt,
Computed: true,
},
"created_time": {
Type: schema.TypeInt,
Computed: true,
},
"deleted_time": {
Type: schema.TypeInt,
Computed: true,
},
"vmid": {
Type: schema.TypeInt,
Computed: true,
},
"pgpuid": {
Type: schema.TypeInt,
Computed: true,
},
"reference_id": {
Type: schema.TypeString,
Computed: true,
},
"account_id": {
Type: schema.TypeInt,
Computed: true,
},
"rg_id": {
Type: schema.TypeInt,
Computed: true,
},
"last_claimed_by": {
Type: schema.TypeInt,
Computed: true,
},
"pci_slot": {
Type: schema.TypeInt,
Computed: true,
},
"bus_number": {
Type: schema.TypeInt,
Computed: true,
},
"guid": {
Type: schema.TypeInt,
Computed: true,
},
},
}, },
}, },
"virtual_image_id": { "virtual_image_id": {
@@ -1070,22 +988,6 @@ func dataSourceComputeSchemaMake() map[string]*schema.Schema {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
"loader_type": {
Type: schema.TypeString,
Computed: true,
},
"boot_type": {
Type: schema.TypeString,
Computed: true,
},
"hot_resize": {
Type: schema.TypeBool,
Computed: true,
},
"network_interface_naming": {
Type: schema.TypeString,
Computed: true,
},
} }
} }

View File

@@ -381,22 +381,6 @@ func itemComputeSchemaMake() map[string]*schema.Schema {
Type: schema.TypeInt, Type: schema.TypeInt,
Computed: true, Computed: true,
}, },
"loader_type": {
Type: schema.TypeString,
Computed: true,
},
"boot_type": {
Type: schema.TypeString,
Computed: true,
},
"hot_resize": {
Type: schema.TypeBool,
Computed: true,
},
"network_interface_naming": {
Type: schema.TypeString,
Computed: true,
},
} }
} }

View File

@@ -47,9 +47,9 @@ func flattenDisks(disks []compute.InfoDisk) []map[string]interface{} {
res := make([]map[string]interface{}, 0) res := make([]map[string]interface{}, 0)
for _, disk := range disks { for _, disk := range disks {
temp := map[string]interface{}{ temp := map[string]interface{}{
// "bus_number": disk.BusNumber, "bus_number": disk.BusNumber,
"disk_id": disk.ID, "disk_id": disk.ID,
// "pci_slot": disk.PCISlot, "pci_slot": disk.PCISlot,
} }
res = append(res, temp) res = append(res, temp)
} }
@@ -217,32 +217,28 @@ func flattenComputeList(computes *compute.ListComputes) []map[string]interface{}
"need_reboot": compute.NeedReboot, "need_reboot": compute.NeedReboot,
"numa_affinity": compute.NumaAffinity, "numa_affinity": compute.NumaAffinity,
"numa_node_id": compute.NumaNodeId, "numa_node_id": compute.NumaNodeId,
// "pinned": compute.Pinned, "pinned": compute.Pinned,
"preferred_cpu": compute.PreferredCPU, "preferred_cpu": compute.PreferredCPU,
"ram": compute.RAM, "ram": compute.RAM,
"reference_id": compute.ReferenceID, "reference_id": compute.ReferenceID,
"registered": compute.Registered, "registered": compute.Registered,
"res_name": compute.ResName, "res_name": compute.ResName,
"reserved_node_cpus": compute.ReservedNodeCpus, "reserved_node_cpus": compute.ReservedNodeCpus,
"rg_id": compute.RGID, "rg_id": compute.RGID,
"rg_name": compute.RGName, "rg_name": compute.RGName,
"snap_sets": flattenSnapSets(compute.SnapSets), "snap_sets": flattenSnapSets(compute.SnapSets),
"stateless_sep_id": compute.StatelessSepID, "stateless_sep_id": compute.StatelessSepID,
"stateless_sep_type": compute.StatelessSepType, "stateless_sep_type": compute.StatelessSepType,
"status": compute.Status, "status": compute.Status,
"tags": flattenTags(compute.Tags), "tags": flattenTags(compute.Tags),
"tech_status": compute.TechStatus, "tech_status": compute.TechStatus,
"total_disk_size": compute.TotalDiskSize, "total_disk_size": compute.TotalDiskSize,
"updated_by": compute.UpdatedBy, "updated_by": compute.UpdatedBy,
"updated_time": compute.UpdatedTime, "updated_time": compute.UpdatedTime,
"user_managed": compute.UserManaged, "user_managed": compute.UserManaged,
"vgpus": compute.VGPUs, "vgpus": compute.VGPUs,
"vins_connected": compute.VINSConnected, "vins_connected": compute.VINSConnected,
"virtual_image_id": compute.VirtualImageID, "virtual_image_id": compute.VirtualImageID,
"loader_type": compute.LoaderType,
"boot_type": compute.BootType,
"hot_resize": compute.HotResize,
"network_interface_naming": compute.NetworkInterfaceNaming,
} }
res = append(res, temp) res = append(res, temp)
} }
@@ -254,18 +250,17 @@ func flattenBootDisk(bootDisk *compute.ItemComputeDisk) []map[string]interface{}
res := make([]map[string]interface{}, 0) res := make([]map[string]interface{}, 0)
temp := map[string]interface{}{ temp := map[string]interface{}{
"disk_name": bootDisk.Name, "disk_name": bootDisk.Name,
"disk_id": bootDisk.ID, "disk_id": bootDisk.ID,
"disk_type": bootDisk.Type, "disk_type": bootDisk.Type,
"sep_id": bootDisk.SepID, "sep_id": bootDisk.SepID,
"shareable": bootDisk.Shareable, "shareable": bootDisk.Shareable,
"size_max": bootDisk.SizeMax, "size_max": bootDisk.SizeMax,
"size_used": bootDisk.SizeUsed, "size_used": bootDisk.SizeUsed,
"pool": bootDisk.Pool, "pool": bootDisk.Pool,
"desc": bootDisk.Description, "desc": bootDisk.Description,
"image_id": bootDisk.ImageID, "image_id": bootDisk.ImageID,
"size": bootDisk.SizeMax, "size": bootDisk.SizeMax,
"present_to": bootDisk.PresentTo,
} }
res = append(res, temp) res = append(res, temp)
@@ -306,7 +301,6 @@ func flattenComputeDisksDemo(disksList compute.ListComputeDisks, disksBlocks, ex
"image_id": disk.ImageID, "image_id": disk.ImageID,
"size": disk.SizeMax, "size": disk.SizeMax,
"permanently": pernamentlyValue, "permanently": pernamentlyValue,
"present_to": disk.PresentTo,
} }
res = append(res, temp) res = append(res, temp)
indexDataDisks++ indexDataDisks++
@@ -421,7 +415,7 @@ func flattenCompute(d *schema.ResourceData, computeRec compute.RecordCompute, pc
if err := d.Set("os_users", parseOsUsers(computeRec.OSUsers)); err != nil { if err := d.Set("os_users", parseOsUsers(computeRec.OSUsers)); err != nil {
return err return err
} }
// d.Set("pinned", computeRec.Pinned) d.Set("pinned", computeRec.Pinned)
d.Set("preferred_cpu", computeRec.PreferredCPU) d.Set("preferred_cpu", computeRec.PreferredCPU)
d.Set("ram", computeRec.RAM) d.Set("ram", computeRec.RAM)
d.Set("reference_id", computeRec.ReferenceID) d.Set("reference_id", computeRec.ReferenceID)
@@ -440,13 +434,9 @@ func flattenCompute(d *schema.ResourceData, computeRec compute.RecordCompute, pc
d.Set("updated_time", computeRec.UpdatedTime) d.Set("updated_time", computeRec.UpdatedTime)
d.Set("user_managed", computeRec.UserManaged) d.Set("user_managed", computeRec.UserManaged)
d.Set("vnc_password", computeRec.VNCPassword) d.Set("vnc_password", computeRec.VNCPassword)
d.Set("vgpus", flattenVGPUs(computeRec.VGPUs)) d.Set("vgpus", computeRec.VGPUs)
d.Set("virtual_image_id", computeRec.VirtualImageID) d.Set("virtual_image_id", computeRec.VirtualImageID)
d.Set("virtual_image_name", computeRec.VirtualImageName) d.Set("virtual_image_name", computeRec.VirtualImageName)
d.Set("loader_type", computeRec.LoaderType)
d.Set("boot_type", computeRec.BootType)
d.Set("hot_resize", computeRec.HotResize)
d.Set("network_interface_naming", computeRec.NetworkInterfaceNaming)
d.Set("enabled", false) d.Set("enabled", false)
if computeRec.Status == status.Enabled { if computeRec.Status == status.Enabled {
@@ -571,7 +561,6 @@ func flattenListComputeDisks(disks compute.ListComputeDisks) []map[string]interf
"role": disk.Role, "role": disk.Role,
"sep_id": disk.SepID, "sep_id": disk.SepID,
"shareable": disk.Shareable, "shareable": disk.Shareable,
"size_available": disk.SizeAvailable,
"size_max": disk.SizeMax, "size_max": disk.SizeMax,
"size_used": disk.SizeUsed, "size_used": disk.SizeUsed,
"snapshots": flattenSnapshots(disk.Snapshots), "snapshots": flattenSnapshots(disk.Snapshots),
@@ -671,7 +660,7 @@ func flattenDataCompute(d *schema.ResourceData, computeRec compute.RecordCompute
d.Set("natable_vins_network", computeRec.NatableVINSNetwork) d.Set("natable_vins_network", computeRec.NatableVINSNetwork)
d.Set("natable_vins_network_name", computeRec.NatableVINSNetworkName) d.Set("natable_vins_network_name", computeRec.NatableVINSNetworkName)
d.Set("os_users", flattenOsUsers(computeRec.OSUsers)) d.Set("os_users", flattenOsUsers(computeRec.OSUsers))
// d.Set("pinned", computeRec.Pinned) d.Set("pinned", computeRec.Pinned)
d.Set("preferred_CPU", computeRec.PreferredCPU) d.Set("preferred_CPU", computeRec.PreferredCPU)
d.Set("ram", computeRec.RAM) d.Set("ram", computeRec.RAM)
d.Set("reference_id", computeRec.ReferenceID) d.Set("reference_id", computeRec.ReferenceID)
@@ -691,14 +680,10 @@ func flattenDataCompute(d *schema.ResourceData, computeRec compute.RecordCompute
d.Set("user_managed", computeRec.UserManaged) d.Set("user_managed", computeRec.UserManaged)
d.Set("userdata", string(userdata)) d.Set("userdata", string(userdata))
d.Set("vnc_password", computeRec.VNCPassword) d.Set("vnc_password", computeRec.VNCPassword)
d.Set("vgpus", flattenVGPUs(computeRec.VGPUs)) d.Set("vgpus", computeRec.VGPUs)
d.Set("virtual_image_id", computeRec.VirtualImageID) d.Set("virtual_image_id", computeRec.VirtualImageID)
d.Set("virtual_image_name", computeRec.VirtualImageName) d.Set("virtual_image_name", computeRec.VirtualImageName)
d.Set("pci_devices", flattenPCI(*pciList)) d.Set("pci_devices", flattenPCI(*pciList))
d.Set("loader_type", computeRec.LoaderType)
d.Set("boot_type", computeRec.BootType)
d.Set("hot_resize", computeRec.HotResize)
d.Set("network_interface_naming", computeRec.NetworkInterfaceNaming)
} }
func flattenPCI(pciList compute.ListPCIDevices) []uint64 { func flattenPCI(pciList compute.ListPCIDevices) []uint64 {
@@ -836,34 +821,3 @@ func flattenPCIDevice(deviceList []compute.ItemPCIDevice) []map[string]interface
} }
return res return res
} }
func flattenVGPUs(vgpus []compute.VGPUItem) []map[string]interface{} {
res := make([]map[string]interface{}, len(vgpus))
for i, vgpu := range vgpus {
res[i] = map[string]interface{}{
"id": int(vgpu.ID),
"gid": int(vgpu.GID),
"type": vgpu.Type,
"mode": vgpu.Mode,
"status": vgpu.Status,
"profile_id": vgpu.ProfileID,
"ram": int(vgpu.RAM),
"last_update_time": int(vgpu.LastUpdateTime),
"created_time": int(vgpu.CreatedTime),
"deleted_time": int(vgpu.DeletedTime),
"vmid": int(vgpu.VMID),
"pgpuid": int(vgpu.PGPuid),
"reference_id": vgpu.ReferenceID,
"account_id": int(vgpu.AccountID),
"rg_id": int(vgpu.RgID),
"last_claimed_by": int(vgpu.LastClaimedBy),
"pci_slot": int(vgpu.PCISlot),
"bus_number": int(vgpu.BusNumber),
"guid": int(vgpu.GUID),
}
}
return res
}

View File

@@ -147,11 +147,9 @@ func networkSubresourceSchemaMake() map[string]*schema.Schema {
}, },
"mac": { "mac": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Computed: true,
Computed: true, Description: "MAC address associated with this connection. MAC address is assigned automatically.",
DiffSuppressFunc: networkSubresIPAddreDiffSupperss,
Description: "MAC address associated with this connection. MAC address is assigned automatically.",
}, },
"weight": { "weight": {

Some files were not shown because too many files have changed in this diff Show More