From 8ad6811e8815bbb1fa56bb492027af4fb3cbda61 Mon Sep 17 00:00:00 2001 From: Alexey Fetisov Date: Mon, 26 Aug 2024 18:22:06 +0300 Subject: [PATCH] 4.6.1 --- CHANGELOG.md | 140 +-- Makefile | 6 +- README.md | 2 +- docs/data-sources/account.md | 43 +- docs/data-sources/account_audits_list.md | 4 +- docs/data-sources/account_computes_list.md | 16 +- docs/data-sources/account_consumed_units.md | 5 +- .../account_consumed_units_by_type.md | 4 +- docs/data-sources/account_deleted_list.md | 10 +- docs/data-sources/account_disks_list.md | 13 +- docs/data-sources/account_flipgroups_list.md | 13 +- docs/data-sources/account_list.md | 11 +- docs/data-sources/account_reserved_units.md | 5 +- .../account_resource_consumption_get.md | 105 +++ .../account_resource_consumption_list.md | 94 ++ docs/data-sources/account_rg_list.md | 13 +- docs/data-sources/account_templates_list.md | 12 +- docs/data-sources/account_vins_list.md | 14 +- docs/data-sources/bservice.md | 28 +- docs/data-sources/bservice_deleted_list.md | 6 +- docs/data-sources/bservice_group.md | 4 +- docs/data-sources/bservice_list.md | 12 +- docs/data-sources/bservice_snapshot_list.md | 5 +- docs/data-sources/cb_account.md | 87 ++ docs/data-sources/cb_account_audits_list.md | 49 + .../cb_account_available_templates_list.md | 37 + docs/data-sources/cb_account_computes_list.md | 76 ++ docs/data-sources/cb_account_disks_list.md | 59 ++ .../cb_account_flipgroups_list.md | 75 ++ docs/data-sources/cb_account_list.md | 100 +++ docs/data-sources/cb_account_list_deleted.md | 99 ++ .../cb_account_resource_consumption_get.md | 105 +++ .../cb_account_resource_consumption_list.md | 94 ++ docs/data-sources/cb_account_rg_list.md | 149 ++++ docs/data-sources/cb_account_vins_list.md | 71 ++ docs/data-sources/cb_audit.md | 49 + docs/data-sources/cb_audit_linked_jobs.md | 52 ++ docs/data-sources/cb_audit_list.md | 56 ++ docs/data-sources/cb_disk.md | 137 +++ docs/data-sources/cb_disk_list.md | 157 ++++ docs/data-sources/cb_disk_list_deleted.md | 154 ++++ docs/data-sources/cb_disk_list_types.md | 37 + ...acks.md => cb_disk_list_types_detailed.md} | 37 +- docs/data-sources/cb_disk_list_unattached.md | 129 +++ docs/data-sources/cb_disk_replication.md | 139 +++ docs/data-sources/cb_disk_snapshot.md | 43 + docs/data-sources/cb_disk_snapshot_list.md | 51 ++ docs/data-sources/cb_extnet.md | 111 +++ docs/data-sources/cb_extnet_default.md | 33 + docs/data-sources/cb_extnet_list.md | 90 ++ docs/data-sources/cb_extnet_static_route.md | 42 + .../cb_extnet_static_route_list.md | 51 ++ docs/data-sources/cb_flipgroup.md | 62 ++ docs/data-sources/cb_flipgroup_list.md | 74 ++ docs/data-sources/{grid.md => cb_grid.md} | 7 +- docs/data-sources/cb_grid_get_consumption.md | 89 ++ .../{sep_pool.md => cb_grid_get_diagnosis.md} | 11 +- docs/data-sources/cb_grid_get_status.md | 33 + docs/data-sources/cb_grid_list.md | 112 +++ docs/data-sources/cb_grid_list_consumption.md | 94 ++ docs/data-sources/cb_grid_list_emails.md | 36 + docs/data-sources/cb_grid_post_diagnosis.md | 37 + docs/data-sources/cb_grid_post_status.md | 33 + .../cb_image.md} | 60 +- docs/data-sources/cb_image_list.md | 119 +++ docs/data-sources/cb_image_list_stacks.md | 149 ++++ docs/data-sources/cb_k8ci.md | 52 ++ docs/data-sources/cb_k8ci_list.md | 67 ++ docs/data-sources/cb_k8ci_list_deleted.md | 65 ++ docs/data-sources/cb_k8s.md | 210 +++++ docs/data-sources/cb_k8s_computes.md | 62 ++ docs/data-sources/cb_k8s_list.md | 103 +++ docs/data-sources/cb_k8s_list_deleted.md | 127 +++ docs/data-sources/cb_k8s_wg.md | 68 ++ docs/data-sources/cb_k8s_wg_cloud_init.md | 38 + docs/data-sources/cb_k8s_wg_list.md | 75 ++ docs/data-sources/cb_kvmvm.md | 312 +++++++ .../cb_kvmvm_affinity_relations.md | 42 + .../{grid_list.md => cb_kvmvm_audits.md} | 25 +- docs/data-sources/cb_kvmvm_boot_order_get.md | 37 + docs/data-sources/cb_kvmvm_get_audits.md | 47 + docs/data-sources/cb_kvmvm_get_console_url.md | 37 + docs/data-sources/cb_kvmvm_get_log.md | 38 + docs/data-sources/cb_kvmvm_list.md | 235 +++++ docs/data-sources/cb_kvmvm_list_deleted.md | 233 +++++ .../cb_kvmvm_migrate_storage_info.md | 37 + docs/data-sources/cb_kvmvm_pci_device_list.md | 64 ++ docs/data-sources/cb_kvmvm_pfw_list.md | 53 ++ docs/data-sources/cb_kvmvm_snapshot_list.md | 49 + docs/data-sources/cb_kvmvm_snapshot_usage.md | 49 + docs/data-sources/cb_kvmvm_user_list.md | 78 ++ docs/data-sources/cb_kvmvm_vgpu_list.md | 70 ++ docs/data-sources/cb_lb.md | 168 ++++ docs/data-sources/cb_lb_list.md | 189 ++++ docs/data-sources/cb_lb_list_deleted.md | 187 ++++ docs/data-sources/cb_node.md | 158 ++++ docs/data-sources/cb_node_list.md | 160 ++++ .../{pcidevice.md => cb_pcidevice.md} | 6 +- ...pcidevice_list.md => cb_pcidevice_list.md} | 14 +- docs/data-sources/cb_rg.md | 93 ++ .../cb_rg_affinity_group_computes.md | 52 ++ .../data-sources/cb_rg_affinity_groups_get.md | 38 + .../cb_rg_affinity_groups_list.md | 50 ++ docs/data-sources/cb_rg_audits.md | 49 + docs/data-sources/cb_rg_list.md | 109 +++ docs/data-sources/cb_rg_list_computes.md | 105 +++ docs/data-sources/cb_rg_list_deleted.md | 107 +++ docs/data-sources/cb_rg_list_lb.md | 196 ++++ docs/data-sources/cb_rg_list_pfw.md | 53 ++ docs/data-sources/cb_rg_list_vins.md | 71 ++ .../cb_rg_resource_consumption_get.md | 105 +++ .../cb_rg_resource_consumption_list.md | 110 +++ docs/data-sources/cb_rg_usage.md | 56 ++ docs/data-sources/cb_sep.md | 50 ++ .../{sep_config.md => cb_sep_config.md} | 6 +- ...p_consumption.md => cb_sep_consumption.md} | 6 +- .../{sep_disk_list.md => cb_sep_disk_list.md} | 6 +- .../{sep_list.md => cb_sep_list.md} | 18 +- docs/data-sources/cb_sep_pool.md | 61 ++ docs/data-sources/cb_stack.md | 134 +++ docs/data-sources/cb_stack_list.md | 146 +++ docs/data-sources/cb_user.md | 56 ++ docs/data-sources/cb_user_get_audit.md | 52 ++ docs/data-sources/cb_user_list.md | 68 ++ docs/data-sources/cb_vfpool.md | 72 ++ docs/data-sources/cb_vfpool_list.md | 87 ++ docs/data-sources/cb_vins.md | 426 +++++++++ docs/data-sources/cb_vins_audits.md | 49 + docs/data-sources/cb_vins_ext_net_list.md | 51 ++ docs/data-sources/cb_vins_ip_list.md | 52 ++ docs/data-sources/cb_vins_list.md | 108 +++ docs/data-sources/cb_vins_list_deleted.md | 104 +++ docs/data-sources/cb_vins_nat_rule_list.md | 54 ++ docs/data-sources/cb_vins_static_route.md | 42 + .../data-sources/cb_vins_static_route_list.md | 51 ++ docs/data-sources/disk.md | 100 ++- docs/data-sources/disk_list.md | 52 +- docs/data-sources/disk_list_deleted.md | 143 +++ docs/data-sources/disk_list_types.md | 37 + docs/data-sources/disk_list_types_detailed.md | 56 ++ docs/data-sources/disk_list_unattached.md | 127 +++ docs/data-sources/disk_replication.md | 128 +++ docs/data-sources/disk_snapshot.md | 42 + docs/data-sources/disk_snapshot_list.md | 50 ++ docs/data-sources/extnet.md | 20 +- docs/data-sources/extnet_computes_list.md | 10 +- docs/data-sources/extnet_default.md | 4 +- docs/data-sources/extnet_list.md | 15 +- docs/data-sources/flipgroup.md | 61 ++ docs/data-sources/flipgroup_list.md | 74 ++ docs/data-sources/image.md | 9 +- docs/data-sources/image_list.md | 20 +- docs/data-sources/k8ci_list.md | 59 ++ docs/data-sources/k8s.md | 186 ++++ docs/data-sources/k8s_computes.md | 62 ++ docs/data-sources/k8s_list.md | 129 +++ docs/data-sources/k8s_list_deleted.md | 127 +++ docs/data-sources/k8s_wg.md | 69 ++ docs/data-sources/k8s_wg_cloud_init.md | 38 + docs/data-sources/k8s_wg_list.md | 76 ++ docs/data-sources/kvmvm.md | 316 ++++++- docs/data-sources/kvmvm_audits.md | 49 + docs/data-sources/kvmvm_get_audits.md | 46 + docs/data-sources/kvmvm_get_console_url.md | 37 + docs/data-sources/kvmvm_get_log.md | 38 + docs/data-sources/kvmvm_list.md | 221 +++++ docs/data-sources/kvmvm_list_deleted.md | 219 +++++ docs/data-sources/kvmvm_pci_device_list.md | 62 ++ docs/data-sources/kvmvm_pfw_list.md | 52 ++ .../{sep.md => kvmvm_snapshot_usage.md} | 30 +- docs/data-sources/kvmvm_user_list.md | 78 ++ docs/data-sources/kvmvm_vgpu_list.md | 70 ++ docs/data-sources/lb.md | 10 +- docs/data-sources/lb_list.md | 20 +- docs/data-sources/lb_list_deleted.md | 19 +- docs/data-sources/location_url.md | 4 +- docs/data-sources/locations_list.md | 11 +- docs/data-sources/resgroup.md | 69 +- .../rg_affinity_group_computes.md | 52 ++ docs/data-sources/rg_affinity_groups_get.md | 38 + docs/data-sources/rg_affinity_groups_list.md | 57 ++ docs/data-sources/rg_audits.md | 49 + docs/data-sources/rg_list.md | 27 +- docs/data-sources/rg_list_computes.md | 104 +++ docs/data-sources/rg_list_deleted.md | 107 +++ docs/data-sources/rg_list_lb.md | 198 ++++ docs/data-sources/rg_list_pfw.md | 53 ++ docs/data-sources/rg_list_vins.md | 70 ++ .../rg_resource_consumption_get.md | 105 +++ .../rg_resource_consumption_list.md | 110 +++ docs/data-sources/rg_usage.md | 54 ++ docs/data-sources/snapshot_list.md | 5 +- docs/data-sources/stack.md | 43 + docs/data-sources/stack_list.md | 52 ++ docs/data-sources/vfpool.md | 72 ++ docs/data-sources/vfpool_list.md | 87 ++ docs/data-sources/vgpu.md | 34 - docs/data-sources/vins.md | 402 ++++++++- docs/data-sources/vins_audits.md | 49 + docs/data-sources/vins_ext_net_list.md | 51 ++ docs/data-sources/vins_ip_list.md | 52 ++ docs/data-sources/vins_list.md | 15 +- docs/data-sources/vins_list_deleted.md | 66 ++ docs/data-sources/vins_nat_rule_list.md | 53 ++ docs/data-sources/vins_static_route.md | 42 + docs/data-sources/vins_static_route_list.md | 51 ++ docs/index.md | 14 +- docs/resources/account.md | 45 +- docs/resources/bservice.md | 26 +- docs/resources/bservice_group.md | 8 +- docs/resources/cb_account.md | 113 +++ .../{cdrom_image.md => cb_cdrom_image.md} | 28 +- docs/resources/cb_disk.md | 147 +++ docs/resources/cb_disk_replication.md | 148 +++ docs/resources/cb_disk_snapshot.md | 47 + docs/resources/cb_extnet.md | 150 ++++ ...rnetes_wg.md => cb_extnet_static_route.md} | 19 +- docs/resources/cb_flipgroup.md | 67 ++ docs/resources/cb_image.md | 109 +++ docs/resources/cb_image_from_blank_compute.md | 107 +++ docs/resources/cb_image_from_platform_disk.md | 107 +++ docs/resources/cb_k8ci.md | 57 ++ docs/resources/cb_k8s_cp.md | 161 ++++ docs/resources/cb_k8s_wg.md | 73 ++ docs/resources/cb_kvmvm.md | 349 ++++++++ docs/resources/cb_lb.md | 179 ++++ docs/resources/cb_lb_backend.md | 86 ++ docs/resources/cb_lb_backend_server.md | 53 ++ docs/resources/cb_lb_frontend.md | 54 ++ docs/resources/cb_lb_frontend_bind.md | 44 + .../{pcidevice.md => cb_pcidevice.md} | 9 +- docs/resources/cb_rg.md | 134 +++ docs/resources/cb_sep.md | 95 ++ .../{sep_config.md => cb_sep_config.md} | 16 +- docs/resources/cb_user.md | 59 ++ docs/resources/cb_vfpool.md | 87 ++ docs/resources/cb_vins.md | 493 ++++++++++ docs/resources/cb_vins_static_route.md | 45 + docs/resources/cb_virtual_image.md | 104 +++ docs/resources/disk.md | 133 +-- docs/resources/disk_replication.md | 137 +++ docs/resources/disk_snapshot.md | 46 + docs/resources/flipgroup.md | 64 ++ docs/resources/image.md | 13 +- docs/resources/image_from_blank_compute.md | 90 ++ docs/resources/image_from_platform_disk.md | 90 ++ docs/resources/image_virtual.md | 9 +- docs/resources/k8s.md | 225 +++++ docs/resources/k8s_cp.md | 156 ++++ docs/resources/k8s_wg.md | 75 ++ docs/resources/kubernetes.md | 72 -- docs/resources/kvmvm.md | 252 +++++- docs/resources/lb.md | 18 +- docs/resources/lb_backend.md | 4 +- docs/resources/lb_backend_server.md | 4 +- docs/resources/lb_frontend.md | 4 +- docs/resources/lb_frontend_bind.md | 4 +- docs/resources/pfw.md | 4 +- docs/resources/resgroup.md | 76 +- docs/resources/sep.md | 69 -- docs/resources/snapshot.md | 4 +- docs/resources/vins.md | 454 +++++++++- ...{delete_images.md => vins_static_route.md} | 16 +- go.mod | 36 +- go.sum | 51 +- internal/provider/provider.go | 338 +++---- internal/service/cloudapi/k8s/resource_k8s.go | 33 +- .../service/cloudapi/k8s/resource_k8s_cp.go | 33 +- .../kvmvm/utility_data_source_compute.go | 2 +- internal/service/cloudapi/lb/resource_lb.go | 33 +- .../cloudapi/lb/resource_lb_backend.go | 758 ++++++++-------- .../cloudapi/lb/resource_lb_backend_server.go | 640 ++++++------- .../service/cloudapi/vins/resource_vins.go | 2 +- .../service/cloudbroker/ic/input_checks.go | 12 + .../cloudbroker/k8s/resource_k8s_cp.go | 33 +- internal/service/cloudbroker/kvmvm/schema.go | 12 +- .../service/cloudbroker/lb/resource_lb.go | 30 +- .../cloudbroker/lb/resource_lb_backend.go | 36 +- .../lb/resource_lb_backend_server.go | 36 +- internal/service/cloudbroker/node/flattens.go | 15 +- internal/service/cloudbroker/node/schema.go | 26 +- .../service/cloudbroker/sep/resource_sep.go | 165 ++-- internal/service/cloudbroker/sep/schema.go | 108 ++- .../service/cloudbroker/sep/utility_sep.go | 14 + .../cloudbroker/user/data_source_user_list.go | 1 + internal/service/cloudbroker/user/flattens.go | 2 +- internal/service/cloudbroker/vins/schema.go | 2 +- samples/cloudapi/k8s/resource_k8s/main.tf | 2 +- samples/cloudapi/k8s/resource_k8s_cp/main.tf | 2 +- samples/cloudapi/lb/resource_lb/main.tf | 3 +- .../grid/decort_cb_grid_get_diagnosis/main.tf | 39 + .../decort_cb_grid_post_diagnosis/main.tf | 39 + .../cloudbroker/k8s/resource_k8s_cp/main.tf | 2 +- samples/cloudbroker/lb/resource_lb/main.tf | 2 +- samples/cloudbroker/sep/resource_sep/main.tf | 100 +-- .../vfpool/resource_vfpool/main.tf | 2 +- wiki/.gitignore | 1 + ...2.110-Data-decort_cb_grid_get_diagnosis.md | 34 + ....110-Data-decort_cb_grid_post_diagnosis.md | 34 + wiki/4.5.2/07.01.09-Resource_decort_image.md | 2 +- .../08.-Полезные-советы.md | 11 + wiki/4.5.2/Home.md | 5 +- ...2.110-Data-decort_cb_grid_get_diagnosis.md | 34 + ....110-Data-decort_cb_grid_post_diagnosis.md | 34 + wiki/4.5.3/07.01.09-Resource_decort_image.md | 2 +- .../08.-Полезные-советы.md | 11 + wiki/4.5.3/Home.md | 5 +- ...02.108-Data_decort_cb_disk_replication.md} | 0 ...2.110-Data-decort_cb_grid_get_diagnosis.md | 34 + ....110-Data-decort_cb_grid_post_diagnosis.md | 34 + wiki/4.6.0/07.01.09-Resource_decort_image.md | 2 +- .../07.02.29-Resource_decort_cb_vfpool.md | 2 +- .../08.-Полезные-советы.md | 11 + wiki/4.6.0/Home.md | 7 +- wiki/4.6.1/01.-Введение.md | 7 + wiki/4.6.1/02.-Пример-работы.md | 92 ++ ...лачной-платформы-DECORT.md | 31 + ...terraform-провайдером-DECORT.md | 6 + ...-Terraform-провайдера-DECORT.md | 150 ++++ ...-Terraform-провайдера-DECORT.md | 64 ++ ...ние-между-группами-API.md | 38 + ...4-Получение-gid-или-grid_id.md | 31 + ...form-провайдера-в-образ.md | 43 + wiki/4.6.1/05.-Работа-с-terraform.md | 4 + ...ортирование-ресурсов.md | 75 ++ ...02-Работа-с-таймаутами.md | 100 +++ ...становление-ресурсов.md | 29 + ...урсов.-Мета-аргументы.md | 452 ++++++++++ ...05.05-Удаление-ресурсов.md | 262 ++++++ .../05.06-Установка-Terraform.md | 46 + ...астеров-на-версию-4.2.0.md | 179 ++++ ...-Terraform-провайдера-DECORT.md | 4 + ...овательская-группа-API.md | 1 + wiki/4.6.1/06.01.01-Data_decort_kvmvm.md | 269 ++++++ wiki/4.6.1/06.01.02-Data_decort_resgroup.md | 134 +++ wiki/4.6.1/06.01.03-Data_decort_disk.md | 115 +++ wiki/4.6.1/06.01.04-Data_decort_vins.md | 279 ++++++ wiki/4.6.1/06.01.05-Data_decort_account.md | 115 +++ wiki/4.6.1/06.01.06-Data_decort_image_list.md | 160 ++++ wiki/4.6.1/06.01.07-Data_decort_image.md | 87 ++ .../06.01.08-Data_decort_locations_list.md | 78 ++ .../06.01.09-Data_decort_location_url.md | 25 + .../06.01.11-Data_decort_snapshot_list.md | 36 + wiki/4.6.1/06.01.12-Data_decort_rg_list.md | 124 +++ wiki/4.6.1/06.01.13-Data_decort_disk_list.md | 188 ++++ wiki/4.6.1/06.01.14-Data_decort_vins_list.md | 104 +++ .../4.6.1/06.01.15-Data_decort_extnet_list.md | 90 ++ .../06.01.16-Data_decort_extnet_default.md | 26 + ....01.17-Data_decort_extnet_computes_list.md | 78 ++ wiki/4.6.1/06.01.18-Data_decort_extnet.md | 55 ++ ...6.01.19-Data_decort_account_audits_list.md | 38 + ...01.20-Data_decort_account_computes_list.md | 120 +++ ...1.21-Data_decort_account_consumed_units.md | 40 + ...a_decort_account_consumed_units_by_type.md | 46 + ...06.01.23-Data_decort_account_disks_list.md | 84 ++ ....24-Data_decort_account_flipgroups_list.md | 99 ++ ...1.25-Data_decort_account_reserved_units.md | 40 + .../06.01.26-Data_decort_account_rg_list.md | 95 ++ ...1.27-Data_decort_account_templates_list.md | 86 ++ .../06.01.28-Data_decort_account_vins_list.md | 96 ++ .../06.01.29-Data_decort_account_list.md | 78 ++ ....01.30-Data_decort_account_deleted_list.md | 72 ++ .../06.01.31-Data_decort_bservice_list.md | 118 +++ ...01.32-Data_decort_bservice_deleted_list.md | 83 ++ ...1.33-Data_decort_bservice_snapshot_list.md | 35 + wiki/4.6.1/06.01.34-Data_decort_bservice.md | 94 ++ .../06.01.35-Data_decort_bservice_group.md | 70 ++ wiki/4.6.1/06.01.36-Data_decort_lb.md | 111 +++ wiki/4.6.1/06.01.37-Data_decort_lb_list.md | 183 ++++ .../06.01.38-Data_decort_lb_list_deleted.md | 169 ++++ .../06.01.39-Data_decort_disk_list_types.md | 47 + ...40-Data_decort_disk_list_types_detailed.md | 54 ++ .../06.01.41-Data_decort_disk_list_deleted.md | 131 +++ ....01.42-Data_decort_disk_list_unattached.md | 162 ++++ ...06.01.43-Data_decort_disk_snapshot_list.md | 34 + .../06.01.44-Data_decort_disk_snapshot.md | 40 + wiki/4.6.1/06.01.45-Data_decort_k8s.md | 123 +++ wiki/4.6.1/06.01.46-Data_decort_k8s_list.md | 173 ++++ .../06.01.47-Data_decort_k8s_list_deleted.md | 158 ++++ wiki/4.6.1/06.01.48-Data_decort_k8s_wg.md | 68 ++ .../4.6.1/06.01.49-Data_decort_k8s_wg_list.md | 63 ++ .../4.6.1/06.01.50-Data_decort_vins_audits.md | 39 + .../06.01.51-Data_decort_vins_ext_net_list.md | 39 + .../06.01.52-Data_decort_vins_ip_list.md | 40 + .../06.01.53-Data_decort_vins_list_deleted.md | 98 ++ ...06.01.54-Data_decort_vins_nat_rule_list.md | 40 + .../06.01.55-Data_decort_kvmvm_audits.md | 35 + .../06.01.56-Data_decort_kvmvm_get_audits.md | 32 + ...01.57-Data_decort_kvmvm_get_console_url.md | 30 + .../06.01.58-Data_decort_kvmvm_get_log.md | 36 + wiki/4.6.1/06.01.59-Data_decort_kvmvm_list.md | 244 +++++ .../06.01.60-Data_decort_kvmvm_pfw_list.md | 37 + .../06.01.61-Data_decort_kvmvm_user_list.md | 43 + wiki/4.6.1/06.01.62-Data_decort_rg_list.md | 155 ++++ ...-Data_decort_rg_affinity_group_computes.md | 50 ++ ....64-Data_decort_rg_affinity_groups_list.md | 54 ++ ...1.65-Data_decort_rg_affinity_groups_get.md | 44 + wiki/4.6.1/06.01.66-Data_decort_rg_audits.md | 42 + .../06.01.67-Data_decort_rg_list_computes.md | 139 +++ .../06.01.68-Data_decort_rg_list_deleted.md | 143 +++ wiki/4.6.1/06.01.69-Data_decort_rg_list_lb.md | 194 ++++ .../4.6.1/06.01.70-Data_decort_rg_list_pfw.md | 45 + .../06.01.71-Data_decort_rg_list_vins.md | 100 +++ wiki/4.6.1/06.01.72-Data_decort_rg_usage.md | 57 ++ ....01.73-Data_decort_kvmvm_snapshot_usage.md | 45 + .../06.01.74-Data _decort_k8s_computes.md | 47 + wiki/4.6.1/06.01.75-Data_decort_flipgroup.md | 49 + .../06.01.75-Data_decort_flipgroup_list.md | 125 +++ wiki/4.6.1/06.01.76-Data_decort_k8ci_list.md | 88 ++ .../06.01.77-Data_decort_vins_static_route.md | 41 + ...1.78-Data_decort_vins_static_route_list.md | 36 + ...decort_account_resource_consumption_get.md | 70 ++ ...ecort_account_resource_consumption_list.md | 51 ++ .../06.01.81-Data_decort_k8s_wg_cloud_init.md | 41 + ...06.01.82-Data_decort_kvmvm_list_deleted.md | 230 +++++ ...01.83-Data_decort_kvmvm_pci_device_list.md | 86 ++ .../06.01.84-Data_decort_kvmvm_vgpu_list.md | 94 ++ ...Data_decort_rg_resource_consumption_get.md | 70 ++ ...ata_decort_rg_resource_consumption_list.md | 63 ++ .../06.01.87-Data_decort_disk_replication.md | 120 +++ wiki/4.6.1/06.01.87-Data_decort_vfpool.md | 65 ++ .../4.6.1/06.01.88-Data_decort_vfpool_list.md | 124 +++ wiki/4.6.1/06.01.89-Data_decort_stack.md | 44 + wiki/4.6.1/06.01.90-Data_decort_stack_list.md | 78 ++ ...истративная-группа-API.md | 1 + wiki/4.6.1/06.02.01-Data_decort_cb_kvmvm.md | 273 ++++++ wiki/4.6.1/06.02.02-Data_decort_cb_rg.md | 93 ++ wiki/4.6.1/06.02.03-Data_decort_cb_disk.md | 122 +++ wiki/4.6.1/06.02.04-Data_decort_cb_vins.md | 300 +++++++ wiki/4.6.1/06.02.05-Data_decort_cb_account.md | 78 ++ .../06.02.06-Data_decort_cb_image_list.md | 179 ++++ wiki/4.6.1/06.02.07-Data_decort_cb_image.md | 94 ++ ....02.08-Data_decort_cb_image_list_stacks.md | 146 +++ .../06.02.09-Data_decort_cb_grid_list.md | 108 +++ wiki/4.6.1/06.02.10-Data_decort_cb_grid.md | 40 + ...ort_cb_account_resource_consumption_get.md | 70 ++ ...rt_cb_account_resource_consumption_list.md | 51 ++ ...ort_cb_account_available_templates_list.md | 36 + wiki/4.6.1/06.02.103-Data_decort_cb_user.md | 58 ++ .../06.02.104-Data_decort_cb_user_list.md | 87 ++ ...06.02.105-Data_decort_cb_user_get_audit.md | 75 ++ wiki/4.6.1/06.02.106-Data_decort_cb_node.md | 106 +++ .../06.02.107-Data_decort_cb_node_list.md | 170 ++++ ....02.108-Data_decort_cb_disk_replication.md | 128 +++ wiki/4.6.1/06.02.108-Data_decort_cb_vfpool.md | 65 ++ .../06.02.109-Data_decort_cb_vfpool_list.md | 124 +++ .../06.02.11-Data_decort_cb_pcidevice_list.md | 82 ++ ...2.110-Data-decort_cb_grid_get_diagnosis.md | 34 + ....110-Data-decort_cb_grid_post_diagnosis.md | 34 + .../06.02.12-Data_decort_cb_pcidevice.md | 46 + wiki/4.6.1/06.02.13-Data_decort_vgpu.md | 42 + wiki/4.6.1/06.02.14-Data_decort_cb_rg_list.md | 145 +++ .../06.02.15-Data_decort_cb_disk_list.md | 197 ++++ .../06.02.16-Data_decort_cb_vins_list.md | 142 +++ ...2.17-Data_decort_cb_account_audits_list.md | 41 + ...18-Data_decort_cb_account_computes_list.md | 124 +++ ...02.19-Data_decort_cb_account_disks_list.md | 86 ++ ...-Data_decort_cb_account_flipgroups_list.md | 111 +++ ...06.02.21-Data_decort_cb_account_rg_list.md | 150 ++++ ....02.22-Data_decort_cb_account_vins_list.md | 99 ++ .../06.02.23-Data_decort_cb_account_list.md | 121 +++ ....24-Data_decort_cb_account_list_deleted.md | 115 +++ .../06.02.25-Data_decort_cb_sep_config.md | 73 ++ ...06.02.26-Data_decort_cb_sep_consumption.md | 47 + .../06.02.27-Data_decort_cb_sep_disk_list.md | 53 ++ .../4.6.1/06.02.28-Data_decort_cb_sep_list.md | 112 +++ .../4.6.1/06.02.29-Data_decort_cb_sep_pool.md | 72 ++ wiki/4.6.1/06.02.30-Data_decort_cb_sep.md | 85 ++ wiki/4.6.1/06.02.31-Data_decort_cb_extnet.md | 98 ++ .../06.02.32-Data_decort_cb_extnet_list.md | 123 +++ wiki/4.6.1/06.02.33-Data_decort_cb_stack.md | 114 +++ .../06.02.34-Data_decort_cb_stack_list.md | 148 +++ .../06.02.35-Data_decort_cb_flipgroup.md | 62 ++ .../06.02.36-Data_decort_cb_flipgroup_list.md | 135 +++ wiki/4.6.1/06.02.37-Data_decort_cb_lb.md | 139 +++ wiki/4.6.1/06.02.38-Data_decort_cb_lb_list.md | 214 +++++ ...06.02.39-Data_decort_cb_lb_list_deleted.md | 201 +++++ ...6.02.40-Data_decort_cb_grid_list_emails.md | 44 + ...41-Data_decort_cb_grid_list_consumption.md | 63 ++ ....42-Data_decort_cb_grid_get_consumption.md | 70 ++ ...06.02.43-Data_decort_cb_grid_get_status.md | 33 + ....02.44-Data_decort_cb_vins_list_deleted.md | 124 +++ ...02.45-Data_decort_cb_vins_nat_rule_list.md | 45 + ....02.46-Data_decort_cb_vins_ext_net_list.md | 37 + .../06.02.47-Data_decort_cb_vins_ip_list.md | 38 + ...8-Data_decort_cb_vins_static_route_list.md | 37 + ....02.49-Data_decort_cb_vins_static_route.md | 44 + .../06.02.50-Data_decort_cb_vins_audits.md | 36 + ...ta_decort_cb_rg_affinity_group_computes.md | 55 ++ ...2-Data_decort_cb_rg_affinity_groups_get.md | 49 + ...-Data_decort_cb_rg_affinity_groups_list.md | 57 ++ .../06.02.54-Data_decort_cb_rg_audits.md | 45 + ...a_decort_cb_rg_resource_consumption_get.md | 70 ++ ..._decort_cb_rg_resource_consumption_list.md | 63 ++ .../4.6.1/06.02.57-Data_decort_cb_rg_usage.md | 63 ++ ...6.02.58-Data_decort_cb_rg_list_computes.md | 143 +++ ...06.02.59-Data_decort_cb_rg_list_deleted.md | 146 +++ .../06.02.60-Data_decort_cb_rg_list_lb.md | 205 +++++ .../06.02.61-Data_decort_cb_rg_list_pfw.md | 46 + .../06.02.62-Data_decort_cb_rg_list_vins.md | 102 +++ ....02.63-Data_decort_cb_disk_list_deleted.md | 179 ++++ ...06.02.64-Data_decort_cb_disk_list_types.md | 46 + ...Data_decort_cb_disk_list_types_detailed.md | 55 ++ ....66-Data_decort_cb_disk_list_unattached.md | 164 ++++ .../06.02.67-Data_decort_cb_disk_snapshot.md | 43 + ...02.68-Data_decort_cb_disk_snapshot_list.md | 36 + wiki/4.6.1/06.02.69-Data_decort_cb_audit.md | 47 + .../06.02.70-Data_decort_cb_audit_list.md | 87 ++ ....02.71-Data_decort_cb_audit_linked_jobs.md | 40 + wiki/4.6.1/06.02.72-Data_decort_cb_k8s.md | 143 +++ .../06.02.73-Data_decort_cb_k8s_computes.md | 49 + .../4.6.1/06.02.74-Data_decort_cb_k8s_list.md | 150 ++++ ...6.02.75-Data_decort_cb_k8s_list_deleted.md | 161 ++++ wiki/4.6.1/06.02.76-Data_decort_cb_k8s_wg.md | 70 ++ ....02.77-Data_decort_cb_k8s_wg_cloud_init.md | 41 + .../06.02.78-Data_decort_cb_k8s_wg_list.md | 63 ++ .../06.02.79-Data_decort_cb_k8ci_list.md | 98 ++ ....02.80-Data_decort_cb_k8ci_list_deleted.md | 86 ++ wiki/4.6.1/06.02.81-Data_decort_cb_k8ci.md | 44 + ...Data_decort_cb_kvmvm_affinity_relations.md | 43 + .../06.02.83-Data_decort_cb_kvmvm_audits.md | 36 + ....84-Data_decort_cb_kvmvm_boot_order_get.md | 32 + ...6.02.85-Data_decort_cb_kvmvm_get_audits.md | 39 + ...86-Data_decort_cb_kvmvm_get_console_url.md | 32 + .../06.02.87-Data_decort_cb_kvmvm_get_log.md | 38 + .../06.02.88-Data_decort_cb_kvmvm_list.md | 257 ++++++ ...02.89-Data_decort_cb_kvmvm_list_deleted.md | 243 +++++ ...ta_decort_cb_kvmvm_migrate_storage_info.md | 32 + ...91-Data_decort_cb_kvmvm_pci_device_list.md | 88 ++ .../06.02.92-Data_decort_cb_kvmvm_pfw_list.md | 44 + ....93-Data_decort_cb_kvmvm_snapshot_usage.md | 48 + ...2.94-Data_decort_cb_kvmvm_snapshot_list.md | 40 + ...06.02.95-Data_decort_cb_kvmvm_user_list.md | 44 + ...06.02.96-Data_decort_cb_kvmvm_vgpu_list.md | 94 ++ .../06.02.97-Data_decort_cb_extnet_default.md | 25 + ...Data_decort_cb_extnet_static_route_list.md | 37 + ...2.99-Data_decort_cb_extnet_static_route.md | 44 + ...-Terraform-провайдера-DECORT.md | 2 + ...овательская-группа-API.md | 1 + wiki/4.6.1/07.01.01-Resource_decort_kvmvm.md | 842 ++++++++++++++++++ .../07.01.02-Resource_decort_resgroup.md | 310 +++++++ wiki/4.6.1/07.01.03-Resource_decort_disk.md | 183 ++++ wiki/4.6.1/07.01.04-Resource_decort_vins.md | 471 ++++++++++ .../07.01.05-Resource_decort_snapshot.md | 50 ++ wiki/4.6.1/07.01.06-Resource_decort_k8s.md | 603 +++++++++++++ wiki/4.6.1/07.01.07-Resource_decort_k8s_wg.md | 177 ++++ .../07.01.08-Resource_decort_image_virtual.md | 89 ++ wiki/4.6.1/07.01.09-Resource_decort_image.md | 170 ++++ wiki/4.6.1/07.01.10-Resource_decort_pfw.md | 59 ++ .../4.6.1/07.01.11-Resource_decort_account.md | 228 +++++ .../07.01.12-Resource_decort_bservice.md | 156 ++++ ...07.01.13-Resource_decort_bservice_group.md | 254 ++++++ wiki/4.6.1/07.01.14-Resource_decort_lb.md | 205 +++++ .../07.01.15-Resource_decort_lb_frontend.md | 75 ++ ....01.16-Resource_decort_lb_frontend_bind.md | 73 ++ .../07.01.17-Resource_decort_lb_backend.md | 153 ++++ ...01.18-Resource_decort_lb_backend_server.md | 156 ++++ .../07.01.19-Resource_decort_disk_snapshot.md | 53 ++ .../07.01.20-Resource_decort_flipgroup.md | 98 ++ wiki/4.6.1/07.01.21-Resource_decort_k8s_cp.md | 367 ++++++++ ...01.22-Resource_decort_vins_static_route.md | 62 ++ ...esource_decort_image_from_blank_compute.md | 147 +++ ...esource_decort_image_from_platform_disk.md | 170 ++++ ....01.25-Resource_decort_disk_replication.md | 169 ++++ ...истративная-группа-API.md | 1 + .../07.02.01-Resource_decort_cb_pcidevice.md | 104 +++ .../07.02.02-Resource_decort_cb_sep_config.md | 404 +++++++++ wiki/4.6.1/07.02.03-Resource_decort_cb_sep.md | 548 ++++++++++++ ...07.02.04-Resource_decort_cb_cdrom_image.md | 187 ++++ .../07.02.06-Resource_decort_cb_account.md | 245 +++++ ....02.07-Resource_decort_cb_virtual_image.md | 168 ++++ .../07.02.08-Resource_decort_cb_image.md | 242 +++++ .../07.02.09-Resource_decort_cb_k8s_wg.md | 145 +++ .../07.02.10-Resource_decort_cb_k8s_cp.md | 265 ++++++ .../07.02.11-Resource_decort_cb_kvmvm.md | 774 ++++++++++++++++ .../4.6.1/07.02.12-Resource_decort_cb_vins.md | 516 +++++++++++ .../4.6.1/07.02.13-Resource_decort_cb_disk.md | 236 +++++ wiki/4.6.1/07.02.14-Resource_decort_cb_rg.md | 286 ++++++ .../07.02.15-Resource_decort_cb_extnet.md | 273 ++++++ .../07.02.16-Resource_decort_cb_flipgroup.md | 104 +++ wiki/4.6.1/07.02.17-Resource_decort_cb_lb.md | 214 +++++ .../07.02.18-Resource_decort_cb_lb_backend.md | 156 ++++ ...19-Resource_decort_cb_lb_backend_server.md | 153 ++++ ...07.02.20-Resource_decort_cb_lb_frontend.md | 69 ++ ....21-Resource_decort_cb_lb_frontend_bind.md | 74 ++ ...22-Resource_decort_cb_vins_static_route.md | 63 ++ ....02.23-Resource_decort_cb_disk_snapshot.md | 61 ++ .../4.6.1/07.02.24-Resource_decort_cb_k8ci.md | 127 +++ ...-Resource_decort_cb_extnet_static_route.md | 63 ++ ...urce_decort_cb_image_from_blank_compute.md | 215 +++++ ...urce_decort_cb_image_from_platform_disk.md | 230 +++++ .../4.6.1/07.02.28-Resource_decort_cb_user.md | 81 ++ ....29-Resource_decort_cb_disk_replication.md | 176 ++++ .../07.02.29-Resource_decort_cb_vfpool.md | 120 +++ .../08.-Полезные-советы.md | 55 ++ wiki/4.6.1/Home.md | 299 +++++++ wiki/Home.md | 1 + 597 files changed, 52797 insertions(+), 2118 deletions(-) create mode 100644 docs/data-sources/account_resource_consumption_get.md create mode 100644 docs/data-sources/account_resource_consumption_list.md create mode 100644 docs/data-sources/cb_account.md create mode 100644 docs/data-sources/cb_account_audits_list.md create mode 100644 docs/data-sources/cb_account_available_templates_list.md create mode 100644 docs/data-sources/cb_account_computes_list.md create mode 100644 docs/data-sources/cb_account_disks_list.md create mode 100644 docs/data-sources/cb_account_flipgroups_list.md create mode 100644 docs/data-sources/cb_account_list.md create mode 100644 docs/data-sources/cb_account_list_deleted.md create mode 100644 docs/data-sources/cb_account_resource_consumption_get.md create mode 100644 docs/data-sources/cb_account_resource_consumption_list.md create mode 100644 docs/data-sources/cb_account_rg_list.md create mode 100644 docs/data-sources/cb_account_vins_list.md create mode 100644 docs/data-sources/cb_audit.md create mode 100644 docs/data-sources/cb_audit_linked_jobs.md create mode 100644 docs/data-sources/cb_audit_list.md create mode 100644 docs/data-sources/cb_disk.md create mode 100644 docs/data-sources/cb_disk_list.md create mode 100644 docs/data-sources/cb_disk_list_deleted.md create mode 100644 docs/data-sources/cb_disk_list_types.md rename docs/data-sources/{image_list_stacks.md => cb_disk_list_types_detailed.md} (50%) create mode 100644 docs/data-sources/cb_disk_list_unattached.md create mode 100644 docs/data-sources/cb_disk_replication.md create mode 100644 docs/data-sources/cb_disk_snapshot.md create mode 100644 docs/data-sources/cb_disk_snapshot_list.md create mode 100644 docs/data-sources/cb_extnet.md create mode 100644 docs/data-sources/cb_extnet_default.md create mode 100644 docs/data-sources/cb_extnet_list.md create mode 100644 docs/data-sources/cb_extnet_static_route.md create mode 100644 docs/data-sources/cb_extnet_static_route_list.md create mode 100644 docs/data-sources/cb_flipgroup.md create mode 100644 docs/data-sources/cb_flipgroup_list.md rename docs/data-sources/{grid.md => cb_grid.md} (81%) create mode 100644 docs/data-sources/cb_grid_get_consumption.md rename docs/data-sources/{sep_pool.md => cb_grid_get_diagnosis.md} (71%) create mode 100644 docs/data-sources/cb_grid_get_status.md create mode 100644 docs/data-sources/cb_grid_list.md create mode 100644 docs/data-sources/cb_grid_list_consumption.md create mode 100644 docs/data-sources/cb_grid_list_emails.md create mode 100644 docs/data-sources/cb_grid_post_diagnosis.md create mode 100644 docs/data-sources/cb_grid_post_status.md rename docs/{resources/virtual_image.md => data-sources/cb_image.md} (78%) create mode 100644 docs/data-sources/cb_image_list.md create mode 100644 docs/data-sources/cb_image_list_stacks.md create mode 100644 docs/data-sources/cb_k8ci.md create mode 100644 docs/data-sources/cb_k8ci_list.md create mode 100644 docs/data-sources/cb_k8ci_list_deleted.md create mode 100644 docs/data-sources/cb_k8s.md create mode 100644 docs/data-sources/cb_k8s_computes.md create mode 100644 docs/data-sources/cb_k8s_list.md create mode 100644 docs/data-sources/cb_k8s_list_deleted.md create mode 100644 docs/data-sources/cb_k8s_wg.md create mode 100644 docs/data-sources/cb_k8s_wg_cloud_init.md create mode 100644 docs/data-sources/cb_k8s_wg_list.md create mode 100644 docs/data-sources/cb_kvmvm.md create mode 100644 docs/data-sources/cb_kvmvm_affinity_relations.md rename docs/data-sources/{grid_list.md => cb_kvmvm_audits.md} (60%) create mode 100644 docs/data-sources/cb_kvmvm_boot_order_get.md create mode 100644 docs/data-sources/cb_kvmvm_get_audits.md create mode 100644 docs/data-sources/cb_kvmvm_get_console_url.md create mode 100644 docs/data-sources/cb_kvmvm_get_log.md create mode 100644 docs/data-sources/cb_kvmvm_list.md create mode 100644 docs/data-sources/cb_kvmvm_list_deleted.md create mode 100644 docs/data-sources/cb_kvmvm_migrate_storage_info.md create mode 100644 docs/data-sources/cb_kvmvm_pci_device_list.md create mode 100644 docs/data-sources/cb_kvmvm_pfw_list.md create mode 100644 docs/data-sources/cb_kvmvm_snapshot_list.md create mode 100644 docs/data-sources/cb_kvmvm_snapshot_usage.md create mode 100644 docs/data-sources/cb_kvmvm_user_list.md create mode 100644 docs/data-sources/cb_kvmvm_vgpu_list.md create mode 100644 docs/data-sources/cb_lb.md create mode 100644 docs/data-sources/cb_lb_list.md create mode 100644 docs/data-sources/cb_lb_list_deleted.md create mode 100644 docs/data-sources/cb_node.md create mode 100644 docs/data-sources/cb_node_list.md rename docs/data-sources/{pcidevice.md => cb_pcidevice.md} (86%) rename docs/data-sources/{pcidevice_list.md => cb_pcidevice_list.md} (71%) create mode 100644 docs/data-sources/cb_rg.md create mode 100644 docs/data-sources/cb_rg_affinity_group_computes.md create mode 100644 docs/data-sources/cb_rg_affinity_groups_get.md create mode 100644 docs/data-sources/cb_rg_affinity_groups_list.md create mode 100644 docs/data-sources/cb_rg_audits.md create mode 100644 docs/data-sources/cb_rg_list.md create mode 100644 docs/data-sources/cb_rg_list_computes.md create mode 100644 docs/data-sources/cb_rg_list_deleted.md create mode 100644 docs/data-sources/cb_rg_list_lb.md create mode 100644 docs/data-sources/cb_rg_list_pfw.md create mode 100644 docs/data-sources/cb_rg_list_vins.md create mode 100644 docs/data-sources/cb_rg_resource_consumption_get.md create mode 100644 docs/data-sources/cb_rg_resource_consumption_list.md create mode 100644 docs/data-sources/cb_rg_usage.md create mode 100644 docs/data-sources/cb_sep.md rename docs/data-sources/{sep_config.md => cb_sep_config.md} (83%) rename docs/data-sources/{sep_consumption.md => cb_sep_consumption.md} (90%) rename docs/data-sources/{sep_disk_list.md => cb_sep_disk_list.md} (83%) rename docs/data-sources/{sep_list.md => cb_sep_list.md} (62%) create mode 100644 docs/data-sources/cb_sep_pool.md create mode 100644 docs/data-sources/cb_stack.md create mode 100644 docs/data-sources/cb_stack_list.md create mode 100644 docs/data-sources/cb_user.md create mode 100644 docs/data-sources/cb_user_get_audit.md create mode 100644 docs/data-sources/cb_user_list.md create mode 100644 docs/data-sources/cb_vfpool.md create mode 100644 docs/data-sources/cb_vfpool_list.md create mode 100644 docs/data-sources/cb_vins.md create mode 100644 docs/data-sources/cb_vins_audits.md create mode 100644 docs/data-sources/cb_vins_ext_net_list.md create mode 100644 docs/data-sources/cb_vins_ip_list.md create mode 100644 docs/data-sources/cb_vins_list.md create mode 100644 docs/data-sources/cb_vins_list_deleted.md create mode 100644 docs/data-sources/cb_vins_nat_rule_list.md create mode 100644 docs/data-sources/cb_vins_static_route.md create mode 100644 docs/data-sources/cb_vins_static_route_list.md create mode 100644 docs/data-sources/disk_list_deleted.md create mode 100644 docs/data-sources/disk_list_types.md create mode 100644 docs/data-sources/disk_list_types_detailed.md create mode 100644 docs/data-sources/disk_list_unattached.md create mode 100644 docs/data-sources/disk_replication.md create mode 100644 docs/data-sources/disk_snapshot.md create mode 100644 docs/data-sources/disk_snapshot_list.md create mode 100644 docs/data-sources/flipgroup.md create mode 100644 docs/data-sources/flipgroup_list.md create mode 100644 docs/data-sources/k8ci_list.md create mode 100644 docs/data-sources/k8s.md create mode 100644 docs/data-sources/k8s_computes.md create mode 100644 docs/data-sources/k8s_list.md create mode 100644 docs/data-sources/k8s_list_deleted.md create mode 100644 docs/data-sources/k8s_wg.md create mode 100644 docs/data-sources/k8s_wg_cloud_init.md create mode 100644 docs/data-sources/k8s_wg_list.md create mode 100644 docs/data-sources/kvmvm_audits.md create mode 100644 docs/data-sources/kvmvm_get_audits.md create mode 100644 docs/data-sources/kvmvm_get_console_url.md create mode 100644 docs/data-sources/kvmvm_get_log.md create mode 100644 docs/data-sources/kvmvm_list.md create mode 100644 docs/data-sources/kvmvm_list_deleted.md create mode 100644 docs/data-sources/kvmvm_pci_device_list.md create mode 100644 docs/data-sources/kvmvm_pfw_list.md rename docs/data-sources/{sep.md => kvmvm_snapshot_usage.md} (53%) create mode 100644 docs/data-sources/kvmvm_user_list.md create mode 100644 docs/data-sources/kvmvm_vgpu_list.md create mode 100644 docs/data-sources/rg_affinity_group_computes.md create mode 100644 docs/data-sources/rg_affinity_groups_get.md create mode 100644 docs/data-sources/rg_affinity_groups_list.md create mode 100644 docs/data-sources/rg_audits.md create mode 100644 docs/data-sources/rg_list_computes.md create mode 100644 docs/data-sources/rg_list_deleted.md create mode 100644 docs/data-sources/rg_list_lb.md create mode 100644 docs/data-sources/rg_list_pfw.md create mode 100644 docs/data-sources/rg_list_vins.md create mode 100644 docs/data-sources/rg_resource_consumption_get.md create mode 100644 docs/data-sources/rg_resource_consumption_list.md create mode 100644 docs/data-sources/rg_usage.md create mode 100644 docs/data-sources/stack.md create mode 100644 docs/data-sources/stack_list.md create mode 100644 docs/data-sources/vfpool.md create mode 100644 docs/data-sources/vfpool_list.md delete mode 100644 docs/data-sources/vgpu.md create mode 100644 docs/data-sources/vins_audits.md create mode 100644 docs/data-sources/vins_ext_net_list.md create mode 100644 docs/data-sources/vins_ip_list.md create mode 100644 docs/data-sources/vins_list_deleted.md create mode 100644 docs/data-sources/vins_nat_rule_list.md create mode 100644 docs/data-sources/vins_static_route.md create mode 100644 docs/data-sources/vins_static_route_list.md create mode 100644 docs/resources/cb_account.md rename docs/resources/{cdrom_image.md => cb_cdrom_image.md} (80%) create mode 100644 docs/resources/cb_disk.md create mode 100644 docs/resources/cb_disk_replication.md create mode 100644 docs/resources/cb_disk_snapshot.md create mode 100644 docs/resources/cb_extnet.md rename docs/resources/{kubernetes_wg.md => cb_extnet_static_route.md} (57%) create mode 100644 docs/resources/cb_flipgroup.md create mode 100644 docs/resources/cb_image.md create mode 100644 docs/resources/cb_image_from_blank_compute.md create mode 100644 docs/resources/cb_image_from_platform_disk.md create mode 100644 docs/resources/cb_k8ci.md create mode 100644 docs/resources/cb_k8s_cp.md create mode 100644 docs/resources/cb_k8s_wg.md create mode 100644 docs/resources/cb_kvmvm.md create mode 100644 docs/resources/cb_lb.md create mode 100644 docs/resources/cb_lb_backend.md create mode 100644 docs/resources/cb_lb_backend_server.md create mode 100644 docs/resources/cb_lb_frontend.md create mode 100644 docs/resources/cb_lb_frontend_bind.md rename docs/resources/{pcidevice.md => cb_pcidevice.md} (83%) create mode 100644 docs/resources/cb_rg.md create mode 100644 docs/resources/cb_sep.md rename docs/resources/{sep_config.md => cb_sep_config.md} (71%) create mode 100644 docs/resources/cb_user.md create mode 100644 docs/resources/cb_vfpool.md create mode 100644 docs/resources/cb_vins.md create mode 100644 docs/resources/cb_vins_static_route.md create mode 100644 docs/resources/cb_virtual_image.md create mode 100644 docs/resources/disk_replication.md create mode 100644 docs/resources/disk_snapshot.md create mode 100644 docs/resources/flipgroup.md create mode 100644 docs/resources/image_from_blank_compute.md create mode 100644 docs/resources/image_from_platform_disk.md create mode 100644 docs/resources/k8s.md create mode 100644 docs/resources/k8s_cp.md create mode 100644 docs/resources/k8s_wg.md delete mode 100644 docs/resources/kubernetes.md delete mode 100644 docs/resources/sep.md rename docs/resources/{delete_images.md => vins_static_route.md} (63%) create mode 100644 samples/cloudbroker/grid/decort_cb_grid_get_diagnosis/main.tf create mode 100644 samples/cloudbroker/grid/decort_cb_grid_post_diagnosis/main.tf create mode 100644 wiki/.gitignore create mode 100644 wiki/4.5.2/06.02.110-Data-decort_cb_grid_get_diagnosis.md create mode 100644 wiki/4.5.2/06.02.110-Data-decort_cb_grid_post_diagnosis.md create mode 100644 wiki/4.5.3/06.02.110-Data-decort_cb_grid_get_diagnosis.md create mode 100644 wiki/4.5.3/06.02.110-Data-decort_cb_grid_post_diagnosis.md rename wiki/4.6.0/{06.02.110-Data_decort_cb_disk_replication.md => 06.02.108-Data_decort_cb_disk_replication.md} (100%) create mode 100644 wiki/4.6.0/06.02.110-Data-decort_cb_grid_get_diagnosis.md create mode 100644 wiki/4.6.0/06.02.110-Data-decort_cb_grid_post_diagnosis.md create mode 100644 wiki/4.6.1/01.-Введение.md create mode 100644 wiki/4.6.1/02.-Пример-работы.md create mode 100644 wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT.md create mode 100644 wiki/4.6.1/04.-Начало-работы-с-terraform-провайдером-DECORT.md create mode 100644 wiki/4.6.1/04.01-Установка-Terraform-провайдера-DECORT.md create mode 100644 wiki/4.6.1/04.02-Инициализация-Terraform-провайдера-DECORT.md create mode 100644 wiki/4.6.1/04.03-Переключение-между-группами-API.md create mode 100644 wiki/4.6.1/04.04-Получение-gid-или-grid_id.md create mode 100644 wiki/4.6.1/04.05-Сборка-terraform-провайдера-в-образ.md create mode 100644 wiki/4.6.1/05.-Работа-с-terraform.md create mode 100644 wiki/4.6.1/05.01-Импортирование-ресурсов.md create mode 100644 wiki/4.6.1/05.02-Работа-с-таймаутами.md create mode 100644 wiki/4.6.1/05.03-Восстановление-ресурсов.md create mode 100644 wiki/4.6.1/05.04-Массовое-создание-ресурсов.-Мета-аргументы.md create mode 100644 wiki/4.6.1/05.05-Удаление-ресурсов.md create mode 100644 wiki/4.6.1/05.06-Установка-Terraform.md create mode 100644 wiki/4.6.1/05.07-Миграция-k8s-кластеров-на-версию-4.2.0.md create mode 100644 wiki/4.6.1/06.-Data-source-функции-Terraform-провайдера-DECORT.md create mode 100644 wiki/4.6.1/06.01-Пользовательская-группа-API.md create mode 100644 wiki/4.6.1/06.01.01-Data_decort_kvmvm.md create mode 100644 wiki/4.6.1/06.01.02-Data_decort_resgroup.md create mode 100644 wiki/4.6.1/06.01.03-Data_decort_disk.md create mode 100644 wiki/4.6.1/06.01.04-Data_decort_vins.md create mode 100644 wiki/4.6.1/06.01.05-Data_decort_account.md create mode 100644 wiki/4.6.1/06.01.06-Data_decort_image_list.md create mode 100644 wiki/4.6.1/06.01.07-Data_decort_image.md create mode 100644 wiki/4.6.1/06.01.08-Data_decort_locations_list.md create mode 100644 wiki/4.6.1/06.01.09-Data_decort_location_url.md create mode 100644 wiki/4.6.1/06.01.11-Data_decort_snapshot_list.md create mode 100644 wiki/4.6.1/06.01.12-Data_decort_rg_list.md create mode 100644 wiki/4.6.1/06.01.13-Data_decort_disk_list.md create mode 100644 wiki/4.6.1/06.01.14-Data_decort_vins_list.md create mode 100644 wiki/4.6.1/06.01.15-Data_decort_extnet_list.md create mode 100644 wiki/4.6.1/06.01.16-Data_decort_extnet_default.md create mode 100644 wiki/4.6.1/06.01.17-Data_decort_extnet_computes_list.md create mode 100644 wiki/4.6.1/06.01.18-Data_decort_extnet.md create mode 100644 wiki/4.6.1/06.01.19-Data_decort_account_audits_list.md create mode 100644 wiki/4.6.1/06.01.20-Data_decort_account_computes_list.md create mode 100644 wiki/4.6.1/06.01.21-Data_decort_account_consumed_units.md create mode 100644 wiki/4.6.1/06.01.22-Data_decort_account_consumed_units_by_type.md create mode 100644 wiki/4.6.1/06.01.23-Data_decort_account_disks_list.md create mode 100644 wiki/4.6.1/06.01.24-Data_decort_account_flipgroups_list.md create mode 100644 wiki/4.6.1/06.01.25-Data_decort_account_reserved_units.md create mode 100644 wiki/4.6.1/06.01.26-Data_decort_account_rg_list.md create mode 100644 wiki/4.6.1/06.01.27-Data_decort_account_templates_list.md create mode 100644 wiki/4.6.1/06.01.28-Data_decort_account_vins_list.md create mode 100644 wiki/4.6.1/06.01.29-Data_decort_account_list.md create mode 100644 wiki/4.6.1/06.01.30-Data_decort_account_deleted_list.md create mode 100644 wiki/4.6.1/06.01.31-Data_decort_bservice_list.md create mode 100644 wiki/4.6.1/06.01.32-Data_decort_bservice_deleted_list.md create mode 100644 wiki/4.6.1/06.01.33-Data_decort_bservice_snapshot_list.md create mode 100644 wiki/4.6.1/06.01.34-Data_decort_bservice.md create mode 100644 wiki/4.6.1/06.01.35-Data_decort_bservice_group.md create mode 100644 wiki/4.6.1/06.01.36-Data_decort_lb.md create mode 100644 wiki/4.6.1/06.01.37-Data_decort_lb_list.md create mode 100644 wiki/4.6.1/06.01.38-Data_decort_lb_list_deleted.md create mode 100644 wiki/4.6.1/06.01.39-Data_decort_disk_list_types.md create mode 100644 wiki/4.6.1/06.01.40-Data_decort_disk_list_types_detailed.md create mode 100644 wiki/4.6.1/06.01.41-Data_decort_disk_list_deleted.md create mode 100644 wiki/4.6.1/06.01.42-Data_decort_disk_list_unattached.md create mode 100644 wiki/4.6.1/06.01.43-Data_decort_disk_snapshot_list.md create mode 100644 wiki/4.6.1/06.01.44-Data_decort_disk_snapshot.md create mode 100644 wiki/4.6.1/06.01.45-Data_decort_k8s.md create mode 100644 wiki/4.6.1/06.01.46-Data_decort_k8s_list.md create mode 100644 wiki/4.6.1/06.01.47-Data_decort_k8s_list_deleted.md create mode 100644 wiki/4.6.1/06.01.48-Data_decort_k8s_wg.md create mode 100644 wiki/4.6.1/06.01.49-Data_decort_k8s_wg_list.md create mode 100644 wiki/4.6.1/06.01.50-Data_decort_vins_audits.md create mode 100644 wiki/4.6.1/06.01.51-Data_decort_vins_ext_net_list.md create mode 100644 wiki/4.6.1/06.01.52-Data_decort_vins_ip_list.md create mode 100644 wiki/4.6.1/06.01.53-Data_decort_vins_list_deleted.md create mode 100644 wiki/4.6.1/06.01.54-Data_decort_vins_nat_rule_list.md create mode 100644 wiki/4.6.1/06.01.55-Data_decort_kvmvm_audits.md create mode 100644 wiki/4.6.1/06.01.56-Data_decort_kvmvm_get_audits.md create mode 100644 wiki/4.6.1/06.01.57-Data_decort_kvmvm_get_console_url.md create mode 100644 wiki/4.6.1/06.01.58-Data_decort_kvmvm_get_log.md create mode 100644 wiki/4.6.1/06.01.59-Data_decort_kvmvm_list.md create mode 100644 wiki/4.6.1/06.01.60-Data_decort_kvmvm_pfw_list.md create mode 100644 wiki/4.6.1/06.01.61-Data_decort_kvmvm_user_list.md create mode 100644 wiki/4.6.1/06.01.62-Data_decort_rg_list.md create mode 100644 wiki/4.6.1/06.01.63-Data_decort_rg_affinity_group_computes.md create mode 100644 wiki/4.6.1/06.01.64-Data_decort_rg_affinity_groups_list.md create mode 100644 wiki/4.6.1/06.01.65-Data_decort_rg_affinity_groups_get.md create mode 100644 wiki/4.6.1/06.01.66-Data_decort_rg_audits.md create mode 100644 wiki/4.6.1/06.01.67-Data_decort_rg_list_computes.md create mode 100644 wiki/4.6.1/06.01.68-Data_decort_rg_list_deleted.md create mode 100644 wiki/4.6.1/06.01.69-Data_decort_rg_list_lb.md create mode 100644 wiki/4.6.1/06.01.70-Data_decort_rg_list_pfw.md create mode 100644 wiki/4.6.1/06.01.71-Data_decort_rg_list_vins.md create mode 100644 wiki/4.6.1/06.01.72-Data_decort_rg_usage.md create mode 100644 wiki/4.6.1/06.01.73-Data_decort_kvmvm_snapshot_usage.md create mode 100644 wiki/4.6.1/06.01.74-Data _decort_k8s_computes.md create mode 100644 wiki/4.6.1/06.01.75-Data_decort_flipgroup.md create mode 100644 wiki/4.6.1/06.01.75-Data_decort_flipgroup_list.md create mode 100644 wiki/4.6.1/06.01.76-Data_decort_k8ci_list.md create mode 100644 wiki/4.6.1/06.01.77-Data_decort_vins_static_route.md create mode 100644 wiki/4.6.1/06.01.78-Data_decort_vins_static_route_list.md create mode 100644 wiki/4.6.1/06.01.79-Data_decort_account_resource_consumption_get.md create mode 100644 wiki/4.6.1/06.01.80-Data_decort_account_resource_consumption_list.md create mode 100644 wiki/4.6.1/06.01.81-Data_decort_k8s_wg_cloud_init.md create mode 100644 wiki/4.6.1/06.01.82-Data_decort_kvmvm_list_deleted.md create mode 100644 wiki/4.6.1/06.01.83-Data_decort_kvmvm_pci_device_list.md create mode 100644 wiki/4.6.1/06.01.84-Data_decort_kvmvm_vgpu_list.md create mode 100644 wiki/4.6.1/06.01.85-Data_decort_rg_resource_consumption_get.md create mode 100644 wiki/4.6.1/06.01.86-Data_decort_rg_resource_consumption_list.md create mode 100644 wiki/4.6.1/06.01.87-Data_decort_disk_replication.md create mode 100644 wiki/4.6.1/06.01.87-Data_decort_vfpool.md create mode 100644 wiki/4.6.1/06.01.88-Data_decort_vfpool_list.md create mode 100644 wiki/4.6.1/06.01.89-Data_decort_stack.md create mode 100644 wiki/4.6.1/06.01.90-Data_decort_stack_list.md create mode 100644 wiki/4.6.1/06.02-Административная-группа-API.md create mode 100644 wiki/4.6.1/06.02.01-Data_decort_cb_kvmvm.md create mode 100644 wiki/4.6.1/06.02.02-Data_decort_cb_rg.md create mode 100644 wiki/4.6.1/06.02.03-Data_decort_cb_disk.md create mode 100644 wiki/4.6.1/06.02.04-Data_decort_cb_vins.md create mode 100644 wiki/4.6.1/06.02.05-Data_decort_cb_account.md create mode 100644 wiki/4.6.1/06.02.06-Data_decort_cb_image_list.md create mode 100644 wiki/4.6.1/06.02.07-Data_decort_cb_image.md create mode 100644 wiki/4.6.1/06.02.08-Data_decort_cb_image_list_stacks.md create mode 100644 wiki/4.6.1/06.02.09-Data_decort_cb_grid_list.md create mode 100644 wiki/4.6.1/06.02.10-Data_decort_cb_grid.md create mode 100644 wiki/4.6.1/06.02.100-Data_decort_cb_account_resource_consumption_get.md create mode 100644 wiki/4.6.1/06.02.101-Data_decort_cb_account_resource_consumption_list.md create mode 100644 wiki/4.6.1/06.02.102-Data_decort_cb_account_available_templates_list.md create mode 100644 wiki/4.6.1/06.02.103-Data_decort_cb_user.md create mode 100644 wiki/4.6.1/06.02.104-Data_decort_cb_user_list.md create mode 100644 wiki/4.6.1/06.02.105-Data_decort_cb_user_get_audit.md create mode 100644 wiki/4.6.1/06.02.106-Data_decort_cb_node.md create mode 100644 wiki/4.6.1/06.02.107-Data_decort_cb_node_list.md create mode 100644 wiki/4.6.1/06.02.108-Data_decort_cb_disk_replication.md create mode 100644 wiki/4.6.1/06.02.108-Data_decort_cb_vfpool.md create mode 100644 wiki/4.6.1/06.02.109-Data_decort_cb_vfpool_list.md create mode 100644 wiki/4.6.1/06.02.11-Data_decort_cb_pcidevice_list.md create mode 100644 wiki/4.6.1/06.02.110-Data-decort_cb_grid_get_diagnosis.md create mode 100644 wiki/4.6.1/06.02.110-Data-decort_cb_grid_post_diagnosis.md create mode 100644 wiki/4.6.1/06.02.12-Data_decort_cb_pcidevice.md create mode 100644 wiki/4.6.1/06.02.13-Data_decort_vgpu.md create mode 100644 wiki/4.6.1/06.02.14-Data_decort_cb_rg_list.md create mode 100644 wiki/4.6.1/06.02.15-Data_decort_cb_disk_list.md create mode 100644 wiki/4.6.1/06.02.16-Data_decort_cb_vins_list.md create mode 100644 wiki/4.6.1/06.02.17-Data_decort_cb_account_audits_list.md create mode 100644 wiki/4.6.1/06.02.18-Data_decort_cb_account_computes_list.md create mode 100644 wiki/4.6.1/06.02.19-Data_decort_cb_account_disks_list.md create mode 100644 wiki/4.6.1/06.02.20-Data_decort_cb_account_flipgroups_list.md create mode 100644 wiki/4.6.1/06.02.21-Data_decort_cb_account_rg_list.md create mode 100644 wiki/4.6.1/06.02.22-Data_decort_cb_account_vins_list.md create mode 100644 wiki/4.6.1/06.02.23-Data_decort_cb_account_list.md create mode 100644 wiki/4.6.1/06.02.24-Data_decort_cb_account_list_deleted.md create mode 100644 wiki/4.6.1/06.02.25-Data_decort_cb_sep_config.md create mode 100644 wiki/4.6.1/06.02.26-Data_decort_cb_sep_consumption.md create mode 100644 wiki/4.6.1/06.02.27-Data_decort_cb_sep_disk_list.md create mode 100644 wiki/4.6.1/06.02.28-Data_decort_cb_sep_list.md create mode 100644 wiki/4.6.1/06.02.29-Data_decort_cb_sep_pool.md create mode 100644 wiki/4.6.1/06.02.30-Data_decort_cb_sep.md create mode 100644 wiki/4.6.1/06.02.31-Data_decort_cb_extnet.md create mode 100644 wiki/4.6.1/06.02.32-Data_decort_cb_extnet_list.md create mode 100644 wiki/4.6.1/06.02.33-Data_decort_cb_stack.md create mode 100644 wiki/4.6.1/06.02.34-Data_decort_cb_stack_list.md create mode 100644 wiki/4.6.1/06.02.35-Data_decort_cb_flipgroup.md create mode 100644 wiki/4.6.1/06.02.36-Data_decort_cb_flipgroup_list.md create mode 100644 wiki/4.6.1/06.02.37-Data_decort_cb_lb.md create mode 100644 wiki/4.6.1/06.02.38-Data_decort_cb_lb_list.md create mode 100644 wiki/4.6.1/06.02.39-Data_decort_cb_lb_list_deleted.md create mode 100644 wiki/4.6.1/06.02.40-Data_decort_cb_grid_list_emails.md create mode 100644 wiki/4.6.1/06.02.41-Data_decort_cb_grid_list_consumption.md create mode 100644 wiki/4.6.1/06.02.42-Data_decort_cb_grid_get_consumption.md create mode 100644 wiki/4.6.1/06.02.43-Data_decort_cb_grid_get_status.md create mode 100644 wiki/4.6.1/06.02.44-Data_decort_cb_vins_list_deleted.md create mode 100644 wiki/4.6.1/06.02.45-Data_decort_cb_vins_nat_rule_list.md create mode 100644 wiki/4.6.1/06.02.46-Data_decort_cb_vins_ext_net_list.md create mode 100644 wiki/4.6.1/06.02.47-Data_decort_cb_vins_ip_list.md create mode 100644 wiki/4.6.1/06.02.48-Data_decort_cb_vins_static_route_list.md create mode 100644 wiki/4.6.1/06.02.49-Data_decort_cb_vins_static_route.md create mode 100644 wiki/4.6.1/06.02.50-Data_decort_cb_vins_audits.md create mode 100644 wiki/4.6.1/06.02.51-Data_decort_cb_rg_affinity_group_computes.md create mode 100644 wiki/4.6.1/06.02.52-Data_decort_cb_rg_affinity_groups_get.md create mode 100644 wiki/4.6.1/06.02.53-Data_decort_cb_rg_affinity_groups_list.md create mode 100644 wiki/4.6.1/06.02.54-Data_decort_cb_rg_audits.md create mode 100644 wiki/4.6.1/06.02.55-Data_decort_cb_rg_resource_consumption_get.md create mode 100644 wiki/4.6.1/06.02.56-Data_decort_cb_rg_resource_consumption_list.md create mode 100644 wiki/4.6.1/06.02.57-Data_decort_cb_rg_usage.md create mode 100644 wiki/4.6.1/06.02.58-Data_decort_cb_rg_list_computes.md create mode 100644 wiki/4.6.1/06.02.59-Data_decort_cb_rg_list_deleted.md create mode 100644 wiki/4.6.1/06.02.60-Data_decort_cb_rg_list_lb.md create mode 100644 wiki/4.6.1/06.02.61-Data_decort_cb_rg_list_pfw.md create mode 100644 wiki/4.6.1/06.02.62-Data_decort_cb_rg_list_vins.md create mode 100644 wiki/4.6.1/06.02.63-Data_decort_cb_disk_list_deleted.md create mode 100644 wiki/4.6.1/06.02.64-Data_decort_cb_disk_list_types.md create mode 100644 wiki/4.6.1/06.02.65-Data_decort_cb_disk_list_types_detailed.md create mode 100644 wiki/4.6.1/06.02.66-Data_decort_cb_disk_list_unattached.md create mode 100644 wiki/4.6.1/06.02.67-Data_decort_cb_disk_snapshot.md create mode 100644 wiki/4.6.1/06.02.68-Data_decort_cb_disk_snapshot_list.md create mode 100644 wiki/4.6.1/06.02.69-Data_decort_cb_audit.md create mode 100644 wiki/4.6.1/06.02.70-Data_decort_cb_audit_list.md create mode 100644 wiki/4.6.1/06.02.71-Data_decort_cb_audit_linked_jobs.md create mode 100644 wiki/4.6.1/06.02.72-Data_decort_cb_k8s.md create mode 100644 wiki/4.6.1/06.02.73-Data_decort_cb_k8s_computes.md create mode 100644 wiki/4.6.1/06.02.74-Data_decort_cb_k8s_list.md create mode 100644 wiki/4.6.1/06.02.75-Data_decort_cb_k8s_list_deleted.md create mode 100644 wiki/4.6.1/06.02.76-Data_decort_cb_k8s_wg.md create mode 100644 wiki/4.6.1/06.02.77-Data_decort_cb_k8s_wg_cloud_init.md create mode 100644 wiki/4.6.1/06.02.78-Data_decort_cb_k8s_wg_list.md create mode 100644 wiki/4.6.1/06.02.79-Data_decort_cb_k8ci_list.md create mode 100644 wiki/4.6.1/06.02.80-Data_decort_cb_k8ci_list_deleted.md create mode 100644 wiki/4.6.1/06.02.81-Data_decort_cb_k8ci.md create mode 100644 wiki/4.6.1/06.02.82-Data_decort_cb_kvmvm_affinity_relations.md create mode 100644 wiki/4.6.1/06.02.83-Data_decort_cb_kvmvm_audits.md create mode 100644 wiki/4.6.1/06.02.84-Data_decort_cb_kvmvm_boot_order_get.md create mode 100644 wiki/4.6.1/06.02.85-Data_decort_cb_kvmvm_get_audits.md create mode 100644 wiki/4.6.1/06.02.86-Data_decort_cb_kvmvm_get_console_url.md create mode 100644 wiki/4.6.1/06.02.87-Data_decort_cb_kvmvm_get_log.md create mode 100644 wiki/4.6.1/06.02.88-Data_decort_cb_kvmvm_list.md create mode 100644 wiki/4.6.1/06.02.89-Data_decort_cb_kvmvm_list_deleted.md create mode 100644 wiki/4.6.1/06.02.90-Data_decort_cb_kvmvm_migrate_storage_info.md create mode 100644 wiki/4.6.1/06.02.91-Data_decort_cb_kvmvm_pci_device_list.md create mode 100644 wiki/4.6.1/06.02.92-Data_decort_cb_kvmvm_pfw_list.md create mode 100644 wiki/4.6.1/06.02.93-Data_decort_cb_kvmvm_snapshot_usage.md create mode 100644 wiki/4.6.1/06.02.94-Data_decort_cb_kvmvm_snapshot_list.md create mode 100644 wiki/4.6.1/06.02.95-Data_decort_cb_kvmvm_user_list.md create mode 100644 wiki/4.6.1/06.02.96-Data_decort_cb_kvmvm_vgpu_list.md create mode 100644 wiki/4.6.1/06.02.97-Data_decort_cb_extnet_default.md create mode 100644 wiki/4.6.1/06.02.98-Data_decort_cb_extnet_static_route_list.md create mode 100644 wiki/4.6.1/06.02.99-Data_decort_cb_extnet_static_route.md create mode 100644 wiki/4.6.1/07.-Resource-функции-Terraform-провайдера-DECORT.md create mode 100644 wiki/4.6.1/07.01-Пользовательская-группа-API.md create mode 100644 wiki/4.6.1/07.01.01-Resource_decort_kvmvm.md create mode 100644 wiki/4.6.1/07.01.02-Resource_decort_resgroup.md create mode 100644 wiki/4.6.1/07.01.03-Resource_decort_disk.md create mode 100644 wiki/4.6.1/07.01.04-Resource_decort_vins.md create mode 100644 wiki/4.6.1/07.01.05-Resource_decort_snapshot.md create mode 100644 wiki/4.6.1/07.01.06-Resource_decort_k8s.md create mode 100644 wiki/4.6.1/07.01.07-Resource_decort_k8s_wg.md create mode 100644 wiki/4.6.1/07.01.08-Resource_decort_image_virtual.md create mode 100644 wiki/4.6.1/07.01.09-Resource_decort_image.md create mode 100644 wiki/4.6.1/07.01.10-Resource_decort_pfw.md create mode 100644 wiki/4.6.1/07.01.11-Resource_decort_account.md create mode 100644 wiki/4.6.1/07.01.12-Resource_decort_bservice.md create mode 100644 wiki/4.6.1/07.01.13-Resource_decort_bservice_group.md create mode 100644 wiki/4.6.1/07.01.14-Resource_decort_lb.md create mode 100644 wiki/4.6.1/07.01.15-Resource_decort_lb_frontend.md create mode 100644 wiki/4.6.1/07.01.16-Resource_decort_lb_frontend_bind.md create mode 100644 wiki/4.6.1/07.01.17-Resource_decort_lb_backend.md create mode 100644 wiki/4.6.1/07.01.18-Resource_decort_lb_backend_server.md create mode 100644 wiki/4.6.1/07.01.19-Resource_decort_disk_snapshot.md create mode 100644 wiki/4.6.1/07.01.20-Resource_decort_flipgroup.md create mode 100644 wiki/4.6.1/07.01.21-Resource_decort_k8s_cp.md create mode 100644 wiki/4.6.1/07.01.22-Resource_decort_vins_static_route.md create mode 100644 wiki/4.6.1/07.01.23-Resource_decort_image_from_blank_compute.md create mode 100644 wiki/4.6.1/07.01.24-Resource_decort_image_from_platform_disk.md create mode 100644 wiki/4.6.1/07.01.25-Resource_decort_disk_replication.md create mode 100644 wiki/4.6.1/07.02-Административная-группа-API.md create mode 100644 wiki/4.6.1/07.02.01-Resource_decort_cb_pcidevice.md create mode 100644 wiki/4.6.1/07.02.02-Resource_decort_cb_sep_config.md create mode 100644 wiki/4.6.1/07.02.03-Resource_decort_cb_sep.md create mode 100644 wiki/4.6.1/07.02.04-Resource_decort_cb_cdrom_image.md create mode 100644 wiki/4.6.1/07.02.06-Resource_decort_cb_account.md create mode 100644 wiki/4.6.1/07.02.07-Resource_decort_cb_virtual_image.md create mode 100644 wiki/4.6.1/07.02.08-Resource_decort_cb_image.md create mode 100644 wiki/4.6.1/07.02.09-Resource_decort_cb_k8s_wg.md create mode 100644 wiki/4.6.1/07.02.10-Resource_decort_cb_k8s_cp.md create mode 100644 wiki/4.6.1/07.02.11-Resource_decort_cb_kvmvm.md create mode 100644 wiki/4.6.1/07.02.12-Resource_decort_cb_vins.md create mode 100644 wiki/4.6.1/07.02.13-Resource_decort_cb_disk.md create mode 100644 wiki/4.6.1/07.02.14-Resource_decort_cb_rg.md create mode 100644 wiki/4.6.1/07.02.15-Resource_decort_cb_extnet.md create mode 100644 wiki/4.6.1/07.02.16-Resource_decort_cb_flipgroup.md create mode 100644 wiki/4.6.1/07.02.17-Resource_decort_cb_lb.md create mode 100644 wiki/4.6.1/07.02.18-Resource_decort_cb_lb_backend.md create mode 100644 wiki/4.6.1/07.02.19-Resource_decort_cb_lb_backend_server.md create mode 100644 wiki/4.6.1/07.02.20-Resource_decort_cb_lb_frontend.md create mode 100644 wiki/4.6.1/07.02.21-Resource_decort_cb_lb_frontend_bind.md create mode 100644 wiki/4.6.1/07.02.22-Resource_decort_cb_vins_static_route.md create mode 100644 wiki/4.6.1/07.02.23-Resource_decort_cb_disk_snapshot.md create mode 100644 wiki/4.6.1/07.02.24-Resource_decort_cb_k8ci.md create mode 100644 wiki/4.6.1/07.02.25-Resource_decort_cb_extnet_static_route.md create mode 100644 wiki/4.6.1/07.02.26-Resource_decort_cb_image_from_blank_compute.md create mode 100644 wiki/4.6.1/07.02.27-Resource_decort_cb_image_from_platform_disk.md create mode 100644 wiki/4.6.1/07.02.28-Resource_decort_cb_user.md create mode 100644 wiki/4.6.1/07.02.29-Resource_decort_cb_disk_replication.md create mode 100644 wiki/4.6.1/07.02.29-Resource_decort_cb_vfpool.md create mode 100644 wiki/4.6.1/08.-Полезные-советы.md create mode 100644 wiki/4.6.1/Home.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 765ecda..4f3e248 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,128 +1,16 @@ -## Version 4.6.0 - -### Feature - -#### general -- Add sort_by optional string field for the below data sources in cloudapi and cloudbroker: - -| group | cloudapi data sources | cloudbroker data sources | -|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| account | decort_account_computes_list
decort_account_deleted_list
decort_account_disks_list
decort_account_list
decort_account_rg_list
decort_account_templates_list
decort_account_vins_list | decort_cb_account_computes_list
decort_cb_account_disks_list
decort_cb_account_flipgroups_list
decort_cb_account_list
decort_cb_account_list_deleted
decort_cb_account_rg_list
decort_cb_account_vins_list | -| audit | - | decort_cb_audit_list | -| bservice | decort_bservice_deleted_list
decort_bservice_list | - | -| disk | decort_disk_list
decort_disk_list_types
decort_disk_list_types_detailed
decort_disk_list_unattached
decort_disk_list_deleted | decort_cb_disk_list
decort_cb_disk_list_deleted
decort_cb_disk_list_types
decort_cb_disk_list_types_detailed
decort_cb_disk_list_unattached | -| extnet | decort_extnet_computes_list
decort_extnet_list | decort_cb_extnet_list | -| flipgroup | decort_flipgroup_list | decort_cb_flipgroup_list | -| grid | - | decort_cb_grid_list | -| image | decort_image_list | decort_cb_image_list
decort_cb_image_list_stacks | -| k8ci | decort_k8ci_list | decort_cb_k8ci_list
decort_cb_k8ci_list_deleted | -| k8s | decort_k8s_list
decort_k8s_list_deleted | decort_cb_k8s_list
decort_cb_k8s_list_deleted | -| kvmvm | decort_kvmvm_list
decort_kvmvm_list_deleted
decort_kvmvm_pci_device_list
decort_kvmvm_vgpu_list | decort_cb_kvmvm_list
decort_cb_kvmvm_list_deleted
decort_cb_kvmvm_pci_device_list
decort_cb_kvmvm_vgpu_list | -| lb | decort_lb_list
decort_lb_list_deleted | decort_cb_lb_list
decort_cb_lb_list_deleted | -| locations | decort_locations_list | - | -| rg | decort_rg_list
decort_rg_list_computes
decort_rg_list_deleted
decort_rg_list_lb
decort_rg_list_vins | decort_cb_rg_list
decort_cb_rg_list_computes
decort_cb_rg_list_deleted
decort_cb_rg_list_lb
decort_cb_rg_list_vins | -| sep | - | decort_cb_sep_list | -| stack | decort_stack_list | decort_cb_stack_list | -| vfpool | decort_vfpool_list | decort_cb_vfpool_list | -| vins | decort_vins_list
decort_vins_list_deleted | decort_cb_vins_list
decort_cb_vins_list_deleted | - -#### account: -- Add available_templates optional field to resource decort_cb_account in cloudbroker/account -- Add data source decort_cb_account_available_templates_list in cloudbroker/account -- Add compute_features computed fields to data sources decort_account, decort_account_list, decort_account_deleted_list, decort_cb_account, decort_cb_account_list, decort_account_deleted_list and to resource decort_account in cloudapi/account and cloudbroker/account -- Add compute_features optional field to resource decort_cb_account in cloudbroker/account -- Add extnet_id, free_ips computed fields to data sources decort_account_vins_list and decort_cb_account_vins_list in cloudapi/account and cloudbroker/account - -#### audit: -- Add guid computed field to data source decort_cb_audit_linked_jobs in cloudbroker/audit -- Delete field status_code in data source decort_cb_audit_list in cloudbroker/audit -- Add fields min_status_code and max_status_code in data source decort_cb_audit_list in cloudbroker/audit - -#### bservice: -- Add validation of ram to be divisible by 128 to resource decort_bservice_group in cloudapi/bservice - -#### disks: -- Add resource and data source decort_disk_replication and decort_cb_disk_replication -- Add field replication in data sources and resource decort_disk, decort_disk_list, decort_disk_list_deleted, decort_cb_disk, decort_cb_disk_list, decort_cb_disk_list_deleted -- Add node_ids optional field to resource decort_cb_disk in cloudbroker/disk - -#### flipgroup: -- Add conn_id, status and account_id optional fields to data sources decort_flipgroup_list and decort_cb_flipgroup_list in cloudapi/flipgroup and cloudbroker/flipgroup -- Add client_ids optional fields to data sources decort_flipgroup_list and decort_cb_flipgroup_list in cloudapi/flipgroup and cloudbroker/flipgroup - -#### kvmvm: -- Add cd_image_id computed field to data sources decort_kvmvm, decort_kvmvm_list, decort_cb_kvmvm, decort_cb_kvmvm_list and resourced decort_kvmvm, decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add natable_vins_id, natable_vins_ip, natable_vins_name, natable_vins_network and natable_vins_network_name computed fields to data source decort_cb_kvmvm and to resource decort_cb_kvmvm in cloudbroker/kvmvm -- Change field local_port (in block port_forwarding) from required to optional in resources decort_kvmvm and decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add hp_backed, cpu_pin, numa_affinity and numa_node_id computed fields to data sources decort_kvmvm, decort_kvmvm_list, decort_cb_kvmvm, decort_cb_kvmvm_list in cloudapi/kvmvm and cloudbroker/kvmvm -- Add hp_backed, cpu_pin, numa_affinity optional fields and numa_node_id computed field to resources decort_kvmvm, decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add validation of ram to be divisible by 128 to resources decort_kvmvm and decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add name optional field to data source decort_cb_kvmvm_pci_device_list in cloudbroker/kvmvm -- Add fields image_name and virtual_image_name in resource and data source decort_cb_kvmvm in cloudbroker/kvmvm -- Add fields enabled and node_id in resource and data sources decort_cb_kvmvm, decort_cb_kvmvm_list, decort_cb_kvmvm_list_deleted in cloudbroker/kvmvm. Add field node_id in resource and data sources decort_kvmvm, decort_kvmvm_list, decort_kvmvm_list_deleted in cloudapi/kvmvm -- Delete network and extra_disk fields in data source decort_cb_kvmvm in cloudbroker/kvmvm -- Add computed fields compute_id, description, guid, hwpath, device_id, name, rg_id, stack_id, status, system_name in data source decort_kvmvm_pci_device_list in cloudapi/kvmvm -- Add computed fields account_id, created_time, deleted_time, gid, guid, vgpu_id, last_claimed_by, last_update_time, mode, pci_slot, pgpuid, profile_id, ram, reference_id, rg_id, status, type, vm_id in data sources decort_kvmvm_vgpu_list and decort_cb_kvmvm_vgpu_list in cloudapi/kvmvm and cloudbroker/kvmvm -- Add field replication (disk_id, pool_id, role, self_volume_id, storage_id, volume_id) in data source decort_kvmvm, decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add computed field reserved_node_cpus in data sources decort_kvmvm, decort_kvmvm_list, decort_kvmvm_list_deleted, decort_cb_kvmvm, decort_cb_kvmvm_list, decort_cb_kvmvm_list_deleted and in resources decort_kvmvm, decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add "VFNIC" as allowed net_type value in network block for resources decort_kvmvm and decort_cb_kvmvm (created with "KVM_X86" driver) in cloudapi/kvmvm and cloudbroker/kvmvm -- Set optional field image_id in resource decort_kvmvm, decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add optional field without_boot_disk in resource decort_kvmvm, decort_cb_kvmvm in cloudapi/kvmvm and cloudbroker/kvmvm -- Add optional fields depresent, node_ids in resource decort_cb_kvmvm in cloudbroker/kvmvm - -#### image: -- Add cd_presented_to computed field to data sources decort_image, decort_cb_image and to resources decort_image, decort_cb_image in cloudapi/image and cloudbroker/image -- Add account_id required field to resource decort_image in cloudapi/image -- Add accounts optional field to resource decort_cb_image in cloudbroker/image -- Add network_interface_naming computed field to data sources decort_image, decort_image_list, decort_cb_image, decort_cb_image_list and to resources decort_image, decort_cb_image in cloudapi/image and cloudbroker/image -- Delete gid required field from resource decort_image in cloudapi/image -- Delete meta and ckey computed fields from data sources and resource decort_cb_image and decort_cb_image_list in cloudbroker/image -- Add resource decort_image_from_blank_compute and decort_cb_image_from_blank_compute in cloudapi/compute and cloudbroker/compute -- Add resource decort_image_from_platoform_disk and decort_cb_image_from_platoform_disk in cloudapi/compute and cloudbroker/compute -- Add file_path optional field to resource decort_cb_image in cloudbroker/image -- Сhanged url field from required to optional in resource decort_cb_image in cloudbroker/image - -#### k8s: -- Change lb_sysctl_params optional field from string to array in resources decort_k8s and decort_k8s_cp in cloudapi/k8s -- Add lb_sysctl_params optional field to resource decort_cb_k8s_cp in cloudbroker/k8s -- Add validation of ram to be divisible by 128 to resources decort_k8s, decort_k8s_cp, decort_k8s_wg, decort_cb_k8s_cp and decort_cb_k8s_wg in cloudapi/k8s and cloudbroker/k8s -- Change possible values num field (can be 5) in resources decort_k8s(cloudapi/k8s), decort_k8s_cp(cloudapi/k8s) and decort_cb_k8s_cp(cloudbroker/k8s) - -#### lb: -- Add user_managed, manager_id, manager_type and part_k8s computed fields to data sources decort_lb, decort_lb_list, decort_cb_lb, decort_cb_lb_list and to resources decort_lb, decort_cb_lb in cloudapi/lb and cloudbroker/lb -- Add sysctl_params optional field to resources decort_lb and decort_cb_lb in cloudapi/lb and cloudbroker/lb -- Add safe optional field to resource decort_cb_lb in cloudbroker/lb - -#### node: -- Add data sources decort_cb_node and decort_cb_node_list in cloudbroker/node - -#### rg: -- Add compute_features computed fields to data sources decort_resgroup, decort_rg_list, decort_rg_list_deleted, decort_cb_rg, decort_cb_rg_list, decort_cb_rg_list_deleted and to resource decort_resgroup in clouapi/rg and cloudbroker/rg -- Add compute_features optional field to resource decort_cb_rg in cloudbroker/rg -- Add extnet_id, free_ips computed fields to data sources decort_rg_vins_list and decort_cb_rg_vins_list in cloudapi/rg and cloudbroker/rg -- Change resource quota handling logic in cloudapi to be like cloudbroker's. Added "cu_d" field into cloudapi resource quota schema. Deleted default values of "cpu", "ram", "disk", "ext_traffic", "ext_ips" and "gpu_units" fields in cloudapi resource schema - -#### sep: -- Add pools optional field to resource decort_cb_sep in cloudbroker/sep -- Change config field from optional to required in resource decort_cb_sep in cloudbroker/sep - -#### user: -- Add data sources decort_cb_user, decort_cb_user_list and decort_cb_user_get_audit in cloudbroker/user -- Add resource decort_cb_user in cloudbroker/user - -#### vfpool: -- Add data sources decort_vfpool, decort_vfpool_list and decort_cb_vfpool, decort_cb_vfpool_list in cloudapi/vfpool and cloudbroker/vfpool -- Add resource decort_cb_vfpool in cloudbroker/vfpool - -#### vins: -- Change field int_port (in block nat_rule) from required to optional in resource decort_cb_vins in cloudbroker/vins -- Add extnet_id, free_ips computed fields to data sources decort_vins_list, decort_cb_vins_list in cloudapi/vins and cloudbroker/vins -- Add dns optional field to resources decort_vins and decort_cb_vins in cloudapi/vins and cloudbroker/vins -- Add node_id computed field to resources and data sources decort_vins and decort_cb_vins in cloudapi/vins and cloudbroker/vins -- Add vnfdev_id optional field to data sources decort_cb_vins_list in cloudbroker/vins -- Add vnfdev_id optional field to data sources decort_vins_list_deleted in cloudapi/vins +## Version 4.6.1 ### Bugfix -- Fix boot_disk_size field to be saved correctly in state in order to stop unnecessary resource update attempts after `terraform apply` in resource decort_cb_kvmvm in cloudbroker/kvmvm -- Rename computed field name to k8s_name in order to fix state in data source decort_k8s_list_deleted in cloudapi/k8s -- Delete account_id field in data sources decort_rg_list_lb and decort_cb_rg_list_lb in cloudapi/rg and cloubroker/rg +- Fixed decort_cb_user_list data source in cloudbroker/user for correct data output +- Fixed decort_cb_sep resource in cloudbroker/sep for correct create resource and avoiding panic +- Fixed decort_kvmvm data source in cloudapi/kvmvm for correct receive response when compute is not found +- Fixed decort_cb_kvmvm resource in cloudbroker/kvmvm for the optional field 'depresent' to work correctly +- Fixed decort_cb_lb_backend decort_cb_lb_backend_server in cloudbroker/lb and decort_lb_backend decort_lb_backend_server in cloudapi/lb resources for correct update +- Fixed decort_cb_node, decort_cb_node_list data source in cloudbroker/node for correct data output +- Fixed decort_lb in cloudapi/lb and decort_cb_lb in cloudbroker/lb for the optional field 'sysctl_params' to work correctly +- Fixed decort_k8s_cp, decort_k8s in cloudapi/k8s and decort_cb_k8s_cp in cloudbroker/k8s for the optional field 'lb_sysctl_params' to work correctly + +### Removed +- The ability to update the 'decort_cb_sep' resource has been removed +- The fields 'decommission', 'clear_physically', 'field_edit' have been deleted in 'decort_cb_sep' + diff --git a/Makefile b/Makefile index 2c87f4c..2efeeeb 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ ZIPDIR = ./zip BINARY=${NAME} WORKPATH= ./examples/terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAMESPACE}/${VERSION}/${OS_ARCH} MAINPATH = ./cmd/decort/ -VERSION=4.6.0 +VERSION=4.6.1 OS_ARCH=$(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH) FILES = ${BINARY}_${VERSION}_darwin_amd64\ @@ -74,8 +74,8 @@ $(BINS): GOOS=windows GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_windows_amd64.exe $(MAINPATH) install: build - mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} - mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} + mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAMESPACE}/${VERSION}/${OS_ARCH} + mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAMESPACE}/${VERSION}/${OS_ARCH} test: go test -i $(TEST) || exit 1 diff --git a/README.md b/README.md index fab546b..b32c681 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Terraform provider для платформы Digital Energy Cloud Orchestration | Версия DECORT API | Версия провайдера Terraform | | ------ | ------ | -| 4.4.0 | 4.6.x | +| 4.0.0 | 4.6.x | | 3.8.9 | 4.5.x | | 3.8.8 | 4.4.x | | 3.8.7 | 4.3.x | diff --git a/docs/data-sources/account.md b/docs/data-sources/account.md index 36377b6..f15b6aa 100644 --- a/docs/data-sources/account.md +++ b/docs/data-sources/account.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account Data Source - decort" +page_title: "decort_account Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -30,7 +30,10 @@ description: |- - `ckey` (String) - `company` (String) - `companyurl` (String) +- `compute_features` (List of String) - `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) - `created_by` (String) - `created_time` (Number) - `dc_location` (String) @@ -43,7 +46,6 @@ description: |- - `machines` (List of Object) (see [below for nested schema](#nestedatt--machines)) - `meta` (List of String) - `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) -- `resources` (List of Object) (see [below for nested schema](#nestedatt--resources)) - `send_access_emails` (Boolean) - `service_account` (Boolean) - `status` (String) @@ -100,43 +102,8 @@ Read-Only: - `cu_c` (Number) - `cu_d` (Number) +- `cu_dm` (Number) - `cu_i` (Number) - `cu_m` (Number) - `cu_np` (Number) - `gpu_units` (Number) - - - -### Nested Schema for `resources` - -Read-Only: - -- `current` (List of Object) (see [below for nested schema](#nestedobjatt--resources--current)) -- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--resources--reserved)) - - -### Nested Schema for `resources.current` - -Read-Only: - -- `cpu` (Number) -- `disksize` (Number) -- `extips` (Number) -- `exttraffic` (Number) -- `gpu` (Number) -- `ram` (Number) - - - -### Nested Schema for `resources.reserved` - -Read-Only: - -- `cpu` (Number) -- `disksize` (Number) -- `extips` (Number) -- `exttraffic` (Number) -- `gpu` (Number) -- `ram` (Number) - - diff --git a/docs/data-sources/account_audits_list.md b/docs/data-sources/account_audits_list.md index 9248026..a897a5a 100644 --- a/docs/data-sources/account_audits_list.md +++ b/docs/data-sources/account_audits_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_audits_list Data Source - decort" +page_title: "decort_account_audits_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -47,5 +47,3 @@ Read-Only: - `statuscode` (Number) - `timestamp` (Number) - `user` (String) - - diff --git a/docs/data-sources/account_computes_list.md b/docs/data-sources/account_computes_list.md index 127ed03..063535c 100644 --- a/docs/data-sources/account_computes_list.md +++ b/docs/data-sources/account_computes_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_computes_list Data Source - decort" +page_title: "decort_account_computes_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,22 @@ description: |- ### Optional +- `compute_id` (Number) Filter by compute ID +- `extnet_id` (Number) Filter by extnet ID +- `extnet_name` (String) Filter by extnet name +- `ip_address` (String) Filter by IP address +- `name` (String) Filter by compute name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `rg_name` (String) Filter by RG name +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Filter by tech. status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) @@ -62,5 +74,3 @@ Read-Only: - `updated_time` (Number) - `user_managed` (Boolean) - `vins_connected` (Number) - - diff --git a/docs/data-sources/account_consumed_units.md b/docs/data-sources/account_consumed_units.md index 1781a07..1087648 100644 --- a/docs/data-sources/account_consumed_units.md +++ b/docs/data-sources/account_consumed_units.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_consumed_units Data Source - decort" +page_title: "decort_account_consumed_units Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -27,6 +27,7 @@ description: |- - `cu_c` (Number) - `cu_d` (Number) +- `cu_dm` (Number) - `cu_i` (Number) - `cu_m` (Number) - `cu_np` (Number) @@ -40,5 +41,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/account_consumed_units_by_type.md b/docs/data-sources/account_consumed_units_by_type.md index 211430f..9481841 100644 --- a/docs/data-sources/account_consumed_units_by_type.md +++ b/docs/data-sources/account_consumed_units_by_type.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_consumed_units_by_type Data Source - decort" +page_title: "decort_account_consumed_units_by_type Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -36,5 +36,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/account_deleted_list.md b/docs/data-sources/account_deleted_list.md index 55c2c8c..ddcb0f4 100644 --- a/docs/data-sources/account_deleted_list.md +++ b/docs/data-sources/account_deleted_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_deleted_list Data Source - decort" +page_title: "decort_account_deleted_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,12 +17,17 @@ description: |- ### Optional +- `acl` (String) Filter by ACL +- `by_id` (Number) Filter by ID +- `name` (String) Filter by name - `page` (Number) Page number - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -43,6 +48,7 @@ Read-Only: - `account_id` (Number) - `account_name` (String) - `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `compute_features` (List of String) - `created_time` (Number) - `deleted_time` (Number) - `status` (String) @@ -59,5 +65,3 @@ Read-Only: - `status` (String) - `type` (String) - `user_group_id` (String) - - diff --git a/docs/data-sources/account_disks_list.md b/docs/data-sources/account_disks_list.md index a150455..3e88c5f 100644 --- a/docs/data-sources/account_disks_list.md +++ b/docs/data-sources/account_disks_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_disks_list Data Source - decort" +page_title: "decort_account_disks_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,18 @@ description: |- ### Optional +- `disk_id` (Number) Filter by disk ID +- `disk_max_size` (Number) Filter by disk max size +- `name` (String) Filter by disk name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) Filter by disk type ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) @@ -46,7 +54,6 @@ Read-Only: - `disk_name` (String) - `pool` (String) - `sep_id` (Number) +- `shareable` (Boolean) - `size_max` (Number) - `type` (String) - - diff --git a/docs/data-sources/account_flipgroups_list.md b/docs/data-sources/account_flipgroups_list.md index a8785b4..53284ca 100644 --- a/docs/data-sources/account_flipgroups_list.md +++ b/docs/data-sources/account_flipgroups_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_flipgroups_list Data Source - decort" +page_title: "decort_account_flipgroups_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,19 @@ description: |- ### Optional +- `by_ip` (String) Filter by IP +- `extnet_id` (Number) Filter by extnet ID +- `flipgroup_id` (Number) Filter by flipgroup ID +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID +- `vins_name` (String) Filter by ViNS name ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) @@ -63,5 +72,3 @@ Read-Only: - `status` (String) - `updated_by` (String) - `updated_time` (Number) - - diff --git a/docs/data-sources/account_list.md b/docs/data-sources/account_list.md index 86d0062..c322034 100644 --- a/docs/data-sources/account_list.md +++ b/docs/data-sources/account_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_list Data Source - decort" +page_title: "decort_account_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,12 +17,18 @@ description: |- ### Optional +- `acl` (String) Filter by ACL +- `by_id` (Number) Filter by ID +- `name` (String) Filter by name - `page` (Number) Page number - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -43,6 +49,7 @@ Read-Only: - `account_id` (Number) - `account_name` (String) - `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `compute_features` (List of String) - `created_time` (Number) - `deleted_time` (Number) - `status` (String) @@ -59,5 +66,3 @@ Read-Only: - `status` (String) - `type` (String) - `user_group_id` (String) - - diff --git a/docs/data-sources/account_reserved_units.md b/docs/data-sources/account_reserved_units.md index 94cfb4d..bc84786 100644 --- a/docs/data-sources/account_reserved_units.md +++ b/docs/data-sources/account_reserved_units.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_reserved_units Data Source - decort" +page_title: "decort_account_reserved_units Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -27,6 +27,7 @@ description: |- - `cu_c` (Number) - `cu_d` (Number) +- `cu_dm` (Number) - `cu_i` (Number) - `cu_m` (Number) - `cu_np` (Number) @@ -40,5 +41,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/account_resource_consumption_get.md b/docs/data-sources/account_resource_consumption_get.md new file mode 100644 index 0000000..9dff999 --- /dev/null +++ b/docs/data-sources/account_resource_consumption_get.md @@ -0,0 +1,105 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_account_resource_consumption_get Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_account_resource_consumption_get (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `consumed` (List of Object) (see [below for nested schema](#nestedatt--consumed)) +- `id` (String) The ID of this resource. +- `reserved` (List of Object) (see [below for nested schema](#nestedatt--reserved)) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--consumed--seps)) + + +### Nested Schema for `consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--reserved--seps)) + + +### Nested Schema for `reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/account_resource_consumption_list.md b/docs/data-sources/account_resource_consumption_list.md new file mode 100644 index 0000000..44c3712 --- /dev/null +++ b/docs/data-sources/account_resource_consumption_list.md @@ -0,0 +1,94 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_account_resource_consumption_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_account_resource_consumption_list (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `consumed` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed)) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved)) + + +### Nested Schema for `items.consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed--seps)) + + +### Nested Schema for `items.consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved--seps)) + + +### Nested Schema for `items.reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) diff --git a/docs/data-sources/account_rg_list.md b/docs/data-sources/account_rg_list.md index 3c8a855..ed9b0bd 100644 --- a/docs/data-sources/account_rg_list.md +++ b/docs/data-sources/account_rg_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_rg_list Data Source - decort" +page_title: "decort_account_rg_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,19 @@ description: |- ### Optional +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID +- `vm_id` (Number) Filter by VM ID ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) @@ -111,5 +120,3 @@ Read-Only: - `exttraffic` (Number) - `gpu` (Number) - `ram` (Number) - - diff --git a/docs/data-sources/account_templates_list.md b/docs/data-sources/account_templates_list.md index 40f8da2..d359d44 100644 --- a/docs/data-sources/account_templates_list.md +++ b/docs/data-sources/account_templates_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_templates_list Data Source - decort" +page_title: "decort_account_templates_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,18 @@ description: |- ### Optional +- `image_id` (Number) Find by image id +- `include_deleted` (Boolean) +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) Filter by type ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) @@ -52,5 +60,3 @@ Read-Only: - `type` (String) - `unc_path` (String) - `username` (String) - - diff --git a/docs/data-sources/account_vins_list.md b/docs/data-sources/account_vins_list.md index 873d3e0..e2e9e95 100644 --- a/docs/data-sources/account_vins_list.md +++ b/docs/data-sources/account_vins_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account_vins_list Data Source - decort" +page_title: "decort_account_vins_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,18 @@ description: |- ### Optional +- `ext_ip` (String) Filter by external IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) @@ -50,6 +58,8 @@ Read-Only: - `deleted_by` (String) - `deleted_time` (Number) - `external_ip` (String) +- `extnet_id` (Number) +- `free_ips` (Number) - `network` (String) - `pri_vnf_dev_id` (Number) - `rg_id` (Number) @@ -59,5 +69,3 @@ Read-Only: - `updated_time` (Number) - `vin_id` (Number) - `vin_name` (String) - - diff --git a/docs/data-sources/bservice.md b/docs/data-sources/bservice.md index 1c2a576..854fdbc 100644 --- a/docs/data-sources/bservice.md +++ b/docs/data-sources/bservice.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_bservice Data Source - decort" +page_title: "decort_bservice Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -34,10 +34,9 @@ description: |- - `created_time` (Number) - `deleted_by` (String) - `deleted_time` (Number) -- `disk_total` (String) +- `disk_total` (Number) - `gid` (Number) -- `groups` (List of Number) -- `groups_name` (List of String) +- `groups` (List of Object) (see [below for nested schema](#nestedatt--groups)) - `guid` (Number) - `id` (String) The ID of this resource. - `milestones` (Number) @@ -70,11 +69,30 @@ Optional: Read-Only: +- `account_id` (Number) +- `architecture` (String) - `compgroup_id` (Number) - `compgroup_name` (String) - `compgroup_role` (String) - `id` (Number) - `name` (String) +- `rg_id` (Number) +- `stack_id` (Number) +- `status` (String) +- `tech_status` (String) + + + +### Nested Schema for `groups` + +Read-Only: + +- `computes` (Number) +- `consistency` (Boolean) +- `id` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) @@ -86,5 +104,3 @@ Read-Only: - `label` (String) - `timestamp` (Number) - `valid` (Boolean) - - diff --git a/docs/data-sources/bservice_deleted_list.md b/docs/data-sources/bservice_deleted_list.md index 9db67b2..4acb29d 100644 --- a/docs/data-sources/bservice_deleted_list.md +++ b/docs/data-sources/bservice_deleted_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_bservice_deleted_list Data Source - decort" +page_title: "decort_bservice_deleted_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,12 @@ description: |- - `page` (Number) Page number - `rg_id` (Number) ID of the resource group to query for BasicService instances - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -64,5 +66,3 @@ Read-Only: - `updated_by` (String) - `updated_time` (Number) - `user_managed` (Boolean) - - diff --git a/docs/data-sources/bservice_group.md b/docs/data-sources/bservice_group.md index d72055d..752175f 100644 --- a/docs/data-sources/bservice_group.md +++ b/docs/data-sources/bservice_group.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_bservice_group Data Source - decort" +page_title: "decort_bservice_group Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -84,5 +84,3 @@ Read-Only: - `login` (String) - `password` (String) - - diff --git a/docs/data-sources/bservice_list.md b/docs/data-sources/bservice_list.md index 9107f2f..64a14cc 100644 --- a/docs/data-sources/bservice_list.md +++ b/docs/data-sources/bservice_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_bservice_list Data Source - decort" +page_title: "decort_bservice_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -18,13 +18,21 @@ description: |- ### Optional - `account_id` (Number) ID of the account to query for BasicService instances +- `account_name` (String) Filter by account name +- `by_id` (Number) Filter by ID +- `name` (String) Filter by bservice name - `page` (Number) Page number - `rg_id` (Number) ID of the resource group to query for BasicService instances +- `rg_name` (String) Filter by resource group name - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `tech_status` (String) Filter by tech status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -64,5 +72,3 @@ Read-Only: - `updated_by` (String) - `updated_time` (Number) - `user_managed` (Boolean) - - diff --git a/docs/data-sources/bservice_snapshot_list.md b/docs/data-sources/bservice_snapshot_list.md index 536116d..c2a590e 100644 --- a/docs/data-sources/bservice_snapshot_list.md +++ b/docs/data-sources/bservice_snapshot_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_bservice_snapshot_list Data Source - decort" +page_title: "decort_bservice_snapshot_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -25,6 +25,7 @@ description: |- ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -46,5 +47,3 @@ Read-Only: - `label` (String) - `timestamp` (Number) - `valid` (Boolean) - - diff --git a/docs/data-sources/cb_account.md b/docs/data-sources/cb_account.md new file mode 100644 index 0000000..ce60b35 --- /dev/null +++ b/docs/data-sources/cb_account.md @@ -0,0 +1,87 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `ckey` (String) +- `company` (String) +- `companyurl` (String) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `dc_location` (String) +- `deactivation_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `displayname` (String) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) +- `resource_types` (List of String) +- `send_access_emails` (Boolean) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_time` (Number) +- `version` (Number) +- `vins` (List of Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_account_audits_list.md b/docs/data-sources/cb_account_audits_list.md new file mode 100644 index 0000000..dc89e9a --- /dev/null +++ b/docs/data-sources/cb_account_audits_list.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_audits_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_audits_list (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) ID of the account + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `responsetime` (Number) +- `statuscode` (Number) +- `timestamp` (Number) +- `user` (String) diff --git a/docs/data-sources/cb_account_available_templates_list.md b/docs/data-sources/cb_account_available_templates_list.md new file mode 100644 index 0000000..553e487 --- /dev/null +++ b/docs/data-sources/cb_account_available_templates_list.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_available_templates_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_available_templates_list (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_account_computes_list.md b/docs/data-sources/cb_account_computes_list.md new file mode 100644 index 0000000..bcfb968 --- /dev/null +++ b/docs/data-sources/cb_account_computes_list.md @@ -0,0 +1,76 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_computes_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_computes_list (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) ID of the account + +### Optional + +- `compute_id` (Number) Filter by compute ID +- `extnet_id` (Number) Filter by extnet ID +- `extnet_name` (String) Filter by extnet name +- `ip_address` (String) Filter by IP address +- `name` (String) Filter by compute name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `rg_name` (String) Filter by RG name +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Filter by tech. status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `compute_id` (Number) +- `compute_name` (String) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `ram` (Number) +- `registered` (Boolean) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `tech_status` (String) +- `total_disks_size` (Number) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_connected` (Number) diff --git a/docs/data-sources/cb_account_disks_list.md b/docs/data-sources/cb_account_disks_list.md new file mode 100644 index 0000000..0ad3d74 --- /dev/null +++ b/docs/data-sources/cb_account_disks_list.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_disks_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_disks_list (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) ID of the account + +### Optional + +- `disk_id` (Number) Filter by disk ID +- `disk_max_size` (Number) Filter by disk max size +- `name` (String) Filter by disk name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) Filter by disk type + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `disk_id` (Number) +- `disk_name` (String) +- `pool_name` (String) +- `sep_id` (Number) +- `shareable` (Boolean) +- `size_max` (Number) +- `type` (String) diff --git a/docs/data-sources/cb_account_flipgroups_list.md b/docs/data-sources/cb_account_flipgroups_list.md new file mode 100644 index 0000000..3e5227a --- /dev/null +++ b/docs/data-sources/cb_account_flipgroups_list.md @@ -0,0 +1,75 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_flipgroups_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_flipgroups_list (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) ID of the account + +### Optional + +- `by_ip` (String) Filter by IP +- `extnet_id` (Number) Filter by extnet ID +- `flipgroup_id` (Number) Filter by flipgroup ID +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID +- `vins_name` (String) Filter by ViNS name + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `client_type` (String) +- `conn_type` (String) +- `created_by` (String) +- `created_time` (Number) +- `default_gw` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `fg_id` (Number) +- `fg_name` (String) +- `gid` (Number) +- `guid` (Number) +- `ip` (String) +- `milestones` (Number) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) diff --git a/docs/data-sources/cb_account_list.md b/docs/data-sources/cb_account_list.md new file mode 100644 index 0000000..592b201 --- /dev/null +++ b/docs/data-sources/cb_account_list.md @@ -0,0 +1,100 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_list (Data Source) + + + + + + +## Schema + +### Optional + +- `acl` (String) Filter by ACL +- `by_id` (Number) Filter by ID +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `ckey` (String) +- `company` (String) +- `companyurl` (String) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `dc_location` (String) +- `deactivation_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `displayname` (String) +- `guid` (Number) +- `meta` (List of String) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `resource_types` (List of String) +- `send_access_emails` (Boolean) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_time` (Number) +- `version` (Number) +- `vins` (List of Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_account_list_deleted.md b/docs/data-sources/cb_account_list_deleted.md new file mode 100644 index 0000000..cdc1cf1 --- /dev/null +++ b/docs/data-sources/cb_account_list_deleted.md @@ -0,0 +1,99 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `acl` (String) Filter by ACL +- `by_id` (Number) Filter by ID +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `ckey` (String) +- `company` (String) +- `companyurl` (String) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `dc_location` (String) +- `deactivation_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `displayname` (String) +- `guid` (Number) +- `meta` (List of String) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `resource_types` (List of String) +- `send_access_emails` (Boolean) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_time` (Number) +- `version` (Number) +- `vins` (List of Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_account_resource_consumption_get.md b/docs/data-sources/cb_account_resource_consumption_get.md new file mode 100644 index 0000000..b9eccc3 --- /dev/null +++ b/docs/data-sources/cb_account_resource_consumption_get.md @@ -0,0 +1,105 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_resource_consumption_get Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_resource_consumption_get (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `consumed` (List of Object) (see [below for nested schema](#nestedatt--consumed)) +- `id` (String) The ID of this resource. +- `reserved` (List of Object) (see [below for nested schema](#nestedatt--reserved)) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `consumed` + +Read-Only: + +- `cpu` (Number) +- `disksize` (Number) +- `disksizemax` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--consumed--seps)) + + +### Nested Schema for `consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `reserved` + +Read-Only: + +- `cpu` (Number) +- `disksize` (Number) +- `disksizemax` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--reserved--seps)) + + +### Nested Schema for `reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_account_resource_consumption_list.md b/docs/data-sources/cb_account_resource_consumption_list.md new file mode 100644 index 0000000..6d42f94 --- /dev/null +++ b/docs/data-sources/cb_account_resource_consumption_list.md @@ -0,0 +1,94 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_resource_consumption_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_resource_consumption_list (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `consumed` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed)) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved)) + + +### Nested Schema for `items.consumed` + +Read-Only: + +- `cpu` (Number) +- `disksize` (Number) +- `disksizemax` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed--seps)) + + +### Nested Schema for `items.consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.reserved` + +Read-Only: + +- `cpu` (Number) +- `disksize` (Number) +- `disksizemax` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved--seps)) + + +### Nested Schema for `items.reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) diff --git a/docs/data-sources/cb_account_rg_list.md b/docs/data-sources/cb_account_rg_list.md new file mode 100644 index 0000000..2d336d8 --- /dev/null +++ b/docs/data-sources/cb_account_rg_list.md @@ -0,0 +1,149 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_rg_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_rg_list (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) ID of the account + +### Optional + +- `entry_count` (Number) +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID +- `vm_id` (Number) Filter by VM ID + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `milestones` (Number) +- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources)) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vinses` (Number) + + +### Nested Schema for `items.computes` + +Read-Only: + +- `started` (Number) +- `stopped` (Number) + + + +### Nested Schema for `items.resources` + +Read-Only: + +- `consumed` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--consumed)) +- `limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--limits)) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--reserved)) + + +### Nested Schema for `items.resources.consumed` + +Read-Only: + +- `cpu` (Number) +- `disksize` (Number) +- `disksizemax` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--consumed--seps)) + + +### Nested Schema for `items.resources.consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.resources.limits` + +Read-Only: + +- `cpu` (Number) +- `disksize` (Number) +- `disksizemax` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (Number) + + + +### Nested Schema for `items.resources.reserved` + +Read-Only: + +- `cpu` (Number) +- `disksize` (Number) +- `disksizemax` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--reserved--seps)) + + +### Nested Schema for `items.resources.reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) diff --git a/docs/data-sources/cb_account_vins_list.md b/docs/data-sources/cb_account_vins_list.md new file mode 100644 index 0000000..2b9798f --- /dev/null +++ b/docs/data-sources/cb_account_vins_list.md @@ -0,0 +1,71 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account_vins_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account_vins_list (Data Source) + + + + + + +## Schema + +### Required + +- `account_id` (Number) ID of the account + +### Optional + +- `ext_ip` (String) Filter by external IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) Search Result (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `computes` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `external_ip` (String) +- `extnet_id` (Number) +- `free_ips` (Number) +- `network` (String) +- `pri_vnf_dev_id` (Number) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vin_id` (Number) +- `vin_name` (String) diff --git a/docs/data-sources/cb_audit.md b/docs/data-sources/cb_audit.md new file mode 100644 index 0000000..15af37e --- /dev/null +++ b/docs/data-sources/cb_audit.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_audit Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_audit (Data Source) + + + + + + +## Schema + +### Required + +- `audit_guid` (String) audit guid + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `apitask` (String) +- `args` (String) +- `call` (String) +- `guid` (String) +- `id` (String) The ID of this resource. +- `kwargs` (String) +- `remote_addr` (String) +- `responsetime` (Number) +- `result` (String) +- `status_code` (Number) +- `tags` (String) +- `timestamp` (Number) +- `timestamp_end` (Number) +- `user` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_audit_linked_jobs.md b/docs/data-sources/cb_audit_linked_jobs.md new file mode 100644 index 0000000..4aef310 --- /dev/null +++ b/docs/data-sources/cb_audit_linked_jobs.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_audit_linked_jobs Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_audit_linked_jobs (Data Source) + + + + + + +## Schema + +### Required + +- `audit_guid` (String) audit guid + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `cmd` (String) +- `guid` (String) +- `nid` (Number) +- `state` (String) +- `time_create` (Number) +- `time_start` (Number) +- `time_stop` (Number) +- `timeout` (Number) diff --git a/docs/data-sources/cb_audit_list.md b/docs/data-sources/cb_audit_list.md new file mode 100644 index 0000000..0c39fcc --- /dev/null +++ b/docs/data-sources/cb_audit_list.md @@ -0,0 +1,56 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_audit_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_audit_list (Data Source) + + + + + + +## Schema + +### Optional + +- `call` (String) find by api endpoint (Mongo RegExp supported) +- `max_status_code` (Number) find by HTTP max status code +- `min_status_code` (Number) find by HTTP min status code +- `page` (Number) page number +- `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `timestamp_at` (Number) find all audits after point in time (unixtime) +- `timestamp_to` (Number) find all audits before point in time (unixtime) +- `user` (String) find by user (Mongo RegExp supported) + +### Read-Only + +- `entry_count` (Number) entry count +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `guid` (String) +- `responsetime` (Number) +- `status_code` (Number) +- `timestamp` (Number) +- `user` (String) diff --git a/docs/data-sources/cb_disk.md b/docs/data-sources/cb_disk.md new file mode 100644 index 0000000..e757214 --- /dev/null +++ b/docs/data-sources/cb_disk.md @@ -0,0 +1,137 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk (Data Source) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `devicename` (String) +- `disk_name` (String) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) +- `iqn` (String) +- `login` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `sep_type` (String) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_disk_list.md b/docs/data-sources/cb_disk_list.md new file mode 100644 index 0000000..44b60c9 --- /dev/null +++ b/docs/data-sources/cb_disk_list.md @@ -0,0 +1,157 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) ID of the account the disks belong to +- `account_name` (String) Find by account name +- `by_id` (Number) Find by ID +- `disk_max_size` (Number) Find by max disk size +- `name` (String) Find by name +- `page` (Number) Page number +- `pool` (String) Find by pool name +- `sep_id` (Number) Find by sep id +- `shared` (Boolean) Find by shared field +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) type of the disks + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `devicename` (String) +- `disk_id` (Number) +- `disk_name` (String) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `image_id` (Number) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) +- `iqn` (String) +- `login` (String) +- `machine_id` (Number) +- `machine_name` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `sep_type` (String) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `items.computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `items.iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `items.replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `items.snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_disk_list_deleted.md b/docs/data-sources/cb_disk_list_deleted.md new file mode 100644 index 0000000..23b7431 --- /dev/null +++ b/docs/data-sources/cb_disk_list_deleted.md @@ -0,0 +1,154 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) ID of the account the disks belong to +- `account_name` (String) Find by account name +- `by_id` (Number) Find by ID +- `disk_max_size` (Number) Find by max disk size +- `name` (String) Find by name +- `page` (Number) Page number +- `shared` (Boolean) Find by shared field +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) type of the disks + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `devicename` (String) +- `disk_id` (Number) +- `disk_name` (String) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `image_id` (Number) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) +- `iqn` (String) +- `login` (String) +- `machine_id` (Number) +- `machine_name` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `sep_type` (String) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `items.computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `items.iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `items.replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `items.snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_disk_list_types.md b/docs/data-sources/cb_disk_list_types.md new file mode 100644 index 0000000..b01d816 --- /dev/null +++ b/docs/data-sources/cb_disk_list_types.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_list_types Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_list_types (Data Source) + + + + + + +## Schema + +### Optional + +- `page` (Number) page number +- `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of String) The types of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp' + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/image_list_stacks.md b/docs/data-sources/cb_disk_list_types_detailed.md similarity index 50% rename from docs/data-sources/image_list_stacks.md rename to docs/data-sources/cb_disk_list_types_detailed.md index e3ba873..400afc1 100644 --- a/docs/data-sources/image_list_stacks.md +++ b/docs/data-sources/cb_disk_list_types_detailed.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_image_list_stacks Data Source - decort" +page_title: "decort_cb_disk_list_types_detailed Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_image_list_stacks (Data Source) +# decort_cb_disk_list_types_detailed (Data Source) @@ -15,20 +15,18 @@ description: |- ## Schema -### Required - -- `image_id` (Number) image id - ### Optional - `page` (Number) page number - `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. -- `items` (List of Object) items of stacks list (see [below for nested schema](#nestedatt--items)) +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) ### Nested Schema for `timeouts` @@ -44,20 +42,15 @@ Optional: Read-Only: -- `api_key` (String) -- `api_url` (String) -- `app_id` (String) -- `desc` (String) -- `drivers` (List of String) -- `error` (Number) -- `guid` (Number) -- `id` (Number) -- `images` (List of Number) -- `login` (String) -- `name` (String) -- `passwd` (String) -- `reference_id` (String) -- `status` (String) -- `type` (String) +- `pools` (List of Object) (see [below for nested schema](#nestedobjatt--items--pools)) +- `sep_id` (Number) +- `sep_name` (String) + +### Nested Schema for `items.pools` +Read-Only: + +- `name` (String) +- `system` (String) +- `types` (List of String) diff --git a/docs/data-sources/cb_disk_list_unattached.md b/docs/data-sources/cb_disk_list_unattached.md new file mode 100644 index 0000000..d4b9869 --- /dev/null +++ b/docs/data-sources/cb_disk_list_unattached.md @@ -0,0 +1,129 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_list_unattached Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_list_unattached (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) ID of the account the disks belong to +- `account_name` (String) Find by account name +- `by_id` (Number) Find by ID +- `disk_max_size` (Number) Find by max disk size +- `page` (Number) Page number +- `pool` (String) +- `sep_id` (Number) ID of SEP +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) type of the disks + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `_ckey` (String) +- `_meta` (List of String) +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `disk_id` (Number) +- `disk_name` (String) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `image_id` (Number) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) +- `iqn` (String) +- `login` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `items.iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `items.snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_disk_replication.md b/docs/data-sources/cb_disk_replication.md new file mode 100644 index 0000000..c230f43 --- /dev/null +++ b/docs/data-sources/cb_disk_replication.md @@ -0,0 +1,139 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_replication Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_replication (Data Source) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) Id of primary disk +- `replica_disk_id` (Number) Id of secondary disk + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `devicename` (String) +- `disk_name` (String) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) +- `iqn` (String) +- `login` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `sep_type` (String) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) +- `status` (String) +- `status_replication` (String) Status of replication +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_disk_snapshot.md b/docs/data-sources/cb_disk_snapshot.md new file mode 100644 index 0000000..d64d8fc --- /dev/null +++ b/docs/data-sources/cb_disk_snapshot.md @@ -0,0 +1,43 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_snapshot Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_snapshot (Data Source) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) The unique ID of the subscriber-owner of the disk +- `label` (String) Name of the snapshot + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `guid` (String) ID of the snapshot +- `id` (String) The ID of this resource. +- `reference_id` (String) +- `res_id` (String) Reference to the snapshot +- `snap_set_guid` (String) The set snapshot ID +- `snap_set_time` (Number) The set time of the snapshot +- `timestamp` (Number) Snapshot time + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_disk_snapshot_list.md b/docs/data-sources/cb_disk_snapshot_list.md new file mode 100644 index 0000000..196bae0 --- /dev/null +++ b/docs/data-sources/cb_disk_snapshot_list.md @@ -0,0 +1,51 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_snapshot_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_snapshot_list (Data Source) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) The unique ID of the subscriber-owner of the disk + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_extnet.md b/docs/data-sources/cb_extnet.md new file mode 100644 index 0000000..cf23a3b --- /dev/null +++ b/docs/data-sources/cb_extnet.md @@ -0,0 +1,111 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_extnet Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_extnet (Data Source) + + + + + + +## Schema + +### Required + +- `extnet_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `check_ips` (List of String) +- `ckey` (String) +- `default` (Boolean) +- `default_qos` (List of Object) (see [below for nested schema](#nestedatt--default_qos)) +- `desc` (String) +- `dns` (List of String) +- `excluded` (List of Object) (see [below for nested schema](#nestedatt--excluded)) +- `free_ips` (Number) +- `gateway` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `ipcidr` (String) +- `meta` (List of String) meta +- `milestones` (Number) +- `name` (String) +- `network` (String) +- `network_id` (Number) +- `ovs_bridge` (String) +- `pre_reservations_num` (Number) +- `prefix` (Number) +- `pri_vnfdev_id` (Number) +- `reservations` (List of Object) (see [below for nested schema](#nestedatt--reservations)) +- `shared_with` (List of Number) +- `status` (String) +- `vlan_id` (Number) +- `vnfs` (List of Object) (see [below for nested schema](#nestedatt--vnfs)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `default_qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + +### Nested Schema for `excluded` + +Read-Only: + +- `client_type` (String) +- `desc` (String) +- `domain_name` (String) +- `hostname` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + +### Nested Schema for `reservations` + +Read-Only: + +- `client_type` (String) +- `desc` (String) +- `domain_name` (String) +- `hostname` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + +### Nested Schema for `vnfs` + +Read-Only: + +- `dhcp` (Number) diff --git a/docs/data-sources/cb_extnet_default.md b/docs/data-sources/cb_extnet_default.md new file mode 100644 index 0000000..5fab297 --- /dev/null +++ b/docs/data-sources/cb_extnet_default.md @@ -0,0 +1,33 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_extnet_default Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_extnet_default (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `extnet_id` (Number) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_extnet_list.md b/docs/data-sources/cb_extnet_list.md new file mode 100644 index 0000000..b11455b --- /dev/null +++ b/docs/data-sources/cb_extnet_list.md @@ -0,0 +1,90 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_extnet_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_extnet_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Find by account ID +- `by_id` (Number) Find by ID +- `name` (String) Find by name +- `network` (String) +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vlan_id` (Number) Find by VLAN ID +- `vnfdev_id` (Number) Find by VnfDEV ID + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `check_ips` (List of String) +- `ckey` (String) +- `default` (Boolean) +- `default_qos` (List of Object) (see [below for nested schema](#nestedobjatt--items--default_qos)) +- `desc` (String) +- `extnet_id` (Number) +- `free_ips` (Number) +- `gid` (Number) +- `guid` (Number) +- `ipcidr` (String) +- `meta` (List of String) +- `milestones` (Number) +- `name` (String) +- `network_id` (Number) +- `ovs_bridge` (String) +- `pre_reservations_num` (Number) +- `pri_vnfdev_id` (Number) +- `shared_with` (List of Number) +- `status` (String) +- `vlan_id` (Number) +- `vnfs` (List of Object) (see [below for nested schema](#nestedobjatt--items--vnfs)) + + +### Nested Schema for `items.default_qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + +### Nested Schema for `items.vnfs` + +Read-Only: + +- `dhcp` (Number) diff --git a/docs/data-sources/cb_extnet_static_route.md b/docs/data-sources/cb_extnet_static_route.md new file mode 100644 index 0000000..4b3385d --- /dev/null +++ b/docs/data-sources/cb_extnet_static_route.md @@ -0,0 +1,42 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_extnet_static_route Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_extnet_static_route (Data Source) + + + + + + +## Schema + +### Required + +- `extnet_id` (Number) Unique ID of the ExtNet +- `route_id` (Number) Unique ID of the static route + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `id` (String) The ID of this resource. +- `netmask` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_extnet_static_route_list.md b/docs/data-sources/cb_extnet_static_route_list.md new file mode 100644 index 0000000..afe3958 --- /dev/null +++ b/docs/data-sources/cb_extnet_static_route_list.md @@ -0,0 +1,51 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_extnet_static_route_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_extnet_static_route_list (Data Source) + + + + + + +## Schema + +### Required + +- `extnet_id` (Number) ID of ExtNet + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) diff --git a/docs/data-sources/cb_flipgroup.md b/docs/data-sources/cb_flipgroup.md new file mode 100644 index 0000000..64113cf --- /dev/null +++ b/docs/data-sources/cb_flipgroup.md @@ -0,0 +1,62 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_flipgroup Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_flipgroup (Data Source) + + + + + + +## Schema + +### Required + +- `flipgroup_id` (Number) flipgroup_id + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) account_id +- `account_name` (String) account_name +- `client_ids` (List of Number) client_ids +- `client_names` (List of String) client_names +- `client_type` (String) client_type +- `conn_id` (Number) conn_id +- `conn_type` (String) conn_type +- `created_by` (String) created_by +- `created_time` (Number) created_time +- `default_gw` (String) default_gw +- `deleted_by` (String) deleted_by +- `deleted_time` (Number) deleted_time +- `description` (String) description +- `gid` (Number) gid +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `ip` (String) ip +- `milestones` (Number) milestones +- `name` (String) name +- `net_id` (Number) net_id +- `net_type` (String) net_type +- `network` (String) network +- `rg_id` (Number) rg_id +- `rg_name` (String) rg_name +- `status` (String) status +- `updated_by` (String) updated_by +- `updated_time` (Number) updated_time + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_flipgroup_list.md b/docs/data-sources/cb_flipgroup_list.md new file mode 100644 index 0000000..2f81d70 --- /dev/null +++ b/docs/data-sources/cb_flipgroup_list.md @@ -0,0 +1,74 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_flipgroup_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_flipgroup_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Account id +- `by_id` (Number) by_id +- `by_ip` (String) by_ip +- `client_ids` (List of Number) client_ids +- `conn_id` (Number) Conn id +- `extnet_id` (Number) extnet_id +- `name` (String) name +- `page` (Number) Page number +- `rg_id` (Number) rg_id +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) vins_id +- `vins_name` (String) vins_name + +### Read-Only + +- `entry_count` (Number) entry_count +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `client_ids` (List of Number) +- `client_type` (String) +- `conn_id` (Number) +- `conn_type` (String) +- `default_gw` (String) +- `description` (String) +- `flipgroup_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `ip` (String) +- `meta` (List of String) +- `milestones` (Number) +- `name` (String) +- `net_id` (Number) +- `net_mask` (Number) +- `net_type` (String) +- `status` (String) diff --git a/docs/data-sources/grid.md b/docs/data-sources/cb_grid.md similarity index 81% rename from docs/data-sources/grid.md rename to docs/data-sources/cb_grid.md index f438382..09e8b9e 100644 --- a/docs/data-sources/grid.md +++ b/docs/data-sources/cb_grid.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_grid Data Source - decort" +page_title: "decort_cb_grid Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_grid (Data Source) +# decort_cb_grid (Data Source) @@ -25,6 +25,7 @@ description: |- ### Read-Only +- `auth_broker` (List of String) - `flag` (String) - `gid` (Number) - `guid` (Number) @@ -39,5 +40,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/cb_grid_get_consumption.md b/docs/data-sources/cb_grid_get_consumption.md new file mode 100644 index 0000000..46186c7 --- /dev/null +++ b/docs/data-sources/cb_grid_get_consumption.md @@ -0,0 +1,89 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_grid_get_consumption Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_grid_get_consumption (Data Source) + + + + + + +## Schema + +### Required + +- `grid_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `consumed` (List of Object) (see [below for nested schema](#nestedatt--consumed)) +- `id` (String) The ID of this resource. +- `reserved` (List of Object) (see [below for nested schema](#nestedatt--reserved)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--consumed--seps)) + + +### Nested Schema for `consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--reserved--seps)) + + +### Nested Schema for `reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) diff --git a/docs/data-sources/sep_pool.md b/docs/data-sources/cb_grid_get_diagnosis.md similarity index 71% rename from docs/data-sources/sep_pool.md rename to docs/data-sources/cb_grid_get_diagnosis.md index 2d41033..2f86dbd 100644 --- a/docs/data-sources/sep_pool.md +++ b/docs/data-sources/cb_grid_get_diagnosis.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep_pool Data Source - decort" +page_title: "decort_cb_grid_get_diagnosis Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_sep_pool (Data Source) +# decort_cb_grid_get_diagnosis (Data Source) @@ -17,8 +17,7 @@ description: |- ### Required -- `pool_name` (String) pool name -- `sep_id` (Number) storage endpoint provider ID +- `gid` (Number) ### Optional @@ -26,8 +25,8 @@ description: |- ### Read-Only +- `diagnosis` (String) - `id` (String) The ID of this resource. -- `pool` (String) ### Nested Schema for `timeouts` @@ -36,5 +35,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/cb_grid_get_status.md b/docs/data-sources/cb_grid_get_status.md new file mode 100644 index 0000000..a42f5a2 --- /dev/null +++ b/docs/data-sources/cb_grid_get_status.md @@ -0,0 +1,33 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_grid_get_status Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_grid_get_status (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `status` (Boolean) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_grid_list.md b/docs/data-sources/cb_grid_list.md new file mode 100644 index 0000000..5ca3b1e --- /dev/null +++ b/docs/data-sources/cb_grid_list.md @@ -0,0 +1,112 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_grid_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_grid_list (Data Source) + + + + + + +## Schema + +### Optional + +- `by_id` (Number) by id +- `name` (String) name +- `page` (Number) page number +- `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) entry count +- `id` (String) The ID of this resource. +- `items` (List of Object) grid list (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `auth_broker` (List of String) +- `flag` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `location_code` (String) +- `name` (String) +- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources)) + + +### Nested Schema for `items.resources` + +Read-Only: + +- `current` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--current)) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--reserved)) + + +### Nested Schema for `items.resources.current` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--current--seps)) + + +### Nested Schema for `items.resources.current.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.resources.reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--resources--reserved--seps)) + + +### Nested Schema for `items.resources.reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) diff --git a/docs/data-sources/cb_grid_list_consumption.md b/docs/data-sources/cb_grid_list_consumption.md new file mode 100644 index 0000000..8a76d3a --- /dev/null +++ b/docs/data-sources/cb_grid_list_consumption.md @@ -0,0 +1,94 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_grid_list_consumption Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_grid_list_consumption (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) entry count +- `id` (String) The ID of this resource. +- `items` (List of Object) grid list consumption (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `consumed` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed)) +- `id` (Number) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved)) + + +### Nested Schema for `items.consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed--seps)) + + +### Nested Schema for `items.consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `ext_ips` (Number) +- `ext_traffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved--seps)) + + +### Nested Schema for `items.reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) diff --git a/docs/data-sources/cb_grid_list_emails.md b/docs/data-sources/cb_grid_list_emails.md new file mode 100644 index 0000000..a82a3ac --- /dev/null +++ b/docs/data-sources/cb_grid_list_emails.md @@ -0,0 +1,36 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_grid_list_emails Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_grid_list_emails (Data Source) + + + + + + +## Schema + +### Optional + +- `page` (Number) page number +- `size` (Number) page size +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) entry count +- `id` (String) The ID of this resource. +- `items` (List of String) grid list emails + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_grid_post_diagnosis.md b/docs/data-sources/cb_grid_post_diagnosis.md new file mode 100644 index 0000000..55d28a3 --- /dev/null +++ b/docs/data-sources/cb_grid_post_diagnosis.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_grid_post_diagnosis Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_grid_post_diagnosis (Data Source) + + + + + + +## Schema + +### Required + +- `gid` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `diagnosis` (String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_grid_post_status.md b/docs/data-sources/cb_grid_post_status.md new file mode 100644 index 0000000..4409994 --- /dev/null +++ b/docs/data-sources/cb_grid_post_status.md @@ -0,0 +1,33 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_grid_post_status Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_grid_post_status (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `status` (Boolean) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/resources/virtual_image.md b/docs/data-sources/cb_image.md similarity index 78% rename from docs/resources/virtual_image.md rename to docs/data-sources/cb_image.md index 1492684..1fda9eb 100644 --- a/docs/resources/virtual_image.md +++ b/docs/data-sources/cb_image.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_virtual_image Resource - decort" +page_title: "decort_cb_image Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_virtual_image (Resource) +# decort_cb_image (Data Source) @@ -17,55 +17,53 @@ description: |- ### Required -- `name` (String) name of the virtual image to create -- `target_id` (Number) ID of real image to link this virtual image to upon creation +- `image_id` (Number) image id ### Optional -- `account_id` (Number) AccountId to make the image exclusive -- `architecture` (String) binary architecture of this image, one of X86_64 of PPC64_LE -- `bootable` (Boolean) Does this image boot OS -- `computeci_id` (Number) -- `enabled` (Boolean) -- `enabled_stacks` (List of String) -- `hot_resize` (Boolean) Does this machine supports hot resize -- `link_to` (Number) -- `password` (String) Optional password for the image -- `password_dl` (String) password for upload binary media -- `permanently` (Boolean) Whether to completely delete the image -- `pool_name` (String) pool for image create -- `reason` (String) -- `sep_id` (Number) storage endpoint provider ID - `shared_with` (List of Number) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) -- `username` (String) Optional username for the image -- `username_dl` (String) username for upload binary media ### Read-Only +- `account_id` (Number) AccountId to make the image exclusive +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `architecture` (String) binary architecture of this image, one of X86_64 of PPC64_LE - `boot_type` (String) Boot type of image bios or uefi +- `bootable` (Boolean) Does this image boot OS +- `cd_presented_to` (String) +- `computeci_id` (Number) +- `deleted_time` (Number) - `desc` (String) - `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] +- `enabled` (Boolean) - `gid` (Number) grid (platform) ID where this template should be create in - `guid` (Number) - `history` (List of Object) (see [below for nested schema](#nestedatt--history)) +- `hot_resize` (Boolean) Does this machine supports hot resize - `id` (String) The ID of this resource. -- `image_id` (Number) image id - `image_type` (String) Image type linux, windows or other - `last_modified` (Number) -- `meta` (List of String) meta +- `link_to` (Number) - `milestones` (Number) +- `name` (String) Name of the rescue disk +- `network_interface_naming` (String) +- `password` (String) Optional password for the image +- `pool_name` (String) pool for image create +- `present_to` (List of Number) - `provider_name` (String) - `purge_attempts` (Number) - `reference_id` (String) - `res_id` (String) - `res_name` (String) - `rescuecd` (Boolean) +- `sep_id` (Number) storage endpoint provider ID - `size` (Number) image size - `status` (String) status - `tech_status` (String) tech atatus - `unc_path` (String) unc path - `url` (String) URL where to download media from +- `username` (String) Optional username for the image - `version` (String) version @@ -73,11 +71,21 @@ description: |- Optional: -- `create` (String) - `default` (String) -- `delete` (String) - `read` (String) -- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) @@ -88,5 +96,3 @@ Read-Only: - `guid` (String) - `id` (Number) - `timestamp` (Number) - - diff --git a/docs/data-sources/cb_image_list.md b/docs/data-sources/cb_image_list.md new file mode 100644 index 0000000..bcee08d --- /dev/null +++ b/docs/data-sources/cb_image_list.md @@ -0,0 +1,119 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_image_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_image_list (Data Source) + + + + + + +## Schema + +### Optional + +- `architecture` (String) find by architecture +- `bootable` (Boolean) find by bootable True or False +- `by_id` (Number) find by ID +- `hot_resize` (Boolean) find by hot resize True or False +- `image_size` (Number) find by image size +- `name` (String) find by name +- `page` (Number) page number +- `pool` (String) find by pool +- `public` (Boolean) find by public True or False +- `sep_id` (Number) find by storage endpoint provider ID +- `sep_name` (String) find by SEP name +- `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type_image` (String) find by type + +### Read-Only + +- `entry_count` (Number) entry count +- `id` (String) The ID of this resource. +- `items` (List of Object) image list (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `architecture` (String) +- `boot_type` (String) +- `bootable` (Boolean) +- `cd_presented_to` (String) +- `computeci_id` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `drivers` (List of String) +- `enabled` (Boolean) +- `gid` (Number) +- `guid` (Number) +- `history` (List of Object) (see [below for nested schema](#nestedobjatt--items--history)) +- `hot_resize` (Boolean) +- `image_id` (Number) +- `image_type` (String) +- `last_modified` (Number) +- `link_to` (Number) +- `milestones` (Number) +- `name` (String) +- `network_interface_naming` (String) +- `password` (String) +- `pool_name` (String) +- `present_to` (List of Number) +- `provider_name` (String) +- `purge_attempts` (Number) +- `reference_id` (String) +- `res_id` (String) +- `res_name` (String) +- `rescuecd` (Boolean) +- `sep_id` (Number) +- `shared_with` (List of Number) +- `size` (Number) +- `status` (String) +- `tech_status` (String) +- `unc_path` (String) +- `url` (String) +- `username` (String) +- `version` (String) +- `virtual` (Boolean) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.history` + +Read-Only: + +- `guid` (String) +- `id` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_image_list_stacks.md b/docs/data-sources/cb_image_list_stacks.md new file mode 100644 index 0000000..43a1795 --- /dev/null +++ b/docs/data-sources/cb_image_list_stacks.md @@ -0,0 +1,149 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_image_list_stacks Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_image_list_stacks (Data Source) + + + + + + +## Schema + +### Required + +- `image_id` (Number) image id + +### Optional + +- `name` (String) find by name +- `page` (Number) page number +- `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type_image` (String) find by type + +### Read-Only + +- `entry_count` (Number) entry count +- `id` (String) The ID of this resource. +- `items` (List of Object) items of stacks list (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `api_key` (String) +- `api_url` (String) +- `app_id` (String) +- `ckey` (String) +- `cpu_allocation_ratio` (Number) +- `desc` (String) +- `descr` (String) +- `drivers` (List of String) +- `eco` (String) +- `error` (Number) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `images` (List of Number) +- `login` (String) +- `mem_allocation_ratio` (Number) +- `meta` (List of String) +- `name` (String) +- `packages` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages)) +- `passwd` (String) +- `reference_id` (String) +- `status` (String) +- `type` (String) + + +### Nested Schema for `items.packages` + +Read-Only: + +- `libvirt_bin` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--libvirt_bin)) +- `libvirt_daemon` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--libvirt_daemon)) +- `lvm2_lockd` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--lvm2_lockd)) +- `openvswitch_common` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--openvswitch_common)) +- `openvswitch_switch` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--openvswitch_switch)) +- `qemu_system_x86` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--qemu_system_x86)) +- `sanlock` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--sanlock)) + + +### Nested Schema for `items.packages.libvirt_bin` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.libvirt_daemon` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.lvm2_lockd` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.openvswitch_common` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.openvswitch_switch` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.qemu_system_x86` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.sanlock` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) diff --git a/docs/data-sources/cb_k8ci.md b/docs/data-sources/cb_k8ci.md new file mode 100644 index 0000000..60a08a8 --- /dev/null +++ b/docs/data-sources/cb_k8ci.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8ci Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8ci (Data Source) + + + + + + +## Schema + +### Required + +- `k8ci_id` (Number) K8CI ID + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `desc` (String) +- `gid` (Number) gid +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `lb_image_id` (Number) LB Image ID +- `master_driver` (String) +- `master_image_id` (Number) +- `max_master_count` (Number) +- `max_worker_count` (Number) +- `milestones` (Number) +- `name` (String) K8CI name +- `network_plugins` (List of String) +- `shared_with` (List of Number) +- `status` (String) K8CI Status +- `version` (String) +- `worker_driver` (String) +- `worker_image_id` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_k8ci_list.md b/docs/data-sources/cb_k8ci_list.md new file mode 100644 index 0000000..8956974 --- /dev/null +++ b/docs/data-sources/cb_k8ci_list.md @@ -0,0 +1,67 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8ci_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8ci_list (Data Source) + + + + + + +## Schema + +### Optional + +- `by_id` (Number) Filter by ID +- `include_disabled` (Boolean) Include deleted k8cis in result +- `master_driver` (String) Filter by master driver +- `name` (String) Filter by name +- `network_plugin` (String) Filter by network plugin +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `worker_driver` (String) Filter by worker driver + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `created_time` (Number) +- `desc` (String) +- `gid` (Number) +- `guid` (Number) +- `k8ci_id` (Number) +- `lb_image_id` (Number) +- `master_driver` (String) +- `master_image_id` (Number) +- `max_master_count` (Number) +- `max_worker_count` (Number) +- `name` (String) +- `shared_with` (List of Number) +- `status` (String) +- `version` (String) +- `worker_driver` (String) +- `worker_image_id` (Number) diff --git a/docs/data-sources/cb_k8ci_list_deleted.md b/docs/data-sources/cb_k8ci_list_deleted.md new file mode 100644 index 0000000..bdcc7d8 --- /dev/null +++ b/docs/data-sources/cb_k8ci_list_deleted.md @@ -0,0 +1,65 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8ci_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8ci_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `by_id` (Number) Filter by ID +- `master_driver` (String) Filter by master driver +- `name` (String) Filter by name +- `network_plugin` (String) Filter by network plugin +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `worker_driver` (String) Filter by worker driver + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `created_time` (Number) +- `desc` (String) +- `gid` (Number) +- `guid` (Number) +- `k8ci_id` (Number) +- `lb_image_id` (Number) +- `master_driver` (String) +- `master_image_id` (Number) +- `max_master_count` (Number) +- `max_worker_count` (Number) +- `name` (String) +- `shared_with` (List of Number) +- `status` (String) +- `version` (String) +- `worker_driver` (String) +- `worker_image_id` (Number) diff --git a/docs/data-sources/cb_k8s.md b/docs/data-sources/cb_k8s.md new file mode 100644 index 0000000..58f6f92 --- /dev/null +++ b/docs/data-sources/cb_k8s.md @@ -0,0 +1,210 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `bservice_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `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. +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `k8s_ci_name` (String) +- `k8s_groups` (List of Object) (see [below for nested schema](#nestedatt--k8s_groups)) +- `k8sci_id` (Number) +- `kubeconfig` (String) Kubeconfig for cluster access. +- `lb_id` (Number) +- `lb_ip` (String) IP address of default load balancer. +- `milestones` (Number) +- `name` (String) +- `network_plugin` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `service_account` (List of Object) (see [below for nested schema](#nestedatt--service_account)) +- `ssh_key` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--account_acl)) +- `k8s_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--k8s_acl)) +- `rg_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--rg_acl)) + + +### Nested Schema for `acl.account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.k8s_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + + +### Nested Schema for `k8s_groups` + +Read-Only: + +- `masters` (List of Object) (see [below for nested schema](#nestedobjatt--k8s_groups--masters)) +- `workers` (List of Object) (see [below for nested schema](#nestedobjatt--k8s_groups--workers)) + + +### Nested Schema for `k8s_groups.masters` + +Read-Only: + +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--k8s_groups--masters--detailed_info)) +- `disk` (Number) +- `master_id` (Number) +- `name` (String) +- `num` (Number) +- `ram` (Number) + + +### Nested Schema for `k8s_groups.masters.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `external_ip` (String) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--k8s_groups--masters--detailed_info--interfaces)) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `k8s_groups.masters.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) + + + + + +### Nested Schema for `k8s_groups.workers` + +Read-Only: + +- `annotations` (List of String) +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--k8s_groups--workers--detailed_info)) +- `disk` (Number) +- `guid` (String) +- `id` (Number) +- `labels` (List of String) +- `name` (String) +- `num` (Number) +- `ram` (Number) +- `taints` (List of String) + + +### Nested Schema for `k8s_groups.workers.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `external_ip` (String) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--k8s_groups--workers--detailed_info--interfaces)) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `k8s_groups.workers.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) + + + + + + +### Nested Schema for `service_account` + +Read-Only: + +- `guid` (String) +- `password` (String) +- `username` (String) diff --git a/docs/data-sources/cb_k8s_computes.md b/docs/data-sources/cb_k8s_computes.md new file mode 100644 index 0000000..16db778 --- /dev/null +++ b/docs/data-sources/cb_k8s_computes.md @@ -0,0 +1,62 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_computes Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_computes (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `masters` (List of Object) (see [below for nested schema](#nestedatt--masters)) +- `workers` (List of Object) (see [below for nested schema](#nestedatt--workers)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `masters` + +Read-Only: + +- `group_name` (String) +- `id` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + + +### Nested Schema for `workers` + +Read-Only: + +- `group_name` (String) +- `id` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) diff --git a/docs/data-sources/cb_k8s_list.md b/docs/data-sources/cb_k8s_list.md new file mode 100644 index 0000000..9e11ff1 --- /dev/null +++ b/docs/data-sources/cb_k8s_list.md @@ -0,0 +1,103 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_list (Data Source) + + + + + + +## Schema + +### Optional + +- `basic_service_id` (Number) Filter by BasicServiceID +- `by_id` (Number) Filter by ID +- `include_deleted` (Boolean) Include deleted k8s in result +- `ip_address` (String) Filter by ipAddress +- `lb_id` (Number) Filter by LBID +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RGID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `tech_status` (String) Filter by Tech Status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of String) +- `bservice_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `extnet_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `k8s_id` (Number) +- `k8s_name` (String) +- `k8sci_id` (Number) +- `kubeconfig` (String) +- `lb_id` (Number) +- `milestones` (Number) +- `network_plugin` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `service_account` (List of Object) (see [below for nested schema](#nestedobjatt--items--service_account)) +- `ssh_key` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) +- `workers_groups` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups)) + + +### Nested Schema for `items.service_account` + +Read-Only: + +- `guid` (String) +- `password` (String) +- `username` (String) + + + +### Nested Schema for `items.workers_groups` + +Read-Only: + +- `annotations` (List of String) +- `guid` (String) +- `id` (Number) +- `labels` (List of String) +- `taints` (List of String) diff --git a/docs/data-sources/cb_k8s_list_deleted.md b/docs/data-sources/cb_k8s_list_deleted.md new file mode 100644 index 0000000..2a6de39 --- /dev/null +++ b/docs/data-sources/cb_k8s_list_deleted.md @@ -0,0 +1,127 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `basic_service_id` (Number) Filter by BasicServiceID +- `by_id` (Number) Filter by ID +- `ip_address` (String) Filter by ipAddress +- `lb_id` (Number) Filter by LBID +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RGID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Filter by Tech Status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of String) +- `bservice_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `extnet_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `k8s_id` (Number) +- `k8s_name` (String) +- `k8sci_id` (Number) +- `kubeconfig` (String) +- `lb_id` (Number) +- `milestones` (Number) +- `network_plugin` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `service_account` (List of Object) (see [below for nested schema](#nestedobjatt--items--service_account)) +- `ssh_key` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) +- `workers_groups` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups)) + + +### Nested Schema for `items.service_account` + +Read-Only: + +- `guid` (String) +- `password` (String) +- `username` (String) + + + +### Nested Schema for `items.workers_groups` + +Read-Only: + +- `annotations` (List of String) +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups--detailed_info)) +- `disk` (Number) +- `guid` (String) +- `id` (Number) +- `labels` (List of String) +- `name` (String) +- `num` (Number) +- `ram` (Number) +- `taints` (List of String) + + +### Nested Schema for `items.workers_groups.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `external_ip` (String) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups--detailed_info--interfaces)) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `items.workers_groups.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/cb_k8s_wg.md b/docs/data-sources/cb_k8s_wg.md new file mode 100644 index 0000000..55ea8ed --- /dev/null +++ b/docs/data-sources/cb_k8s_wg.md @@ -0,0 +1,68 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_wg Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_wg (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) ID of k8s instance. +- `wg_id` (Number) ID of k8s worker Group. + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `annotations` (List of String) +- `cpu` (Number) Worker node CPU count. +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--detailed_info)) +- `disk` (Number) Worker node boot disk size. If unspecified or 0, size is defined by OS image size. +- `guid` (String) +- `id` (String) The ID of this resource. +- `labels` (List of String) +- `name` (String) Name of the worker group. +- `num` (Number) Number of worker nodes to create. +- `ram` (Number) Worker node RAM in MB. +- `taints` (List of String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `external_ip` (String) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--detailed_info--interfaces)) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/cb_k8s_wg_cloud_init.md b/docs/data-sources/cb_k8s_wg_cloud_init.md new file mode 100644 index 0000000..d41d2e7 --- /dev/null +++ b/docs/data-sources/cb_k8s_wg_cloud_init.md @@ -0,0 +1,38 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_wg_cloud_init Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_wg_cloud_init (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) Kubernetes cluster ID +- `wg_id` (Number) ID of the workers compute group + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `cloud_init` (String) Worker group Cloud init +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_k8s_wg_list.md b/docs/data-sources/cb_k8s_wg_list.md new file mode 100644 index 0000000..0bca899 --- /dev/null +++ b/docs/data-sources/cb_k8s_wg_list.md @@ -0,0 +1,75 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_wg_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_wg_list (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `annotations` (List of String) +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--detailed_info)) +- `disk` (Number) +- `guid` (String) +- `labels` (List of String) +- `name` (String) +- `num` (Number) +- `ram` (Number) +- `taints` (List of String) +- `wg_id` (Number) + + +### Nested Schema for `items.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `external_ip` (String) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--detailed_info--interfaces)) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `items.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/cb_kvmvm.md b/docs/data-sources/cb_kvmvm.md new file mode 100644 index 0000000..f40362a --- /dev/null +++ b/docs/data-sources/cb_kvmvm.md @@ -0,0 +1,312 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) Get compute by id + +### Optional + +- `reason` (String) reason for action +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) ID of the account this compute instance belongs to. +- `account_name` (String) Name of the account this compute instance belongs to. +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedatt--affinity_rules)) +- `affinity_weight` (Number) +- `anti_affinity_rules` (List of Object) (see [below for nested schema](#nestedatt--anti_affinity_rules)) +- `arch` (String) +- `boot_disk_id` (Number) +- `boot_disk_size` (Number) +- `boot_order` (List of String) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `computeci_id` (Number) +- `cpu_pin` (Boolean) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `custom_fields` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `devices` (String) +- `disks` (List of Object) (see [below for nested schema](#nestedatt--disks)) +- `driver` (String) +- `gid` (Number) +- `guid` (Number) +- `hp_backed` (Boolean) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `image_name` (String) +- `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `name` (String) +- `natable_vins_id` (Number) +- `natable_vins_ip` (String) +- `natable_vins_name` (String) +- `natable_vins_network` (String) +- `natable_vins_network_name` (String) +- `need_reboot` (Boolean) +- `numa_affinity` (String) +- `numa_node_id` (Number) +- `os_users` (List of Object) (see [below for nested schema](#nestedatt--os_users)) +- `pinned` (Boolean) +- `pool` (String) +- `ram` (Number) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) +- `rg_id` (Number) +- `rg_name` (String) +- `sep_id` (Number) +- `snap_sets` (List of Object) (see [below for nested schema](#nestedatt--snap_sets)) +- `stack_id` (Number) +- `stack_name` (String) +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tags` (List of Object) (see [below for nested schema](#nestedatt--tags)) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_data` (String) +- `user_managed` (Boolean) +- `vgpus` (List of Number) +- `virtual_image_id` (Number) +- `virtual_image_name` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (String) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `anti_affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `disks` + +Read-Only: + +- `account_id` (Number) +- `boot_partition` (Number) +- `ckey` (String) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `disk_id` (Number) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `image_id` (Number) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--disks--iotune)) +- `iqn` (String) +- `login` (String) +- `meta` (List of String) +- `milestones` (Number) +- `name` (String) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--disks--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--disks--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `disks.iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `disks.replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `disks.snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) + + + + +### Nested Schema for `interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `os_users` + +Read-Only: + +- `guid` (String) +- `login` (String) +- `password` (String) +- `public_key` (String) + + + +### Nested Schema for `snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) + + + +### Nested Schema for `tags` + +Read-Only: + +- `key` (String) +- `val` (String) diff --git a/docs/data-sources/cb_kvmvm_affinity_relations.md b/docs/data-sources/cb_kvmvm_affinity_relations.md new file mode 100644 index 0000000..e0bd7d0 --- /dev/null +++ b/docs/data-sources/cb_kvmvm_affinity_relations.md @@ -0,0 +1,42 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_affinity_relations Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_affinity_relations (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `other_node` (List of String) +- `other_node_indirect` (List of String) +- `other_node_indirect_soft` (List of String) +- `other_node_soft` (List of String) +- `same_node` (List of String) +- `same_node_soft` (List of String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/grid_list.md b/docs/data-sources/cb_kvmvm_audits.md similarity index 60% rename from docs/data-sources/grid_list.md rename to docs/data-sources/cb_kvmvm_audits.md index 030b1fa..b3b0020 100644 --- a/docs/data-sources/grid_list.md +++ b/docs/data-sources/cb_kvmvm_audits.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_grid_list Data Source - decort" +page_title: "decort_cb_kvmvm_audits Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_grid_list (Data Source) +# decort_cb_kvmvm_audits (Data Source) @@ -15,16 +15,18 @@ description: |- ## Schema +### Required + +- `compute_id` (Number) + ### Optional -- `page` (Number) page number -- `size` (Number) page size - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only - `id` (String) The ID of this resource. -- `items` (List of Object) grid list (see [below for nested schema](#nestedatt--items)) +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) ### Nested Schema for `timeouts` @@ -40,11 +42,8 @@ Optional: Read-Only: -- `flag` (String) -- `gid` (Number) -- `guid` (Number) -- `id` (Number) -- `location_code` (String) -- `name` (String) - - +- `call` (String) +- `responsetime` (Number) +- `statuscode` (Number) +- `timestamp` (Number) +- `user` (String) diff --git a/docs/data-sources/cb_kvmvm_boot_order_get.md b/docs/data-sources/cb_kvmvm_boot_order_get.md new file mode 100644 index 0000000..26f6a6d --- /dev/null +++ b/docs/data-sources/cb_kvmvm_boot_order_get.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_boot_order_get Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_boot_order_get (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `boot_order` (List of String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_kvmvm_get_audits.md b/docs/data-sources/cb_kvmvm_get_audits.md new file mode 100644 index 0000000..cb66e2c --- /dev/null +++ b/docs/data-sources/cb_kvmvm_get_audits.md @@ -0,0 +1,47 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_get_audits Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_get_audits (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `reason` (String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `epoch` (Number) +- `message` (String) diff --git a/docs/data-sources/cb_kvmvm_get_console_url.md b/docs/data-sources/cb_kvmvm_get_console_url.md new file mode 100644 index 0000000..c764a67 --- /dev/null +++ b/docs/data-sources/cb_kvmvm_get_console_url.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_get_console_url Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_get_console_url (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `console_url` (String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_kvmvm_get_log.md b/docs/data-sources/cb_kvmvm_get_log.md new file mode 100644 index 0000000..b46b39d --- /dev/null +++ b/docs/data-sources/cb_kvmvm_get_log.md @@ -0,0 +1,38 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_get_log Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_get_log (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) +- `path` (String) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `log` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_kvmvm_list.md b/docs/data-sources/cb_kvmvm_list.md new file mode 100644 index 0000000..bddc64a --- /dev/null +++ b/docs/data-sources/cb_kvmvm_list.md @@ -0,0 +1,235 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Find by AccountID +- `by_id` (Number) Find by ID +- `extnet_id` (Number) Find by Extnet ID +- `extnet_name` (String) Find by Extnet name +- `ignore_k8s` (Boolean) If set to true, ignores any VMs associated with any k8s cluster +- `includedeleted` (Boolean) +- `ip_address` (String) Find by IP address +- `name` (String) Find by name +- `page` (Number) +- `rg_id` (Number) Find by RGID +- `rg_name` (String) Find by resgroup name +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `tech_status` (String) Find by tech status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--affinity_rules)) +- `affinity_weight` (Number) +- `anti_affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--anti_affinity_rules)) +- `arch` (String) +- `boot_order` (List of String) +- `bootdisk_size` (Number) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `compute_id` (Number) +- `computeci_id` (Number) +- `cpu_pin` (Boolean) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `custom_fields` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `devices` (String) +- `disks` (List of Object) (see [below for nested schema](#nestedobjatt--items--disks)) +- `driver` (String) +- `gid` (Number) +- `guid` (Number) +- `hp_backed` (Boolean) +- `image_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `name` (String) +- `need_reboot` (Boolean) +- `numa_affinity` (String) +- `numa_node_id` (Number) +- `os_users` (List of Object) (see [below for nested schema](#nestedobjatt--items--os_users)) +- `pinned` (Boolean) +- `ram` (Number) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) +- `rg_id` (Number) +- `rg_name` (String) +- `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets)) +- `stack_id` (Number) +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tags` (List of Object) (see [below for nested schema](#nestedobjatt--items--tags)) +- `tech_status` (String) +- `total_disk_size` (Number) +- `updated_by` (String) +- `updated_time` (Number) +- `user_data` (String) +- `user_managed` (Boolean) +- `vgpus` (List of Number) +- `vins_connected` (Number) +- `virtual_image_id` (Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (String) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.anti_affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.disks` + +Read-Only: + +- `disk_id` (Number) +- `pci_slot` (Number) + + + +### Nested Schema for `items.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `items.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `items.os_users` + +Read-Only: + +- `guid` (String) +- `login` (String) +- `password` (String) +- `public_key` (String) + + + +### Nested Schema for `items.snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) + + + +### Nested Schema for `items.tags` + +Read-Only: + +- `key` (String) +- `val` (String) diff --git a/docs/data-sources/cb_kvmvm_list_deleted.md b/docs/data-sources/cb_kvmvm_list_deleted.md new file mode 100644 index 0000000..cd7d783 --- /dev/null +++ b/docs/data-sources/cb_kvmvm_list_deleted.md @@ -0,0 +1,233 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Find by AccountID +- `by_id` (Number) Find by ID +- `extnet_id` (Number) Find by Extnet ID +- `extnet_name` (String) Find by Extnet name +- `ignore_k8s` (Boolean) If set to true, ignores any VMs associated with any k8s cluster +- `ip_address` (String) Find by IP address +- `name` (String) Find by name +- `page` (Number) +- `rg_id` (Number) Find by RGID +- `rg_name` (String) Find by resgroup name +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Find by tech status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--affinity_rules)) +- `affinity_weight` (Number) +- `anti_affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--anti_affinity_rules)) +- `arch` (String) +- `boot_order` (List of String) +- `bootdisk_size` (Number) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `compute_id` (Number) +- `computeci_id` (Number) +- `cpu_pin` (Boolean) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `custom_fields` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `devices` (String) +- `disks` (List of Object) (see [below for nested schema](#nestedobjatt--items--disks)) +- `driver` (String) +- `gid` (Number) +- `guid` (Number) +- `hp_backed` (Boolean) +- `image_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `name` (String) +- `need_reboot` (Boolean) +- `numa_affinity` (String) +- `numa_node_id` (Number) +- `os_users` (List of Object) (see [below for nested schema](#nestedobjatt--items--os_users)) +- `pinned` (Boolean) +- `ram` (Number) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) +- `rg_id` (Number) +- `rg_name` (String) +- `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets)) +- `stack_id` (Number) +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tags` (List of Object) (see [below for nested schema](#nestedobjatt--items--tags)) +- `tech_status` (String) +- `total_disk_size` (Number) +- `updated_by` (String) +- `updated_time` (Number) +- `user_data` (String) +- `user_managed` (Boolean) +- `vgpus` (List of Number) +- `vins_connected` (Number) +- `virtual_image_id` (Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (String) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.anti_affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.disks` + +Read-Only: + +- `disk_id` (Number) +- `pci_slot` (Number) + + + +### Nested Schema for `items.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `items.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `items.os_users` + +Read-Only: + +- `guid` (String) +- `login` (String) +- `password` (String) +- `public_key` (String) + + + +### Nested Schema for `items.snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) + + + +### Nested Schema for `items.tags` + +Read-Only: + +- `key` (String) +- `val` (String) diff --git a/docs/data-sources/cb_kvmvm_migrate_storage_info.md b/docs/data-sources/cb_kvmvm_migrate_storage_info.md new file mode 100644 index 0000000..c149bec --- /dev/null +++ b/docs/data-sources/cb_kvmvm_migrate_storage_info.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_migrate_storage_info Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_migrate_storage_info (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `migrate_storage_info` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_kvmvm_pci_device_list.md b/docs/data-sources/cb_kvmvm_pci_device_list.md new file mode 100644 index 0000000..40e9bab --- /dev/null +++ b/docs/data-sources/cb_kvmvm_pci_device_list.md @@ -0,0 +1,64 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_pci_device_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_pci_device_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `device_id` (Number) Find by device id +- `name` (String) Find by name +- `page` (Number) Page number +- `rg_id` (Number) Find by RG id +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `ckey` (String) +- `compute_id` (Number) +- `description` (String) +- `device_id` (Number) +- `guid` (Number) +- `hwpath` (String) +- `meta` (List of String) +- `name` (String) +- `rg_id` (Number) +- `stack_id` (Number) +- `status` (String) +- `system_name` (String) diff --git a/docs/data-sources/cb_kvmvm_pfw_list.md b/docs/data-sources/cb_kvmvm_pfw_list.md new file mode 100644 index 0000000..b32a865 --- /dev/null +++ b/docs/data-sources/cb_kvmvm_pfw_list.md @@ -0,0 +1,53 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_pfw_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_pfw_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `reason` (String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `local_ip` (String) +- `local_port` (Number) +- `pfw_id` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/cb_kvmvm_snapshot_list.md b/docs/data-sources/cb_kvmvm_snapshot_list.md new file mode 100644 index 0000000..2778043 --- /dev/null +++ b/docs/data-sources/cb_kvmvm_snapshot_list.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_snapshot_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_snapshot_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_kvmvm_snapshot_usage.md b/docs/data-sources/cb_kvmvm_snapshot_usage.md new file mode 100644 index 0000000..5d89b37 --- /dev/null +++ b/docs/data-sources/cb_kvmvm_snapshot_usage.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_snapshot_usage Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_snapshot_usage (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `label` (String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `count` (Number) +- `label` (String) +- `stored` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/cb_kvmvm_user_list.md b/docs/data-sources/cb_kvmvm_user_list.md new file mode 100644 index 0000000..019465b --- /dev/null +++ b/docs/data-sources/cb_kvmvm_user_list.md @@ -0,0 +1,78 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_user_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_user_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_acl` (List of Object) (see [below for nested schema](#nestedatt--account_acl)) +- `compute_acl` (List of Object) (see [below for nested schema](#nestedatt--compute_acl)) +- `id` (String) The ID of this resource. +- `rg_acl` (List of Object) (see [below for nested schema](#nestedatt--rg_acl)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `compute_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) diff --git a/docs/data-sources/cb_kvmvm_vgpu_list.md b/docs/data-sources/cb_kvmvm_vgpu_list.md new file mode 100644 index 0000000..0d55b23 --- /dev/null +++ b/docs/data-sources/cb_kvmvm_vgpu_list.md @@ -0,0 +1,70 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm_vgpu_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm_vgpu_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `gpu_id` (Number) Find by GPU id +- `includedeleted` (Boolean) Include deleted computes. If using field 'status', then includedeleted will be ignored +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) Find by type + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `created_time` (Number) +- `deleted_time` (Number) +- `gid` (Number) +- `guid` (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) +- `vgpu_id` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/cb_lb.md b/docs/data-sources/cb_lb.md new file mode 100644 index 0000000..7920940 --- /dev/null +++ b/docs/data-sources/cb_lb.md @@ -0,0 +1,168 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb (Data Source) + + + + + + +## Schema + +### Required + +- `lb_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `acl` (String) +- `backend_haip` (String) +- `backends` (List of Object) (see [below for nested schema](#nestedatt--backends)) +- `ckey` (String) +- `desc` (String) +- `dp_api_password` (String) +- `dp_api_user` (String) +- `extnet_id` (Number) +- `frontend_haip` (String) +- `frontends` (List of Object) (see [below for nested schema](#nestedatt--frontends)) +- `gid` (Number) +- `guid` (Number) +- `ha_mode` (Boolean) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) +- `meta` (List of String) +- `milestones` (Number) +- `name` (String) +- `part_k8s` (Boolean) +- `primary_node` (List of Object) (see [below for nested schema](#nestedatt--primary_node)) +- `rg_id` (Number) +- `secondary_node` (List of Object) (see [below for nested schema](#nestedatt--secondary_node)) +- `status` (String) +- `tech_status` (String) +- `user_managed` (Boolean) +- `vins_id` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `backends` + +Read-Only: + +- `algorithm` (String) +- `guid` (String) +- `name` (String) +- `server_default_settings` (List of Object) (see [below for nested schema](#nestedobjatt--backends--server_default_settings)) +- `servers` (List of Object) (see [below for nested schema](#nestedobjatt--backends--servers)) + + +### Nested Schema for `backends.server_default_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + +### Nested Schema for `backends.servers` + +Read-Only: + +- `address` (String) +- `check` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) +- `server_settings` (List of Object) (see [below for nested schema](#nestedobjatt--backends--servers--server_settings)) + + +### Nested Schema for `backends.servers.server_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + + + +### Nested Schema for `frontends` + +Read-Only: + +- `backend` (String) +- `bindings` (List of Object) (see [below for nested schema](#nestedobjatt--frontends--bindings)) +- `guid` (String) +- `name` (String) + + +### Nested Schema for `frontends.bindings` + +Read-Only: + +- `address` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) + + + + +### Nested Schema for `primary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) + + + +### Nested Schema for `secondary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) diff --git a/docs/data-sources/cb_lb_list.md b/docs/data-sources/cb_lb_list.md new file mode 100644 index 0000000..1267fb2 --- /dev/null +++ b/docs/data-sources/cb_lb_list.md @@ -0,0 +1,189 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Filter by Account ID +- `back_ip` (String) Filter by BackIP +- `by_id` (Number) Filter by ID +- `front_ip` (String) Filter by FrontIP +- `includedeleted` (Boolean) +- `name` (String) Filter by name +- `page` (Number) +- `rg_id` (Number) Filter by RG ID +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by Status +- `tech_status` (String) Filter by TechStatus +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `acl` (String) +- `backend_haip` (String) +- `backends` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends)) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dp_api_password` (String) +- `dp_api_user` (String) +- `extnet_id` (Number) +- `frontend_haip` (String) +- `frontends` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends)) +- `gid` (Number) +- `guid` (Number) +- `ha_mode` (Boolean) +- `lb_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) +- `milestones` (Number) +- `name` (String) +- `part_k8s` (Boolean) +- `primary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--primary_node)) +- `rg_id` (Number) +- `rg_name` (String) +- `secondary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--secondary_node)) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_id` (Number) + + +### Nested Schema for `items.backends` + +Read-Only: + +- `algorithm` (String) +- `guid` (String) +- `name` (String) +- `server_default_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--server_default_settings)) +- `servers` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers)) + + +### Nested Schema for `items.backends.server_default_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + +### Nested Schema for `items.backends.servers` + +Read-Only: + +- `address` (String) +- `check` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) +- `server_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers--server_settings)) + + +### Nested Schema for `items.backends.servers.server_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + + + +### Nested Schema for `items.frontends` + +Read-Only: + +- `backend` (String) +- `bindings` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends--bindings)) +- `guid` (String) +- `name` (String) + + +### Nested Schema for `items.frontends.bindings` + +Read-Only: + +- `address` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) + + + + +### Nested Schema for `items.primary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) + + + +### Nested Schema for `items.secondary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) diff --git a/docs/data-sources/cb_lb_list_deleted.md b/docs/data-sources/cb_lb_list_deleted.md new file mode 100644 index 0000000..8285199 --- /dev/null +++ b/docs/data-sources/cb_lb_list_deleted.md @@ -0,0 +1,187 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Filter by Account ID +- `back_ip` (String) Filter by BackIP +- `by_id` (Number) Filter by ID +- `front_ip` (String) Filter by FrontIP +- `name` (String) Filter by name +- `page` (Number) +- `rg_id` (Number) Filter by RG ID +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Filter by TechStatus +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `acl` (String) +- `backend_haip` (String) +- `backends` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends)) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dp_api_password` (String) +- `dp_api_user` (String) +- `extnet_id` (Number) +- `frontend_haip` (String) +- `frontends` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends)) +- `gid` (Number) +- `guid` (Number) +- `ha_mode` (Boolean) +- `lb_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) +- `milestones` (Number) +- `name` (String) +- `part_k8s` (Boolean) +- `primary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--primary_node)) +- `rg_id` (Number) +- `rg_name` (String) +- `secondary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--secondary_node)) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_id` (Number) + + +### Nested Schema for `items.backends` + +Read-Only: + +- `algorithm` (String) +- `guid` (String) +- `name` (String) +- `server_default_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--server_default_settings)) +- `servers` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers)) + + +### Nested Schema for `items.backends.server_default_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + +### Nested Schema for `items.backends.servers` + +Read-Only: + +- `address` (String) +- `check` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) +- `server_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers--server_settings)) + + +### Nested Schema for `items.backends.servers.server_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + + + +### Nested Schema for `items.frontends` + +Read-Only: + +- `backend` (String) +- `bindings` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends--bindings)) +- `guid` (String) +- `name` (String) + + +### Nested Schema for `items.frontends.bindings` + +Read-Only: + +- `address` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) + + + + +### Nested Schema for `items.primary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) + + + +### Nested Schema for `items.secondary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) diff --git a/docs/data-sources/cb_node.md b/docs/data-sources/cb_node.md new file mode 100644 index 0000000..c35dd0f --- /dev/null +++ b/docs/data-sources/cb_node.md @@ -0,0 +1,158 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_node Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_node (Data Source) + + + + + + +## Schema + +### Required + +- `node_id` (Number) node id + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `consumption` (List of Object) (see [below for nested schema](#nestedatt--consumption)) +- `cpu_allocation_ratio` (Number) +- `cpu_info` (List of Object) (see [below for nested schema](#nestedatt--cpu_info)) +- `gid` (Number) +- `id` (String) The ID of this resource. +- `ipaddr` (List of String) +- `isolated_cpus` (List of String) +- `name` (String) +- `need_reboot` (Boolean) +- `nic_info` (List of Object) (see [below for nested schema](#nestedatt--nic_info)) +- `numa_topology` (List of Object) (see [below for nested schema](#nestedatt--numa_topology)) +- `reserved_cpus` (List of String) +- `roles` (List of String) +- `sriov_enabled` (Boolean) +- `stack_id` (Number) +- `status` (String) +- `version` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `consumption` + +Read-Only: + +- `consumed` (List of Object) (see [below for nested schema](#nestedobjatt--consumption--consumed)) +- `free` (List of Object) (see [below for nested schema](#nestedobjatt--consumption--free)) +- `hostname` (String) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--consumption--reserved)) +- `total` (List of Object) (see [below for nested schema](#nestedobjatt--consumption--total)) + + +### Nested Schema for `consumption.consumed` + +Read-Only: + +- `computes` (Number) +- `ram` (Number) +- `routers` (Number) +- `vcpu` (Number) + + + +### Nested Schema for `consumption.free` + +Read-Only: + +- `ram` (Number) + + + +### Nested Schema for `consumption.reserved` + +Read-Only: + +- `ram` (Number) + + + +### Nested Schema for `consumption.total` + +Read-Only: + +- `ram` (Number) + + + + +### Nested Schema for `cpu_info` + +Read-Only: + +- `clock_speed` (Number) +- `core_count` (Number) +- `phys_count` (Number) + + + +### Nested Schema for `nic_info` + +Read-Only: + +- `driver` (String) +- `max_vfs` (Number) +- `num_vfs` (Number) +- `numa_node` (Number) +- `os_name` (String) +- `pci_slot` (String) +- `vf_list` (List of Object) (see [below for nested schema](#nestedobjatt--nic_info--vf_list)) + + +### Nested Schema for `nic_info.vf_list` + +Read-Only: + +- `fn_id` (Number) +- `pci_slot` (String) + + + + +### Nested Schema for `numa_topology` + +Read-Only: + +- `node_num` (Number) +- `nodes` (List of Object) (see [below for nested schema](#nestedobjatt--numa_topology--nodes)) + + +### Nested Schema for `numa_topology.nodes` + +Read-Only: + +- `cpu_list` (List of Number) +- `memory` (List of Object) (see [below for nested schema](#nestedobjatt--numa_topology--nodes--memory)) + + +### Nested Schema for `numa_topology.nodes.memory` + +Read-Only: + +- `one_g` (Number) +- `total` (Number) +- `two_m` (Number) diff --git a/docs/data-sources/cb_node_list.md b/docs/data-sources/cb_node_list.md new file mode 100644 index 0000000..2f8c20f --- /dev/null +++ b/docs/data-sources/cb_node_list.md @@ -0,0 +1,160 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_node_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_node_list (Data Source) + + + + + + +## Schema + +### Optional + +- `by_id` (Number) find node by id +- `name` (String) find node by name +- `page` (Number) page number +- `release` (String) find node by release +- `role` (String) find node by role +- `sep_id` (Number) find node by sepId +- `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) find node by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `version` (String) find node by version + +### Read-Only + +- `entry_count` (Number) entry count +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `additional_pkgs` (List of String) +- `cpu_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--cpu_info)) +- `description` (String) +- `gid` (Number) +- `guid` (String) +- `hostkey` (String) +- `ipaddr` (List of String) +- `isolated_cpus` (List of String) +- `lastcheck` (Number) +- `machine_guid` (String) +- `mainboard_sn` (String) +- `memory` (Number) +- `milestones` (Number) +- `model` (String) +- `name` (String) +- `need_reboot` (Boolean) +- `net_addr` (List of Object) (see [below for nested schema](#nestedobjatt--items--net_addr)) +- `network_mode` (String) +- `nic_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--nic_info)) +- `node_id` (Number) +- `node_uuid` (String) +- `numa_topology` (List of Object) (see [below for nested schema](#nestedobjatt--items--numa_topology)) +- `peer_backup` (Number) +- `peer_log` (Number) +- `peer_stats` (Number) +- `pgpus` (List of Number) +- `public_keys` (List of String) +- `release` (String) +- `reserved_cpus` (List of String) +- `roles` (List of String) +- `seps` (List of Number) +- `serial_num` (String) +- `sriov_enabled` (Boolean) +- `stack_id` (Number) +- `status` (String) +- `tags` (List of String) +- `type` (String) +- `version` (String) + + +### Nested Schema for `items.cpu_info` + +Read-Only: + +- `clock_speed` (Number) +- `core_count` (Number) +- `phys_count` (Number) + + + +### Nested Schema for `items.net_addr` + +Read-Only: + +- `cidr` (List of String) +- `index` (Number) +- `ip` (List of String) +- `mac` (String) +- `mtu` (Number) +- `name` (String) + + + +### Nested Schema for `items.nic_info` + +Read-Only: + +- `driver` (String) +- `max_vfs` (Number) +- `num_vfs` (Number) +- `numa_node` (Number) +- `os_name` (String) +- `pci_slot` (String) +- `vf_list` (List of Object) (see [below for nested schema](#nestedobjatt--items--nic_info--vf_list)) + + +### Nested Schema for `items.nic_info.vf_list` + +Read-Only: + +- `fn_id` (Number) +- `pci_slot` (String) + + + + +### Nested Schema for `items.numa_topology` + +Read-Only: + +- `node_num` (Number) +- `nodes` (List of Object) (see [below for nested schema](#nestedobjatt--items--numa_topology--nodes)) + + +### Nested Schema for `items.numa_topology.nodes` + +Read-Only: + +- `cpu_list` (List of Number) +- `memory` (List of Object) (see [below for nested schema](#nestedobjatt--items--numa_topology--nodes--memory)) + + +### Nested Schema for `items.numa_topology.nodes.memory` + +Read-Only: + +- `one_g` (Number) +- `total` (Number) +- `two_m` (Number) diff --git a/docs/data-sources/pcidevice.md b/docs/data-sources/cb_pcidevice.md similarity index 86% rename from docs/data-sources/pcidevice.md rename to docs/data-sources/cb_pcidevice.md index a3c6a09..c7d76d0 100644 --- a/docs/data-sources/pcidevice.md +++ b/docs/data-sources/cb_pcidevice.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_pcidevice Data Source - decort" +page_title: "decort_cb_pcidevice Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_pcidevice (Data Source) +# decort_cb_pcidevice (Data Source) @@ -45,5 +45,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/pcidevice_list.md b/docs/data-sources/cb_pcidevice_list.md similarity index 71% rename from docs/data-sources/pcidevice_list.md rename to docs/data-sources/cb_pcidevice_list.md index 1555214..1c39742 100644 --- a/docs/data-sources/pcidevice_list.md +++ b/docs/data-sources/cb_pcidevice_list.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_pcidevice_list Data Source - decort" +page_title: "decort_cb_pcidevice_list Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_pcidevice_list (Data Source) +# decort_cb_pcidevice_list (Data Source) @@ -17,10 +17,18 @@ description: |- ### Optional +- `by_id` (Number) by_id +- `compute_id` (Number) compute_id +- `name` (String) name +- `page` (Number) page number +- `rg_id` (Number) rg_id +- `size` (Number) page size +- `status` (String) status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) entry count - `id` (String) The ID of this resource. - `items` (List of Object) pcidevice list (see [below for nested schema](#nestedatt--items)) @@ -50,5 +58,3 @@ Read-Only: - `stack_id` (Number) - `status` (String) - `system_name` (String) - - diff --git a/docs/data-sources/cb_rg.md b/docs/data-sources/cb_rg.md new file mode 100644 index 0000000..d03f090 --- /dev/null +++ b/docs/data-sources/cb_rg.md @@ -0,0 +1,93 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) + +### Optional + +- `reason` (String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `compute_features` (List of String) +- `computes` (List of Number) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `def_net_id` (Number) +- `def_net_type` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dirty` (Boolean) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `lock_status` (String) +- `milestones` (Number) +- `name` (String) +- `register_computes` (Boolean) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) +- `resource_types` (List of String) +- `secret` (String) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins` (List of Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_rg_affinity_group_computes.md b/docs/data-sources/cb_rg_affinity_group_computes.md new file mode 100644 index 0000000..570df39 --- /dev/null +++ b/docs/data-sources/cb_rg_affinity_group_computes.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_affinity_group_computes Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_affinity_group_computes (Data Source) + + + + + + +## Schema + +### Required + +- `affinity_group` (String) Affinity group label +- `rg_id` (Number) ID of the RG + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `compute_id` (Number) +- `other_node` (List of Number) +- `other_node_indirect` (List of Number) +- `other_node_indirect_soft` (List of Number) +- `other_node_soft` (List of Number) +- `same_node` (List of Number) +- `same_node_soft` (List of Number) diff --git a/docs/data-sources/cb_rg_affinity_groups_get.md b/docs/data-sources/cb_rg_affinity_groups_get.md new file mode 100644 index 0000000..2850f7f --- /dev/null +++ b/docs/data-sources/cb_rg_affinity_groups_get.md @@ -0,0 +1,38 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_affinity_groups_get Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_affinity_groups_get (Data Source) + + + + + + +## Schema + +### Required + +- `affinity_group` (String) Affinity group label +- `rg_id` (Number) ID of the RG + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `ids` (List of Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_rg_affinity_groups_list.md b/docs/data-sources/cb_rg_affinity_groups_list.md new file mode 100644 index 0000000..0c1160b --- /dev/null +++ b/docs/data-sources/cb_rg_affinity_groups_list.md @@ -0,0 +1,50 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_affinity_groups_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_affinity_groups_list (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `page` (Number) Page number +- `size` (Number) Page size +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `affinity_groups` (List of Object) (see [below for nested schema](#nestedatt--affinity_groups)) +- `entry_count` (Number) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `affinity_groups` + +Read-Only: + +- `id` (Number) +- `label` (String) +- `node_id` (Number) diff --git a/docs/data-sources/cb_rg_audits.md b/docs/data-sources/cb_rg_audits.md new file mode 100644 index 0000000..ce4b372 --- /dev/null +++ b/docs/data-sources/cb_rg_audits.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_audits Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_audits (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `responsetime` (Number) +- `statuscode` (Number) +- `timestamp` (Number) +- `user` (String) diff --git a/docs/data-sources/cb_rg_list.md b/docs/data-sources/cb_rg_list.md new file mode 100644 index 0000000..ce5790b --- /dev/null +++ b/docs/data-sources/cb_rg_list.md @@ -0,0 +1,109 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Filter by account ID +- `account_name` (String) Filter by account name +- `by_id` (Number) Filter by ID +- `created_after` (Number) Filter RGs created after certain point in time (unix timestamp) +- `created_before` (Number) Filter RGs created before certain point in time (unix timestamp) +- `includedeleted` (Boolean) Include deleted +- `lock_status` (String) Filter by lock status +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `def_net_id` (Number) +- `def_net_type` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dirty` (Boolean) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `name` (String) +- `register_computes` (Boolean) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `resource_types` (List of String) +- `rg_id` (Number) +- `secret` (String) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins` (List of Number) +- `vms` (List of Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_rg_list_computes.md b/docs/data-sources/cb_rg_list_computes.md new file mode 100644 index 0000000..100f05a --- /dev/null +++ b/docs/data-sources/cb_rg_list_computes.md @@ -0,0 +1,105 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_list_computes Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_list_computes (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `account_id` (Number) Filter by account ID +- `compute_id` (Number) Filter by compute ID +- `extnet_id` (Number) Filter by extnet ID +- `extnet_name` (String) Filter by extnet name +- `ip_address` (String) FIlter by IP address +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `tech_status` (String) Filter by tech. status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--affinity_rules)) +- `affinity_weight` (Number) +- `antiaffinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--antiaffinity_rules)) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `id` (Number) +- `name` (String) +- `ram` (Number) +- `registered` (Boolean) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `tech_status` (String) +- `total_disks_size` (Number) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_connected` (Number) + + +### Nested Schema for `items.affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.antiaffinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) diff --git a/docs/data-sources/cb_rg_list_deleted.md b/docs/data-sources/cb_rg_list_deleted.md new file mode 100644 index 0000000..6c3a5fb --- /dev/null +++ b/docs/data-sources/cb_rg_list_deleted.md @@ -0,0 +1,107 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Filter by account ID +- `account_name` (String) Filter by account name +- `by_id` (Number) Filter by ID +- `created_after` (Number) Filter RGs created after certain point in time (unix timestamp) +- `created_before` (Number) Filter RGs created before certain point in time (unix timestamp) +- `lock_status` (String) Filter by lock status +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `def_net_id` (Number) +- `def_net_type` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dirty` (Boolean) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `name` (String) +- `register_computes` (Boolean) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `resource_types` (List of String) +- `rg_id` (Number) +- `secret` (String) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins` (List of Number) +- `vms` (List of Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_rg_list_lb.md b/docs/data-sources/cb_rg_list_lb.md new file mode 100644 index 0000000..734bf61 --- /dev/null +++ b/docs/data-sources/cb_rg_list_lb.md @@ -0,0 +1,196 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_list_lb Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_list_lb (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `back_ip` (String) Filter by backend IP +- `by_id` (Number) Filter by ID +- `front_ip` (String) Filter by frontend IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `tech_status` (String) Filter by tech. status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `backends` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends)) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dp_api_user` (String) +- `extnet_id` (Number) +- `frontends` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends)) +- `gid` (Number) +- `guid` (Number) +- `ha_mode` (Boolean) +- `id` (Number) +- `image_id` (Number) +- `milestones` (Number) +- `name` (String) +- `primary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--primary_node)) +- `rg_name` (String) +- `secondary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--secondary_node)) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.backends` + +Read-Only: + +- `algorithm` (String) +- `guid` (String) +- `name` (String) +- `server_default_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--server_default_settings)) +- `servers` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers)) + + +### Nested Schema for `items.backends.server_default_settings` + +Read-Only: + +- `down_inter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `max_conn` (Number) +- `max_queue` (Number) +- `rise` (Number) +- `slow_start` (Number) +- `weight` (Number) + + + +### Nested Schema for `items.backends.servers` + +Read-Only: + +- `address` (String) +- `check` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) +- `server_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers--server_settings)) + + +### Nested Schema for `items.backends.servers.server_settings` + +Read-Only: + +- `down_inter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `max_conn` (Number) +- `max_queue` (Number) +- `rise` (Number) +- `slow_start` (Number) +- `weight` (Number) + + + + + +### Nested Schema for `items.frontends` + +Read-Only: + +- `backend` (String) +- `bindings` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends--bindings)) +- `guid` (String) +- `name` (String) + + +### Nested Schema for `items.frontends.bindings` + +Read-Only: + +- `address` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) + + + + +### Nested Schema for `items.primary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) + + + +### Nested Schema for `items.secondary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) diff --git a/docs/data-sources/cb_rg_list_pfw.md b/docs/data-sources/cb_rg_list_pfw.md new file mode 100644 index 0000000..5cb2b5a --- /dev/null +++ b/docs/data-sources/cb_rg_list_pfw.md @@ -0,0 +1,53 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_list_pfw Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_list_pfw (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `public_port_end` (Number) +- `public_port_start` (Number) +- `vins_id` (Number) +- `vins_name` (String) +- `vm_id` (Number) +- `vm_ip` (String) +- `vm_name` (String) +- `vm_port` (Number) diff --git a/docs/data-sources/cb_rg_list_vins.md b/docs/data-sources/cb_rg_list_vins.md new file mode 100644 index 0000000..1bacd22 --- /dev/null +++ b/docs/data-sources/cb_rg_list_vins.md @@ -0,0 +1,71 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_list_vins Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_list_vins (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `account_id` (Number) Filter by account ID +- `ext_ip` (String) Filter by external IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `computes` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `external_ip` (String) +- `extnet_id` (Number) +- `free_ips` (Number) +- `id` (Number) +- `name` (String) +- `network` (String) +- `pri_vnf_dev_id` (Number) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) diff --git a/docs/data-sources/cb_rg_resource_consumption_get.md b/docs/data-sources/cb_rg_resource_consumption_get.md new file mode 100644 index 0000000..8ea3f90 --- /dev/null +++ b/docs/data-sources/cb_rg_resource_consumption_get.md @@ -0,0 +1,105 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_resource_consumption_get Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_resource_consumption_get (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `consumed` (List of Object) (see [below for nested schema](#nestedatt--consumed)) +- `id` (String) The ID of this resource. +- `reserved` (List of Object) (see [below for nested schema](#nestedatt--reserved)) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--consumed--seps)) + + +### Nested Schema for `consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--reserved--seps)) + + +### Nested Schema for `reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_rg_resource_consumption_list.md b/docs/data-sources/cb_rg_resource_consumption_list.md new file mode 100644 index 0000000..2535f5b --- /dev/null +++ b/docs/data-sources/cb_rg_resource_consumption_list.md @@ -0,0 +1,110 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_resource_consumption_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_resource_consumption_list (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `consumed` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed)) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved)) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `rg_id` (Number) + + +### Nested Schema for `items.consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed--seps)) + + +### Nested Schema for `items.consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved--seps)) + + +### Nested Schema for `items.reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/cb_rg_usage.md b/docs/data-sources/cb_rg_usage.md new file mode 100644 index 0000000..5109395 --- /dev/null +++ b/docs/data-sources/cb_rg_usage.md @@ -0,0 +1,56 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg_usage Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg_usage (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) + +### Optional + +- `reason` (String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `id` (String) The ID of this resource. +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedatt--seps)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) diff --git a/docs/data-sources/cb_sep.md b/docs/data-sources/cb_sep.md new file mode 100644 index 0000000..475c6b4 --- /dev/null +++ b/docs/data-sources/cb_sep.md @@ -0,0 +1,50 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_sep Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_sep (Data Source) + + + + + + +## Schema + +### Required + +- `sep_id` (Number) sep type des id + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `ckey` (String) ckey +- `config` (String) config +- `consumed_by` (Set of Number) consumed by +- `desc` (String) description +- `gid` (Number) gid +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `meta` (List of String) meta +- `milestones` (Number) milestones +- `name` (String) name +- `obj_status` (String) object status +- `provided_by` (List of Number) provided by +- `shared_with` (List of Number) shared with +- `tech_status` (String) tech status +- `type` (String) type + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/sep_config.md b/docs/data-sources/cb_sep_config.md similarity index 83% rename from docs/data-sources/sep_config.md rename to docs/data-sources/cb_sep_config.md index ed0c734..8ffb9a3 100644 --- a/docs/data-sources/sep_config.md +++ b/docs/data-sources/cb_sep_config.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep_config Data Source - decort" +page_title: "decort_cb_sep_config Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_sep_config (Data Source) +# decort_cb_sep_config (Data Source) @@ -35,5 +35,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/sep_consumption.md b/docs/data-sources/cb_sep_consumption.md similarity index 90% rename from docs/data-sources/sep_consumption.md rename to docs/data-sources/cb_sep_consumption.md index dbbd037..2341a8e 100644 --- a/docs/data-sources/sep_consumption.md +++ b/docs/data-sources/cb_sep_consumption.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep_consumption Data Source - decort" +page_title: "decort_cb_sep_consumption Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_sep_consumption (Data Source) +# decort_cb_sep_consumption (Data Source) @@ -65,5 +65,3 @@ Read-Only: - `snapshot_usage` (Number) - `usage` (Number) - `usage_limit` (Number) - - diff --git a/docs/data-sources/sep_disk_list.md b/docs/data-sources/cb_sep_disk_list.md similarity index 83% rename from docs/data-sources/sep_disk_list.md rename to docs/data-sources/cb_sep_disk_list.md index 6b756e1..00427b1 100644 --- a/docs/data-sources/sep_disk_list.md +++ b/docs/data-sources/cb_sep_disk_list.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep_disk_list Data Source - decort" +page_title: "decort_cb_sep_disk_list Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_sep_disk_list (Data Source) +# decort_cb_sep_disk_list (Data Source) @@ -36,5 +36,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/sep_list.md b/docs/data-sources/cb_sep_list.md similarity index 62% rename from docs/data-sources/sep_list.md rename to docs/data-sources/cb_sep_list.md index b024ac5..f37930a 100644 --- a/docs/data-sources/sep_list.md +++ b/docs/data-sources/cb_sep_list.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep_list Data Source - decort" +page_title: "decort_cb_sep_list Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_sep_list (Data Source) +# decort_cb_sep_list (Data Source) @@ -17,12 +17,21 @@ description: |- ### Optional +- `by_id` (Number) find by id +- `consumed_by` (Number) find by consumed physical node id +- `gid` (Number) find by gid +- `name` (String) find by name - `page` (Number) page number +- `provided_by` (Number) find by provided physical node id - `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) find by techStatus - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) find by sep type ### Read-Only +- `entry_count` (Number) entryCount - `id` (String) The ID of this resource. - `items` (List of Object) sep list (see [below for nested schema](#nestedatt--items)) @@ -42,7 +51,7 @@ Read-Only: - `ckey` (String) - `config` (String) -- `consumed_by` (List of Number) +- `consumed_by` (Set of Number) - `desc` (String) - `gid` (Number) - `guid` (Number) @@ -52,7 +61,6 @@ Read-Only: - `obj_status` (String) - `provided_by` (List of Number) - `sep_id` (Number) +- `shared_with` (List of Number) - `tech_status` (String) - `type` (String) - - diff --git a/docs/data-sources/cb_sep_pool.md b/docs/data-sources/cb_sep_pool.md new file mode 100644 index 0000000..bb3cfec --- /dev/null +++ b/docs/data-sources/cb_sep_pool.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_sep_pool Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_sep_pool (Data Source) + + + + + + +## Schema + +### Required + +- `pool_name` (String) pool name +- `sep_id` (Number) storage endpoint provider ID + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `pool` (List of Object) pool (see [below for nested schema](#nestedatt--pool)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `pool` + +Read-Only: + +- `access_account_ids` (List of Number) +- `access_res_group_ids` (List of Number) +- `name` (String) +- `pagecache_ratio` (Number) +- `reference_id` (String) +- `types` (List of String) +- `uris` (Set of Object) (see [below for nested schema](#nestedobjatt--pool--uris)) +- `usage_limit` (Number) + + +### Nested Schema for `pool.uris` + +Read-Only: + +- `ip` (String) +- `port` (Number) diff --git a/docs/data-sources/cb_stack.md b/docs/data-sources/cb_stack.md new file mode 100644 index 0000000..30b25f1 --- /dev/null +++ b/docs/data-sources/cb_stack.md @@ -0,0 +1,134 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_stack Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_stack (Data Source) + + + + + + +## Schema + +### Required + +- `stack_id` (Number) stack_id + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `api_key` (String) api_key +- `api_url` (String) api_url +- `app_id` (String) api_id +- `ckey` (String) ckey +- `cpu_allocation_ratio` (Number) cpu_allocation_ratio +- `descr` (String) descr +- `description` (String) description +- `drivers` (List of String) drivers +- `eco` (String) eco +- `error` (Number) error +- `gid` (Number) gid +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `images` (List of Number) images +- `login` (String) login +- `mem_allocation_ratio` (Number) mem_allocation_ratio +- `meta` (List of String) meta +- `name` (String) name +- `packages` (List of Object) (see [below for nested schema](#nestedatt--packages)) +- `passwd` (String) password +- `reference_id` (String) reference_id +- `status` (String) status +- `type` (String) type + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `packages` + +Read-Only: + +- `libvirt_bin` (List of Object) (see [below for nested schema](#nestedobjatt--packages--libvirt_bin)) +- `libvirt_daemon` (List of Object) (see [below for nested schema](#nestedobjatt--packages--libvirt_daemon)) +- `lvm2_lockd` (List of Object) (see [below for nested schema](#nestedobjatt--packages--lvm2_lockd)) +- `openvswitch_common` (List of Object) (see [below for nested schema](#nestedobjatt--packages--openvswitch_common)) +- `openvswitch_switch` (List of Object) (see [below for nested schema](#nestedobjatt--packages--openvswitch_switch)) +- `qemu_system_x86` (List of Object) (see [below for nested schema](#nestedobjatt--packages--qemu_system_x86)) +- `sanlock` (List of Object) (see [below for nested schema](#nestedobjatt--packages--sanlock)) + + +### Nested Schema for `packages.libvirt_bin` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `packages.libvirt_daemon` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `packages.lvm2_lockd` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `packages.openvswitch_common` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `packages.openvswitch_switch` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `packages.qemu_system_x86` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `packages.sanlock` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) diff --git a/docs/data-sources/cb_stack_list.md b/docs/data-sources/cb_stack_list.md new file mode 100644 index 0000000..30a9987 --- /dev/null +++ b/docs/data-sources/cb_stack_list.md @@ -0,0 +1,146 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_stack_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_stack_list (Data Source) + + + + + + +## Schema + +### Optional + +- `by_id` (Number) by_id +- `name` (String) name +- `page` (Number) page number +- `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) type +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) type + +### Read-Only + +- `entry_count` (Number) entry_count +- `id` (String) The ID of this resource. +- `items` (List of Object) items of stacks list (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `api_key` (String) +- `api_url` (String) +- `app_id` (String) +- `ckey` (String) +- `cpu_allocation_ratio` (Number) +- `descr` (String) +- `description` (String) +- `drivers` (List of String) +- `eco` (String) +- `error` (Number) +- `gid` (Number) +- `guid` (Number) +- `images` (List of Number) +- `login` (String) +- `mem_allocation_ratio` (Number) +- `meta` (List of String) +- `name` (String) +- `packages` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages)) +- `passwd` (String) +- `reference_id` (String) +- `stack_id` (Number) +- `status` (String) +- `type` (String) + + +### Nested Schema for `items.packages` + +Read-Only: + +- `libvirt_bin` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--libvirt_bin)) +- `libvirt_daemon` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--libvirt_daemon)) +- `lvm2_lockd` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--lvm2_lockd)) +- `openvswitch_common` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--openvswitch_common)) +- `openvswitch_switch` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--openvswitch_switch)) +- `qemu_system_x86` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--qemu_system_x86)) +- `sanlock` (List of Object) (see [below for nested schema](#nestedobjatt--items--packages--sanlock)) + + +### Nested Schema for `items.packages.libvirt_bin` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.libvirt_daemon` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.lvm2_lockd` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.openvswitch_common` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.openvswitch_switch` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.qemu_system_x86` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) + + + +### Nested Schema for `items.packages.sanlock` + +Read-Only: + +- `installed_size` (String) +- `ver` (String) diff --git a/docs/data-sources/cb_user.md b/docs/data-sources/cb_user.md new file mode 100644 index 0000000..194622b --- /dev/null +++ b/docs/data-sources/cb_user.md @@ -0,0 +1,56 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_user Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_user (Data Source) + + + + + + +## Schema + +### Required + +- `user_id` (String) user_id + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `active` (Boolean) active +- `api_access` (Map of String) api_access +- `authkey` (String) authkey +- `authkeys` (List of String) authkeys +- `ckey` (String) ckey +- `data` (String) data +- `description` (String) description +- `domain` (String) domain +- `emails` (List of String) emails +- `gid` (Number) gid +- `groups` (List of String) groups +- `guid` (String) guid +- `id` (String) The ID of this resource. +- `last_check` (Number) last_check +- `meta` (List of String) meta +- `mobile` (List of String) mobile +- `password` (String) password +- `protected` (Boolean) protected +- `roles` (List of String) roles +- `service_account` (Boolean) service_account +- `xmpp` (List of String) xmpp + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_user_get_audit.md b/docs/data-sources/cb_user_get_audit.md new file mode 100644 index 0000000..77b39c3 --- /dev/null +++ b/docs/data-sources/cb_user_get_audit.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_user_get_audit Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_user_get_audit (Data Source) + + + + + + +## Schema + +### Optional + +- `call` (String) find by api call +- `page` (Number) Page number +- `size` (Number) Page size +- `status_code` (Number) find by status code +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `timestamp_at` (Number) find all audits after point in time (unixtime) +- `timestamp_to` (Number) find all audits before point in time (unixtime) +- `username` (String) name of user (get audits for current user if set to empty) + +### Read-Only + +- `entry_count` (Number) entry_count +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `response_time` (Number) +- `status_code` (Number) +- `time` (Number) diff --git a/docs/data-sources/cb_user_list.md b/docs/data-sources/cb_user_list.md new file mode 100644 index 0000000..8afdeb0 --- /dev/null +++ b/docs/data-sources/cb_user_list.md @@ -0,0 +1,68 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_user_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_user_list (Data Source) + + + + + + +## Schema + +### Optional + +- `active` (Boolean) find by active. True or False +- `by_id` (String) find by id +- `page` (Number) Page number +- `service_account` (Boolean) find by service account. True or False +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) entry_count +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `active` (Boolean) +- `apiaccess` (Map of String) +- `authkey` (String) +- `authkeys` (List of String) +- `ckey` (String) +- `data` (String) +- `description` (String) +- `domain` (String) +- `emails` (List of String) +- `gid` (Number) +- `groups` (List of String) +- `guid` (String) +- `last_check` (Number) +- `meta` (List of String) +- `mobile` (List of String) +- `password` (String) +- `protected` (Boolean) +- `roles` (List of String) +- `service_account` (Boolean) +- `user_id` (String) +- `xmpp` (List of String) diff --git a/docs/data-sources/cb_vfpool.md b/docs/data-sources/cb_vfpool.md new file mode 100644 index 0000000..1cef8a1 --- /dev/null +++ b/docs/data-sources/cb_vfpool.md @@ -0,0 +1,72 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vfpool Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vfpool (Data Source) + + + + + + +## Schema + +### Required + +- `vfpool_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_access` (List of Number) +- `created_time` (Number) +- `description` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `name` (String) +- `rg_access` (List of Number) +- `status` (String) +- `updated_time` (Number) +- `vfs` (List of Object) (see [below for nested schema](#nestedatt--vfs)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `vfs` + +Read-Only: + +- `node_id` (Number) +- `vf_list` (List of Object) (see [below for nested schema](#nestedobjatt--vfs--vf_list)) + + +### Nested Schema for `vfs.vf_list` + +Read-Only: + +- `nic_name` (String) +- `vfs_info` (List of Object) (see [below for nested schema](#nestedobjatt--vfs--vf_list--vfs_info)) + + +### Nested Schema for `vfs.vf_list.vfs_info` + +Read-Only: + +- `claimed` (Boolean) +- `id` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/cb_vfpool_list.md b/docs/data-sources/cb_vfpool_list.md new file mode 100644 index 0000000..29bf9a1 --- /dev/null +++ b/docs/data-sources/cb_vfpool_list.md @@ -0,0 +1,87 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vfpool_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vfpool_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_access` (Number) Find by accountAccess +- `by_id` (Number) Find by ID +- `description` (String) Find by description +- `gid` (Number) Find by Grid ID +- `name` (String) Find by name +- `page` (Number) Page number +- `rg_access` (Number) Find by rgAccess +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_access` (List of Number) +- `created_time` (Number) +- `description` (String) +- `gid` (Number) +- `guid` (Number) +- `name` (String) +- `rg_access` (List of Number) +- `status` (String) +- `updated_time` (Number) +- `vfpool_id` (Number) +- `vfs` (List of Object) (see [below for nested schema](#nestedobjatt--items--vfs)) + + +### Nested Schema for `items.vfs` + +Read-Only: + +- `node_id` (Number) +- `vf_list` (List of Object) (see [below for nested schema](#nestedobjatt--items--vfs--vf_list)) + + +### Nested Schema for `items.vfs.vf_list` + +Read-Only: + +- `nic_name` (String) +- `vfs_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--vfs--vf_list--vfs_info)) + + +### Nested Schema for `items.vfs.vf_list.vfs_info` + +Read-Only: + +- `claimed` (Boolean) +- `id` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/cb_vins.md b/docs/data-sources/cb_vins.md new file mode 100644 index 0000000..43ad813 --- /dev/null +++ b/docs/data-sources/cb_vins.md @@ -0,0 +1,426 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) vins id + +### Optional + +- `reason` (String) reason for action +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) account id +- `account_name` (String) account name +- `created_by` (String) created by +- `created_time` (Number) created time +- `default_gw` (String) default gw +- `default_qos` (List of Object) default qoa (see [below for nested schema](#nestedatt--default_qos)) +- `deleted_by` (String) deleted by +- `deleted_time` (Number) deleted time +- `description` (String) description +- `gid` (Number) gid +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `lock_status` (String) lock status +- `manager_id` (Number) manager id +- `manager_type` (String) manager type +- `milestones` (Number) milestones +- `name` (String) name +- `netmask` (Number) net mask +- `network` (String) network +- `pre_reservations_num` (Number) pre reservations num +- `redundant` (Boolean) redundant +- `rg_id` (Number) resource group id +- `rg_name` (String) resource group name +- `sec_vnf_dev_id` (Number) +- `status` (String) status +- `updated_by` (String) updated by +- `updated_time` (Number) updated time +- `user_managed` (Boolean) user managed +- `vnf_dev` (List of Object) vnf dev (see [below for nested schema](#nestedatt--vnf_dev)) +- `vnfs` (List of Object) vnfs (see [below for nested schema](#nestedatt--vnfs)) +- `vxlan_id` (Number) vxlan id + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `default_qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + +### Nested Schema for `vnf_dev` + +Read-Only: + +- `account_id` (Number) +- `capabilities` (List of String) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config)) +- `config_saved` (Boolean) +- `custom_precfg` (Boolean) +- `description` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces)) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vins` (List of Number) + + +### Nested Schema for `vnf_dev.config` + +Read-Only: + +- `mgmt` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--mgmt)) +- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--resources)) + + +### Nested Schema for `vnf_dev.config.mgmt` + +Read-Only: + +- `ip_addr` (String) +- `password` (String) +- `ssh_key` (String) +- `user` (String) + + + +### Nested Schema for `vnf_dev.config.resources` + +Read-Only: + +- `cpu` (Number) +- `ram` (Number) +- `stack_id` (Number) +- `uuid` (String) + + + + +### Nested Schema for `vnf_dev.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flipgroup_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_mask` (Number) +- `net_type` (String) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `vnf_dev.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + + + +### Nested Schema for `vnfs` + +Read-Only: + +- `dhcp` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp)) +- `gw` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw)) +- `nat` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat)) + + +### Nested Schema for `vnfs.dhcp` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices)) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.dhcp.config` + +Read-Only: + +- `default_gw` (String) +- `dns` (List of String) +- `ip_end` (String) +- `ip_start` (String) +- `lease` (Number) +- `net_mask` (Number) +- `network` (String) +- `reservations` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config--reservations)) + + +### Nested Schema for `vnfs.dhcp.config.reservations` + +Read-Only: + +- `client_type` (String) +- `description` (String) +- `domain_name` (String) +- `host_name` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + + +### Nested Schema for `vnfs.dhcp.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices--primary)) + + +### Nested Schema for `vnfs.dhcp.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.dhcp.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.gw` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices)) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.gw.config` + +Read-Only: + +- `default_gw` (String) +- `ext_net_id` (Number) +- `ext_net_ip` (String) +- `ext_netmask` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config--qos)) + + +### Nested Schema for `vnfs.gw.config.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `vnfs.gw.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices--primary)) + + +### Nested Schema for `vnfs.gw.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.gw.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.nat` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices)) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.nat.config` + +Read-Only: + +- `net_mask` (Number) +- `network` (String) +- `rules` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config--rules)) + + +### Nested Schema for `vnfs.nat.config.rules` + +Read-Only: + +- `local_ip` (String) +- `local_port` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `rule_id` (Number) +- `vm_id` (Number) +- `vm_name` (String) + + + + +### Nested Schema for `vnfs.nat.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices--primary)) + + +### Nested Schema for `vnfs.nat.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.nat.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) diff --git a/docs/data-sources/cb_vins_audits.md b/docs/data-sources/cb_vins_audits.md new file mode 100644 index 0000000..5221568 --- /dev/null +++ b/docs/data-sources/cb_vins_audits.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_audits Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_audits (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `response_time` (Number) +- `status_code` (Number) +- `time_stamp` (Number) +- `user` (String) diff --git a/docs/data-sources/cb_vins_ext_net_list.md b/docs/data-sources/cb_vins_ext_net_list.md new file mode 100644 index 0000000..5b7cb1e --- /dev/null +++ b/docs/data-sources/cb_vins_ext_net_list.md @@ -0,0 +1,51 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_ext_net_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_ext_net_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `default_gw` (String) +- `ext_net_id` (Number) +- `ip` (String) +- `prefix_len` (Number) +- `status` (String) +- `tech_status` (String) diff --git a/docs/data-sources/cb_vins_ip_list.md b/docs/data-sources/cb_vins_ip_list.md new file mode 100644 index 0000000..5717585 --- /dev/null +++ b/docs/data-sources/cb_vins_ip_list.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_ip_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_ip_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `client_type` (String) +- `domain_name` (String) +- `host_name` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) diff --git a/docs/data-sources/cb_vins_list.md b/docs/data-sources/cb_vins_list.md new file mode 100644 index 0000000..345b973 --- /dev/null +++ b/docs/data-sources/cb_vins_list.md @@ -0,0 +1,108 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Find by account id +- `by_id` (Number) Find by id +- `entry_count` (Number) entry count +- `ext_ip` (String) Find by ext ip +- `include_deleted` (Boolean) include deleted computes +- `name` (String) Name +- `page` (Number) Page number +- `rg_id` (Number) Find by rg id +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vnfdev_id` (Number) find by VNF Device id + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `created_by` (String) +- `created_time` (Number) +- `default_gw` (String) +- `default_qos` (List of Object) (see [below for nested schema](#nestedobjatt--items--default_qos)) +- `deleted_by` (String) +- `deleted_time` (Number) +- `description` (String) +- `external_ip` (String) +- `extnet_id` (Number) +- `free_ips` (Number) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `milestones` (Number) +- `name` (String) +- `netmask` (Number) +- `network` (String) +- `pre_reservations_num` (Number) +- `pri_vnf_dev_id` (Number) +- `redundant` (Boolean) +- `rg_id` (Number) +- `rg_name` (String) +- `sec_vnf_dev_id` (Number) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_id` (Number) +- `vnfs` (List of Object) (see [below for nested schema](#nestedobjatt--items--vnfs)) +- `vxlan_id` (Number) + + +### Nested Schema for `items.default_qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + +### Nested Schema for `items.vnfs` + +Read-Only: + +- `dhcp` (Number) +- `dns` (Number) +- `fw` (Number) +- `gw` (Number) +- `nat` (Number) +- `vpn` (Number) diff --git a/docs/data-sources/cb_vins_list_deleted.md b/docs/data-sources/cb_vins_list_deleted.md new file mode 100644 index 0000000..4a152e4 --- /dev/null +++ b/docs/data-sources/cb_vins_list_deleted.md @@ -0,0 +1,104 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Filter by account ID +- `by_id` (Number) Filter by ID +- `ext_ip` (String) Filter by external IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by resgroup ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `created_by` (String) +- `created_time` (Number) +- `default_gw` (String) +- `default_qos` (List of Object) (see [below for nested schema](#nestedobjatt--items--default_qos)) +- `deleted_by` (String) +- `deleted_time` (Number) +- `description` (String) +- `external_ip` (String) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `milestones` (Number) +- `name` (String) +- `netmask` (Number) +- `network` (String) +- `pre_reservations_num` (Number) +- `pri_vnf_dev_id` (Number) +- `redundant` (Boolean) +- `rg_id` (Number) +- `rg_name` (String) +- `sec_vnf_dev_id` (Number) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_id` (Number) +- `vnfs` (List of Object) (see [below for nested schema](#nestedobjatt--items--vnfs)) +- `vxlan_id` (Number) + + +### Nested Schema for `items.default_qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + +### Nested Schema for `items.vnfs` + +Read-Only: + +- `dhcp` (Number) +- `dns` (Number) +- `fw` (Number) +- `gw` (Number) +- `nat` (Number) +- `vpn` (Number) diff --git a/docs/data-sources/cb_vins_nat_rule_list.md b/docs/data-sources/cb_vins_nat_rule_list.md new file mode 100644 index 0000000..5da23ed --- /dev/null +++ b/docs/data-sources/cb_vins_nat_rule_list.md @@ -0,0 +1,54 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_nat_rule_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_nat_rule_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. + +### Optional + +- `reason` (String) reason for action +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `id` (Number) +- `local_ip` (String) +- `local_port` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `vm_id` (Number) +- `vm_name` (String) diff --git a/docs/data-sources/cb_vins_static_route.md b/docs/data-sources/cb_vins_static_route.md new file mode 100644 index 0000000..39eed77 --- /dev/null +++ b/docs/data-sources/cb_vins_static_route.md @@ -0,0 +1,42 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_static_route Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_static_route (Data Source) + + + + + + +## Schema + +### Required + +- `route_id` (Number) Unique ID of the static route +- `vins_id` (Number) Unique ID of the ViNS + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `id` (String) The ID of this resource. +- `netmask` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/cb_vins_static_route_list.md b/docs/data-sources/cb_vins_static_route_list.md new file mode 100644 index 0000000..6af2d6d --- /dev/null +++ b/docs/data-sources/cb_vins_static_route_list.md @@ -0,0 +1,51 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_static_route_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_static_route_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) ID of VINS + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) diff --git a/docs/data-sources/disk.md b/docs/data-sources/disk.md index 85bdb36..f391c2e 100644 --- a/docs/data-sources/disk.md +++ b/docs/data-sources/disk.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_disk Data Source - decort" +page_title: "decort_disk Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,7 +17,7 @@ description: |- ### Required -- `disk_id` (Number) +- `disk_id` (Number) The unique ID of the subscriber-owner of the disk ### Optional @@ -25,50 +25,42 @@ description: |- ### Read-Only -- `account_id` (Number) -- `account_name` (String) +- `account_id` (Number) The unique ID of the subscriber-owner of the disk +- `account_name` (String) The name of the subscriber '(account') to whom this disk belongs - `acl` (String) -- `boot_partition` (Number) -- `compute_id` (Number) -- `compute_name` (String) -- `created_time` (Number) -- `deleted_time` (Number) -- `desc` (String) -- `destruction_time` (Number) -- `devicename` (String) -- `disk_name` (String) -- `disk_path` (String) -- `gid` (Number) -- `guid` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) Created time +- `deleted_time` (Number) Deleted time +- `desc` (String) Description of disk +- `destruction_time` (Number) Time of final deletion +- `devicename` (String) Name of the device +- `disk_name` (String) Name of disk +- `gid` (Number) ID of the grid (platform) - `id` (String) The ID of this resource. -- `image_id` (Number) -- `images` (List of String) +- `image_id` (Number) Image ID +- `images` (List of String) IDs of images using the disk - `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) -- `iqn` (String) -- `login` (String) -- `milestones` (Number) -- `order` (Number) -- `params` (String) -- `parent_id` (Number) -- `passwd` (String) -- `pci_slot` (Number) -- `pool` (String) -- `purge_attempts` (Number) -- `purge_time` (Number) -- `reality_device_number` (Number) -- `reference_id` (String) -- `res_id` (String) -- `res_name` (String) -- `role` (String) -- `sep_id` (Number) -- `sep_type` (String) -- `size_max` (Number) -- `size_used` (Number) +- `order` (Number) Disk order +- `params` (String) Disk params +- `parent_id` (Number) ID of the parent disk +- `pci_slot` (Number) ID of the pci slot to which the disk is connected +- `pool` (String) Pool for disk location +- `present_to` (List of Number) +- `purge_time` (Number) Time of the last deletion attempt +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) Resource ID +- `res_name` (String) Name of the resource +- `role` (String) Disk role +- `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 +- `shareable` (Boolean) +- `size_max` (Number) Size in GB +- `size_used` (Number) Number of used space, in GB - `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) -- `status` (String) -- `tech_status` (String) -- `type` (String) -- `vmid` (Number) +- `status` (String) Disk status +- `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' +- `vmid` (Number) Virtual Machine ID (Deprecated) ### Nested Schema for `timeouts` @@ -79,6 +71,15 @@ Optional: - `read` (String) + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + ### Nested Schema for `iotune` @@ -99,6 +100,19 @@ Read-Only: - `write_iops_sec_max` (Number) + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + ### Nested Schema for `snapshots` @@ -110,5 +124,3 @@ Read-Only: - `snap_set_guid` (String) - `snap_set_time` (Number) - `timestamp` (Number) - - diff --git a/docs/data-sources/disk_list.md b/docs/data-sources/disk_list.md index b595ce0..ae9ec45 100644 --- a/docs/data-sources/disk_list.md +++ b/docs/data-sources/disk_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_disk_list Data Source - decort" +page_title: "decort_disk_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -18,13 +18,23 @@ description: |- ### Optional - `account_id` (Number) ID of the account the disks belong to +- `account_name` (String) Find by account name +- `by_id` (Number) Find by ID +- `disk_max_size` (Number) Find by max disk size +- `name` (String) Find by name - `page` (Number) Page number +- `pool_name` (String) find by pool name +- `sep_id` (Number) find by sep ID +- `shared` (Boolean) Find by shared field - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `type` (String) type of the disks ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -45,9 +55,7 @@ Read-Only: - `account_id` (Number) - `account_name` (String) - `acl` (String) -- `boot_partition` (Number) -- `compute_id` (Number) -- `compute_name` (String) +- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) - `created_time` (Number) - `deleted_time` (Number) - `desc` (String) @@ -55,32 +63,26 @@ Read-Only: - `devicename` (String) - `disk_id` (Number) - `disk_name` (String) -- `disk_path` (String) - `gid` (Number) -- `guid` (Number) - `image_id` (Number) - `images` (List of String) - `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) -- `iqn` (String) -- `login` (String) - `machine_id` (Number) - `machine_name` (String) -- `milestones` (Number) - `order` (Number) - `params` (String) - `parent_id` (Number) -- `passwd` (String) - `pci_slot` (Number) - `pool` (String) -- `purge_attempts` (Number) +- `present_to` (List of Number) - `purge_time` (Number) -- `reality_device_number` (Number) -- `reference_id` (String) +- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication)) - `res_id` (String) - `res_name` (String) - `role` (String) - `sep_id` (Number) - `sep_type` (String) +- `shareable` (Boolean) - `size_max` (Number) - `size_used` (Number) - `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) @@ -89,6 +91,15 @@ Read-Only: - `type` (String) - `vmid` (Number) + +### Nested Schema for `items.computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + ### Nested Schema for `items.iotune` @@ -109,6 +120,19 @@ Read-Only: - `write_iops_sec_max` (Number) + +### Nested Schema for `items.replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + ### Nested Schema for `items.snapshots` @@ -120,5 +144,3 @@ Read-Only: - `snap_set_guid` (String) - `snap_set_time` (Number) - `timestamp` (Number) - - diff --git a/docs/data-sources/disk_list_deleted.md b/docs/data-sources/disk_list_deleted.md new file mode 100644 index 0000000..1d0f64a --- /dev/null +++ b/docs/data-sources/disk_list_deleted.md @@ -0,0 +1,143 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) ID of the account the disks belong to +- `account_name` (String) Filter by account name +- `by_id` (Number) Filter by disk ID +- `disk_max_size` (Number) Filter by max disk size +- `name` (String) Filter by disk name +- `page` (Number) Page number +- `shared` (Boolean) Find shared disks +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) type of the disks + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `computes` (List of Object) (see [below for nested schema](#nestedobjatt--items--computes)) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `devicename` (String) +- `disk_id` (Number) +- `disk_name` (String) +- `gid` (Number) +- `image_id` (Number) +- `images` (List of String) +- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) +- `machine_id` (Number) +- `machine_name` (String) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_time` (Number) +- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--items--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `sep_type` (String) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `items.computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `items.iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `items.replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `items.snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/disk_list_types.md b/docs/data-sources/disk_list_types.md new file mode 100644 index 0000000..28abc05 --- /dev/null +++ b/docs/data-sources/disk_list_types.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_list_types Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_list_types (Data Source) + + + + + + +## Schema + +### Optional + +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `types` (List of String) The types of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp' + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/disk_list_types_detailed.md b/docs/data-sources/disk_list_types_detailed.md new file mode 100644 index 0000000..8b9f1a2 --- /dev/null +++ b/docs/data-sources/disk_list_types_detailed.md @@ -0,0 +1,56 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_list_types_detailed Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_list_types_detailed (Data Source) + + + + + + +## Schema + +### Optional + +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `pools` (List of Object) (see [below for nested schema](#nestedobjatt--items--pools)) +- `sep_id` (Number) +- `sep_name` (String) + + +### Nested Schema for `items.pools` + +Read-Only: + +- `name` (String) +- `system` (String) +- `types` (List of String) diff --git a/docs/data-sources/disk_list_unattached.md b/docs/data-sources/disk_list_unattached.md new file mode 100644 index 0000000..ca20a40 --- /dev/null +++ b/docs/data-sources/disk_list_unattached.md @@ -0,0 +1,127 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_list_unattached Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_list_unattached (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) ID of the account the disks belong to +- `account_name` (String) Find by account name +- `by_id` (Number) Find by ID +- `disk_max_size` (Number) Find by max disk size +- `page` (Number) Page number +- `pool_name` (String) find by pool name +- `sep_id` (Number) find by sep ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) type of the disks + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `_ckey` (String) +- `_meta` (List of String) +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `disk_id` (Number) +- `disk_name` (String) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `image_id` (Number) +- `images` (List of String) +- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--items--iotune)) +- `iqn` (String) +- `login` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_id` (Number) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--items--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `items.iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `items.snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/disk_replication.md b/docs/data-sources/disk_replication.md new file mode 100644 index 0000000..32990f3 --- /dev/null +++ b/docs/data-sources/disk_replication.md @@ -0,0 +1,128 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_replication Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_replication (Data Source) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) Id of primary disk +- `replica_disk_id` (Number) Id of secondary disk + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) The unique ID of the subscriber-owner of the disk +- `account_name` (String) The name of the subscriber '(account') to whom this disk belongs +- `acl` (String) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) Created time +- `deleted_time` (Number) Deleted time +- `desc` (String) Description of disk +- `destruction_time` (Number) Time of final deletion +- `devicename` (String) Name of the device +- `disk_name` (String) Name of disk +- `gid` (Number) ID of the grid (platform) +- `id` (String) The ID of this resource. +- `image_id` (Number) Image ID +- `images` (List of String) IDs of images using the disk +- `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) +- `order` (Number) Disk order +- `params` (String) Disk params +- `parent_id` (Number) ID of the parent disk +- `pci_slot` (Number) ID of the pci slot to which the disk is connected +- `pool` (String) Pool for disk location +- `present_to` (List of Number) +- `purge_time` (Number) Time of the last deletion attempt +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) Resource ID +- `res_name` (String) Name of the resource +- `role` (String) Disk role +- `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 +- `shareable` (Boolean) +- `size_max` (Number) Size in GB +- `size_used` (Number) Number of used space, in GB +- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) +- `status` (String) Disk status +- `status_replication` (String) Status of replication +- `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' +- `vmid` (Number) Virtual Machine ID (Deprecated) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/disk_snapshot.md b/docs/data-sources/disk_snapshot.md new file mode 100644 index 0000000..92467bf --- /dev/null +++ b/docs/data-sources/disk_snapshot.md @@ -0,0 +1,42 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_snapshot Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_snapshot (Data Source) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) The unique ID of the subscriber-owner of the disk +- `label` (String) Name of the snapshot + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `guid` (String) ID of the snapshot +- `id` (String) The ID of this resource. +- `res_id` (String) Reference to the snapshot +- `snap_set_guid` (String) The set snapshot ID +- `snap_set_time` (Number) The set time of the snapshot +- `timestamp` (Number) Snapshot time + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/disk_snapshot_list.md b/docs/data-sources/disk_snapshot_list.md new file mode 100644 index 0000000..1f1e43e --- /dev/null +++ b/docs/data-sources/disk_snapshot_list.md @@ -0,0 +1,50 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_snapshot_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_snapshot_list (Data Source) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) The unique ID of the subscriber-owner of the disk + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/extnet.md b/docs/data-sources/extnet.md index df4bdf6..93a35f8 100644 --- a/docs/data-sources/extnet.md +++ b/docs/data-sources/extnet.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_extnet Data Source - decort" +page_title: "decort_extnet Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -25,14 +25,13 @@ description: |- ### Read-Only -- `check__ips` (List of String) - `check_ips` (List of String) - `ckey` (String) - `default` (Boolean) - `default_qos` (List of Object) (see [below for nested schema](#nestedatt--default_qos)) - `desc` (String) - `dns` (List of String) -- `excluded` (List of String) +- `excluded` (List of Object) (see [below for nested schema](#nestedatt--excluded)) - `free_ips` (Number) - `gateway` (String) - `gid` (Number) @@ -67,12 +66,25 @@ Optional: Read-Only: +- `e_burst` (Number) - `e_rate` (Number) - `guid` (String) - `in_burst` (Number) - `in_rate` (Number) + +### Nested Schema for `excluded` + +Read-Only: + +- `client_type` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + ### Nested Schema for `reservations` @@ -94,5 +106,3 @@ Read-Only: Read-Only: - `dhcp` (Number) - - diff --git a/docs/data-sources/extnet_computes_list.md b/docs/data-sources/extnet_computes_list.md index 311e135..624ed5c 100644 --- a/docs/data-sources/extnet_computes_list.md +++ b/docs/data-sources/extnet_computes_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_extnet_computes_list Data Source - decort" +page_title: "decort_extnet_computes_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -21,10 +21,16 @@ description: |- ### Optional +- `compute_id` (Number) Filter by compute ID +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -59,5 +65,3 @@ Read-Only: - `ipcidr` (String) - `name` (String) - `net_id` (Number) - - diff --git a/docs/data-sources/extnet_default.md b/docs/data-sources/extnet_default.md index 4a53cd3..22eae05 100644 --- a/docs/data-sources/extnet_default.md +++ b/docs/data-sources/extnet_default.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_extnet_default Data Source - decort" +page_title: "decort_extnet_default Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -31,5 +31,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/extnet_list.md b/docs/data-sources/extnet_list.md index 493aa29..718c5f6 100644 --- a/docs/data-sources/extnet_list.md +++ b/docs/data-sources/extnet_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_extnet_list Data Source - decort" +page_title: "decort_extnet_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,13 +17,21 @@ description: |- ### Optional -- `account_id` (Number) filter by account ID +- `account_id` (Number) Find by account ID +- `by_id` (Number) Find by ID +- `name` (String) Find by name +- `network` (String) - `page` (Number) Page number - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vlan_id` (Number) Find by VLAN ID +- `vnfdev_id` (Number) Find by VnfDEV ID ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -44,5 +52,4 @@ Read-Only: - `ipcidr` (String) - `name` (String) - `net_id` (Number) - - +- `status` (String) diff --git a/docs/data-sources/flipgroup.md b/docs/data-sources/flipgroup.md new file mode 100644 index 0000000..04c43ef --- /dev/null +++ b/docs/data-sources/flipgroup.md @@ -0,0 +1,61 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_flipgroup Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_flipgroup (Data Source) + + + + + + +## Schema + +### Required + +- `flipgroup_id` (Number) Flipgroupd ID + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `client_ids` (List of Number) +- `client_type` (String) +- `conn_id` (Number) +- `conn_type` (String) +- `created_by` (String) +- `created_time` (Number) +- `default_gw` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `ip` (String) +- `milestones` (Number) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `network` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/flipgroup_list.md b/docs/data-sources/flipgroup_list.md new file mode 100644 index 0000000..f70e060 --- /dev/null +++ b/docs/data-sources/flipgroup_list.md @@ -0,0 +1,74 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_flipgroup_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_flipgroup_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Account id +- `by_id` (Number) Filter by ID +- `by_ip` (String) Filter by IP-address +- `client_ids` (List of Number) client_ids +- `conn_id` (Number) Conn id +- `extnet_id` (Number) Filter by ExtNetID +- `name` (String) Filter by Name +- `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID +- `vins_name` (String) Filter by ViNS name + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `client_ids` (List of Number) +- `client_type` (String) +- `conn_id` (Number) +- `conn_type` (String) +- `default_gw` (String) +- `desc` (String) +- `flipgroup_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `ip` (String) +- `meta` (List of String) +- `milestones` (Number) +- `name` (String) +- `net_id` (Number) +- `net_mask` (Number) +- `net_type` (String) +- `status` (String) diff --git a/docs/data-sources/image.md b/docs/data-sources/image.md index 83faaa0..fb52f4c 100644 --- a/docs/data-sources/image.md +++ b/docs/data-sources/image.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_image Data Source - decort" +page_title: "decort_image Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -31,9 +31,10 @@ description: |- - `architecture` (String) - `boot_type` (String) - `bootable` (Boolean) +- `cd_presented_to` (String) - `ckey` (String) - `compute_ci_id` (Number) -- `deleted_time` (String) +- `deleted_time` (Number) - `desc` (String) - `drivers` (List of String) - `enabled` (Boolean) @@ -46,8 +47,10 @@ description: |- - `last_modified` (Number) - `link_to` (Number) - `milestones` (Number) +- `network_interface_naming` (String) - `password` (String) - `pool_name` (String) +- `present_to` (List of Number) - `provider_name` (String) - `purge_attempts` (Number) - `res_id` (String) @@ -79,5 +82,3 @@ Read-Only: - `guid` (String) - `id` (Number) - `timestamp` (Number) - - diff --git a/docs/data-sources/image_list.md b/docs/data-sources/image_list.md index fbf21e1..44f1c0e 100644 --- a/docs/data-sources/image_list.md +++ b/docs/data-sources/image_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_image_list Data Source - decort" +page_title: "decort_image_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,13 +17,26 @@ description: |- ### Optional -- `account_id` (Number) optional account ID to include account images +- `architecture` (String) Filter by architecture +- `bootable` (Boolean) Find bootable images +- `by_id` (Number) Filter by ID +- `hot_resize` (Boolean) Find hot resizable images +- `image_size` (Number) Filter by image size +- `name` (String) Filter by name - `page` (Number) page number +- `pool` (String) Filter by pool +- `public` (Boolean) Find public/private images +- `sep_id` (Number) Filter by Storage Endpoint ID +- `sep_name` (String) Filter by SEP name - `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type_image` (String) Filter by image type ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) image list (see [below for nested schema](#nestedatt--items)) @@ -52,6 +65,7 @@ Read-Only: - `image_id` (Number) - `image_name` (String) - `link_to` (Number) +- `network_interface_naming` (String) - `pool_name` (String) - `sep_id` (Number) - `size` (Number) @@ -59,5 +73,3 @@ Read-Only: - `type` (String) - `username` (String) - `virtual` (Boolean) - - diff --git a/docs/data-sources/k8ci_list.md b/docs/data-sources/k8ci_list.md new file mode 100644 index 0000000..fd6fd8d --- /dev/null +++ b/docs/data-sources/k8ci_list.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8ci_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8ci_list (Data Source) + + + + + + +## Schema + +### Optional + +- `by_id` (Number) Filter by ID +- `include_disabled` (Boolean) Include deleted k8cis in result +- `master_driver` (String) Filter by master driver +- `name` (String) Filter by name +- `network_plugin` (String) Filter by network plugin +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `worker_driver` (String) Filter by worker driver + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `created_time` (Number) +- `desc` (String) +- `k8ci_id` (Number) +- `lb_image_id` (Number) +- `name` (String) +- `network_plugins` (List of String) +- `status` (String) +- `version` (String) diff --git a/docs/data-sources/k8s.md b/docs/data-sources/k8s.md new file mode 100644 index 0000000..8f274fa --- /dev/null +++ b/docs/data-sources/k8s.md @@ -0,0 +1,186 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `bservice_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `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. +- `k8s_ci_name` (String) +- `k8sci_id` (Number) +- `kubeconfig` (String) Kubeconfig for cluster access. +- `lb_id` (Number) +- `lb_ip` (String) IP address of default load balancer. +- `masters` (List of Object) (see [below for nested schema](#nestedatt--masters)) +- `name` (String) +- `network_plugin` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) +- `workers` (List of Object) (see [below for nested schema](#nestedatt--workers)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--account_acl)) +- `k8s_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--k8s_acl)) +- `rg_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--rg_acl)) + + +### Nested Schema for `acl.account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.k8s_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + + +### Nested Schema for `masters` + +Read-Only: + +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--masters--detailed_info)) +- `disk` (Number) +- `master_id` (Number) +- `name` (String) +- `num` (Number) +- `ram` (Number) + + +### Nested Schema for `masters.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--masters--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `masters.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) + + + + + +### Nested Schema for `workers` + +Read-Only: + +- `annotations` (List of String) +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--workers--detailed_info)) +- `disk` (Number) +- `guid` (String) +- `id` (Number) +- `labels` (List of String) +- `name` (String) +- `num` (Number) +- `ram` (Number) +- `taints` (List of String) + + +### Nested Schema for `workers.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--workers--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `workers.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/k8s_computes.md b/docs/data-sources/k8s_computes.md new file mode 100644 index 0000000..7ef0849 --- /dev/null +++ b/docs/data-sources/k8s_computes.md @@ -0,0 +1,62 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_computes Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_computes (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `masters` (List of Object) (see [below for nested schema](#nestedatt--masters)) +- `workers` (List of Object) (see [below for nested schema](#nestedatt--workers)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `masters` + +Read-Only: + +- `group_name` (String) +- `id` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + + +### Nested Schema for `workers` + +Read-Only: + +- `group_name` (String) +- `id` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) diff --git a/docs/data-sources/k8s_list.md b/docs/data-sources/k8s_list.md new file mode 100644 index 0000000..f3d054b --- /dev/null +++ b/docs/data-sources/k8s_list.md @@ -0,0 +1,129 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_list (Data Source) + + + + + + +## Schema + +### Optional + +- `bservice_id` (Number) Filter by BService ID +- `by_id` (Number) Filter by ID +- `includedeleted` (Boolean) +- `ip_address` (String) Filter by IP address +- `lb_id` (Number) Filter by LB ID +- `name` (String) Filter by name +- `page` (Number) +- `rg_id` (Number) Filter by RG ID +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `tech_status` (String) Filter by tech. status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of String) +- `bservice_id` (Number) +- `ci_id` (Number) +- `config` (List of String) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `extnet_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `k8s_id` (Number) +- `k8s_name` (String) +- `lb_id` (Number) +- `milestones` (Number) +- `network_plugin` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `service_account` (List of Object) (see [below for nested schema](#nestedobjatt--items--service_account)) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) +- `workers_groups` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups)) + + +### Nested Schema for `items.service_account` + +Read-Only: + +- `guid` (String) +- `password` (String) +- `username` (String) + + + +### Nested Schema for `items.workers_groups` + +Read-Only: + +- `annotations` (List of String) +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups--detailed_info)) +- `detailed_info_id` (Number) +- `disk` (Number) +- `guid` (String) +- `labels` (List of String) +- `name` (String) +- `num` (Number) +- `ram` (Number) +- `taints` (List of String) + + +### Nested Schema for `items.workers_groups.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `items.workers_groups.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/k8s_list_deleted.md b/docs/data-sources/k8s_list_deleted.md new file mode 100644 index 0000000..a3c34b6 --- /dev/null +++ b/docs/data-sources/k8s_list_deleted.md @@ -0,0 +1,127 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `bservice_id` (Number) Filter by BService ID +- `by_id` (Number) Filter by ID +- `ip_address` (String) Filter by IP address +- `lb_id` (Number) Filter by LB ID +- `name` (String) Filter by name +- `page` (Number) +- `rg_id` (Number) Filter by RG ID +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Filter by tech. status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of String) +- `bservice_id` (Number) +- `ci_id` (Number) +- `config` (List of String) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `extnet_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `k8s_id` (Number) +- `k8s_name` (String) +- `lb_id` (Number) +- `milestones` (Number) +- `network_plugin` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `service_account` (List of Object) (see [below for nested schema](#nestedobjatt--items--service_account)) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) +- `workers_groups` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups)) + + +### Nested Schema for `items.service_account` + +Read-Only: + +- `guid` (String) +- `password` (String) +- `username` (String) + + + +### Nested Schema for `items.workers_groups` + +Read-Only: + +- `annotations` (List of String) +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups--detailed_info)) +- `detailed_info_id` (Number) +- `disk` (Number) +- `guid` (String) +- `labels` (List of String) +- `name` (String) +- `num` (Number) +- `ram` (Number) +- `taints` (List of String) + + +### Nested Schema for `items.workers_groups.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--workers_groups--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `items.workers_groups.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/k8s_wg.md b/docs/data-sources/k8s_wg.md new file mode 100644 index 0000000..1bcf6e4 --- /dev/null +++ b/docs/data-sources/k8s_wg.md @@ -0,0 +1,69 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_wg Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_wg (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) ID of k8s instance. +- `wg_id` (Number) ID of k8s worker Group. + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `annotations` (List of String) +- `cpu` (Number) Worker node CPU count. +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--detailed_info)) +- `disk` (Number) Worker node boot disk size. If unspecified or 0, size is defined by OS image size. +- `guid` (String) +- `id` (String) The ID of this resource. +- `labels` (List of String) +- `name` (String) Name of the worker group. +- `num` (Number) Number of worker nodes to create. +- `ram` (Number) Worker node RAM in MB. +- `taints` (List of String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/k8s_wg_cloud_init.md b/docs/data-sources/k8s_wg_cloud_init.md new file mode 100644 index 0000000..7062753 --- /dev/null +++ b/docs/data-sources/k8s_wg_cloud_init.md @@ -0,0 +1,38 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_wg_cloud_init Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_wg_cloud_init (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) Kubernetes cluster ID +- `wg_id` (Number) ID of the workers compute group + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `cloud_init` (String) Worker group Cloud init +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/k8s_wg_list.md b/docs/data-sources/k8s_wg_list.md new file mode 100644 index 0000000..ebe5012 --- /dev/null +++ b/docs/data-sources/k8s_wg_list.md @@ -0,0 +1,76 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_wg_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_wg_list (Data Source) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `annotations` (List of String) +- `cpu` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--detailed_info)) +- `disk` (Number) +- `guid` (String) +- `labels` (List of String) +- `name` (String) +- `num` (Number) +- `ram` (Number) +- `taints` (List of String) +- `wg_id` (Number) + + +### Nested Schema for `items.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `items.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/data-sources/kvmvm.md b/docs/data-sources/kvmvm.md index 7aab86c..77912da 100644 --- a/docs/data-sources/kvmvm.md +++ b/docs/data-sources/kvmvm.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_kvmvm Data Source - decort" +page_title: "decort_kvmvm Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -15,57 +15,298 @@ description: |- ## Schema +### Required + +- `compute_id` (Number) + ### Optional -- `compute_id` (Number) ID of the compute instance. If ID is specified, name and resource group ID are ignored. -- `name` (String) Name of this compute instance. NOTE: this parameter is case sensitive. -- `network` (Block Set, Max: 8) Network connection(s) for this compute. (see [below for nested schema](#nestedblock--network)) -- `rg_id` (Number) ID of the resource group where this compute instance is located. -- `started` (Boolean) Is compute started. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only -- `account_id` (Number) ID of the account this compute instance belongs to. -- `account_name` (String) Name of the account this compute instance belongs to. -- `boot_disk_id` (Number) This compute instance boot disk ID. -- `boot_disk_size` (Number) This compute instance boot disk size in GB. -- `cloud_init` (String) Placeholder for cloud_init parameters. -- `cpu` (Number) Number of CPUs allocated for this compute instance. -- `description` (String) User-defined text description of this compute instance. -- `driver` (String) Hardware architecture of this compute instance. -- `extra_disks` (Set of Number) IDs of the extra disk(s) attached to this compute. +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedatt--affinity_rules)) +- `affinity_weight` (Number) +- `anti_affinity_rules` (List of Object) (see [below for nested schema](#nestedatt--anti_affinity_rules)) +- `arch` (String) +- `boot_order` (List of String) +- `bootdisk_size` (Number) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `computeci_id` (Number) +- `cpu_pin` (Boolean) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `custom_fields` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `devices` (String) +- `disks` (List of Object) (see [below for nested schema](#nestedatt--disks)) +- `driver` (String) +- `gid` (Number) +- `guid` (Number) +- `hp_backed` (Boolean) - `id` (String) The ID of this resource. -- `image_id` (Number) ID of the OS image this compute instance is based on. -- `image_name` (String) Name of the OS image this compute instance is based on. -- `os_users` (List of Object) Guest OS users provisioned on this compute instance. (see [below for nested schema](#nestedatt--os_users)) -- `ram` (Number) Amount of RAM in MB allocated for this compute instance. -- `rg_name` (String) Name of the resource group where this compute instance is located. +- `image_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `name` (String) +- `natable_vins_id` (Number) +- `natable_vins_ip` (String) +- `natable_vins_name` (String) +- `natable_vins_network` (String) +- `natable_vins_network_name` (String) +- `need_reboot` (Boolean) +- `numa_affinity` (String) +- `numa_node_id` (Number) +- `os_users` (List of Object) (see [below for nested schema](#nestedatt--os_users)) +- `pinned` (Boolean) +- `ram` (Number) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) +- `rg_id` (Number) +- `rg_name` (String) +- `snap_sets` (List of Object) (see [below for nested schema](#nestedatt--snap_sets)) +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tags` (Map of String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `userdata` (String) +- `vgpus` (List of Number) +- `virtual_image_id` (Number) +- `virtual_image_name` (String) - -### Nested Schema for `network` + +### Nested Schema for `timeouts` -Required: +Optional: -- `net_id` (Number) ID of the network for this connection. -- `net_type` (String) Type of the network for this connection, either EXTNET or VINS. +- `default` (String) +- `read` (String) -Optional: -- `ip_address` (String) Optional IP address to assign to this connection. This IP should belong to the selected network and free for use. + +### Nested Schema for `acl` Read-Only: -- `mac` (String) MAC address associated with this connection. MAC address is assigned automatically. +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--account_acl)) +- `compute_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--compute_acl)) +- `rg_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--rg_acl)) + +### Nested Schema for `acl.account_acl` - -### Nested Schema for `timeouts` +Read-Only: -Optional: +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.compute_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + + +### Nested Schema for `affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `anti_affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `disks` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `acl` (String) +- `boot_partition` (Number) +- `created_time` (Number) +- `deleted_time` (Number) +- `description` (String) +- `destruction_time` (Number) +- `disk_id` (Number) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `image_id` (Number) +- `image_name` (String) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedobjatt--disks--iotune)) +- `iqn` (String) +- `login` (String) +- `milestones` (Number) +- `name` (String) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `pool` (String) +- `present_to` (List of Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `replication` (List of Object) (see [below for nested schema](#nestedobjatt--disks--replication)) +- `res_id` (String) +- `role` (String) +- `sep_id` (Number) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedobjatt--disks--snapshots)) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `disks.iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `disks.replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `disks.snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (Number) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) + + + + +### Nested Schema for `interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) -- `default` (String) -- `read` (String) @@ -79,3 +320,12 @@ Read-Only: - `public_key` (String) + +### Nested Schema for `snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) diff --git a/docs/data-sources/kvmvm_audits.md b/docs/data-sources/kvmvm_audits.md new file mode 100644 index 0000000..e538e2b --- /dev/null +++ b/docs/data-sources/kvmvm_audits.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_audits Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_audits (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `responsetime` (Number) +- `statuscode` (Number) +- `timestamp` (Number) +- `user` (String) diff --git a/docs/data-sources/kvmvm_get_audits.md b/docs/data-sources/kvmvm_get_audits.md new file mode 100644 index 0000000..3957959 --- /dev/null +++ b/docs/data-sources/kvmvm_get_audits.md @@ -0,0 +1,46 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_get_audits Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_get_audits (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `epoch` (Number) +- `message` (String) diff --git a/docs/data-sources/kvmvm_get_console_url.md b/docs/data-sources/kvmvm_get_console_url.md new file mode 100644 index 0000000..696dd7b --- /dev/null +++ b/docs/data-sources/kvmvm_get_console_url.md @@ -0,0 +1,37 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_get_console_url Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_get_console_url (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `console_url` (String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/kvmvm_get_log.md b/docs/data-sources/kvmvm_get_log.md new file mode 100644 index 0000000..0b5f4ff --- /dev/null +++ b/docs/data-sources/kvmvm_get_log.md @@ -0,0 +1,38 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_get_log Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_get_log (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) +- `path` (String) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `log` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/kvmvm_list.md b/docs/data-sources/kvmvm_list.md new file mode 100644 index 0000000..7e600dc --- /dev/null +++ b/docs/data-sources/kvmvm_list.md @@ -0,0 +1,221 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Find by AccountID +- `by_id` (Number) Find by ID +- `extnet_id` (Number) Find by Extnet ID +- `extnet_name` (String) Find by Extnet name +- `ignore_k8s` (Boolean) If set to true, ignores any VMs associated with any k8s cluster +- `includedeleted` (Boolean) +- `ip_address` (String) Find by IP address +- `name` (String) Find by name +- `page` (Number) +- `rg_id` (Number) Find by RGID +- `rg_name` (String) Find by resgroup name +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `tech_status` (String) Find by tech status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--affinity_rules)) +- `affinity_weight` (Number) +- `anti_affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--anti_affinity_rules)) +- `arch` (String) +- `boot_order` (List of String) +- `bootdisk_size` (Number) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `compute_id` (Number) +- `computeci_id` (Number) +- `cpu_pin` (Boolean) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `custom_fields` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `devices` (String) +- `disks` (List of Object) (see [below for nested schema](#nestedobjatt--items--disks)) +- `driver` (String) +- `gid` (Number) +- `guid` (Number) +- `hp_backed` (Boolean) +- `image_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `name` (String) +- `need_reboot` (Boolean) +- `numa_affinity` (String) +- `numa_node_id` (Number) +- `pinned` (Boolean) +- `ram` (Number) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) +- `rg_id` (Number) +- `rg_name` (String) +- `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets)) +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tags` (List of Object) (see [below for nested schema](#nestedobjatt--items--tags)) +- `tech_status` (String) +- `total_disk_size` (Number) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vgpus` (List of Number) +- `vins_connected` (Number) +- `virtual_image_id` (Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.anti_affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.disks` + +Read-Only: + +- `disk_id` (Number) +- `pci_slot` (Number) + + + +### Nested Schema for `items.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `items.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `items.snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) + + + +### Nested Schema for `items.tags` + +Read-Only: + +- `key` (String) +- `val` (String) diff --git a/docs/data-sources/kvmvm_list_deleted.md b/docs/data-sources/kvmvm_list_deleted.md new file mode 100644 index 0000000..3fcfb52 --- /dev/null +++ b/docs/data-sources/kvmvm_list_deleted.md @@ -0,0 +1,219 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Find by AccountID +- `by_id` (Number) Find by ID +- `extnet_id` (Number) Find by Extnet ID +- `extnet_name` (String) Find by Extnet name +- `ignore_k8s` (Boolean) If set to true, ignores any VMs associated with any k8s cluster +- `ip_address` (String) Find by IP address +- `name` (String) Find by name +- `page` (Number) +- `rg_id` (Number) Find by RGID +- `rg_name` (String) Find by resgroup name +- `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Find by tech status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--affinity_rules)) +- `affinity_weight` (Number) +- `anti_affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--anti_affinity_rules)) +- `arch` (String) +- `boot_order` (List of String) +- `bootdisk_size` (Number) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `compute_id` (Number) +- `computeci_id` (Number) +- `cpu_pin` (Boolean) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `custom_fields` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `devices` (String) +- `disks` (List of Object) (see [below for nested schema](#nestedobjatt--items--disks)) +- `driver` (String) +- `gid` (Number) +- `guid` (Number) +- `hp_backed` (Boolean) +- `image_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `name` (String) +- `need_reboot` (Boolean) +- `numa_affinity` (String) +- `numa_node_id` (Number) +- `pinned` (Boolean) +- `ram` (Number) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) +- `rg_id` (Number) +- `rg_name` (String) +- `snap_sets` (List of Object) (see [below for nested schema](#nestedobjatt--items--snap_sets)) +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tags` (List of Object) (see [below for nested schema](#nestedobjatt--items--tags)) +- `tech_status` (String) +- `total_disk_size` (Number) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vgpus` (List of Number) +- `vins_connected` (Number) +- `virtual_image_id` (Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.anti_affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.disks` + +Read-Only: + +- `disk_id` (Number) +- `pci_slot` (Number) + + + +### Nested Schema for `items.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--items--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `items.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `items.snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) + + + +### Nested Schema for `items.tags` + +Read-Only: + +- `key` (String) +- `val` (String) diff --git a/docs/data-sources/kvmvm_pci_device_list.md b/docs/data-sources/kvmvm_pci_device_list.md new file mode 100644 index 0000000..47e4cdd --- /dev/null +++ b/docs/data-sources/kvmvm_pci_device_list.md @@ -0,0 +1,62 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_pci_device_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_pci_device_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `device_id` (Number) Find by device id +- `page` (Number) Page number +- `rg_id` (Number) Find by RG id +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) +- `name` (String) Find by name +- `status` (String) Find by status + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `compute_id` (Number) +- `description` (String) +- `device_id` (Number) +- `guid` (Number) +- `hwpath` (String) +- `name` (String) +- `rg_id` (Number) +- `stack_id` (Number) +- `status` (String) +- `system_name` (String) diff --git a/docs/data-sources/kvmvm_pfw_list.md b/docs/data-sources/kvmvm_pfw_list.md new file mode 100644 index 0000000..5bcbd4d --- /dev/null +++ b/docs/data-sources/kvmvm_pfw_list.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_pfw_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_pfw_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `local_ip` (String) +- `local_port` (Number) +- `pfw_id` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/sep.md b/docs/data-sources/kvmvm_snapshot_usage.md similarity index 53% rename from docs/data-sources/sep.md rename to docs/data-sources/kvmvm_snapshot_usage.md index ef46667..eb4fc4a 100644 --- a/docs/data-sources/sep.md +++ b/docs/data-sources/kvmvm_snapshot_usage.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep Data Source - decort" +page_title: "decort_kvmvm_snapshot_usage Data Source - terraform-provider-decort" subcategory: "" description: |- --- -# decort_sep (Data Source) +# decort_kvmvm_snapshot_usage (Data Source) @@ -17,28 +17,17 @@ description: |- ### Required -- `sep_id` (Number) sep type des id +- `compute_id` (Number) ### Optional +- `label` (String) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only -- `ckey` (String) -- `config` (String) -- `consumed_by` (List of Number) -- `desc` (String) -- `gid` (Number) -- `guid` (Number) - `id` (String) The ID of this resource. -- `meta` (List of String) -- `milestones` (Number) -- `name` (String) -- `obj_status` (String) -- `provided_by` (List of Number) -- `tech_status` (String) -- `type` (String) +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) ### Nested Schema for `timeouts` @@ -49,3 +38,12 @@ Optional: - `read` (String) + +### Nested Schema for `items` + +Read-Only: + +- `count` (Number) +- `label` (String) +- `stored` (Number) +- `timestamp` (Number) diff --git a/docs/data-sources/kvmvm_user_list.md b/docs/data-sources/kvmvm_user_list.md new file mode 100644 index 0000000..a1eedb5 --- /dev/null +++ b/docs/data-sources/kvmvm_user_list.md @@ -0,0 +1,78 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_user_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_user_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_acl` (List of Object) (see [below for nested schema](#nestedatt--account_acl)) +- `compute_acl` (List of Object) (see [below for nested schema](#nestedatt--compute_acl)) +- `id` (String) The ID of this resource. +- `rg_acl` (List of Object) (see [below for nested schema](#nestedatt--rg_acl)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `compute_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) diff --git a/docs/data-sources/kvmvm_vgpu_list.md b/docs/data-sources/kvmvm_vgpu_list.md new file mode 100644 index 0000000..b74996c --- /dev/null +++ b/docs/data-sources/kvmvm_vgpu_list.md @@ -0,0 +1,70 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_kvmvm_vgpu_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_kvmvm_vgpu_list (Data Source) + + + + + + +## Schema + +### Required + +- `compute_id` (Number) + +### Optional + +- `gpu_id` (Number) Find by GPU id +- `includedeleted` (Boolean) Include deleted computes. If using field 'status', then includedeleted will be ignored +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) +- `status` (String) Find by status +- `type` (String) Find by type + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `created_time` (Number) +- `deleted_time` (Number) +- `gid` (Number) +- `guid` (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) +- `vgpu_id` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/lb.md b/docs/data-sources/lb.md index 37d5257..5c2ca3b 100644 --- a/docs/data-sources/lb.md +++ b/docs/data-sources/lb.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb Data Source - decort" +page_title: "decort_lb Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -25,6 +25,7 @@ description: |- ### Read-Only +- `backend_haip` (String) - `backends` (List of Object) (see [below for nested schema](#nestedatt--backends)) - `created_by` (String) - `created_time` (Number) @@ -33,14 +34,18 @@ description: |- - `desc` (String) - `dp_api_user` (String) - `extnet_id` (Number) +- `frontend_haip` (String) - `frontends` (List of Object) (see [below for nested schema](#nestedatt--frontends)) - `gid` (Number) - `guid` (Number) - `ha_mode` (Boolean) - `id` (String) The ID of this resource. - `image_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) - `milestones` (Number) - `name` (String) +- `part_k8s` (Boolean) - `primary_node` (List of Object) (see [below for nested schema](#nestedatt--primary_node)) - `rg_id` (Number) - `rg_name` (String) @@ -49,6 +54,7 @@ description: |- - `tech_status` (String) - `updated_by` (String) - `updated_time` (Number) +- `user_managed` (Boolean) - `vins_id` (Number) @@ -163,5 +169,3 @@ Read-Only: - `guid` (String) - `mgmt_ip` (String) - `network_id` (Number) - - diff --git a/docs/data-sources/lb_list.md b/docs/data-sources/lb_list.md index 10f9235..b587cc1 100644 --- a/docs/data-sources/lb_list.md +++ b/docs/data-sources/lb_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb_list Data Source - decort" +page_title: "decort_lb_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,13 +17,23 @@ description: |- ### Optional +- `account_id` (Number) Filter by Account ID +- `back_ip` (String) Filter by BackIP +- `by_id` (Number) Filter by ID +- `front_ip` (String) Filter by FrontIP - `includedeleted` (Boolean) +- `name` (String) Filter by name - `page` (Number) +- `rg_id` (Number) Filter by RG ID - `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by Status +- `tech_status` (String) Filter by TechStatus - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -41,6 +51,7 @@ Optional: Read-Only: +- `backend_haip` (String) - `backends` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends)) - `created_by` (String) - `created_time` (Number) @@ -50,14 +61,18 @@ Read-Only: - `dp_api_password` (String) - `dp_api_user` (String) - `extnet_id` (Number) +- `frontend_haip` (String) - `frontends` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends)) - `gid` (Number) - `guid` (Number) - `ha_mode` (Boolean) - `image_id` (Number) - `lb_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) - `milestones` (Number) - `name` (String) +- `part_k8s` (Boolean) - `primary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--primary_node)) - `rg_id` (Number) - `rg_name` (String) @@ -66,6 +81,7 @@ Read-Only: - `tech_status` (String) - `updated_by` (String) - `updated_time` (Number) +- `user_managed` (Boolean) - `vins_id` (Number) @@ -171,5 +187,3 @@ Read-Only: - `guid` (String) - `mgmt_ip` (String) - `network_id` (Number) - - diff --git a/docs/data-sources/lb_list_deleted.md b/docs/data-sources/lb_list_deleted.md index cc3d4a7..7477be4 100644 --- a/docs/data-sources/lb_list_deleted.md +++ b/docs/data-sources/lb_list_deleted.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb_list_deleted Data Source - decort" +page_title: "decort_lb_list_deleted Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,12 +17,21 @@ description: |- ### Optional +- `account_id` (Number) Filter by Account ID +- `back_ip` (String) Filter by BackIP +- `by_id` (Number) Filter by ID +- `front_ip` (String) Filter by FrontIP +- `name` (String) Filter by name - `page` (Number) +- `rg_id` (Number) Filter by RG ID - `size` (Number) +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `tech_status` (String) Filter by TechStatus - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -40,6 +49,7 @@ Optional: Read-Only: +- `backend_haip` (String) - `backends` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends)) - `created_by` (String) - `created_time` (Number) @@ -49,14 +59,18 @@ Read-Only: - `dp_api_password` (String) - `dp_api_user` (String) - `extnet_id` (Number) +- `frontend_haip` (String) - `frontends` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends)) - `gid` (Number) - `guid` (Number) - `ha_mode` (Boolean) - `image_id` (Number) - `lb_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) - `milestones` (Number) - `name` (String) +- `part_k8s` (Boolean) - `primary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--primary_node)) - `rg_id` (Number) - `rg_name` (String) @@ -65,6 +79,7 @@ Read-Only: - `tech_status` (String) - `updated_by` (String) - `updated_time` (Number) +- `user_managed` (Boolean) - `vins_id` (Number) @@ -170,5 +185,3 @@ Read-Only: - `guid` (String) - `mgmt_ip` (String) - `network_id` (Number) - - diff --git a/docs/data-sources/location_url.md b/docs/data-sources/location_url.md index aefcb5b..cb66c39 100644 --- a/docs/data-sources/location_url.md +++ b/docs/data-sources/location_url.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_location_url Data Source - decort" +page_title: "decort_location_url Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -31,5 +31,3 @@ Optional: - `default` (String) - `read` (String) - - diff --git a/docs/data-sources/locations_list.md b/docs/data-sources/locations_list.md index f80e38e..11ef95a 100644 --- a/docs/data-sources/locations_list.md +++ b/docs/data-sources/locations_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_locations_list Data Source - decort" +page_title: "decort_locations_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,12 +17,18 @@ description: |- ### Optional +- `by_id` (Number) Filter by ID +- `flag` (String) Filter by flag +- `location_code` (String) Filter by location code +- `name` (String) Filter by name - `page` (Number) page number - `size` (Number) page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) Locations list (see [below for nested schema](#nestedatt--items)) @@ -40,6 +46,7 @@ Optional: Read-Only: +- `auth_broker` (List of String) - `ckey` (String) - `flag` (String) - `gid` (Number) @@ -48,5 +55,3 @@ Read-Only: - `location_code` (String) - `meta` (List of String) - `name` (String) - - diff --git a/docs/data-sources/resgroup.md b/docs/data-sources/resgroup.md index 8bed732..8488a57 100644 --- a/docs/data-sources/resgroup.md +++ b/docs/data-sources/resgroup.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_resgroup Data Source - decort" +page_title: "decort_resgroup Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,22 +17,45 @@ description: |- ### Required -- `account_id` (Number) Unique ID of the account, which this resource group belongs to. +- `rg_id` (Number) ### Optional -- `name` (String) Name of the resource group. Names are case sensitive and unique within the context of an account. -- `rg_id` (Number) Unique ID of the resource group. If this ID is specified, then resource group name is ignored. +- `reason` (String) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only -- `account_name` (String) Name of the account, which this resource group belongs to. -- `def_net_id` (Number) ID of the default network for this resource group (if any). -- `def_net_type` (String) Type of the default network for this resource group. -- `description` (String) User-defined text description of this resource group. +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `compute_features` (List of String) +- `computes` (List of Number) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `def_net_id` (Number) +- `def_net_type` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dirty` (Boolean) +- `gid` (Number) +- `guid` (Number) - `id` (String) The ID of this resource. -- `quota` (List of Object) Quota settings for this resource group. (see [below for nested schema](#nestedatt--quota)) +- `lock_status` (String) +- `milestones` (Number) +- `name` (String) +- `register_computes` (Boolean) +- `res_types` (List of String) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) +- `secret` (String) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins` (List of Number) ### Nested Schema for `timeouts` @@ -43,16 +66,28 @@ Optional: - `read` (String) - -### Nested Schema for `quota` + +### Nested Schema for `acl` Read-Only: -- `cpu` (Number) -- `disk` (Number) -- `ext_ips` (Number) -- `ext_traffic` (Number) -- `gpu_units` (Number) -- `ram` (Number) +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + +### Nested Schema for `resource_limits` +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/rg_affinity_group_computes.md b/docs/data-sources/rg_affinity_group_computes.md new file mode 100644 index 0000000..c7bb6fc --- /dev/null +++ b/docs/data-sources/rg_affinity_group_computes.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_affinity_group_computes Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_affinity_group_computes (Data Source) + + + + + + +## Schema + +### Required + +- `affinity_group` (String) Affinity group label +- `rg_id` (Number) ID of the RG + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `compute_id` (Number) +- `other_node` (List of Number) +- `other_node_indirect` (List of Number) +- `other_node_indirect_soft` (List of Number) +- `other_node_soft` (List of Number) +- `same_node` (List of Number) +- `same_node_soft` (List of Number) diff --git a/docs/data-sources/rg_affinity_groups_get.md b/docs/data-sources/rg_affinity_groups_get.md new file mode 100644 index 0000000..bef8ad5 --- /dev/null +++ b/docs/data-sources/rg_affinity_groups_get.md @@ -0,0 +1,38 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_affinity_groups_get Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_affinity_groups_get (Data Source) + + + + + + +## Schema + +### Required + +- `affinity_group` (String) Affinity group label +- `rg_id` (Number) ID of the RG + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `ids` (List of Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/rg_affinity_groups_list.md b/docs/data-sources/rg_affinity_groups_list.md new file mode 100644 index 0000000..e5d64e2 --- /dev/null +++ b/docs/data-sources/rg_affinity_groups_list.md @@ -0,0 +1,57 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_affinity_groups_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_affinity_groups_list (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `page` (Number) Page number +- `size` (Number) Page size +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `affinity_groups` (List of Object) (see [below for nested schema](#nestedatt--affinity_groups)) +- `entry_count` (Number) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `affinity_groups` + +Read-Only: + +- `ids` (List of Object) (see [below for nested schema](#nestedobjatt--affinity_groups--ids)) +- `label` (String) + + +### Nested Schema for `affinity_groups.ids` + +Read-Only: + +- `id` (Number) +- `node_id` (Number) diff --git a/docs/data-sources/rg_audits.md b/docs/data-sources/rg_audits.md new file mode 100644 index 0000000..c251363 --- /dev/null +++ b/docs/data-sources/rg_audits.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_audits Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_audits (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `responsetime` (Number) +- `statuscode` (Number) +- `timestamp` (Number) +- `user` (String) diff --git a/docs/data-sources/rg_list.md b/docs/data-sources/rg_list.md index b733529..1f1df4b 100644 --- a/docs/data-sources/rg_list.md +++ b/docs/data-sources/rg_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_rg_list Data Source - decort" +page_title: "decort_rg_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,13 +17,23 @@ description: |- ### Optional +- `account_id` (Number) Find by account ID +- `account_name` (String) Find by account name +- `by_id` (Number) Find by ID +- `created_after` (Number) Find RGs created after specific time (unix timestamp) +- `created_before` (Number) Find RGs created before specific time (unix timestamp) - `includedeleted` (Boolean) included deleted resource groups +- `lock_status` (String) Find by lock status +- `name` (String) Find by name - `page` (Number) Page number - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -41,9 +51,12 @@ Optional: Read-Only: +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--account_acl)) - `account_id` (Number) - `account_name` (String) -- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) - `created_by` (String) - `created_time` (Number) - `def_net_id` (Number) @@ -51,6 +64,7 @@ Read-Only: - `deleted_by` (String) - `deleted_time` (Number) - `desc` (String) +- `dirty` (Boolean) - `gid` (Number) - `guid` (Number) - `lock_status` (String) @@ -58,16 +72,18 @@ Read-Only: - `name` (String) - `register_computes` (Boolean) - `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `resource_types` (List of String) - `rg_id` (Number) - `secret` (String) - `status` (String) +- `uniq_pools` (List of String) - `updated_by` (String) - `updated_time` (Number) - `vins` (List of Number) - `vms` (List of Number) - -### Nested Schema for `items.acl` + +### Nested Schema for `items.account_acl` Read-Only: @@ -86,9 +102,8 @@ Read-Only: - `cu_c` (Number) - `cu_d` (Number) +- `cu_dm` (Number) - `cu_i` (Number) - `cu_m` (Number) - `cu_np` (Number) - `gpu_units` (Number) - - diff --git a/docs/data-sources/rg_list_computes.md b/docs/data-sources/rg_list_computes.md new file mode 100644 index 0000000..84360f3 --- /dev/null +++ b/docs/data-sources/rg_list_computes.md @@ -0,0 +1,104 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_list_computes Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_list_computes (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `account_id` (Number) Filter by account ID +- `compute_id` (Number) Filter by compute ID +- `extnet_id` (Number) Filter by extnet ID +- `extnet_name` (String) Filter by extnet name +- `ip_address` (String) FIlter by IP address +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `tech_status` (String) Filter by tech. status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `affinity_label` (String) +- `affinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--affinity_rules)) +- `affinity_weight` (Number) +- `antiaffinity_rules` (List of Object) (see [below for nested schema](#nestedobjatt--items--antiaffinity_rules)) +- `cpus` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `id` (Number) +- `name` (String) +- `ram` (Number) +- `registered` (Boolean) +- `rg_name` (String) +- `status` (String) +- `tech_status` (String) +- `total_disks_size` (Number) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_connected` (Number) + + +### Nested Schema for `items.affinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) + + + +### Nested Schema for `items.antiaffinity_rules` + +Read-Only: + +- `guid` (String) +- `key` (String) +- `mode` (String) +- `policy` (String) +- `topology` (String) +- `value` (String) diff --git a/docs/data-sources/rg_list_deleted.md b/docs/data-sources/rg_list_deleted.md new file mode 100644 index 0000000..d985c97 --- /dev/null +++ b/docs/data-sources/rg_list_deleted.md @@ -0,0 +1,107 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Filter by account ID +- `account_name` (String) Filter by account name +- `by_id` (Number) Filter by ID +- `created_after` (Number) Filter RGs created after certain point in time (unix timestamp) +- `created_before` (Number) Filter RGs created before certain point in time (unix timestamp) +- `lock_status` (String) Filter by lock status +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--account_acl)) +- `account_id` (Number) +- `account_name` (String) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) +- `created_by` (String) +- `created_time` (Number) +- `def_net_id` (Number) +- `def_net_type` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dirty` (Boolean) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `name` (String) +- `register_computes` (Boolean) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `resource_types` (List of String) +- `rg_id` (Number) +- `secret` (String) +- `status` (String) +- `uniq_pools` (List of String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins` (List of Number) +- `vms` (List of Number) + + +### Nested Schema for `items.account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/rg_list_lb.md b/docs/data-sources/rg_list_lb.md new file mode 100644 index 0000000..ca4d666 --- /dev/null +++ b/docs/data-sources/rg_list_lb.md @@ -0,0 +1,198 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_list_lb Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_list_lb (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `back_ip` (String) Filter by backend IP +- `by_id` (Number) Filter by ID +- `front_ip` (String) Filter by frontend IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Filter by status +- `tech_status` (String) Filter by tech. status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `acl` (List of Object) (see [below for nested schema](#nestedobjatt--items--acl)) +- `backend_haip` (String) +- `backends` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends)) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) +- `dp_api_user` (String) +- `extnet_id` (Number) +- `frontend_haip` (String) +- `frontends` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends)) +- `gid` (Number) +- `guid` (Number) +- `ha_mode` (Boolean) +- `id` (Number) +- `image_id` (Number) +- `milestones` (Number) +- `name` (String) +- `primary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--primary_node)) +- `rg_name` (String) +- `secondary_node` (List of Object) (see [below for nested schema](#nestedobjatt--items--secondary_node)) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) + + +### Nested Schema for `items.acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `items.backends` + +Read-Only: + +- `algorithm` (String) +- `guid` (String) +- `name` (String) +- `server_default_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--server_default_settings)) +- `servers` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers)) + + +### Nested Schema for `items.backends.server_default_settings` + +Read-Only: + +- `down_inter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `max_conn` (Number) +- `max_queue` (Number) +- `rise` (Number) +- `slow_start` (Number) +- `weight` (Number) + + + +### Nested Schema for `items.backends.servers` + +Read-Only: + +- `address` (String) +- `check` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) +- `server_settings` (List of Object) (see [below for nested schema](#nestedobjatt--items--backends--servers--server_settings)) + + +### Nested Schema for `items.backends.servers.server_settings` + +Read-Only: + +- `down_inter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `max_conn` (Number) +- `max_queue` (Number) +- `rise` (Number) +- `slow_start` (Number) +- `weight` (Number) + + + + + +### Nested Schema for `items.frontends` + +Read-Only: + +- `backend` (String) +- `bindings` (List of Object) (see [below for nested schema](#nestedobjatt--items--frontends--bindings)) +- `guid` (String) +- `name` (String) + + +### Nested Schema for `items.frontends.bindings` + +Read-Only: + +- `address` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) + + + + +### Nested Schema for `items.primary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) + + + +### Nested Schema for `items.secondary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) diff --git a/docs/data-sources/rg_list_pfw.md b/docs/data-sources/rg_list_pfw.md new file mode 100644 index 0000000..0917fab --- /dev/null +++ b/docs/data-sources/rg_list_pfw.md @@ -0,0 +1,53 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_list_pfw Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_list_pfw (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `public_port_end` (Number) +- `public_port_start` (Number) +- `vins_id` (Number) +- `vins_name` (String) +- `vm_id` (Number) +- `vm_ip` (String) +- `vm_name` (String) +- `vm_port` (Number) diff --git a/docs/data-sources/rg_list_vins.md b/docs/data-sources/rg_list_vins.md new file mode 100644 index 0000000..51b808a --- /dev/null +++ b/docs/data-sources/rg_list_vins.md @@ -0,0 +1,70 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_list_vins Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_list_vins (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) ID of the RG + +### Optional + +- `account_id` (Number) Filter by account ID +- `ext_ip` (String) Filter by external IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) Filter by ViNS ID + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `computes` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `external_ip` (String) +- `extnet_id` (Number) +- `free_ips` (Number) +- `id` (Number) +- `name` (String) +- `network` (String) +- `pri_vnf_dev_id` (Number) +- `rg_name` (String) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) diff --git a/docs/data-sources/rg_resource_consumption_get.md b/docs/data-sources/rg_resource_consumption_get.md new file mode 100644 index 0000000..fae1e4d --- /dev/null +++ b/docs/data-sources/rg_resource_consumption_get.md @@ -0,0 +1,105 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_resource_consumption_get Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_resource_consumption_get (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `consumed` (List of Object) (see [below for nested schema](#nestedatt--consumed)) +- `id` (String) The ID of this resource. +- `reserved` (List of Object) (see [below for nested schema](#nestedatt--reserved)) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedatt--resource_limits)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--consumed--seps)) + + +### Nested Schema for `consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--reserved--seps)) + + +### Nested Schema for `reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/rg_resource_consumption_list.md b/docs/data-sources/rg_resource_consumption_list.md new file mode 100644 index 0000000..76aac06 --- /dev/null +++ b/docs/data-sources/rg_resource_consumption_list.md @@ -0,0 +1,110 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_resource_consumption_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_resource_consumption_list (Data Source) + + + + + + +## Schema + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `consumed` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed)) +- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved)) +- `resource_limits` (List of Object) (see [below for nested schema](#nestedobjatt--items--resource_limits)) +- `rg_id` (Number) + + +### Nested Schema for `items.consumed` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--consumed--seps)) + + +### Nested Schema for `items.consumed.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.reserved` + +Read-Only: + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `ram` (Number) +- `seps` (List of Object) (see [below for nested schema](#nestedobjatt--items--reserved--seps)) + + +### Nested Schema for `items.reserved.seps` + +Read-Only: + +- `data_name` (String) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `sep_id` (String) + + + + +### Nested Schema for `items.resource_limits` + +Read-Only: + +- `cu_c` (Number) +- `cu_d` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) diff --git a/docs/data-sources/rg_usage.md b/docs/data-sources/rg_usage.md new file mode 100644 index 0000000..e67a3f2 --- /dev/null +++ b/docs/data-sources/rg_usage.md @@ -0,0 +1,54 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_rg_usage Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_rg_usage (Data Source) + + + + + + +## Schema + +### Required + +- `rg_id` (Number) + +### Optional + +- `reason` (String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `cpu` (Number) +- `disk_size` (Number) +- `disk_size_max` (Number) +- `extips` (Number) +- `exttraffic` (Number) +- `gpu` (Number) +- `id` (String) The ID of this resource. +- `ram` (Number) +- `seps` (Set of Object) (see [below for nested schema](#nestedatt--seps)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `seps` + +Read-Only: + +- `map` (Map of String) +- `sep_id` (String) diff --git a/docs/data-sources/snapshot_list.md b/docs/data-sources/snapshot_list.md index f43b222..b1f9e5b 100644 --- a/docs/data-sources/snapshot_list.md +++ b/docs/data-sources/snapshot_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_snapshot_list Data Source - decort" +page_title: "decort_snapshot_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -25,6 +25,7 @@ description: |- ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) snapshot list (see [below for nested schema](#nestedatt--items)) @@ -46,5 +47,3 @@ Read-Only: - `guid` (String) - `label` (String) - `timestamp` (Number) - - diff --git a/docs/data-sources/stack.md b/docs/data-sources/stack.md new file mode 100644 index 0000000..9582fb6 --- /dev/null +++ b/docs/data-sources/stack.md @@ -0,0 +1,43 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_stack Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_stack (Data Source) + + + + + + +## Schema + +### Required + +- `stack_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `cpu_allocation_ratio` (Number) +- `descr` (String) +- `drivers` (List of String) +- `id` (String) The ID of this resource. +- `mem_allocation_ratio` (Number) +- `name` (String) +- `status` (String) +- `type` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/stack_list.md b/docs/data-sources/stack_list.md new file mode 100644 index 0000000..8bf6fa2 --- /dev/null +++ b/docs/data-sources/stack_list.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_stack_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_stack_list (Data Source) + + + + + + +## Schema + +### Optional + +- `by_id` (Number) Find by ID +- `name` (String) Find by name +- `page` (Number) Page number +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `type` (String) Find by type + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `name` (String) +- `stack_id` (Number) +- `status` (String) +- `type` (String) diff --git a/docs/data-sources/vfpool.md b/docs/data-sources/vfpool.md new file mode 100644 index 0000000..36ee4f8 --- /dev/null +++ b/docs/data-sources/vfpool.md @@ -0,0 +1,72 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vfpool Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vfpool (Data Source) + + + + + + +## Schema + +### Required + +- `vfpool_id` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_access` (List of Number) +- `created_time` (Number) +- `description` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `name` (String) +- `rg_access` (List of Number) +- `status` (String) +- `updated_time` (Number) +- `vfs` (List of Object) (see [below for nested schema](#nestedatt--vfs)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `vfs` + +Read-Only: + +- `node_id` (Number) +- `vf_list` (List of Object) (see [below for nested schema](#nestedobjatt--vfs--vf_list)) + + +### Nested Schema for `vfs.vf_list` + +Read-Only: + +- `nic_name` (String) +- `vfs_info` (List of Object) (see [below for nested schema](#nestedobjatt--vfs--vf_list--vfs_info)) + + +### Nested Schema for `vfs.vf_list.vfs_info` + +Read-Only: + +- `claimed` (Boolean) +- `id` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/vfpool_list.md b/docs/data-sources/vfpool_list.md new file mode 100644 index 0000000..bbf2ac4 --- /dev/null +++ b/docs/data-sources/vfpool_list.md @@ -0,0 +1,87 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vfpool_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vfpool_list (Data Source) + + + + + + +## Schema + +### Optional + +- `account_access` (Number) Find by accountAccess +- `by_id` (Number) Find by ID +- `description` (String) Find by description +- `gid` (Number) Find by Grid ID +- `name` (String) Find by name +- `page` (Number) Page number +- `rg_access` (Number) Find by rgAccess +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `status` (String) Find by status +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_access` (List of Number) +- `created_time` (Number) +- `description` (String) +- `gid` (Number) +- `guid` (Number) +- `name` (String) +- `rg_access` (List of Number) +- `status` (String) +- `updated_time` (Number) +- `vfpool_id` (Number) +- `vfs` (List of Object) (see [below for nested schema](#nestedobjatt--items--vfs)) + + +### Nested Schema for `items.vfs` + +Read-Only: + +- `node_id` (Number) +- `vf_list` (List of Object) (see [below for nested schema](#nestedobjatt--items--vfs--vf_list)) + + +### Nested Schema for `items.vfs.vf_list` + +Read-Only: + +- `nic_name` (String) +- `vfs_info` (List of Object) (see [below for nested schema](#nestedobjatt--items--vfs--vf_list--vfs_info)) + + +### Nested Schema for `items.vfs.vf_list.vfs_info` + +Read-Only: + +- `claimed` (Boolean) +- `id` (Number) +- `vm_id` (Number) diff --git a/docs/data-sources/vgpu.md b/docs/data-sources/vgpu.md deleted file mode 100644 index 8d4f467..0000000 --- a/docs/data-sources/vgpu.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_vgpu Data Source - decort" -subcategory: "" -description: |- - ---- - -# decort_vgpu (Data Source) - - - - - - -## Schema - -### Required - -- `vgpu_id` (Number) - -### Read-Only - -- `account_id` (Number) -- `id` (String) The ID of this resource. -- `mode` (String) -- `pgpu` (Number) -- `profile_id` (Number) -- `ram` (Number) -- `status` (String) -- `type` (String) -- `vm_id` (Number) - - diff --git a/docs/data-sources/vins.md b/docs/data-sources/vins.md index b3731df..5191b2c 100644 --- a/docs/data-sources/vins.md +++ b/docs/data-sources/vins.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_vins Data Source - decort" +page_title: "decort_vins Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,22 +17,46 @@ description: |- ### Required -- `name` (String) Name of the ViNS. Names are case sensitive and unique within the context of an account or resource group. +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. ### Optional -- `account_id` (Number) Unique ID of the account, which this ViNS belongs to. -- `rg_id` (Number) Unique ID of the resource group, where this ViNS is belongs to (for ViNS created at resource group level, 0 otherwise). - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `account_id` (Number) Unique ID of the account, which this ViNS belongs to. - `account_name` (String) Name of the account, which this ViNS belongs to. -- `description` (String) User-defined text description of this ViNS. -- `ext_ip_addr` (String) IP address of the external connection (valid for ViNS connected to external network, empty string otherwise). -- `ext_net_id` (Number) ID of the external network this ViNS is connected to (-1 means no external connection). +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_by` (String) +- `created_time` (Number) +- `default_gw` (String) +- `default_qos` (List of Object) (see [below for nested schema](#nestedatt--default_qos)) +- `deleted_by` (String) +- `deleted_time` (Number) +- `desc` (String) User-defined text description of this ViNS. +- `gid` (Number) +- `guid` (Number) - `id` (String) The ID of this resource. -- `ipcidr` (String) Network address used by this ViNS. +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `milestones` (Number) +- `name` (String) +- `net_mask` (Number) +- `network` (String) +- `pre_reservations_num` (Number) +- `redundant` (Boolean) +- `rg_id` (Number) Unique ID of the resource group, where this ViNS is belongs to (for ViNS created at resource group level, 0 otherwise). +- `rg_name` (String) +- `sec_vnf_dev_id` (Number) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vnf_dev` (List of Object) (see [below for nested schema](#nestedatt--vnf_dev)) +- `vnfs` (List of Object) (see [below for nested schema](#nestedatt--vnfs)) +- `vxlan_id` (Number) ### Nested Schema for `timeouts` @@ -43,3 +67,365 @@ Optional: - `read` (String) + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (Number) +- `compute_name` (String) + + + +### Nested Schema for `default_qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + +### Nested Schema for `vnf_dev` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `capabilities` (List of String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config)) +- `config_saved` (Boolean) +- `custom_pre_cfg` (Boolean) +- `desc` (String) +- `gid` (Number) +- `guid` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces)) +- `lock_status` (String) +- `milestones` (Number) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vins` (List of Number) +- `vnf_id` (Number) +- `vnf_name` (String) + + +### Nested Schema for `vnf_dev.config` + +Read-Only: + +- `mgmt` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--mgmt)) +- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--resources)) + + +### Nested Schema for `vnf_dev.config.mgmt` + +Read-Only: + +- `ip_addr` (String) +- `password` (String) +- `ssh_key` (String) +- `user` (String) + + + +### Nested Schema for `vnf_dev.config.resources` + +Read-Only: + +- `cpu` (Number) +- `ram` (Number) +- `stack_id` (Number) +- `uuid` (String) + + + + +### Nested Schema for `vnf_dev.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flipgroup_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_mask` (Number) +- `net_type` (String) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `vnf_dev.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + + +### Nested Schema for `vnfs` + +Read-Only: + +- `dhcp` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp)) +- `gw` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw)) +- `nat` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat)) + + +### Nested Schema for `vnfs.dhcp` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices)) +- `dhcp_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.dhcp.config` + +Read-Only: + +- `default_gw` (String) +- `dns` (List of String) +- `ip_end` (String) +- `ip_start` (String) +- `lease` (Number) +- `netmask` (Number) +- `network` (String) +- `reservations` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config--reservations)) + + +### Nested Schema for `vnfs.dhcp.config.reservations` + +Read-Only: + +- `client_type` (String) +- `desc` (String) +- `domainname` (String) +- `hostname` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + + +### Nested Schema for `vnfs.dhcp.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices--primary)) + + +### Nested Schema for `vnfs.dhcp.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.dhcp.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.gw` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices)) +- `gid` (Number) +- `guid` (Number) +- `gw_id` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.gw.config` + +Read-Only: + +- `default_gw` (String) +- `ext_net_id` (Number) +- `ext_net_ip` (String) +- `ext_netmask` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config--qos)) + + +### Nested Schema for `vnfs.gw.config.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `vnfs.gw.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices--primary)) + + +### Nested Schema for `vnfs.gw.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.gw.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.nat` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices)) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `nat_id` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.nat.config` + +Read-Only: + +- `net_mask` (Number) +- `network` (String) +- `rules` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config--rules)) + + +### Nested Schema for `vnfs.nat.config.rules` + +Read-Only: + +- `local_ip` (String) +- `local_port` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `rule_id` (Number) +- `vm_id` (Number) +- `vm_name` (String) + + + + +### Nested Schema for `vnfs.nat.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices--primary)) + + +### Nested Schema for `vnfs.nat.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.nat.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) diff --git a/docs/data-sources/vins_audits.md b/docs/data-sources/vins_audits.md new file mode 100644 index 0000000..afcab17 --- /dev/null +++ b/docs/data-sources/vins_audits.md @@ -0,0 +1,49 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vins_audits Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vins_audits (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `call` (String) +- `response_time` (Number) +- `statuscode` (Number) +- `timestamp` (Number) +- `user` (String) diff --git a/docs/data-sources/vins_ext_net_list.md b/docs/data-sources/vins_ext_net_list.md new file mode 100644 index 0000000..2f445bb --- /dev/null +++ b/docs/data-sources/vins_ext_net_list.md @@ -0,0 +1,51 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vins_ext_net_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vins_ext_net_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `default_gw` (String) +- `ext_net_id` (Number) +- `ip` (String) +- `prefix_len` (Number) +- `status` (String) +- `tech_status` (String) diff --git a/docs/data-sources/vins_ip_list.md b/docs/data-sources/vins_ip_list.md new file mode 100644 index 0000000..b99c334 --- /dev/null +++ b/docs/data-sources/vins_ip_list.md @@ -0,0 +1,52 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vins_ip_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vins_ip_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `client_type` (String) +- `domainname` (String) +- `hostname` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) diff --git a/docs/data-sources/vins_list.md b/docs/data-sources/vins_list.md index 7710b0a..93aee27 100644 --- a/docs/data-sources/vins_list.md +++ b/docs/data-sources/vins_list.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_vins_list Data Source - decort" +page_title: "decort_vins_list Data Source - terraform-provider-decort" subcategory: "" description: |- @@ -17,13 +17,20 @@ description: |- ### Optional -- `include_deleted` (Boolean) include deleted computes +- `account_id` (Number) Filter by Account ID +- `by_id` (Number) Filter by ID +- `ext_ip` (String) Filter by external IP address +- `include_deleted` (Boolean) Include deleted computes +- `name` (String) Filter by Name - `page` (Number) Page number +- `rg_id` (Number) Filter by RG ID - `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `entry_count` (Number) - `id` (String) The ID of this resource. - `items` (List of Object) (see [below for nested schema](#nestedatt--items)) @@ -48,6 +55,8 @@ Read-Only: - `deleted_by` (String) - `deleted_time` (Number) - `external_ip` (String) +- `extnet_id` (Number) +- `free_ips` (Number) - `network` (String) - `rg_id` (Number) - `rg_name` (String) @@ -57,5 +66,3 @@ Read-Only: - `vins_id` (Number) - `vins_name` (String) - `vxlan_id` (Number) - - diff --git a/docs/data-sources/vins_list_deleted.md b/docs/data-sources/vins_list_deleted.md new file mode 100644 index 0000000..65c194d --- /dev/null +++ b/docs/data-sources/vins_list_deleted.md @@ -0,0 +1,66 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vins_list_deleted Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vins_list_deleted (Data Source) + + + + + + +## Schema + +### Optional + +- `account_id` (Number) Filter by account ID +- `by_id` (Number) Filter by ID +- `ext_ip` (String) Filter by external IP +- `name` (String) Filter by name +- `page` (Number) Page number +- `rg_id` (Number) Filter by resgroup ID +- `size` (Number) Page size +- `sort_by` (String) sort by one of supported fields, format +|-(field) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vnfdev_id` (Number) find by VNF Device id + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `account_id` (Number) +- `account_name` (String) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `external_ip` (String) +- `network` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins_id` (Number) +- `vins_name` (String) +- `vxlan_id` (Number) diff --git a/docs/data-sources/vins_nat_rule_list.md b/docs/data-sources/vins_nat_rule_list.md new file mode 100644 index 0000000..048d850 --- /dev/null +++ b/docs/data-sources/vins_nat_rule_list.md @@ -0,0 +1,53 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vins_nat_rule_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vins_nat_rule_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `id` (Number) +- `local_ip` (String) +- `local_port` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `vm_id` (Number) +- `vm_name` (String) diff --git a/docs/data-sources/vins_static_route.md b/docs/data-sources/vins_static_route.md new file mode 100644 index 0000000..591a001 --- /dev/null +++ b/docs/data-sources/vins_static_route.md @@ -0,0 +1,42 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vins_static_route Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vins_static_route (Data Source) + + + + + + +## Schema + +### Required + +- `route_id` (Number) Unique ID of the static route +- `vins_id` (Number) Unique ID of the ViNS + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `id` (String) The ID of this resource. +- `netmask` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) diff --git a/docs/data-sources/vins_static_route_list.md b/docs/data-sources/vins_static_route_list.md new file mode 100644 index 0000000..cdbbae1 --- /dev/null +++ b/docs/data-sources/vins_static_route_list.md @@ -0,0 +1,51 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_vins_static_route_list Data Source - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_vins_static_route_list (Data Source) + + + + + + +## Schema + +### Required + +- `vins_id` (Number) ID of VINS + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `entry_count` (Number) +- `id` (String) The ID of this resource. +- `items` (List of Object) (see [below for nested schema](#nestedatt--items)) + + +### Nested Schema for `timeouts` + +Optional: + +- `default` (String) +- `read` (String) + + + +### Nested Schema for `items` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) diff --git a/docs/index.md b/docs/index.md index 8bd9bca..d324b72 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,15 +17,21 @@ description: |- ### Required -- `authenticator` (String) Authentication mode to use when connecting to DECORT cloud API. Should be one of 'oauth2', 'legacy' or 'jwt'. +- `authenticator` (String) Authentication mode to use when connecting to DECORT cloud API. Should be one of 'decs3o', 'legacy', 'jwt' or 'bvs'. - `controller_url` (String) URL of DECORT Cloud controller to use. API calls will be directed to this URL. ### Optional - `allow_unverified_ssl` (Boolean) If true, DECORT API will not verify SSL certificates. Use this with caution and in trusted environments only! -- `app_id` (String) Application ID to access DECORT cloud API in 'oauth2' authentication mode. -- `app_secret` (String) Application secret to access DECORT cloud API in 'oauth2' authentication mode. +- `app_id` (String) Application ID to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode. +- `app_secret` (String) Application secret to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode. +- `bvs_password` (String) User password for DECORT cloud API operations in 'bvs' authentication mode. +- `bvs_user` (String) User name for DECORT cloud API operations in 'bvs' authentication mode. +- `domain` (String) User password for DECORT cloud API operations in 'bvs' authentication mode. - `jwt` (String) JWT to access DECORT cloud API in 'jwt' authentication mode. -- `oauth2_url` (String) OAuth2 application URL in 'oauth2' authentication mode. +- `oauth2_url` (String) OAuth2 application URL in 'decs3o' and 'bvs' authentication mode. - `password` (String) User password for DECORT cloud API operations in 'legacy' authentication mode. +- `path_cfg` (String) The path of the configuration file entry +- `path_token` (String) The path of the token file entry +- `time_to_refresh` (Number) The number of minutes before the expiration of the token, a refresh will be made - `user` (String) User name for DECORT cloud API operations in 'legacy' authentication mode. diff --git a/docs/resources/account.md b/docs/resources/account.md index ca26a16..3b6d5b3 100644 --- a/docs/resources/account.md +++ b/docs/resources/account.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_account Resource - decort" +page_title: "decort_account Resource - terraform-provider-decort" subcategory: "" description: |- @@ -22,7 +22,6 @@ description: |- ### Optional -- `account_id` (Number) - `emailaddress` (String) email - `enable` (Boolean) enable/disable account - `permanently` (Boolean) whether to completely delete the account @@ -34,11 +33,15 @@ description: |- ### Read-Only +- `account_id` (Number) - `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) - `ckey` (String) - `company` (String) - `companyurl` (String) +- `compute_features` (List of String) - `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) - `created_by` (String) - `created_time` (Number) - `dc_location` (String) @@ -49,8 +52,6 @@ description: |- - `guid` (Number) - `id` (String) The ID of this resource. - `machines` (List of Object) (see [below for nested schema](#nestedatt--machines)) -- `meta` (List of String) -- `resources` (List of Object) (see [below for nested schema](#nestedatt--resources)) - `service_account` (Boolean) - `status` (String) - `updated_time` (Number) @@ -126,39 +127,3 @@ Read-Only: - `halted` (Number) - `running` (Number) - - - -### Nested Schema for `resources` - -Read-Only: - -- `current` (List of Object) (see [below for nested schema](#nestedobjatt--resources--current)) -- `reserved` (List of Object) (see [below for nested schema](#nestedobjatt--resources--reserved)) - - -### Nested Schema for `resources.current` - -Read-Only: - -- `cpu` (Number) -- `disksize` (Number) -- `extips` (Number) -- `exttraffic` (Number) -- `gpu` (Number) -- `ram` (Number) - - - -### Nested Schema for `resources.reserved` - -Read-Only: - -- `cpu` (Number) -- `disksize` (Number) -- `extips` (Number) -- `exttraffic` (Number) -- `gpu` (Number) -- `ram` (Number) - - diff --git a/docs/resources/bservice.md b/docs/resources/bservice.md index b9884e6..114103c 100644 --- a/docs/resources/bservice.md +++ b/docs/resources/bservice.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_bservice Resource - decort" +page_title: "decort_bservice Resource - terraform-provider-decort" subcategory: "" description: |- @@ -22,7 +22,7 @@ description: |- ### Optional -- `enable` (Boolean) if set to False, Basic service will be deleted to recycle bin. Otherwise destroyed immediately +- `enable` (Boolean) Enable service. Enabling a service technically means setting model status of all computes and service itself to ENABLED. It does not start computes. - `permanently` (Boolean) if set to False, Basic service will be deleted to recycle bin. Otherwise destroyed immediately - `restore` (Boolean) Restores BasicService instance - `service_id` (Number) @@ -43,10 +43,9 @@ description: |- - `created_time` (Number) - `deleted_by` (String) - `deleted_time` (Number) -- `disk_total` (String) +- `disk_total` (Number) - `gid` (Number) -- `groups` (List of Number) -- `groups_name` (List of String) +- `groups` (List of Object) (see [below for nested schema](#nestedatt--groups)) - `guid` (Number) - `id` (String) The ID of this resource. - `milestones` (Number) @@ -92,10 +91,27 @@ Optional: Read-Only: +- `account_id` (Number) +- `architecture` (String) - `compgroup_id` (Number) - `compgroup_name` (String) - `compgroup_role` (String) - `id` (Number) - `name` (String) +- `rg_id` (Number) +- `stack_id` (Number) +- `status` (String) +- `tech_status` (String) + + + +### Nested Schema for `groups` +Read-Only: +- `computes` (Number) +- `consistency` (Boolean) +- `id` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) diff --git a/docs/resources/bservice_group.md b/docs/resources/bservice_group.md index 9e0af6b..3cad961 100644 --- a/docs/resources/bservice_group.md +++ b/docs/resources/bservice_group.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_bservice_group Resource - decort" +page_title: "decort_bservice_group Resource - terraform-provider-decort" subcategory: "" description: |- @@ -28,6 +28,7 @@ description: |- ### Optional +- `cloud_init` (String) Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases. - `compgroup_id` (Number) - `extnets` (List of Number) list of external networks to connect computes to - `force_stop` (Boolean) force stop Compute Group @@ -36,6 +37,8 @@ description: |- - `parents` (List of Number) - `remove_computes` (List of Number) - `role` (String) group role tag. Can be empty string, does not have to be unique +- `sep_id` (Number) storage endpoint provider ID +- `sep_pool` (String) pool to use if sepId is set, can be also empty if needed to be chosen by system - `start` (Boolean) Start the specified Compute Group within BasicService - `timeout_start` (Number) time of Compute Group readiness - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) @@ -57,7 +60,6 @@ description: |- - `milestones` (Number) - `rg_id` (Number) - `rg_name` (String) -- `sep_id` (Number) - `seq_no` (Number) - `status` (String) - `tech_status` (String) @@ -93,5 +95,3 @@ Read-Only: - `login` (String) - `password` (String) - - diff --git a/docs/resources/cb_account.md b/docs/resources/cb_account.md new file mode 100644 index 0000000..2e04df9 --- /dev/null +++ b/docs/resources/cb_account.md @@ -0,0 +1,113 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_account Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_account (Resource) + + + + + + +## Schema + +### Required + +- `account_name` (String) account name +- `username` (String) username of owner the account + +### Optional + +- `account_id` (Number) +- `available_templates` (Set of Number) Share images with account +- `compute_features` (Set of String) +- `cpu_allocation_parameter` (String) set cpu allocation parameter +- `cpu_allocation_ratio` (Number) set cpu allocation ratio +- `emailaddress` (String) email +- `enable` (Boolean) enable/disable account +- `permanently` (Boolean) whether to completely delete the account +- `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits)) +- `restore` (Boolean) restore a deleted account +- `send_access_emails` (Boolean) if true send emails when a user is granted access to resources +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `uniq_pools` (List of String) +- `users` (Block List) (see [below for nested schema](#nestedblock--users)) + +### Read-Only + +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `ckey` (String) +- `company` (String) +- `companyurl` (String) +- `created_by` (String) +- `created_time` (Number) +- `dc_location` (String) +- `deactivation_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `displayname` (String) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `resource_types` (List of String) +- `status` (String) +- `updated_time` (Number) +- `version` (Number) +- `vins` (List of Number) + + +### Nested Schema for `resource_limits` + +Optional: + +- `cu_c` (Number) +- `cu_dm` (Number) +- `cu_i` (Number) +- `cu_m` (Number) +- `cu_np` (Number) +- `gpu_units` (Number) + +Read-Only: + +- `cu_d` (Number) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `users` + +Required: + +- `access_type` (String) +- `user_id` (String) + +Optional: + +- `recursive_delete` (Boolean) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) diff --git a/docs/resources/cdrom_image.md b/docs/resources/cb_cdrom_image.md similarity index 80% rename from docs/resources/cdrom_image.md rename to docs/resources/cb_cdrom_image.md index 6d7caac..4d4fcb2 100644 --- a/docs/resources/cdrom_image.md +++ b/docs/resources/cb_cdrom_image.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_cdrom_image Resource - decort" +page_title: "decort_cb_cdrom_image Resource - terraform-provider-decort" subcategory: "" description: |- --- -# decort_cdrom_image (Resource) +# decort_cb_cdrom_image (Resource) @@ -29,30 +29,33 @@ description: |- - `bootable` (Boolean) Does this image boot OS - `computeci_id` (Number) - `enabled` (Boolean) -- `enabled_stacks` (List of String) +- `enabled_stacks` (List of Number) - `hot_resize` (Boolean) Does this machine supports hot resize -- `password` (String) Optional password for the image - `password_dl` (String) password for upload binary media - `permanently` (Boolean) Whether to completely delete the image - `pool_name` (String) pool for image create - `sep_id` (Number) storage endpoint provider ID - `shared_with` (List of Number) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) -- `username` (String) Optional username for the image - `username_dl` (String) username for upload binary media ### Read-Only +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) - `boot_type` (String) Boot type of image bios or uefi +- `ckey` (String) +- `deleted_time` (Number) - `desc` (String) - `guid` (Number) - `history` (List of Object) (see [below for nested schema](#nestedatt--history)) - `id` (String) The ID of this resource. - `image_id` (Number) image id - `image_type` (String) Image type linux, windows or other +- `last_modified` (Number) - `link_to` (Number) - `meta` (List of String) meta - `milestones` (Number) +- `present_to` (List of Number) - `provider_name` (String) - `purge_attempts` (Number) - `reference_id` (String) @@ -77,6 +80,19 @@ Optional: - `update` (String) + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + ### Nested Schema for `history` @@ -85,5 +101,3 @@ Read-Only: - `guid` (String) - `id` (Number) - `timestamp` (Number) - - diff --git a/docs/resources/cb_disk.md b/docs/resources/cb_disk.md new file mode 100644 index 0000000..73232e3 --- /dev/null +++ b/docs/resources/cb_disk.md @@ -0,0 +1,147 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk (Resource) + + + + + + +## Schema + +### Required + +- `account_id` (Number) +- `disk_name` (String) +- `gid` (Number) +- `size_max` (Number) +- `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp' + +### Optional + +- `desc` (String) +- `detach` (Boolean) detach disk from machine first +- `iops` (Number) max IOPS disk can perform +- `iotune` (Block List, Max: 1) (see [below for nested schema](#nestedblock--iotune)) +- `node_ids` (Set of Number) +- `permanently` (Boolean) whether to completely delete the disk, works only with non attached disks +- `pool` (String) +- `reason` (String) reason for an action +- `restore` (Boolean) restore deleting disk +- `sep_id` (Number) +- `shareable` (Boolean) +- `ssd_size` (Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) +- `deleted_time` (Number) +- `destruction_time` (Number) +- `devicename` (String) +- `disk_id` (Number) +- `disk_path` (String) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `images` (List of String) +- `iqn` (String) +- `login` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_type` (String) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) +- `status` (String) +- `tech_status` (String) +- `vmid` (Number) + + +### Nested Schema for `iotune` + +Optional: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/resources/cb_disk_replication.md b/docs/resources/cb_disk_replication.md new file mode 100644 index 0000000..90a2332 --- /dev/null +++ b/docs/resources/cb_disk_replication.md @@ -0,0 +1,148 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_replication Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_replication (Resource) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) Id of primary disk +- `disk_name` (String) Name of disk replica +- `pool_name` (String) Pool for disk location +- `sep_id` (Number) Storage endpoint provider ID to create disk replica + +### Optional + +- `detach` (Boolean) Detach disk from machine first +- `pause` (Boolean) Resume replication +- `permanently` (Boolean) Delete disk permanently +- `reason` (String) Reason for disk deletion +- `reverse` (Boolean) Reverse replication +- `start` (Boolean) Start/Stop replication +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (String) +- `boot_partition` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `destruction_time` (Number) +- `devicename` (String) +- `disk_path` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `images` (List of Number) +- `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) +- `iqn` (String) +- `login` (String) +- `milestones` (Number) +- `order` (Number) +- `params` (String) +- `parent_id` (Number) +- `passwd` (String) +- `pci_slot` (Number) +- `present_to` (List of Number) +- `purge_attempts` (Number) +- `purge_time` (Number) +- `reality_device_number` (Number) +- `reference_id` (String) +- `replica_disk_id` (Number) Id of replica disk +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) +- `res_name` (String) +- `role` (String) +- `sep_type` (String) +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) +- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) +- `status` (String) +- `status_replication` (String) Status of replication +- `tech_status` (String) +- `type` (String) +- `vmid` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `reference_id` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/resources/cb_disk_snapshot.md b/docs/resources/cb_disk_snapshot.md new file mode 100644 index 0000000..d90b867 --- /dev/null +++ b/docs/resources/cb_disk_snapshot.md @@ -0,0 +1,47 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_disk_snapshot Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_disk_snapshot (Resource) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) The unique ID of the subscriber-owner of the disk +- `label` (String) Name of the snapshot + +### Optional + +- `rollback` (Boolean) Needed in order to make a snapshot rollback +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `timestamp` (Number) Snapshot time + +### Read-Only + +- `guid` (String) ID of the snapshot +- `id` (String) The ID of this resource. +- `reference_id` (String) +- `res_id` (String) Reference to the snapshot +- `snap_set_guid` (String) The set snapshot ID +- `snap_set_time` (Number) The set time of the snapshot + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/cb_extnet.md b/docs/resources/cb_extnet.md new file mode 100644 index 0000000..218f737 --- /dev/null +++ b/docs/resources/cb_extnet.md @@ -0,0 +1,150 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_extnet Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_extnet (Resource) + + + + + + +## Schema + +### Required + +- `gid` (Number) Grid (platform) ID +- `ipcidr` (String) IP network CIDR +- `name` (String) External network name +- `vlan_id` (Number) VLAN ID + +### Optional + +- `check_ips` (List of String) IPs to check network availability +- `default_qos` (Block List, Max: 1) (see [below for nested schema](#nestedblock--default_qos)) +- `desc` (String) Optional description +- `dns` (List of String) List of DNS addresses +- `enable` (Boolean) Disable/Enable extnet +- `end_ip` (String) End of IP range to be explicitly included +- `excluded_ips` (Set of String) IPs to exclude in current extnet pool +- `excluded_ips_range` (Block Set) Range of IPs to exclude in current extnet pool (see [below for nested schema](#nestedblock--excluded_ips_range)) +- `gateway` (String) External network gateway IP address +- `migrate` (Number) +- `ntp` (List of String) List of NTP addresses +- `ovs_bridge` (String) OpenvSwith bridge name for ExtNet connection +- `pre_reservations_num` (Number) Number of pre created reservations +- `restart` (Boolean) restart extnet vnf device +- `set_default` (Boolean) Set current extnet as default (can not be undone) +- `shared_with` (Set of Number) +- `start_ip` (String) Start of IP range to be explicitly included +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `virtual` (Boolean) If true - platform DHCP server will not be created +- `vnfdev_ip` (String) IP to create VNFDev with + +### Read-Only + +- `ckey` (String) +- `default` (Boolean) +- `excluded` (List of Object) (see [below for nested schema](#nestedatt--excluded)) +- `extnet_id` (Number) +- `free_ips` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `meta` (List of String) meta +- `milestones` (Number) +- `network` (String) +- `network_id` (Number) +- `prefix` (Number) +- `pri_vnfdev_id` (Number) +- `reservations` (List of Object) (see [below for nested schema](#nestedatt--reservations)) +- `routes` (List of Object) (see [below for nested schema](#nestedatt--routes)) +- `status` (String) +- `vnfs` (List of Object) (see [below for nested schema](#nestedatt--vnfs)) + + +### Nested Schema for `default_qos` + +Optional: + +- `e_rate` (Number) +- `in_burst` (Number) +- `in_rate` (Number) + +Read-Only: + +- `guid` (String) + + + +### Nested Schema for `excluded_ips_range` + +Required: + +- `ip_end` (String) +- `ip_start` (String) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `excluded` + +Read-Only: + +- `client_type` (String) +- `domain_name` (String) +- `hostname` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + +### Nested Schema for `reservations` + +Read-Only: + +- `client_type` (String) +- `desc` (String) +- `domain_name` (String) +- `hostname` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + +### Nested Schema for `routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + +### Nested Schema for `vnfs` + +Read-Only: + +- `dhcp` (Number) diff --git a/docs/resources/kubernetes_wg.md b/docs/resources/cb_extnet_static_route.md similarity index 57% rename from docs/resources/kubernetes_wg.md rename to docs/resources/cb_extnet_static_route.md index 9fe6bf9..390931b 100644 --- a/docs/resources/kubernetes_wg.md +++ b/docs/resources/cb_extnet_static_route.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_k8s_wg Resource - decort" +page_title: "decort_cb_extnet_static_route Resource - terraform-provider-decort" subcategory: "" description: |- --- -# decort_k8s_wg (Resource) +# decort_cb_extnet_static_route (Resource) @@ -17,20 +17,21 @@ description: |- ### Required -- `k8s_id` (Number) ID of k8s instance. -- `name` (String) Name of the worker group. +- `destination` (String) +- `extnet_id` (Number) Unique ID of the ExtNet +- `gateway` (String) +- `netmask` (String) ### Optional -- `cpu` (Number) Worker node CPU count. -- `disk` (Number) Worker node boot disk size. If unspecified or 0, size is defined by OS image size. -- `num` (Number) Number of worker nodes to create. -- `ram` (Number) Worker node RAM in MB. +- `compute_ids` (Set of Number) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `guid` (String) - `id` (String) The ID of this resource. +- `route_id` (Number) Unique ID of the static route ### Nested Schema for `timeouts` @@ -42,5 +43,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/cb_flipgroup.md b/docs/resources/cb_flipgroup.md new file mode 100644 index 0000000..bbd719d --- /dev/null +++ b/docs/resources/cb_flipgroup.md @@ -0,0 +1,67 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_flipgroup Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_flipgroup (Resource) + + + + + + +## Schema + +### Required + +- `account_id` (Number) Account ID +- `client_type` (String) Type of client, 'compute' ('vins' will be later) +- `name` (String) Flipgroup name +- `net_id` (Number) EXTNET or ViNS ID +- `net_type` (String) Network type, EXTNET or VINS + +### Optional + +- `client_ids` (List of Number) List of clients attached to this Flipgroup instance +- `desc` (String) Text description of this Flipgroup instance +- `ip` (String) IP address to associate with this group. If empty, the platform will autoselect IP address +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_name` (String) account_name +- `ckey` (String) +- `client_names` (List of String) client_names +- `conn_id` (Number) +- `conn_type` (String) +- `created_by` (String) created_by +- `created_time` (Number) created_time +- `default_gw` (String) +- `deleted_by` (String) deleted_by +- `deleted_time` (Number) deleted_time +- `flipgroup_id` (Number) +- `gid` (Number) gid +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `milestones` (Number) milestones +- `net_mask` (Number) +- `network` (String) network +- `rg_id` (Number) rg_id +- `rg_name` (String) rg_name +- `status` (String) +- `updated_by` (String) updated_by +- `updated_time` (Number) updated_time + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/cb_image.md b/docs/resources/cb_image.md new file mode 100644 index 0000000..c5829b6 --- /dev/null +++ b/docs/resources/cb_image.md @@ -0,0 +1,109 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_image Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_image (Resource) + + + + + + +## Schema + +### Required + +- `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 +- `name` (String) Name of the rescue disk + +### Optional + +- `account_id` (Number) AccountId to make the image exclusive +- `accounts` (List of Number) +- `architecture` (String) binary architecture of this image, one of X86_64 of PPC64_LE +- `bootable` (Boolean) Does this image boot OS +- `computeci_id` (Number) +- `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] +- `enabled` (Boolean) +- `enabled_stacks` (List of Number) +- `file_path` (String) path to image file +- `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 +- `password` (String) Optional password for the image +- `password_dl` (String) password for upload binary media +- `permanently` (Boolean) Whether to completely delete the image +- `pool_name` (String) pool for image create +- `reason` (String) +- `sep_id` (Number) storage endpoint provider ID +- `shared_with` (List of Number) +- `sync_mode` (Boolean) Create image from a media identified by URL (in synchronous mode) +- `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_dl` (String) username for upload binary media + +### Read-Only + +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `cd_presented_to` (String) +- `deleted_time` (Number) +- `desc` (String) +- `guid` (Number) +- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) +- `id` (String) The ID of this resource. +- `image_id` (Number) image id +- `last_modified` (Number) +- `link_to` (Number) +- `milestones` (Number) +- `present_to` (List of Number) +- `provider_name` (String) +- `purge_attempts` (Number) +- `reference_id` (String) +- `res_id` (String) +- `res_name` (String) +- `rescuecd` (Boolean) +- `size` (Number) image size +- `status` (String) status +- `tech_status` (String) tech atatus +- `unc_path` (String) unc path +- `version` (String) version + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `history` + +Read-Only: + +- `guid` (String) +- `id` (Number) +- `timestamp` (Number) diff --git a/docs/resources/cb_image_from_blank_compute.md b/docs/resources/cb_image_from_blank_compute.md new file mode 100644 index 0000000..a91a79f --- /dev/null +++ b/docs/resources/cb_image_from_blank_compute.md @@ -0,0 +1,107 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_image_from_blank_compute Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_image_from_blank_compute (Resource) + + + + + + +## Schema + +### Required + +- `boot_type` (String) Boot type of image BIOS or UEFI +- `compute_id` (Number) Compute Id +- `image_type` (String) Image type linux, windows or other +- `name` (String) Name of the rescue disk + +### Optional + +- `account_id` (Number) AccountId to make the image exclusive +- `accounts` (List of Number) +- `async_mode` (Boolean) create an image in async/sync mode +- `bootable` (Boolean) Does this image boot OS +- `computeci_id` (Number) +- `enabled` (Boolean) +- `enabled_stacks` (List of Number) +- `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 +- `password` (String) Optional password for the image +- `permanently` (Boolean) whether to completely delete the image +- `pool_name` (String) pool for image create +- `reason` (String) +- `sep_id` (Number) storage endpoint provider ID +- `shared_with` (List of Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `username` (String) Optional username for the image + +### Read-Only + +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `architecture` (String) +- `cd_presented_to` (String) +- `deleted_time` (Number) +- `desc` (String) +- `drivers` (List of String) +- `gid` (Number) +- `guid` (Number) +- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `last_modified` (Number) +- `link_to` (Number) +- `milestones` (Number) +- `present_to` (List of Number) +- `provider_name` (String) +- `purge_attempts` (Number) +- `reference_id` (String) +- `res_id` (String) +- `res_name` (String) +- `rescuecd` (Boolean) +- `size` (Number) +- `status` (String) +- `tech_status` (String) +- `unc_path` (String) +- `url` (String) +- `version` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `history` + +Read-Only: + +- `guid` (String) +- `id` (Number) +- `timestamp` (Number) diff --git a/docs/resources/cb_image_from_platform_disk.md b/docs/resources/cb_image_from_platform_disk.md new file mode 100644 index 0000000..e70ee6f --- /dev/null +++ b/docs/resources/cb_image_from_platform_disk.md @@ -0,0 +1,107 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_image_from_platform_disk Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_image_from_platform_disk (Resource) + + + + + + +## Schema + +### Required + +- `architecture` (String) Image type linux, windows or other +- `boot_type` (String) Boot type of image BIOS or UEFI +- `disk_id` (Number) Disk Id +- `image_type` (String) Image type linux, windows or other +- `name` (String) Name of the rescue disk + +### Optional + +- `account_id` (Number) AccountId to make the image exclusive +- `accounts` (List of Number) +- `async_mode` (Boolean) create an image in async/sync mode +- `bootable` (Boolean) Does this image boot OS +- `computeci_id` (Number) +- `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] +- `enabled` (Boolean) +- `enabled_stacks` (List of Number) +- `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 +- `password` (String) Optional password for the image +- `permanently` (Boolean) whether to completely delete the image +- `pool_name` (String) pool for image create +- `reason` (String) +- `sep_id` (Number) storage endpoint provider ID +- `shared_with` (List of Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `username` (String) Optional username for the image + +### Read-Only + +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `cd_presented_to` (String) +- `deleted_time` (Number) +- `desc` (String) +- `gid` (Number) +- `guid` (Number) +- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `last_modified` (Number) +- `link_to` (Number) +- `milestones` (Number) +- `present_to` (List of Number) +- `provider_name` (String) +- `purge_attempts` (Number) +- `reference_id` (String) +- `res_id` (String) +- `res_name` (String) +- `rescuecd` (Boolean) +- `size` (Number) +- `status` (String) +- `tech_status` (String) +- `unc_path` (String) +- `url` (String) +- `version` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `history` + +Read-Only: + +- `guid` (String) +- `id` (Number) +- `timestamp` (Number) diff --git a/docs/resources/cb_k8ci.md b/docs/resources/cb_k8ci.md new file mode 100644 index 0000000..ce21045 --- /dev/null +++ b/docs/resources/cb_k8ci.md @@ -0,0 +1,57 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8ci Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8ci (Resource) + + + + + + +## Schema + +### Required + +- `master_driver` (String) +- `master_image_id` (Number) +- `max_master_count` (Number) +- `max_worker_count` (Number) +- `name` (String) K8CI name +- `network_plugins` (List of String) +- `version` (String) +- `worker_driver` (String) +- `worker_image_id` (Number) + +### Optional + +- `desc` (String) +- `enabled` (Boolean) +- `permanently` (Boolean) +- `shared_with` (Set of Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `gid` (Number) gid +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `k8ci_id` (Number) K8CI ID +- `lb_image_id` (Number) LB Image ID +- `milestones` (Number) +- `status` (String) K8CI Status + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/cb_k8s_cp.md b/docs/resources/cb_k8s_cp.md new file mode 100644 index 0000000..674f5e5 --- /dev/null +++ b/docs/resources/cb_k8s_cp.md @@ -0,0 +1,161 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_cp Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_cp (Resource) + + + + + + +## Schema + +### Required + +- `k8sci_id` (Number) ID of the k8s catalog item to base this instance on. +- `name` (String) Name of the cluster. +- `network_plugin` (String) Network plugin to be used +- `rg_id` (Number) Resource group ID that this instance belongs to. + +### Optional + +- `additional_sans` (List of String) Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names +- `cluster_config` (String) is used to define global settings and configurations for the entire cluster. It includes parameters such as cluster name, DNS settings, authentication methods, and other cluster-wide configurations. insert a valid JSON string with all levels of nesting. +- `cpu` (Number) Node CPU count. +- `desc` (String) Text description of this instance. +- `disk` (Number) Node boot disk size in GB. +- `enabled` (Boolean) Enable k8s cluster +- `extnet_id` (Number) ID of the external network to connect workers to. If omitted network will be chosen by the platfom. +- `extnet_only` (Boolean) Use only selected ExtNet for infrastructure connections +- `ha_mode` (Boolean) Use Highly Available schema for LB deploy +- `init_config` (String) is used to define settings and actions that should be performed before any other component in the cluster starts. It allows you to configure things like node registration, network setup, and other initialization tasks. insert a valid JSON string with all levels of nesting. +- `join_config` (String) is used to configure the behavior and settings for joining a node to a cluster. It includes parameters such as the cluster's control plane endpoint, token, and certificate key. insert a valid JSON string with all levels of nesting. +- `kube_proxy_config` (String) is used to configure the behavior and settings of the Kube-proxy, which is responsible for network proxying and load balancing within the cluster. It includes parameters such as proxy mode, cluster IP ranges, and other Kube-proxy specific configurations. insert a valid JSON string with all levels of nesting. +- `kubelet_config` (String) is used to configure the behavior and settings of the Kubelet, which is the primary node agent that runs on each node in the cluster. It includes parameters such as node IP address, resource allocation, pod eviction policies, and other Kubelet-specific configurations. insert a valid JSON string with all levels of nesting. +- `lb_sysctl_params` (List of Map of String) Custom sysctl values for Load Balancer instance. Applied on boot. +- `num` (Number) Number of VMs to create. Can be either 1 or 3 or 5 +- `oidc_cert` (String) insert ssl certificate in x509 pem format +- `permanently` (Boolean) whether to completely delete the account +- `ram` (Number) Node RAM in MB. +- `restore` (Boolean) +- `sep_id` (Number) Storage Endpoint ID +- `sep_pool` (String) Storage Endpoint Pool +- `start` (Boolean) Start k8s cluster. +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) ID of default vins for this instace. +- `with_lb` (Boolean) Create k8s with load balancer if true. + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `bservice_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `default_wg_id` (Number) ID of default workers group for this instace. +- `deleted_by` (String) +- `deleted_time` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--detailed_info)) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `k8s_ci_name` (String) +- `k8s_id` (Number) +- `kubeconfig` (String) Kubeconfig for cluster access. +- `lb_id` (Number) +- `lb_ip` (String) IP address of default load balancer. +- `master_id` (Number) Master group ID. +- `master_name` (String) Master group name. +- `milestones` (Number) +- `rg_name` (String) +- `ssh_key` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--account_acl)) +- `k8s_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--k8s_acl)) +- `rg_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--rg_acl)) + + +### Nested Schema for `acl.account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.k8s_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + + +### Nested Schema for `detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--detailed_info--interfaces)) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/resources/cb_k8s_wg.md b/docs/resources/cb_k8s_wg.md new file mode 100644 index 0000000..8ebe078 --- /dev/null +++ b/docs/resources/cb_k8s_wg.md @@ -0,0 +1,73 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_k8s_wg Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_k8s_wg (Resource) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) ID of k8s instance. +- `name` (String) Name of the worker group. + +### Optional + +- `annotations` (List of String) +- `cloud_init` (String) +- `cpu` (Number) Worker node CPU count. +- `disk` (Number) Worker node boot disk size. If unspecified or 0, size is defined by OS image size. +- `labels` (List of String) +- `num` (Number) Number of worker nodes to create. +- `ram` (Number) Node RAM in MB. +- `taints` (List of String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `worker_sep_id` (Number) +- `worker_sep_pool` (String) + +### Read-Only + +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--detailed_info)) +- `guid` (String) +- `id` (String) The ID of this resource. +- `wg_id` (Number) ID of k8s worker Group. + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--detailed_info--interfaces)) +- `name` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/resources/cb_kvmvm.md b/docs/resources/cb_kvmvm.md new file mode 100644 index 0000000..2a8b804 --- /dev/null +++ b/docs/resources/cb_kvmvm.md @@ -0,0 +1,349 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_kvmvm Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_kvmvm (Resource) + + + + + + +## Schema + +### Required + +- `cpu` (Number) Number of CPUs to allocate to this compute instance. +- `driver` (String) Hardware architecture of this compute instance. +- `name` (String) Name of this compute. Compute names are case sensitive and must be unique in the resource group. +- `ram` (Number) Amount of RAM in MB to allocate to this compute instance. +- `rg_id` (Number) ID of the resource group where this compute should be deployed. + +### Optional + +- `affinity_label` (String) Set affinity label for compute +- `affinity_rules` (Block List) (see [below for nested schema](#nestedblock--affinity_rules)) +- `alt_boot_id` (Number) ID of CD-ROM live image to boot +- `anti_affinity_rules` (Block List) (see [below for nested schema](#nestedblock--anti_affinity_rules)) +- `auto_start` (Boolean) Flag for redeploy compute +- `boot_disk_size` (Number) This compute instance boot disk size in GB. Make sure it is large enough to accomodate selected OS image. +- `cd` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--cd)) +- `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. +- `custom_fields` (String) +- `data_disks` (String) Flag for redeploy compute +- `depresent` (Boolean) whether to depresent compute disks from node or not +- `description` (String) Optional text description of this compute instance. +- `detach_disks` (Boolean) +- `disks` (Block List) (see [below for nested schema](#nestedblock--disks)) +- `enabled` (Boolean) If true - enable compute, else - disable +- `extra_disks` (Set of Number) Optional list of IDs of extra disks to attach to this compute. You may specify several extra disks. +- `force_pin` (Boolean) +- `force_resize` (Boolean) Flag for resize compute +- `force_stop` (Boolean) Flag for redeploy compute +- `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. +- `ipa_type` (String) compute purpose +- `is` (String) system name +- `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)) +- `numa_affinity` (String) Rule for VM placement with NUMA affinity. +- `pause` (Boolean) +- `permanently` (Boolean) +- `pin_to_stack` (Boolean) +- `pool` (String) Pool to use if sepId is set, can be also empty if needed to be chosen by system. +- `port_forwarding` (Block Set) (see [below for nested schema](#nestedblock--port_forwarding)) +- `reason` (String) reason for action +- `reset` (Boolean) +- `restore` (Boolean) +- `rollback` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--rollback)) +- `sep_id` (Number) ID of SEP to create bootDisk on. Uses image's sepId if not set. +- `snapshot` (Block Set) (see [below for nested schema](#nestedblock--snapshot)) +- `stack_id` (Number) ID of stack to start compute +- `started` (Boolean) Is compute started. +- `tags` (Block Set) (see [below for nested schema](#nestedblock--tags)) +- `target_stack_id` (Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `user_access` (Block Set) (see [below for nested schema](#nestedblock--user_access)) +- `without_boot_disk` (Boolean) If True, the imageId, bootDisk, sepId, pool parameters are ignored and the compute is created without a boot disk in the stopped state. + +### Read-Only + +- `account_id` (Number) ID of the account this compute instance belongs to. +- `account_name` (String) Name of the account this compute instance belongs to. +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `affinity_weight` (Number) +- `arch` (String) +- `boot_disk_id` (Number) This compute instance boot disk ID. +- `boot_order` (List of String) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `compute_id` (Number) +- `computeci_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `devices` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `image_name` (String) +- `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `natable_vins_id` (Number) +- `natable_vins_ip` (String) +- `natable_vins_name` (String) +- `natable_vins_network` (String) +- `natable_vins_network_name` (String) +- `need_reboot` (Boolean) +- `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)) +- `pinned` (Boolean) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) +- `rg_name` (String) Name of the resource group where this compute instance is located. +- `snap_sets` (List of Object) (see [below for nested schema](#nestedatt--snap_sets)) +- `stack_name` (String) Name of the stack, on which VM started +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vgpus` (List of Number) +- `virtual_image_id` (Number) +- `virtual_image_name` (String) + + +### Nested Schema for `affinity_rules` + +Required: + +- `key` (String) key that are taken into account when analyzing this rule will be identified +- `mode` (String) EQ or NE or ANY - the comparison mode is 'value', recorded by the specified 'key' +- `policy` (String) RECOMMENDED or REQUIRED, the degree of 'strictness' of this rule +- `topology` (String) compute or node, for whom rule applies + +Optional: + +- `value` (String) value that must match the key to be taken into account when analyzing this rule + + + +### Nested Schema for `anti_affinity_rules` + +Required: + +- `key` (String) key that are taken into account when analyzing this rule will be identified +- `mode` (String) EQ or NE or ANY - the comparison mode is 'value', recorded by the specified 'key' +- `policy` (String) RECOMMENDED or REQUIRED, the degree of 'strictness' of this rule +- `topology` (String) compute or node, for whom rule applies + +Optional: + +- `value` (String) value that must match the key to be taken into account when analyzing this rule + + + +### Nested Schema for `cd` + +Required: + +- `cdrom_id` (Number) + +Optional: + +- `reason` (String) reason for action + + + +### Nested Schema for `disks` + +Required: + +- `disk_name` (String) Name for disk +- `size` (Number) Disk size in GiB + +Optional: + +- `desc` (String) Optional description +- `disk_type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data' +- `image_id` (Number) Specify image id for create disk from template +- `node_ids` (Set of Number) +- `permanently` (Boolean) Disk deletion status +- `pool` (String) Pool name; by default will be chosen automatically +- `reason` (String) reason for action +- `sep_id` (Number) Storage endpoint provider ID; by default the same with boot disk + +Read-Only: + +- `disk_id` (Number) Disk ID +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) + + + +### Nested Schema for `network` + +Required: + +- `net_id` (Number) ID of the network for this connection. +- `net_type` (String) Type of the network for this connection, either EXTNET or VINS. + +Optional: + +- `ip_address` (String) Optional IP address to assign to this connection. This IP should belong to the selected network and free for use. + +Read-Only: + +- `mac` (String) MAC address associated with this connection. MAC address is assigned automatically. + + + +### Nested Schema for `port_forwarding` + +Required: + +- `proto` (String) +- `public_port_start` (Number) + +Optional: + +- `local_port` (Number) +- `public_port_end` (Number) +- `reason` (String) reason for action + +Read-Only: + +- `rule_id` (Number) + + + +### Nested Schema for `rollback` + +Required: + +- `label` (String) + + + +### Nested Schema for `snapshot` + +Required: + +- `label` (String) + + + +### Nested Schema for `tags` + +Required: + +- `key` (String) +- `value` (String) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `user_access` + +Required: + +- `access_type` (String) +- `username` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (String) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `os_users` + +Read-Only: + +- `guid` (String) +- `login` (String) +- `password` (String) +- `public_key` (String) + + + +### Nested Schema for `snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) diff --git a/docs/resources/cb_lb.md b/docs/resources/cb_lb.md new file mode 100644 index 0000000..4e3a7c4 --- /dev/null +++ b/docs/resources/cb_lb.md @@ -0,0 +1,179 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb (Resource) + + + + + + +## Schema + +### Required + +- `name` (String) +- `rg_id` (Number) + +### Optional + +- `config_reset` (Boolean) +- `desc` (String) +- `enable` (Boolean) +- `extnet_id` (Number) +- `ha_mode` (Boolean) +- `permanently` (Boolean) +- `restart` (Boolean) +- `restore` (Boolean) +- `safe` (Boolean) +- `start` (Boolean) +- `sysctl_params` (List of Map of String) Custom sysctl values for Load Balancer instance. Applied on boot +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) + +### Read-Only + +- `acl` (String) +- `backend_haip` (String) +- `backends` (List of Object) (see [below for nested schema](#nestedatt--backends)) +- `ckey` (String) +- `dp_api_password` (String) +- `dp_api_user` (String) +- `frontend_haip` (String) +- `frontends` (List of Object) (see [below for nested schema](#nestedatt--frontends)) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `lb_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) +- `meta` (List of String) +- `milestones` (Number) +- `part_k8s` (Boolean) +- `primary_node` (List of Object) (see [below for nested schema](#nestedatt--primary_node)) +- `secondary_node` (List of Object) (see [below for nested schema](#nestedatt--secondary_node)) +- `status` (String) +- `tech_status` (String) +- `user_managed` (Boolean) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `backends` + +Read-Only: + +- `algorithm` (String) +- `guid` (String) +- `name` (String) +- `server_default_settings` (List of Object) (see [below for nested schema](#nestedobjatt--backends--server_default_settings)) +- `servers` (List of Object) (see [below for nested schema](#nestedobjatt--backends--servers)) + + +### Nested Schema for `backends.server_default_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + +### Nested Schema for `backends.servers` + +Read-Only: + +- `address` (String) +- `check` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) +- `server_settings` (List of Object) (see [below for nested schema](#nestedobjatt--backends--servers--server_settings)) + + +### Nested Schema for `backends.servers.server_settings` + +Read-Only: + +- `downinter` (Number) +- `fall` (Number) +- `guid` (String) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + + + + + +### Nested Schema for `frontends` + +Read-Only: + +- `backend` (String) +- `bindings` (List of Object) (see [below for nested schema](#nestedobjatt--frontends--bindings)) +- `guid` (String) +- `name` (String) + + +### Nested Schema for `frontends.bindings` + +Read-Only: + +- `address` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) + + + + +### Nested Schema for `primary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) + + + +### Nested Schema for `secondary_node` + +Read-Only: + +- `backend_ip` (String) +- `compute_id` (Number) +- `frontend_ip` (String) +- `guid` (String) +- `mgmt_ip` (String) +- `network_id` (Number) diff --git a/docs/resources/cb_lb_backend.md b/docs/resources/cb_lb_backend.md new file mode 100644 index 0000000..afe7d7f --- /dev/null +++ b/docs/resources/cb_lb_backend.md @@ -0,0 +1,86 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb_backend Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb_backend (Resource) + + + + + + +## Schema + +### Required + +- `lb_id` (Number) ID of the LB instance to backendCreate +- `name` (String) Must be unique among all backends of this LB - name of the new backend to create + +### Optional + +- `algorithm` (String) +- `downinter` (Number) +- `fall` (Number) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `servers` (Block List) (see [below for nested schema](#nestedblock--servers)) +- `slowstart` (Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `weight` (Number) + +### Read-Only + +- `guid` (String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `servers` + +Optional: + +- `address` (String) +- `check` (String) +- `name` (String) +- `port` (Number) +- `server_settings` (Block List) (see [below for nested schema](#nestedblock--servers--server_settings)) + +Read-Only: + +- `guid` (String) + + +### Nested Schema for `servers.server_settings` + +Optional: + +- `downinter` (Number) +- `fall` (Number) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `weight` (Number) + +Read-Only: + +- `guid` (String) + + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/cb_lb_backend_server.md b/docs/resources/cb_lb_backend_server.md new file mode 100644 index 0000000..e1a52ce --- /dev/null +++ b/docs/resources/cb_lb_backend_server.md @@ -0,0 +1,53 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb_backend_server Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb_backend_server (Resource) + + + + + + +## Schema + +### Required + +- `address` (String) IP address of the server. +- `backend_name` (String) Must be unique among all backends of this LB - name of the new backend to create +- `lb_id` (Number) ID of the LB instance to backendCreate +- `name` (String) Must be unique among all servers defined for this backend - name of the server definition to add. +- `port` (Number) Port number on the server + +### Optional + +- `check` (String) set to disabled if this server should be used regardless of its state. +- `downinter` (Number) +- `fall` (Number) +- `inter` (Number) +- `maxconn` (Number) +- `maxqueue` (Number) +- `rise` (Number) +- `slowstart` (Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `weight` (Number) + +### Read-Only + +- `guid` (String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/cb_lb_frontend.md b/docs/resources/cb_lb_frontend.md new file mode 100644 index 0000000..a5e83ac --- /dev/null +++ b/docs/resources/cb_lb_frontend.md @@ -0,0 +1,54 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb_frontend Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb_frontend (Resource) + + + + + + +## Schema + +### Required + +- `backend_name` (String) +- `lb_id` (Number) ID of the LB instance to backendCreate +- `name` (String) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `bindings` (List of Object) (see [below for nested schema](#nestedatt--bindings)) +- `guid` (String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `bindings` + +Read-Only: + +- `address` (String) +- `guid` (String) +- `name` (String) +- `port` (Number) diff --git a/docs/resources/cb_lb_frontend_bind.md b/docs/resources/cb_lb_frontend_bind.md new file mode 100644 index 0000000..2b47390 --- /dev/null +++ b/docs/resources/cb_lb_frontend_bind.md @@ -0,0 +1,44 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_lb_frontend_bind Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_lb_frontend_bind (Resource) + + + + + + +## Schema + +### Required + +- `address` (String) +- `frontend_name` (String) Must be unique among all backends of this LB - name of the new backend to create +- `lb_id` (Number) ID of the LB instance to backendCreate +- `name` (String) +- `port` (Number) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `guid` (String) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/pcidevice.md b/docs/resources/cb_pcidevice.md similarity index 83% rename from docs/resources/pcidevice.md rename to docs/resources/cb_pcidevice.md index 55db726..56a8540 100644 --- a/docs/resources/pcidevice.md +++ b/docs/resources/cb_pcidevice.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_pcidevice Resource - decort" +page_title: "decort_cb_pcidevice Resource - terraform-provider-decort" subcategory: "" description: |- --- -# decort_pcidevice (Resource) +# decort_cb_pcidevice (Resource) @@ -27,7 +27,8 @@ description: |- - `description` (String) description, just for information - `device_id` (Number) - `enable` (Boolean) Enable pci device -- `force` (Boolean) Force delete +- `force_delete` (Boolean) Force delete +- `force_disable` (Boolean) Force disable - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only @@ -50,5 +51,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/cb_rg.md b/docs/resources/cb_rg.md new file mode 100644 index 0000000..08e8004 --- /dev/null +++ b/docs/resources/cb_rg.md @@ -0,0 +1,134 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_rg Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_rg (Resource) + + + + + + +## Schema + +### Required + +- `account_id` (Number) Unique ID of the account, which this resource group belongs to. +- `gid` (Number) Unique ID of the grid, where this resource group is deployed. +- `rg_name` (String) Name of this resource group. Names are case sensitive and unique within the context of a account. + +### Optional + +- `access` (Block Set) (see [below for nested schema](#nestedblock--access)) +- `compute_features` (Set of String) +- `cpu_allocation_parameter` (String) set cpu allocation parameter +- `cpu_allocation_ratio` (Number) set cpu allocation ratio +- `def_net` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--def_net)) +- `def_net_type` (String) Type of the network, which this resource group will use as default for its computes - PRIVATE or PUBLIC or NONE. +- `description` (String) User-defined text description of this resource group. +- `enable` (Boolean) enable/disable rg +- `ext_ip` (String) IP address on the external netowrk to request when def_net_type=PRIVATE and ext_net_id is not 0 +- `ext_net_id` (Number) ID of the external network for default ViNS. Pass 0 if def_net_type=PUBLIC or no external connection required for the defult ViNS when def_net_type=PRIVATE +- `force` (Boolean) flag to force deleting resource group +- `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 +- `permanently` (Boolean) flag to permanently delete resource group +- `reason` (String) +- `register_computes` (Boolean) Register computes in registration system +- `resource_limits` (Block List, Max: 1) (see [below for nested schema](#nestedblock--resource_limits)) +- `restore` (Boolean) restore deleted rg +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `uniq_pools` (List of String) + +### Read-Only + +- `account_name` (String) Name of the account, which this resource group belongs to. +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `created_by` (String) +- `created_time` (Number) +- `def_net_id` (Number) ID of the default network for this resource group (if any). +- `deleted_by` (String) +- `deleted_time` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `lock_status` (String) +- `milestones` (Number) +- `resource_types` (List of String) +- `rg_id` (Number) +- `secret` (String) +- `status` (String) Current status of this resource group. +- `updated_by` (String) +- `updated_time` (Number) +- `vins` (List of Number) List of VINs deployed in this resource group. +- `vms` (List of Number) List of VM ids in this resource group. + + +### Nested Schema for `access` + +Required: + +- `right` (String) Access rights to set, one of 'R', 'RCX' or 'ARCXDU' +- `user` (String) User or group name to grant access + +Optional: + +- `reason` (String) Reason for action + + + +### Nested Schema for `def_net` + +Required: + +- `net_type` (String) Network type to set. Must be on of 'PRIVATE' or 'PUBLIC'. + +Optional: + +- `net_id` (Number) Network segment ID. If netType is PUBLIC and netId is 0 then default external network segment will be selected. If netType is PRIVATE and netId=0, the first ViNS defined for this RG will be selected. Otherwise, netId identifies either existing external network segment or ViNS. +- `reason` (String) Reason for action + + + +### Nested Schema for `resource_limits` + +Optional: + +- `cu_c` (Number) MaxCPUCapacity +- `cu_dm` (Number) MaxVDiskCapacity +- `cu_i` (Number) MaxNumPublicIP +- `cu_m` (Number) MaxMemoryCapacity +- `cu_np` (Number) MaxNetworkPeerTransfer + +Read-Only: + +- `cu_d` (Number) +- `gpu_units` (Number) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) diff --git a/docs/resources/cb_sep.md b/docs/resources/cb_sep.md new file mode 100644 index 0000000..7930c38 --- /dev/null +++ b/docs/resources/cb_sep.md @@ -0,0 +1,95 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_sep Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_sep (Resource) + + + + + + +## Schema + +### Required + +- `config` (String) sep config string +- `gid` (Number) grid (platform) ID +- `name` (String) SEP name +- `type` (String) type of storage + +### Optional + +- `access_to_pool` (Block Set, Max: 1) grant or revoke access to pool (see [below for nested schema](#nestedblock--access_to_pool)) +- `account_ids` (Set of Number) lift of account ids to have access to sep +- `consumed_by` (Set of Number) list of consumer nodes IDs +- `desc` (String) sep description +- `enable` (Boolean) enable SEP after creation +- `pools` (Block Set) add/delete pools to/from sep (see [below for nested schema](#nestedblock--pools)) +- `provided_by` (List of Number) list of provider nodes IDs +- `sep_id` (Number) sep type des id +- `shared_with` (List of Number) list of shared with ids +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `ckey` (String) ckey +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `meta` (List of String) meta +- `milestones` (Number) milestones +- `obj_status` (String) object status +- `tech_status` (String) tech status + + +### Nested Schema for `access_to_pool` + +Required: + +- `pool_name` (String) pool name +- `rg_id` (Number) resource group id to grant/revoke access to the specified pool sep + +Optional: + +- `account_id_pool` (Number) account id to grant/revoke access to the specified pool sep + + + +### Nested Schema for `pools` + +Required: + +- `access_account_ids` (List of Number) access account ids +- `access_res_group_ids` (List of Number) access res group ids +- `usage_limit` (Number) usage limit + +Optional: + +- `name` (String) name +- `types` (List of String) types +- `uris` (Block Set) uris (see [below for nested schema](#nestedblock--pools--uris)) + + +### Nested Schema for `pools.uris` + +Required: + +- `ip` (String) ip +- `port` (Number) port + + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/sep_config.md b/docs/resources/cb_sep_config.md similarity index 71% rename from docs/resources/sep_config.md rename to docs/resources/cb_sep_config.md index 0bbbad7..05ad8b7 100644 --- a/docs/resources/sep_config.md +++ b/docs/resources/cb_sep_config.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep_config Resource - decort" +page_title: "decort_cb_sep_config Resource - terraform-provider-decort" subcategory: "" description: |- --- -# decort_sep_config (Resource) +# decort_cb_sep_config (Resource) @@ -17,11 +17,11 @@ description: |- ### Required -- `sep_id` (Number) +- `sep_id` (Number) sep id ### Optional -- `config` (String) +- `config` (String) config json string - `field_edit` (Block List, Max: 1) (see [below for nested schema](#nestedblock--field_edit)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) @@ -34,9 +34,9 @@ description: |- Required: -- `field_name` (String) -- `field_type` (String) -- `field_value` (String) +- `field_name` (String) field name +- `field_type` (String) field type +- `field_value` (String) field value @@ -49,5 +49,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/cb_user.md b/docs/resources/cb_user.md new file mode 100644 index 0000000..da53fd4 --- /dev/null +++ b/docs/resources/cb_user.md @@ -0,0 +1,59 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_user Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_user (Resource) + + + + + + +## Schema + +### Required + +- `emailaddress` (List of String) email addresses of the user +- `username` (String) ID of user + +### Optional + +- `apiaccess` (Set of Number) list of apiaccess groups this user belongs to +- `groups` (List of String) list of groups this user belongs to +- `password` (String) password of user +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `active` (Boolean) active +- `auth_keys` (List of String) authkeys +- `authkey` (String) authkey +- `ckey` (String) ckey +- `data` (String) data +- `description` (String) description +- `domain` (String) domain +- `gid` (Number) gid +- `guid` (String) guid +- `id` (String) The ID of this resource. +- `last_check` (Number) last_check +- `meta` (List of String) meta +- `mobile` (List of String) mobile +- `protected` (Boolean) protected +- `roles` (List of String) roles +- `service_account` (Boolean) service_account +- `xmpp` (List of String) xmpp + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/cb_vfpool.md b/docs/resources/cb_vfpool.md new file mode 100644 index 0000000..dcdeb78 --- /dev/null +++ b/docs/resources/cb_vfpool.md @@ -0,0 +1,87 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vfpool Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vfpool (Resource) + + + + + + +## Schema + +### Required + +- `name` (String) Name of device + +### Optional + +- `account_access` (Set of Number) List of account IDs +- `config` (Block Set) List of dict describing configuration data (see [below for nested schema](#nestedblock--config)) +- `description` (String) Description +- `enable` (Boolean) +- `rg_access` (Set of Number) List of RG IDs +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `created_time` (Number) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `status` (String) +- `updated_time` (Number) +- `vfpool_id` (Number) +- `vfs` (List of Object) (see [below for nested schema](#nestedatt--vfs)) + + +### Nested Schema for `config` + +Required: + +- `nic_name` (String) +- `node_id` (Number) +- `vf_ids` (List of Number) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `vfs` + +Read-Only: + +- `node_id` (Number) +- `vf_list` (List of Object) (see [below for nested schema](#nestedobjatt--vfs--vf_list)) + + +### Nested Schema for `vfs.vf_list` + +Read-Only: + +- `nic_name` (String) +- `vfs_info` (List of Object) (see [below for nested schema](#nestedobjatt--vfs--vf_list--vfs_info)) + + +### Nested Schema for `vfs.vf_list.vfs_info` + +Read-Only: + +- `claimed` (Boolean) +- `id` (Number) +- `vm_id` (Number) diff --git a/docs/resources/cb_vins.md b/docs/resources/cb_vins.md new file mode 100644 index 0000000..c3edd95 --- /dev/null +++ b/docs/resources/cb_vins.md @@ -0,0 +1,493 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins (Resource) + + + + + + +## Schema + +### Required + +- `name` (String) name + +### Optional + +- `account_id` (Number) +- `default_qos` (Block List) default qoa (see [below for nested schema](#nestedblock--default_qos)) +- `description` (String) Optional user-defined text description of this ViNS. +- `dns` (Set of String) +- `enable` (Boolean) enable for enable/disable requests +- `ext_ip` (String) +- `ext_net_id` (Number) +- `force` (Boolean) force for delete request +- `gid` (Number) +- `ip` (Block List) (see [below for nested schema](#nestedblock--ip)) +- `ipcidr` (String) +- `nat_rule` (Block List) (see [below for nested schema](#nestedblock--nat_rule)) +- `permanently` (Boolean) permanently for delete request +- `pre_reservations_num` (Number) +- `reason` (String) +- `rg_id` (Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) vins id +- `vnfdev_redeploy` (Boolean) +- `vnfdev_reset` (Boolean) +- `vnfdev_restart` (Boolean) +- `vnfdev_start` (Boolean) true to start vnfdev, false to stop vnfdev + +### Read-Only + +- `account_name` (String) account name +- `created_by` (String) created by +- `created_time` (Number) created time +- `default_gw` (String) default gw +- `deleted_by` (String) deleted by +- `deleted_time` (Number) deleted time +- `guid` (Number) guid +- `id` (String) The ID of this resource. +- `lock_status` (String) lock status +- `manager_id` (Number) manager id +- `manager_type` (String) manager type +- `milestones` (Number) milestones +- `netmask` (Number) net mask +- `network` (String) network +- `redundant` (Boolean) redundant +- `rg_name` (String) resource group name +- `routes` (Block List) (see [below for nested schema](#nestedblock--routes)) +- `sec_vnf_dev_id` (Number) +- `status` (String) status +- `updated_by` (String) updated by +- `updated_time` (Number) updated time +- `user_managed` (Boolean) user managed +- `vnf_dev` (List of Object) vnf dev (see [below for nested schema](#nestedatt--vnf_dev)) +- `vnfs` (List of Object) vnfs (see [below for nested schema](#nestedatt--vnfs)) +- `vxlan_id` (Number) vxlan id + + +### Nested Schema for `default_qos` + +Optional: + +- `e_rate` (Number) +- `in_burst` (Number) +- `in_rate` (Number) + +Read-Only: + +- `guid` (String) + + + +### Nested Schema for `ip` + +Required: + +- `type` (String) + +Optional: + +- `compute_id` (Number) +- `ip_addr` (String) +- `mac` (String) +- `reason` (String) + + + +### Nested Schema for `nat_rule` + +Required: + +- `ext_port_start` (Number) +- `int_ip` (String) + +Optional: + +- `ext_port_end` (Number) +- `int_port` (Number) +- `proto` (String) + +Read-Only: + +- `rule_id` (Number) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + +### Nested Schema for `vnf_dev` + +Read-Only: + +- `account_id` (Number) +- `capabilities` (List of String) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config)) +- `config_saved` (Boolean) +- `custom_precfg` (Boolean) +- `description` (String) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces)) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `name` (String) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vins` (List of Number) + + +### Nested Schema for `vnf_dev.config` + +Read-Only: + +- `mgmt` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--mgmt)) +- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--resources)) + + +### Nested Schema for `vnf_dev.config.mgmt` + +Read-Only: + +- `ip_addr` (String) +- `password` (String) +- `ssh_key` (String) +- `user` (String) + + + +### Nested Schema for `vnf_dev.config.resources` + +Read-Only: + +- `cpu` (Number) +- `ram` (Number) +- `stack_id` (Number) +- `uuid` (String) + + + + +### Nested Schema for `vnf_dev.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flipgroup_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_mask` (Number) +- `net_type` (String) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `vnf_dev.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + + + +### Nested Schema for `vnfs` + +Read-Only: + +- `dhcp` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp)) +- `gw` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw)) +- `nat` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat)) + + +### Nested Schema for `vnfs.dhcp` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices)) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.dhcp.config` + +Read-Only: + +- `default_gw` (String) +- `dns` (List of String) +- `ip_end` (String) +- `ip_start` (String) +- `lease` (Number) +- `net_mask` (Number) +- `network` (String) +- `reservations` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config--reservations)) + + +### Nested Schema for `vnfs.dhcp.config.reservations` + +Read-Only: + +- `client_type` (String) +- `description` (String) +- `domain_name` (String) +- `host_name` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + + +### Nested Schema for `vnfs.dhcp.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices--primary)) + + +### Nested Schema for `vnfs.dhcp.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.dhcp.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.gw` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices)) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.gw.config` + +Read-Only: + +- `default_gw` (String) +- `ext_net_id` (Number) +- `ext_net_ip` (String) +- `ext_netmask` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config--qos)) + + +### Nested Schema for `vnfs.gw.config.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_burst` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `vnfs.gw.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices--primary)) + + +### Nested Schema for `vnfs.gw.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.gw.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.nat` + +Read-Only: + +- `account_id` (Number) +- `ckey` (String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices)) +- `gid` (Number) +- `guid` (Number) +- `id` (Number) +- `lock_status` (String) +- `meta` (List of String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.nat.config` + +Read-Only: + +- `net_mask` (Number) +- `network` (String) +- `rules` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config--rules)) + + +### Nested Schema for `vnfs.nat.config.rules` + +Read-Only: + +- `local_ip` (String) +- `local_port` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `rule_id` (Number) +- `vm_id` (Number) +- `vm_name` (String) + + + + +### Nested Schema for `vnfs.nat.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices--primary)) + + +### Nested Schema for `vnfs.nat.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.nat.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) diff --git a/docs/resources/cb_vins_static_route.md b/docs/resources/cb_vins_static_route.md new file mode 100644 index 0000000..eebab8c --- /dev/null +++ b/docs/resources/cb_vins_static_route.md @@ -0,0 +1,45 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_vins_static_route Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_vins_static_route (Resource) + + + + + + +## Schema + +### Required + +- `destination` (String) +- `gateway` (String) +- `netmask` (String) +- `vins_id` (Number) Unique ID of the ViNS + +### Optional + +- `compute_ids` (List of Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `guid` (String) +- `id` (String) The ID of this resource. +- `route_id` (Number) Unique ID of the static route + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/cb_virtual_image.md b/docs/resources/cb_virtual_image.md new file mode 100644 index 0000000..effce4f --- /dev/null +++ b/docs/resources/cb_virtual_image.md @@ -0,0 +1,104 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_cb_virtual_image Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_cb_virtual_image (Resource) + + + + + + +## Schema + +### Required + +- `link_to` (Number) ID of real image to link this virtual image to upon creation +- `name` (String) Name of the rescue disk + +### Optional + +- `account_id` (Number) AccountId to make the image exclusive +- `bootable` (Boolean) Does this image boot OS +- `computeci_id` (Number) +- `enabled` (Boolean) +- `enabled_stacks` (List of Number) +- `hot_resize` (Boolean) Does this machine supports hot resize +- `password` (String) Optional password for the image +- `permanently` (Boolean) Whether to completely delete the image +- `reason` (String) +- `shared_with` (List of Number) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `username` (String) Optional username for the image + +### Read-Only + +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `architecture` (String) binary architecture of this image, one of X86_64 of PPC64_LE +- `boot_type` (String) Boot type of image bios or uefi +- `ckey` (String) +- `deleted_time` (Number) +- `desc` (String) +- `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] +- `gid` (Number) grid (platform) ID where this template should be create in +- `guid` (Number) +- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) +- `id` (String) The ID of this resource. +- `image_id` (Number) Image id +- `image_type` (String) Image type linux, windows or other +- `last_modified` (Number) +- `meta` (List of String) meta +- `milestones` (Number) +- `pool_name` (String) pool for image create +- `present_to` (List of Number) +- `provider_name` (String) +- `purge_attempts` (Number) +- `reference_id` (String) +- `res_id` (String) +- `res_name` (String) +- `rescuecd` (Boolean) +- `sep_id` (Number) storage endpoint provider ID +- `size` (Number) image size +- `status` (String) status +- `tech_status` (String) tech atatus +- `unc_path` (String) unc path +- `url` (String) URL where to download media from +- `version` (String) version + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `history` + +Read-Only: + +- `guid` (String) +- `id` (Number) +- `timestamp` (Number) diff --git a/docs/resources/disk.md b/docs/resources/disk.md index b7e746a..976fc55 100644 --- a/docs/resources/disk.md +++ b/docs/resources/disk.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_disk Resource - decort" +page_title: "decort_disk Resource - terraform-provider-decort" subcategory: "" description: |- @@ -17,81 +17,72 @@ description: |- ### Required -- `account_id` (Number) -- `disk_name` (String) -- `gid` (Number) -- `size_max` (Number) +- `account_id` (Number) The unique ID of the subscriber-owner of the disk +- `disk_name` (String) Name of disk +- `gid` (Number) ID of the grid (platform) +- `size_max` (Number) Size in GB ### Optional -- `desc` (String) -- `detach` (Boolean) detach disk from machine first +- `desc` (String) Description of disk +- `detach` (Boolean) Detaching the disk from compute - `iotune` (Block List, Max: 1) (see [below for nested schema](#nestedblock--iotune)) -- `permanently` (Boolean) whether to completely delete the disk, works only with non attached disks -- `pool` (String) -- `reason` (String) reason for an action -- `restore` (Boolean) restore deleting disk -- `sep_id` (Number) +- `permanently` (Boolean) Whether to completely delete the disk, works only with non attached disks +- `pool` (String) Pool for disk location +- `reason` (String) Reason for deletion +- `sep_id` (Number) Storage endpoint provider ID to create disk +- `shareable` (Boolean) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) -- `type` (String) +- `type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data, T=Temp' ### Read-Only -- `account_name` (String) +- `account_name` (String) The name of the subscriber '(account') to whom this disk belongs - `acl` (String) -- `boot_partition` (Number) -- `compute_id` (Number) -- `compute_name` (String) -- `created_time` (Number) -- `deleted_time` (Number) -- `destruction_time` (Number) -- `devicename` (String) -- `disk_id` (Number) -- `disk_path` (String) -- `guid` (Number) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) Created time +- `deleted_time` (Number) Deleted time +- `destruction_time` (Number) Time of final deletion +- `devicename` (String) Name of the device +- `disk_id` (Number) Disk ID. Duplicates the value of the ID parameter - `id` (String) The ID of this resource. -- `image_id` (Number) -- `images` (List of String) -- `iqn` (String) -- `login` (String) -- `milestones` (Number) -- `order` (Number) -- `params` (String) -- `parent_id` (Number) -- `passwd` (String) -- `pci_slot` (Number) -- `purge_attempts` (Number) -- `purge_time` (Number) -- `reality_device_number` (Number) -- `reference_id` (String) -- `res_id` (String) -- `res_name` (String) -- `role` (String) -- `sep_type` (String) -- `size_used` (Number) +- `image_id` (Number) Image ID +- `images` (List of String) IDs of images using the disk +- `order` (Number) Disk order +- `params` (String) Disk params +- `parent_id` (Number) ID of the parent disk +- `pci_slot` (Number) ID of the pci slot to which the disk is connected +- `present_to` (List of Number) +- `purge_time` (Number) Time of the last deletion attempt +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) Resource ID +- `res_name` (String) Name of the resource +- `role` (String) Disk role +- `sep_type` (String) Type SEP. Defines the type of storage system and contains one of the values set in the cloud platform +- `size_used` (Number) Number of used space, in GB - `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) -- `status` (String) -- `tech_status` (String) -- `vmid` (Number) +- `status` (String) Disk status +- `tech_status` (String) Technical status of the disk +- `vmid` (Number) Virtual Machine ID (Deprecated) ### Nested Schema for `iotune` Optional: -- `read_bytes_sec` (Number) -- `read_bytes_sec_max` (Number) -- `read_iops_sec` (Number) -- `read_iops_sec_max` (Number) -- `size_iops_sec` (Number) -- `total_bytes_sec` (Number) -- `total_bytes_sec_max` (Number) -- `total_iops_sec` (Number) -- `total_iops_sec_max` (Number) -- `write_bytes_sec` (Number) -- `write_bytes_sec_max` (Number) -- `write_iops_sec` (Number) -- `write_iops_sec_max` (Number) +- `read_bytes_sec` (Number) Number of bytes to read per second +- `read_bytes_sec_max` (Number) Maximum number of bytes to read +- `read_iops_sec` (Number) Number of io read operations per second +- `read_iops_sec_max` (Number) Maximum number of io read operations +- `size_iops_sec` (Number) Size of io operations +- `total_bytes_sec` (Number) Total size bytes per second +- `total_bytes_sec_max` (Number) Maximum total size of bytes per second +- `total_iops_sec` (Number) Total number of io operations per second +- `total_iops_sec_max` (Number) Maximum total number of io operations per second +- `write_bytes_sec` (Number) Number of bytes to write per second +- `write_bytes_sec_max` (Number) Maximum number of bytes to write per second +- `write_iops_sec` (Number) Number of write operations per second +- `write_iops_sec_max` (Number) Maximum number of write operations per second @@ -106,6 +97,28 @@ Optional: - `update` (String) + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + ### Nested Schema for `snapshots` @@ -117,5 +130,3 @@ Read-Only: - `snap_set_guid` (String) - `snap_set_time` (Number) - `timestamp` (Number) - - diff --git a/docs/resources/disk_replication.md b/docs/resources/disk_replication.md new file mode 100644 index 0000000..502646b --- /dev/null +++ b/docs/resources/disk_replication.md @@ -0,0 +1,137 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_replication Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_replication (Resource) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) Id of primary disk +- `disk_name` (String) Name of disk replica +- `pool_name` (String) Pool for disk location +- `sep_id` (Number) Storage endpoint provider ID to create disk replica + +### Optional + +- `detach` (Boolean) Detach disk from machine first +- `pause` (Boolean) Resume replication +- `permanently` (Boolean) Delete disk permanently +- `reason` (String) Reason for disk deletion +- `reverse` (Boolean) Reverse replication +- `start` (Boolean) Start/Stop replication +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_id` (Number) The unique ID of the subscriber-owner of the disk +- `account_name` (String) The name of the subscriber '(account') to whom this disk belongs +- `acl` (String) +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_time` (Number) Created time +- `deleted_time` (Number) Deleted time +- `desc` (String) Description of disk +- `destruction_time` (Number) Time of final deletion +- `devicename` (String) Name of the device +- `gid` (Number) ID of the grid (platform) +- `id` (String) The ID of this resource. +- `image_id` (Number) Image ID +- `images` (List of String) IDs of images using the disk +- `iotune` (List of Object) (see [below for nested schema](#nestedatt--iotune)) +- `order` (Number) Disk order +- `params` (String) Disk params +- `parent_id` (Number) ID of the parent disk +- `pci_slot` (Number) ID of the pci slot to which the disk is connected +- `present_to` (List of Number) +- `purge_time` (Number) Time of the last deletion attempt +- `replica_disk_id` (Number) Id of replica disk +- `replication` (List of Object) Replication status (see [below for nested schema](#nestedatt--replication)) +- `res_id` (String) Resource ID +- `res_name` (String) Name of the resource +- `role` (String) Disk role +- `sep_type` (String) Type SEP. Defines the type of storage system and contains one of the values set in the cloud platform +- `shareable` (Boolean) +- `size_max` (Number) Size in GB +- `size_used` (Number) Number of used space, in GB +- `snapshots` (List of Object) (see [below for nested schema](#nestedatt--snapshots)) +- `status` (String) Disk status +- `status_replication` (String) Status of replication +- `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' +- `vmid` (Number) Virtual Machine ID (Deprecated) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (String) +- `compute_name` (String) + + + +### Nested Schema for `iotune` + +Read-Only: + +- `read_bytes_sec` (Number) +- `read_bytes_sec_max` (Number) +- `read_iops_sec` (Number) +- `read_iops_sec_max` (Number) +- `size_iops_sec` (Number) +- `total_bytes_sec` (Number) +- `total_bytes_sec_max` (Number) +- `total_iops_sec` (Number) +- `total_iops_sec_max` (Number) +- `write_bytes_sec` (Number) +- `write_bytes_sec_max` (Number) +- `write_iops_sec` (Number) +- `write_iops_sec_max` (Number) + + + +### Nested Schema for `replication` + +Read-Only: + +- `disk_id` (Number) +- `pool_id` (String) +- `role` (String) +- `self_volume_id` (String) +- `storage_id` (String) +- `volume_id` (String) + + + +### Nested Schema for `snapshots` + +Read-Only: + +- `guid` (String) +- `label` (String) +- `res_id` (String) +- `snap_set_guid` (String) +- `snap_set_time` (Number) +- `timestamp` (Number) diff --git a/docs/resources/disk_snapshot.md b/docs/resources/disk_snapshot.md new file mode 100644 index 0000000..5d34737 --- /dev/null +++ b/docs/resources/disk_snapshot.md @@ -0,0 +1,46 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_disk_snapshot Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_disk_snapshot (Resource) + + + + + + +## Schema + +### Required + +- `disk_id` (Number) The unique ID of the subscriber-owner of the disk +- `label` (String) Name of the snapshot + +### Optional + +- `rollback` (Boolean) Needed in order to make a snapshot rollback +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `timestamp` (Number) Snapshot time + +### Read-Only + +- `guid` (String) ID of the snapshot +- `id` (String) The ID of this resource. +- `res_id` (String) Reference to the snapshot +- `snap_set_guid` (String) The set snapshot ID +- `snap_set_time` (Number) The set time of the snapshot + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/flipgroup.md b/docs/resources/flipgroup.md new file mode 100644 index 0000000..627c680 --- /dev/null +++ b/docs/resources/flipgroup.md @@ -0,0 +1,64 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_flipgroup Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_flipgroup (Resource) + + + + + + +## Schema + +### Required + +- `account_id` (Number) Account ID +- `client_type` (String) Type of client, 'compute' ('vins' will be later) +- `name` (String) Flipgroup name +- `net_id` (Number) EXTNET or ViNS ID +- `net_type` (String) Network type, EXTNET or VINS + +### Optional + +- `client_ids` (List of Number) List of clients attached to this Flipgroup instance +- `desc` (String) Text description of this Flipgroup instance +- `ip` (String) IP address to associate with this group. If empty, the platform will autoselect IP address +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `account_name` (String) +- `conn_id` (Number) +- `conn_type` (String) +- `created_by` (String) +- `created_time` (Number) +- `default_gw` (String) +- `deleted_by` (String) +- `deleted_time` (Number) +- `flipgroup_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `id` (String) The ID of this resource. +- `milestones` (Number) +- `network` (String) +- `rg_id` (Number) +- `rg_name` (String) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) diff --git a/docs/resources/image.md b/docs/resources/image.md index a4cfadd..46ace49 100644 --- a/docs/resources/image.md +++ b/docs/resources/image.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_image Resource - decort" +page_title: "decort_image Resource - terraform-provider-decort" subcategory: "" description: |- @@ -17,19 +17,19 @@ description: |- ### Required +- `account_id` (Number) AccountId to make the image exclusive - `boot_type` (String) Boot type of image bios or uefi - `drivers` (List of String) -- `gid` (Number) grid (platform) ID where this template should be create in - `name` (String) Name of the rescue disk - `type` (String) Image type linux, windows or other - `url` (String) URL where to download media from ### Optional -- `account_id` (Number) AccountId to make the image exclusive - `architecture` (String) binary architecture of this image, one of X86_64 of PPC64_LE - `hot_resize` (Boolean) Does this machine supports hot resize - `image_id` (Number) image id +- `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_dl` (String) password for upload binary media - `permanently` (Boolean) whether to completely delete the image @@ -43,11 +43,13 @@ description: |- - `acl` (String) - `bootable` (Boolean) +- `cd_presented_to` (String) - `ckey` (String) - `compute_ci_id` (Number) -- `deleted_time` (String) +- `deleted_time` (Number) - `desc` (String) - `enabled` (Boolean) +- `gid` (Number) - `guid` (Number) - `history` (List of Object) (see [below for nested schema](#nestedatt--history)) - `id` (String) The ID of this resource. @@ -55,6 +57,7 @@ description: |- - `last_modified` (Number) - `link_to` (Number) - `milestones` (Number) +- `present_to` (List of Number) - `provider_name` (String) - `purge_attempts` (Number) - `res_id` (String) @@ -86,5 +89,3 @@ Read-Only: - `guid` (String) - `id` (Number) - `timestamp` (Number) - - diff --git a/docs/resources/image_from_blank_compute.md b/docs/resources/image_from_blank_compute.md new file mode 100644 index 0000000..4c17897 --- /dev/null +++ b/docs/resources/image_from_blank_compute.md @@ -0,0 +1,90 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_image_from_blank_compute Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_image_from_blank_compute (Resource) + + + + + + +## Schema + +### Required + +- `boot_type` (String) Boot type of image BIOS or UEFI +- `compute_id` (Number) Compute Id +- `name` (String) Name of the rescue disk +- `type` (String) Image type linux, windows or other + +### Optional + +- `account_id` (Number) AccountId to make the image exclusive +- `async_mode` (Boolean) create an image in async/sync mode +- `hot_resize` (Boolean) Does this machine supports hot resize +- `password` (String) Optional password for the image +- `permanently` (Boolean) whether to completely delete the image +- `pool_name` (String) pool for image create +- `sep_id` (Number) storage endpoint provider ID +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `username` (String) Optional username for the image + +### Read-Only + +- `acl` (String) +- `architecture` (String) +- `bootable` (Boolean) +- `cd_presented_to` (String) +- `ckey` (String) +- `compute_ci_id` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `drivers` (List of String) +- `enabled` (Boolean) +- `gid` (Number) +- `guid` (Number) +- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `image_name` (String) +- `last_modified` (Number) +- `link_to` (Number) +- `milestones` (Number) +- `network_interface_naming` (String) +- `present_to` (List of Number) +- `provider_name` (String) +- `purge_attempts` (Number) +- `res_id` (String) +- `rescuecd` (Boolean) +- `shared_with` (List of Number) +- `size` (Number) +- `status` (String) +- `tech_status` (String) +- `unc_path` (String) +- `version` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `history` + +Read-Only: + +- `guid` (String) +- `id` (Number) +- `timestamp` (Number) diff --git a/docs/resources/image_from_platform_disk.md b/docs/resources/image_from_platform_disk.md new file mode 100644 index 0000000..8111cce --- /dev/null +++ b/docs/resources/image_from_platform_disk.md @@ -0,0 +1,90 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_image_from_platform_disk Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_image_from_platform_disk (Resource) + + + + + + +## Schema + +### Required + +- `architecture` (String) binary architecture of this image, one of X86_64 of PPC64_LE +- `boot_type` (String) Boot type of image BIOS or UEFI +- `disk_id` (Number) Disk Id +- `name` (String) Name of the rescue disk +- `type` (String) Image type linux, windows or other + +### Optional + +- `account_id` (Number) AccountId to make the image exclusive +- `async_mode` (Boolean) create an image in async/sync mode +- `bootable` (Boolean) bootable image +- `drivers` (List of String) List of types of compute suitable for image. Example: [ "KVM_X86" ] +- `hot_resize` (Boolean) Does this machine supports hot resize +- `password` (String) Optional password for the image +- `permanently` (Boolean) whether to completely delete the image +- `pool_name` (String) pool for image create +- `sep_id` (Number) storage endpoint provider ID +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `username` (String) Optional username for the image + +### Read-Only + +- `acl` (String) +- `cd_presented_to` (String) +- `ckey` (String) +- `compute_ci_id` (Number) +- `deleted_time` (Number) +- `desc` (String) +- `enabled` (Boolean) +- `gid` (Number) +- `guid` (Number) +- `history` (List of Object) (see [below for nested schema](#nestedatt--history)) +- `id` (String) The ID of this resource. +- `image_id` (Number) +- `image_name` (String) +- `last_modified` (Number) +- `link_to` (Number) +- `milestones` (Number) +- `network_interface_naming` (String) +- `present_to` (List of Number) +- `provider_name` (String) +- `purge_attempts` (Number) +- `res_id` (String) +- `rescuecd` (Boolean) +- `shared_with` (List of Number) +- `size` (Number) +- `status` (String) +- `tech_status` (String) +- `unc_path` (String) +- `version` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `history` + +Read-Only: + +- `guid` (String) +- `id` (Number) +- `timestamp` (Number) diff --git a/docs/resources/image_virtual.md b/docs/resources/image_virtual.md index ae55a69..5867461 100644 --- a/docs/resources/image_virtual.md +++ b/docs/resources/image_virtual.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_image_virtual Resource - decort" +page_title: "decort_image_virtual Resource - terraform-provider-decort" subcategory: "" description: |- @@ -32,9 +32,10 @@ description: |- - `architecture` (String) - `boot_type` (String) - `bootable` (Boolean) +- `cd_presented_to` (String) - `ckey` (String) - `compute_ci_id` (Number) -- `deleted_time` (String) +- `deleted_time` (Number) - `desc` (String) - `drivers` (List of String) - `enabled` (Boolean) @@ -47,8 +48,10 @@ description: |- - `image_name` (String) - `last_modified` (Number) - `milestones` (Number) +- `network_interface_naming` (String) - `password` (String) - `pool_name` (String) +- `present_to` (List of Number) - `provider_name` (String) - `purge_attempts` (Number) - `res_id` (String) @@ -83,5 +86,3 @@ Read-Only: - `guid` (String) - `id` (Number) - `timestamp` (Number) - - diff --git a/docs/resources/k8s.md b/docs/resources/k8s.md new file mode 100644 index 0000000..7f34bdd --- /dev/null +++ b/docs/resources/k8s.md @@ -0,0 +1,225 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s (Resource) + + + + + + +## Schema + +### Required + +- `k8sci_id` (Number) ID of the k8s catalog item to base this instance on. +- `name` (String) Name of the cluster. +- `network_plugin` (String) Network plugin to be used +- `rg_id` (Number) Resource group ID that this instance belongs to. +- `wg_name` (String) Name for first worker group created with cluster. + +### Optional + +- `additional_sans` (List of String) Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names +- `annotations` (List of String) +- `cloud_init` (String) Meta data for working group computes, format YAML 'user_data': 1111 +- `cluster_config` (String) is used to define global settings and configurations for the entire cluster. It includes parameters such as cluster name, DNS settings, authentication methods, and other cluster-wide configurations. insert a valid JSON string with all levels of nesting. +- `desc` (String) Text description of this instance. +- `extnet_id` (Number) ID of the external network to connect workers to. If omitted network will be chosen by the platfom. +- `extnet_only` (Boolean) Use only selected ExtNet for infrastructure connections +- `ha_mode` (Boolean) Use Highly Available schema for LB deploy +- `init_config` (String) is used to define settings and actions that should be performed before any other component in the cluster starts. It allows you to configure things like node registration, network setup, and other initialization tasks. insert a valid JSON string with all levels of nesting. +- `join_config` (String) is used to configure the behavior and settings for joining a node to a cluster. It includes parameters such as the cluster's control plane endpoint, token, and certificate key. insert a valid JSON string with all levels of nesting. +- `kube_proxy_config` (String) is used to configure the behavior and settings of the Kube-proxy, which is responsible for network proxying and load balancing within the cluster. It includes parameters such as proxy mode, cluster IP ranges, and other Kube-proxy specific configurations. insert a valid JSON string with all levels of nesting. +- `kubelet_config` (String) is used to configure the behavior and settings of the Kubelet, which is the primary node agent that runs on each node in the cluster. It includes parameters such as node IP address, resource allocation, pod eviction policies, and other Kubelet-specific configurations. insert a valid JSON string with all levels of nesting. +- `labels` (List of String) +- `lb_sysctl_params` (List of Map of String) Custom sysctl values for Load Balancer instance. Applied on boot. +- `masters` (Block List, Max: 1) Master node(s) configuration. (see [below for nested schema](#nestedblock--masters)) +- `oidc_cert` (String) insert ssl certificate in x509 pem format +- `permanently` (Boolean) Determines if cluster should be destroyed +- `start` (Boolean) Start k8s cluster +- `taints` (List of String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) ID of default vins for this instace. +- `with_lb` (Boolean) Create k8s with load balancer if true. +- `workers` (Block List) Worker node(s) configuration. (see [below for nested schema](#nestedblock--workers)) + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `bservice_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `default_wg_id` (Number) ID of default workers group for this instace. +- `deleted_by` (String) +- `deleted_time` (Number) +- `id` (String) The ID of this resource. +- `k8s_ci_name` (String) +- `kubeconfig` (String) Kubeconfig for cluster access. +- `lb_id` (Number) +- `lb_ip` (String) IP address of default load balancer. +- `rg_name` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) + + +### Nested Schema for `masters` + +Required: + +- `cpu` (Number) Node CPU count. +- `disk` (Number) Node boot disk size in GB. +- `num` (Number) Number of nodes to create. Can be either 1, 3 or 5 +- `ram` (Number) Node RAM in MB. + +Optional: + +- `sep_id` (Number) +- `sep_pool` (String) + +Read-Only: + +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--masters--detailed_info)) +- `master_id` (Number) +- `name` (String) + + +### Nested Schema for `masters.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--masters--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `masters.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) + + + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `workers` + +Required: + +- `cpu` (Number) +- `disk` (Number) +- `name` (String) +- `num` (Number) +- `ram` (Number) + +Optional: + +- `annotations` (List of String) +- `labels` (List of String) +- `sep_id` (Number) +- `sep_pool` (String) +- `taints` (List of String) + +Read-Only: + +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--workers--detailed_info)) +- `guid` (String) +- `id` (Number) + + +### Nested Schema for `workers.detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--workers--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `workers.detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) + + + + + +### Nested Schema for `acl` + +Read-Only: + +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--account_acl)) +- `k8s_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--k8s_acl)) +- `rg_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--rg_acl)) + + +### Nested Schema for `acl.account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.k8s_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) diff --git a/docs/resources/k8s_cp.md b/docs/resources/k8s_cp.md new file mode 100644 index 0000000..6584463 --- /dev/null +++ b/docs/resources/k8s_cp.md @@ -0,0 +1,156 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_cp Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_cp (Resource) + + + + + + +## Schema + +### Required + +- `k8sci_id` (Number) ID of the k8s catalog item to base this instance on. +- `name` (String) Name of the cluster. +- `network_plugin` (String) Network plugin to be used +- `rg_id` (Number) Resource group ID that this instance belongs to. + +### Optional + +- `additional_sans` (List of String) Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names +- `cluster_config` (String) is used to define global settings and configurations for the entire cluster. It includes parameters such as cluster name, DNS settings, authentication methods, and other cluster-wide configurations. insert a valid JSON string with all levels of nesting. +- `cpu` (Number) Node CPU count. +- `desc` (String) Text description of this instance. +- `disk` (Number) Node boot disk size in GB. +- `extnet_id` (Number) ID of the external network to connect workers to. If omitted network will be chosen by the platfom. +- `extnet_only` (Boolean) Use only selected ExtNet for infrastructure connections +- `ha_mode` (Boolean) Use Highly Available schema for LB deploy +- `init_config` (String) is used to define settings and actions that should be performed before any other component in the cluster starts. It allows you to configure things like node registration, network setup, and other initialization tasks. insert a valid JSON string with all levels of nesting. +- `join_config` (String) is used to configure the behavior and settings for joining a node to a cluster. It includes parameters such as the cluster's control plane endpoint, token, and certificate key. insert a valid JSON string with all levels of nesting. +- `kube_proxy_config` (String) is used to configure the behavior and settings of the Kube-proxy, which is responsible for network proxying and load balancing within the cluster. It includes parameters such as proxy mode, cluster IP ranges, and other Kube-proxy specific configurations. insert a valid JSON string with all levels of nesting. +- `kubelet_config` (String) is used to configure the behavior and settings of the Kubelet, which is the primary node agent that runs on each node in the cluster. It includes parameters such as node IP address, resource allocation, pod eviction policies, and other Kubelet-specific configurations. insert a valid JSON string with all levels of nesting. +- `lb_sysctl_params` (List of Map of String) Custom sysctl values for Load Balancer instance. Applied on boot. +- `num` (Number) Number of VMs to create. Can be either 1, 3 or 5 +- `oidc_cert` (String) insert ssl certificate in x509 pem format +- `permanently` (Boolean) Determines if cluster should be destroyed +- `ram` (Number) Node RAM in MB. +- `sep_id` (Number) Storage Endpoint ID +- `sep_pool` (String) Storage Endpoint Pool +- `start` (Boolean) Start k8s cluster. +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) ID of default vins for this instace. +- `with_lb` (Boolean) Create k8s with load balancer if true. + +### Read-Only + +- `account_id` (Number) +- `account_name` (String) +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `bservice_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--detailed_info)) +- `id` (String) The ID of this resource. +- `k8s_ci_name` (String) +- `k8s_id` (Number) +- `kubeconfig` (String) Kubeconfig for cluster access. +- `lb_id` (Number) +- `lb_ip` (String) IP address of default load balancer. +- `master_id` (Number) Master group ID. +- `master_name` (String) Master group name. +- `rg_name` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `acl` + +Read-Only: + +- `account_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--account_acl)) +- `k8s_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--k8s_acl)) +- `rg_acl` (List of Object) (see [below for nested schema](#nestedobjatt--acl--rg_acl)) + + +### Nested Schema for `acl.account_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.k8s_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + +### Nested Schema for `acl.rg_acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) + + + + +### Nested Schema for `detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/resources/k8s_wg.md b/docs/resources/k8s_wg.md new file mode 100644 index 0000000..5838eea --- /dev/null +++ b/docs/resources/k8s_wg.md @@ -0,0 +1,75 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "decort_k8s_wg Resource - terraform-provider-decort" +subcategory: "" +description: |- + +--- + +# decort_k8s_wg (Resource) + + + + + + +## Schema + +### Required + +- `k8s_id` (Number) ID of k8s instance. +- `name` (String) Name of the worker group. + +### Optional + +- `annotations` (List of String) +- `cloud_init` (String) +- `cpu` (Number) Worker node CPU count. +- `disk` (Number) Worker node boot disk size. If unspecified or 0, size is defined by OS image size. +- `labels` (List of String) +- `num` (Number) Number of worker nodes to create. +- `ram` (Number) Worker node RAM in MB. +- `taints` (List of String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `worker_sep_id` (Number) +- `worker_sep_pool` (String) + +### Read-Only + +- `detailed_info` (List of Object) (see [below for nested schema](#nestedatt--detailed_info)) +- `guid` (String) +- `id` (String) The ID of this resource. +- `wg_id` (Number) ID of k8s worker Group. + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) +- `default` (String) +- `delete` (String) +- `read` (String) +- `update` (String) + + + +### Nested Schema for `detailed_info` + +Read-Only: + +- `compute_id` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--detailed_info--interfaces)) +- `name` (String) +- `natable_vins_ip` (String) +- `natable_vins_network` (String) +- `status` (String) +- `tech_status` (String) + + +### Nested Schema for `detailed_info.interfaces` + +Read-Only: + +- `def_gw` (String) +- `ip_address` (String) diff --git a/docs/resources/kubernetes.md b/docs/resources/kubernetes.md deleted file mode 100644 index 624aa15..0000000 --- a/docs/resources/kubernetes.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_k8s Resource - decort" -subcategory: "" -description: |- - ---- - -# decort_k8s (Resource) - - - - - - -## Schema - -### Required - -- `k8sci_id` (Number) ID of the k8s catalog item to base this instance on. -- `name` (String) Name of the cluster. -- `rg_id` (Number) Resource group ID that this instance belongs to. -- `wg_name` (String) Name for first worker group created with cluster. - -### Optional - -- `extnet_id` (Number) ID of the external network to connect workers to. If omitted network will be chosen by the platfom. -- `masters` (Block List, Max: 1) Master node(s) configuration. (see [below for nested schema](#nestedblock--masters)) -- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) -- `workers` (Block List, Max: 1) Worker node(s) configuration. (see [below for nested schema](#nestedblock--workers)) - -### Read-Only - -- `default_wg_id` (Number) ID of default workers group for this instace. -- `id` (String) The ID of this resource. -- `kubeconfig` (String) Kubeconfig for cluster access. -- `lb_ip` (String) IP address of default load balancer. - - -### Nested Schema for `masters` - -Required: - -- `cpu` (Number) Node CPU count. -- `disk` (Number) Node boot disk size in GB. -- `num` (Number) Number of nodes to create. -- `ram` (Number) Node RAM in MB. - - - -### Nested Schema for `timeouts` - -Optional: - -- `create` (String) -- `default` (String) -- `delete` (String) -- `read` (String) -- `update` (String) - - - -### Nested Schema for `workers` - -Required: - -- `cpu` (Number) Node CPU count. -- `disk` (Number) Node boot disk size in GB. -- `num` (Number) Number of nodes to create. -- `ram` (Number) Node RAM in MB. - - diff --git a/docs/resources/kvmvm.md b/docs/resources/kvmvm.md index d160102..f14251e 100644 --- a/docs/resources/kvmvm.md +++ b/docs/resources/kvmvm.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_kvmvm Resource - decort" +page_title: "decort_kvmvm Resource - terraform-provider-decort" subcategory: "" description: |- @@ -17,37 +17,170 @@ description: |- ### Required -- `boot_disk_size` (Number) This compute instance boot disk size in GB. Make sure it is large enough to accomodate selected OS image. - `cpu` (Number) Number of CPUs to allocate to this compute instance. - `driver` (String) Hardware architecture of this compute instance. -- `image_id` (Number) ID of the OS image to base this compute instance on. - `name` (String) Name of this compute. Compute names are case sensitive and must be unique in the resource group. - `ram` (Number) Amount of RAM in MB to allocate to this compute instance. - `rg_id` (Number) ID of the resource group where this compute should be deployed. ### Optional +- `affinity_label` (String) Set affinity label for compute +- `affinity_rules` (Block List) (see [below for nested schema](#nestedblock--affinity_rules)) +- `anti_affinity_rules` (Block List) (see [below for nested schema](#nestedblock--anti_affinity_rules)) +- `auto_start` (Boolean) Flag for redeploy compute +- `boot_disk_size` (Number) This compute instance boot disk size in GB. Make sure it is large enough to accomodate selected OS image. +- `cd` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--cd)) - `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. +- `custom_fields` (String) +- `data_disks` (String) Flag for redeploy compute - `description` (String) Optional text description of this compute instance. - `detach_disks` (Boolean) +- `disks` (Block List) (see [below for nested schema](#nestedblock--disks)) +- `enabled` (Boolean) If true - enable compute, else - disable - `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_stop` (Boolean) Flag for redeploy compute +- `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. - `ipa_type` (String) compute purpose - `is` (String) system name - `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)) +- `numa_affinity` (String) Rule for VM placement with NUMA affinity. +- `pause` (Boolean) - `permanently` (Boolean) +- `pin_to_stack` (Boolean) - `pool` (String) Pool to use if sepId is set, can be also empty if needed to be chosen by system. +- `port_forwarding` (Block Set) (see [below for nested schema](#nestedblock--port_forwarding)) +- `reset` (Boolean) +- `restore` (Boolean) +- `rollback` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--rollback)) - `sep_id` (Number) ID of SEP to create bootDisk on. Uses image's sepId if not set. +- `snapshot` (Block Set) (see [below for nested schema](#nestedblock--snapshot)) - `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)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `user_access` (Block Set) (see [below for nested schema](#nestedblock--user_access)) +- `without_boot_disk` (Boolean) If True, the imageId, bootDisk, sepId, pool parameters are ignored and the compute is created without a boot disk in the stopped state. ### Read-Only - `account_id` (Number) ID of the account this compute instance belongs to. - `account_name` (String) Name of the account this compute instance belongs to. +- `affinity_weight` (Number) +- `arch` (String) +- `boot_disk` (Set of Object) (see [below for nested schema](#nestedatt--boot_disk)) - `boot_disk_id` (Number) This compute instance boot disk ID. +- `boot_order` (List of String) +- `cd_image_id` (Number) +- `clone_reference` (Number) +- `clones` (List of Number) +- `compute_id` (Number) +- `computeci_id` (Number) +- `created_by` (String) +- `created_time` (Number) +- `deleted_by` (String) +- `deleted_time` (Number) +- `devices` (String) +- `gid` (Number) +- `guid` (Number) - `id` (String) The ID of this resource. +- `interfaces` (List of Object) (see [below for nested schema](#nestedatt--interfaces)) +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `migrationjob` (Number) +- `milestones` (Number) +- `natable_vins_id` (Number) +- `natable_vins_ip` (String) +- `natable_vins_name` (String) +- `natable_vins_network` (String) +- `natable_vins_network_name` (String) +- `need_reboot` (Boolean) +- `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)) +- `pinned` (Boolean) +- `reference_id` (String) +- `registered` (Boolean) +- `res_name` (String) +- `reserved_node_cpus` (List of Number) - `rg_name` (String) Name of the resource group where this compute instance is located. +- `snap_sets` (List of Object) (see [below for nested schema](#nestedatt--snap_sets)) +- `stateless_sep_id` (Number) +- `stateless_sep_type` (String) +- `status` (String) +- `tech_status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vgpus` (List of Number) +- `virtual_image_id` (Number) +- `virtual_image_name` (String) + + +### Nested Schema for `affinity_rules` + +Required: + +- `key` (String) key that are taken into account when analyzing this rule will be identified +- `mode` (String) EQ or NE or ANY - the comparison mode is 'value', recorded by the specified 'key' +- `policy` (String) RECOMMENDED or REQUIRED, the degree of 'strictness' of this rule +- `topology` (String) compute or node, for whom rule applies + +Optional: + +- `value` (String) value that must match the key to be taken into account when analyzing this rule + + + +### Nested Schema for `anti_affinity_rules` + +Required: + +- `key` (String) key that are taken into account when analyzing this rule will be identified +- `mode` (String) EQ or NE or ANY - the comparison mode is 'value', recorded by the specified 'key' +- `policy` (String) RECOMMENDED or REQUIRED, the degree of 'strictness' of this rule +- `topology` (String) compute or node, for whom rule applies + +Optional: + +- `value` (String) value that must match the key to be taken into account when analyzing this rule + + + +### Nested Schema for `cd` + +Required: + +- `cdrom_id` (Number) + + + +### Nested Schema for `disks` + +Required: + +- `disk_name` (String) Name for disk +- `size` (Number) Disk size in GiB + +Optional: + +- `desc` (String) Optional description +- `disk_type` (String) The type of disk in terms of its role in compute: 'B=Boot, D=Data' +- `image_id` (Number) Specify image id for create disk from template +- `permanently` (Boolean) Disk deletion status +- `pool` (String) Pool name; by default will be chosen automatically +- `sep_id` (Number) Storage endpoint provider ID; by default the same with boot disk + +Read-Only: + +- `disk_id` (Number) Disk ID +- `shareable` (Boolean) +- `size_max` (Number) +- `size_used` (Number) + ### Nested Schema for `network` @@ -66,6 +199,45 @@ Read-Only: - `mac` (String) MAC address associated with this connection. MAC address is assigned automatically. + +### Nested Schema for `port_forwarding` + +Required: + +- `proto` (String) +- `public_port_start` (Number) + +Optional: + +- `local_port` (Number) +- `public_port_end` (Number) + + + +### Nested Schema for `rollback` + +Required: + +- `label` (String) + + + +### Nested Schema for `snapshot` + +Required: + +- `label` (String) + + + +### Nested Schema for `tags` + +Required: + +- `key` (String) +- `value` (String) + + ### Nested Schema for `timeouts` @@ -78,6 +250,71 @@ Optional: - `update` (String) + +### Nested Schema for `user_access` + +Required: + +- `access_type` (String) +- `username` (String) + + + +### Nested Schema for `boot_disk` + +Read-Only: + +- `desc` (String) +- `disk_id` (Number) +- `disk_name` (String) +- `disk_type` (String) +- `image_id` (Number) +- `permanently` (Boolean) +- `pool` (String) +- `sep_id` (Number) +- `shareable` (Boolean) +- `size` (Number) +- `size_max` (Number) +- `size_used` (Number) + + + +### Nested Schema for `interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flip_group_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_type` (String) +- `netmask` (Number) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + ### Nested Schema for `os_users` @@ -89,3 +326,12 @@ Read-Only: - `public_key` (String) + +### Nested Schema for `snap_sets` + +Read-Only: + +- `disks` (List of Number) +- `guid` (String) +- `label` (String) +- `timestamp` (Number) diff --git a/docs/resources/lb.md b/docs/resources/lb.md index c0e18c2..833475d 100644 --- a/docs/resources/lb.md +++ b/docs/resources/lb.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb Resource - decort" +page_title: "decort_lb Resource - terraform-provider-decort" subcategory: "" description: |- @@ -17,38 +17,45 @@ description: |- ### Required -- `extnet_id` (Number) - `name` (String) - `rg_id` (Number) - `start` (Boolean) -- `vins_id` (Number) ### Optional - `config_reset` (Boolean) - `desc` (String) - `enable` (Boolean) +- `extnet_id` (Number) +- `ha_mode` (Boolean) - `permanently` (Boolean) - `restart` (Boolean) - `restore` (Boolean) +- `safe` (Boolean) +- `sysctl_params` (List of Map of String) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vins_id` (Number) ### Read-Only +- `backend_haip` (String) - `backends` (List of Object) (see [below for nested schema](#nestedatt--backends)) - `created_by` (String) - `created_time` (Number) - `deleted_by` (String) - `deleted_time` (Number) - `dp_api_user` (String) +- `frontend_haip` (String) - `frontends` (List of Object) (see [below for nested schema](#nestedatt--frontends)) - `gid` (Number) - `guid` (Number) -- `ha_mode` (Boolean) - `id` (String) The ID of this resource. - `image_id` (Number) - `lb_id` (Number) +- `manager_id` (Number) +- `manager_type` (String) - `milestones` (Number) +- `part_k8s` (Boolean) - `primary_node` (List of Object) (see [below for nested schema](#nestedatt--primary_node)) - `rg_name` (String) - `secondary_node` (List of Object) (see [below for nested schema](#nestedatt--secondary_node)) @@ -56,6 +63,7 @@ description: |- - `tech_status` (String) - `updated_by` (String) - `updated_time` (Number) +- `user_managed` (Boolean) ### Nested Schema for `timeouts` @@ -172,5 +180,3 @@ Read-Only: - `guid` (String) - `mgmt_ip` (String) - `network_id` (Number) - - diff --git a/docs/resources/lb_backend.md b/docs/resources/lb_backend.md index 8ef7baa..73d1f28 100644 --- a/docs/resources/lb_backend.md +++ b/docs/resources/lb_backend.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb_backend Resource - decort" +page_title: "decort_lb_backend Resource - terraform-provider-decort" subcategory: "" description: |- @@ -84,5 +84,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/lb_backend_server.md b/docs/resources/lb_backend_server.md index 7b0a18b..d57a43d 100644 --- a/docs/resources/lb_backend_server.md +++ b/docs/resources/lb_backend_server.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb_backend_server Resource - decort" +page_title: "decort_lb_backend_server Resource - terraform-provider-decort" subcategory: "" description: |- @@ -51,5 +51,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/lb_frontend.md b/docs/resources/lb_frontend.md index 502ccd1..7080f42 100644 --- a/docs/resources/lb_frontend.md +++ b/docs/resources/lb_frontend.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb_frontend Resource - decort" +page_title: "decort_lb_frontend Resource - terraform-provider-decort" subcategory: "" description: |- @@ -52,5 +52,3 @@ Read-Only: - `guid` (String) - `name` (String) - `port` (Number) - - diff --git a/docs/resources/lb_frontend_bind.md b/docs/resources/lb_frontend_bind.md index b7f1236..1a66335 100644 --- a/docs/resources/lb_frontend_bind.md +++ b/docs/resources/lb_frontend_bind.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_lb_frontend_bind Resource - decort" +page_title: "decort_lb_frontend_bind Resource - terraform-provider-decort" subcategory: "" description: |- @@ -42,5 +42,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/pfw.md b/docs/resources/pfw.md index c9e3223..74baf17 100644 --- a/docs/resources/pfw.md +++ b/docs/resources/pfw.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_pfw Resource - decort" +page_title: "decort_pfw Resource - terraform-provider-decort" subcategory: "" description: |- @@ -42,5 +42,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/resgroup.md b/docs/resources/resgroup.md index 45d18b6..1f7ac35 100644 --- a/docs/resources/resgroup.md +++ b/docs/resources/resgroup.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_resgroup Resource - decort" +page_title: "decort_resgroup Resource - terraform-provider-decort" subcategory: "" description: |- @@ -18,23 +18,78 @@ description: |- ### Required - `account_id` (Number) Unique ID of the account, which this resource group belongs to. +- `gid` (Number) Unique ID of the grid, where this resource group is deployed. - `name` (String) Name of this resource group. Names are case sensitive and unique within the context of a account. ### Optional +- `access` (Block Set) (see [below for nested schema](#nestedblock--access)) +- `def_net` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--def_net)) - `def_net_type` (String) Type of the network, which this resource group will use as default for its computes - PRIVATE or PUBLIC or NONE. - `description` (String) User-defined text description of this resource group. +- `enable` (Boolean) flag for enable/disable RG - `ext_ip` (String) IP address on the external netowrk to request when def_net_type=PRIVATE and ext_net_id is not 0 - `ext_net_id` (Number) ID of the external network for default ViNS. Pass 0 if def_net_type=PUBLIC or no external connection required for the defult ViNS when def_net_type=PRIVATE +- `force` (Boolean) Set to True if you want force delete non-empty RG - `ipcidr` (String) Address of the netowrk inside the private network segment (aka ViNS) if def_net_type=PRIVATE +- `owner` (String) +- `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)) +- `reason` (String) Set to True if you want force delete non-empty RG +- `register_computes` (Boolean) Register computes in registration system +- `restore` (Boolean) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only - `account_name` (String) Name of the account, which this resource group belongs to. +- `acl` (List of Object) (see [below for nested schema](#nestedatt--acl)) +- `compute_features` (List of String) +- `cpu_allocation_parameter` (String) +- `cpu_allocation_ratio` (Number) - `def_net_id` (Number) ID of the default network for this resource group (if any). +- `deleted_by` (String) +- `deleted_time` (Number) +- `dirty` (Boolean) +- `guid` (Number) - `id` (String) The ID of this resource. +- `lock_status` (String) +- `milestones` (Number) +- `res_types` (List of String) +- `rg_id` (Number) +- `secret` (String) +- `status` (String) Current status of this resource group. +- `uniq_pools` (List of String) +- `updated_by` (String) +- `updated_time` (Number) +- `vins` (List of Number) List of VINs deployed in this resource group. +- `vms` (List of Number) List of computes deployed in this resource group. + + +### Nested Schema for `access` + +Required: + +- `right` (String) Access rights to set, one of 'R', 'RCX' or 'ARCXDU' +- `user` (String) User or group name to grant access + +Optional: + +- `reason` (String) Reason for action + + + +### Nested Schema for `def_net` + +Required: + +- `net_type` (String) Network type to set. Must be on of 'PRIVATE' or 'PUBLIC'. + +Optional: + +- `net_id` (Number) Network segment ID. If netType is PUBLIC and netId is 0 then default external network segment will be selected. If netType is PRIVATE and netId=0, the first ViNS defined for this RG will be selected. Otherwise, netId identifies either existing external network segment or ViNS. +- `reason` (String) Reason for action + ### Nested Schema for `quota` @@ -42,12 +97,16 @@ description: |- Optional: - `cpu` (Number) Limit on the total number of CPUs in this resource group. -- `disk` (Number) Limit on the total volume of storage resources in this resource group, specified in GB. +- `disk` (Number) Limit on the total volume of virtual storage resources in this resource group, specified in GB. - `ext_ips` (Number) Limit on the total number of external IP addresses this resource group can use. - `ext_traffic` (Number) Limit on the total ingress network traffic for this resource group, specified in GB. -- `gpu_units` (Number) Limit on the total number of virtual GPUs this resource group can use. - `ram` (Number) Limit on the total amount of RAM in this resource group, specified in MB. +Read-Only: + +- `cu_d` (Number) Limit on the total volume of storage resources in this resource group, specified in GB. +- `gpu_units` (Number) Limit on the total number of virtual GPUs this resource group can use. + ### Nested Schema for `timeouts` @@ -61,3 +120,14 @@ Optional: - `update` (String) + +### Nested Schema for `acl` + +Read-Only: + +- `explicit` (Boolean) +- `guid` (String) +- `right` (String) +- `status` (String) +- `type` (String) +- `user_group_id` (String) diff --git a/docs/resources/sep.md b/docs/resources/sep.md deleted file mode 100644 index d566232..0000000 --- a/docs/resources/sep.md +++ /dev/null @@ -1,69 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_sep Resource - decort" -subcategory: "" -description: |- - ---- - -# decort_sep (Resource) - - - - - - -## Schema - -### Required - -- `gid` (Number) grid (platform) ID -- `name` (String) SEP name -- `type` (String) type of storage - -### Optional - -- `clear_physically` (Boolean) clear disks and images physically -- `config` (String) sep config string -- `consumed_by` (List of Number) list of consumer nodes IDs -- `decommission` (Boolean) unlink everything that exists from SEP -- `desc` (String) sep description -- `enable` (Boolean) enable SEP after creation -- `field_edit` (Block List, Max: 1) (see [below for nested schema](#nestedblock--field_edit)) -- `provided_by` (List of Number) list of provider nodes IDs -- `sep_id` (Number) sep type des id -- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) -- `upd_capacity_limit` (Boolean) Update SEP capacity limit - -### Read-Only - -- `ckey` (String) -- `guid` (Number) -- `id` (String) The ID of this resource. -- `meta` (List of String) -- `milestones` (Number) -- `obj_status` (String) -- `tech_status` (String) - - -### Nested Schema for `field_edit` - -Required: - -- `field_name` (String) -- `field_type` (String) -- `field_value` (String) - - - -### Nested Schema for `timeouts` - -Optional: - -- `create` (String) -- `default` (String) -- `delete` (String) -- `read` (String) -- `update` (String) - - diff --git a/docs/resources/snapshot.md b/docs/resources/snapshot.md index 8c4797f..3e2f701 100644 --- a/docs/resources/snapshot.md +++ b/docs/resources/snapshot.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_snapshot Resource - decort" +page_title: "decort_snapshot Resource - terraform-provider-decort" subcategory: "" description: |- @@ -42,5 +42,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/docs/resources/vins.md b/docs/resources/vins.md index e1a568d..262ba1e 100644 --- a/docs/resources/vins.md +++ b/docs/resources/vins.md @@ -1,6 +1,6 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_vins Resource - decort" +page_title: "decort_vins Resource - terraform-provider-decort" subcategory: "" description: |- @@ -17,22 +17,98 @@ description: |- ### Required -- `account_id` (Number) ID of the account, which this ViNS belongs to. For ViNS created at account level, resource group ID is 0. -- `ext_net_id` (Number) ID of the external network this ViNS is connected to. Pass 0 if no external connection required. -- `name` (String) Name of the ViNS. Names are case sensitive and unique within the context of an account or resource group. +- `name` (String) ### Optional -- `description` (String) Optional user-defined text description of this ViNS. -- `ipcidr` (String) Network address to use by this ViNS. This parameter is only valid when creating new ViNS. -- `rg_id` (Number) ID of the resource group, where this ViNS belongs to. Non-zero for ViNS created at resource group level, 0 otherwise. +- `account_id` (Number) +- `desc` (String) Optional user-defined text description of this ViNS. +- `dns` (Set of String) +- `enable` (Boolean) +- `ext_ip_addr` (String) +- `ext_net` (Block List, Max: 1) (see [below for nested schema](#nestedblock--ext_net)) +- `ext_net_id` (Number) +- `force` (Boolean) +- `gid` (Number) +- `ip` (Block List) (see [below for nested schema](#nestedblock--ip)) +- `ipcidr` (String) +- `nat_rule` (Block List) (see [below for nested schema](#nestedblock--nat_rule)) +- `permanently` (Boolean) +- `pre_reservations_num` (Number) +- `restore` (Boolean) +- `rg_id` (Number) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +- `vnfdev_redeploy` (Boolean) +- `vnfdev_restart` (Boolean) ### Read-Only - `account_name` (String) Name of the account, which this ViNS belongs to. -- `ext_ip_addr` (String) IP address of the external connection (valid for ViNS connected to external network, ignored otherwise). +- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes)) +- `created_by` (String) +- `created_time` (Number) +- `default_gw` (String) +- `default_qos` (List of Object) (see [below for nested schema](#nestedatt--default_qos)) +- `deleted_by` (String) +- `deleted_time` (Number) +- `guid` (Number) - `id` (String) The ID of this resource. +- `lock_status` (String) +- `manager_id` (Number) +- `manager_type` (String) +- `milestones` (Number) +- `net_mask` (Number) +- `network` (String) +- `redundant` (Boolean) +- `rg_name` (String) +- `sec_vnf_dev_id` (Number) +- `status` (String) +- `updated_by` (String) +- `updated_time` (Number) +- `user_managed` (Boolean) +- `vins_id` (Number) Unique ID of the ViNS. If ViNS ID is specified, then ViNS name, rg_id and account_id are ignored. +- `vnf_dev` (List of Object) (see [below for nested schema](#nestedatt--vnf_dev)) +- `vnfs` (List of Object) (see [below for nested schema](#nestedatt--vnfs)) +- `vxlan_id` (Number) + + +### Nested Schema for `ext_net` + +Optional: + +- `ext_net_id` (Number) +- `ext_net_ip` (Number) + + + +### Nested Schema for `ip` + +Required: + +- `type` (String) + +Optional: + +- `compute_id` (Number) +- `ip_addr` (String) +- `mac_addr` (String) + + + +### Nested Schema for `nat_rule` + +Optional: + +- `ext_port_end` (Number) +- `ext_port_start` (Number) +- `int_ip` (String) +- `int_port` (Number) +- `proto` (String) + +Read-Only: + +- `rule_id` (Number) + ### Nested Schema for `timeouts` @@ -46,3 +122,365 @@ Optional: - `update` (String) + +### Nested Schema for `computes` + +Read-Only: + +- `compute_id` (Number) +- `compute_name` (String) + + + +### Nested Schema for `default_qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + +### Nested Schema for `vnf_dev` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `capabilities` (List of String) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config)) +- `config_saved` (Boolean) +- `custom_pre_cfg` (Boolean) +- `desc` (String) +- `gid` (Number) +- `guid` (Number) +- `interfaces` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces)) +- `lock_status` (String) +- `milestones` (Number) +- `status` (String) +- `tech_status` (String) +- `type` (String) +- `vins` (List of Number) +- `vnf_id` (Number) +- `vnf_name` (String) + + +### Nested Schema for `vnf_dev.config` + +Read-Only: + +- `mgmt` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--mgmt)) +- `resources` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--config--resources)) + + +### Nested Schema for `vnf_dev.config.mgmt` + +Read-Only: + +- `ip_addr` (String) +- `password` (String) +- `ssh_key` (String) +- `user` (String) + + + +### Nested Schema for `vnf_dev.config.resources` + +Read-Only: + +- `cpu` (Number) +- `ram` (Number) +- `stack_id` (Number) +- `uuid` (String) + + + + +### Nested Schema for `vnf_dev.interfaces` + +Read-Only: + +- `conn_id` (Number) +- `conn_type` (String) +- `def_gw` (String) +- `enabled` (Boolean) +- `flipgroup_id` (Number) +- `guid` (String) +- `ip_address` (String) +- `listen_ssh` (Boolean) +- `mac` (String) +- `name` (String) +- `net_id` (Number) +- `net_mask` (Number) +- `net_type` (String) +- `node_id` (Number) +- `pci_slot` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnf_dev--interfaces--qos)) +- `target` (String) +- `type` (String) +- `vnfs` (List of Number) + + +### Nested Schema for `vnf_dev.interfaces.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + + +### Nested Schema for `vnfs` + +Read-Only: + +- `dhcp` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp)) +- `gw` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw)) +- `nat` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat)) + + +### Nested Schema for `vnfs.dhcp` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices)) +- `dhcp_id` (Number) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.dhcp.config` + +Read-Only: + +- `default_gw` (String) +- `dns` (List of String) +- `ip_end` (String) +- `ip_start` (String) +- `lease` (Number) +- `netmask` (Number) +- `network` (String) +- `reservations` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--config--reservations)) + + +### Nested Schema for `vnfs.dhcp.config.reservations` + +Read-Only: + +- `client_type` (String) +- `desc` (String) +- `domainname` (String) +- `hostname` (String) +- `ip` (String) +- `mac` (String) +- `type` (String) +- `vm_id` (Number) + + + + +### Nested Schema for `vnfs.dhcp.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--dhcp--devices--primary)) + + +### Nested Schema for `vnfs.dhcp.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.dhcp.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.gw` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices)) +- `gid` (Number) +- `guid` (Number) +- `gw_id` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.gw.config` + +Read-Only: + +- `default_gw` (String) +- `ext_net_id` (Number) +- `ext_net_ip` (String) +- `ext_netmask` (Number) +- `qos` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--config--qos)) + + +### Nested Schema for `vnfs.gw.config.qos` + +Read-Only: + +- `e_rate` (Number) +- `guid` (String) +- `in_brust` (Number) +- `in_rate` (Number) + + + + +### Nested Schema for `vnfs.gw.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--gw--devices--primary)) + + +### Nested Schema for `vnfs.gw.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.gw.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) + + + + +### Nested Schema for `vnfs.nat` + +Read-Only: + +- `_ckey` (String) +- `account_id` (Number) +- `config` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config)) +- `created_time` (Number) +- `devices` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices)) +- `gid` (Number) +- `guid` (Number) +- `lock_status` (String) +- `milestones` (Number) +- `nat_id` (Number) +- `owner_id` (Number) +- `owner_type` (String) +- `pure_virtual` (Boolean) +- `routes` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--routes)) +- `status` (String) +- `tech_status` (String) +- `type` (String) + + +### Nested Schema for `vnfs.nat.config` + +Read-Only: + +- `net_mask` (Number) +- `network` (String) +- `rules` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--config--rules)) + + +### Nested Schema for `vnfs.nat.config.rules` + +Read-Only: + +- `local_ip` (String) +- `local_port` (Number) +- `protocol` (String) +- `public_port_end` (Number) +- `public_port_start` (Number) +- `rule_id` (Number) +- `vm_id` (Number) +- `vm_name` (String) + + + + +### Nested Schema for `vnfs.nat.devices` + +Read-Only: + +- `primary` (List of Object) (see [below for nested schema](#nestedobjatt--vnfs--nat--devices--primary)) + + +### Nested Schema for `vnfs.nat.devices.primary` + +Read-Only: + +- `dev_id` (Number) +- `iface01` (String) +- `iface02` (String) + + + + +### Nested Schema for `vnfs.nat.routes` + +Read-Only: + +- `compute_ids` (List of Number) +- `destination` (String) +- `gateway` (String) +- `guid` (String) +- `netmask` (String) +- `route_id` (Number) diff --git a/docs/resources/delete_images.md b/docs/resources/vins_static_route.md similarity index 63% rename from docs/resources/delete_images.md rename to docs/resources/vins_static_route.md index 6be6e06..2b59227 100644 --- a/docs/resources/delete_images.md +++ b/docs/resources/vins_static_route.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "decort_delete_images Resource - decort" +page_title: "decort_vins_static_route Resource - terraform-provider-decort" subcategory: "" description: |- --- -# decort_delete_images (Resource) +# decort_vins_static_route (Resource) @@ -17,16 +17,20 @@ description: |- ### Required -- `image_ids` (List of Number) images ids for deleting -- `reason` (String) reason for deleting the images +- `destination` (String) +- `gateway` (String) +- `netmask` (String) +- `vins_id` (Number) Unique ID of the ViNS ### Optional -- `permanently` (Boolean) whether to completely delete the images +- `compute_ids` (List of Number) +- `route_id` (Number) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only +- `guid` (String) - `id` (String) The ID of this resource. @@ -39,5 +43,3 @@ Optional: - `delete` (String) - `read` (String) - `update` (String) - - diff --git a/go.mod b/go.mod index 01ccbdc..4934fac 100644 --- a/go.mod +++ b/go.mod @@ -4,22 +4,25 @@ go 1.20 require ( github.com/google/uuid v1.4.0 - github.com/hashicorp/terraform-plugin-docs v0.13.0 + github.com/hashicorp/terraform-plugin-docs v0.19.4 github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 github.com/sirupsen/logrus v1.9.0 - golang.org/x/net v0.19.0 - repository.basistech.ru/BASIS/decort-golang-sdk v1.8.1 + golang.org/x/net v0.23.0 + repository.basistech.ru/BASIS/decort-golang-sdk v1.8.3 ) require ( + github.com/BurntSushi/toml v1.2.1 // indirect + github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.0 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect - github.com/ProtonMail/go-crypto v1.1.0-alpha.0 // indirect + github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect + github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect github.com/cloudflare/circl v1.3.7 // indirect github.com/fatih/color v1.16.0 // indirect github.com/gabriel-vasile/mimetype v1.4.2 // indirect @@ -29,6 +32,7 @@ require ( github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/go-querystring v1.1.0 // indirect + github.com/hashicorp/cli v1.1.6 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -37,12 +41,12 @@ require ( github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/hc-install v0.6.3 // indirect + github.com/hashicorp/go-version v1.7.0 // indirect + github.com/hashicorp/hc-install v0.7.0 // indirect github.com/hashicorp/hcl/v2 v2.19.1 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-exec v0.20.0 // indirect - github.com/hashicorp/terraform-json v0.21.0 // indirect + github.com/hashicorp/terraform-exec v0.21.0 // indirect + github.com/hashicorp/terraform-json v0.22.1 // indirect github.com/hashicorp/terraform-plugin-go v0.22.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect @@ -53,6 +57,7 @@ require ( github.com/leodido/go-urn v1.2.4 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mattn/go-runewidth v0.0.9 // indirect github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect @@ -67,14 +72,19 @@ require ( github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/zclconf/go-cty v1.14.2 // indirect - golang.org/x/crypto v0.19.0 // indirect - golang.org/x/mod v0.15.0 // indirect - golang.org/x/sys v0.17.0 // indirect - golang.org/x/text v0.14.0 // indirect + github.com/yuin/goldmark v1.7.1 // indirect + github.com/yuin/goldmark-meta v1.1.0 // indirect + github.com/zclconf/go-cty v1.14.4 // indirect + go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect + golang.org/x/crypto v0.21.0 // indirect + golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/sys v0.18.0 // indirect + golang.org/x/text v0.15.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect google.golang.org/grpc v1.61.1 // indirect google.golang.org/protobuf v1.32.0 // indirect + gopkg.in/yaml.v2 v2.3.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index ce4a1e6..365e43f 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= +github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= +github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/Kunde21/markdownfmt/v3 v3.1.0 h1:KiZu9LKs+wFFBQKhrZJrFZwtLnCCWJahL+S+E/3VnM0= +github.com/Kunde21/markdownfmt/v3 v3.1.0/go.mod h1:tPXN1RTyOzJwhfHoon9wUr4HGYmWgVxSQN6VBJDkrVc= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= @@ -10,6 +14,8 @@ github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBa github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/ProtonMail/go-crypto v1.1.0-alpha.0 h1:nHGfwXmFvJrSR9xu8qL7BkO4DqTHXE9N5vPhgY2I+j0= github.com/ProtonMail/go-crypto v1.1.0-alpha.0/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg= +github.com/ProtonMail/go-crypto v1.1.0-alpha.2/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= @@ -20,6 +26,8 @@ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= +github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= @@ -38,6 +46,7 @@ github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9 github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= github.com/go-git/go-git/v5 v5.11.0 h1:XIZc1p+8YzypNr34itUfSvYJcv+eYdTnTvOZ2vD3cA4= +github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= @@ -63,6 +72,8 @@ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/hashicorp/cli v1.1.6 h1:CMOV+/LJfL1tXCOKrgAX0uRKnzjj/mpmqNXloRSy2K8= +github.com/hashicorp/cli v1.1.6/go.mod h1:MPon5QYlgjjo0BSoAiN0ESeT5fRzDjVRp+uioJ0piz4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -85,18 +96,28 @@ github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/C github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= +github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/hc-install v0.6.3 h1:yE/r1yJvWbtrJ0STwScgEnCanb0U9v7zp0Gbkmcoxqs= github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= +github.com/hashicorp/hc-install v0.7.0 h1:Uu9edVqjKQxxuD28mR5TikkKDd/p55S8vzPC1659aBk= +github.com/hashicorp/hc-install v0.7.0/go.mod h1:ELmmzZlGnEcqoUMKUuykHaPCIR1sYLYX+KSggWSKZuA= github.com/hashicorp/hcl/v2 v2.19.1 h1://i05Jqznmb2EXqa39Nsvyan2o5XyMowW5fnCKW5RPI= github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/terraform-exec v0.20.0 h1:DIZnPsqzPGuUnq6cH8jWcPunBfY+C+M8JyYF3vpnuEo= github.com/hashicorp/terraform-exec v0.20.0/go.mod h1:ckKGkJWbsNqFKV1itgMnE0hY9IYf1HoiekpuN0eWoDw= +github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVWkd/RG0D2XQ= +github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf4fYUmB923Wzbq1ICg= github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= +github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= +github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= github.com/hashicorp/terraform-plugin-docs v0.13.0 h1:6e+VIWsVGb6jYJewfzq2ok2smPzZrt1Wlm9koLeKazY= github.com/hashicorp/terraform-plugin-docs v0.13.0/go.mod h1:W0oCmHAjIlTHBbvtppWHe8fLfZ2BznQbuv8+UD8OucQ= +github.com/hashicorp/terraform-plugin-docs v0.19.4 h1:G3Bgo7J22OMtegIgn8Cd/CaSeyEljqjH3G39w28JK4c= +github.com/hashicorp/terraform-plugin-docs v0.19.4/go.mod h1:4pLASsatTmRynVzsjEhbXZ6s7xBlUw/2Kt0zfrq8HxA= github.com/hashicorp/terraform-plugin-go v0.22.0 h1:1OS1Jk5mO0f5hrziWJGXXIxBrMe2j/B8E+DVGw43Xmc= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= @@ -139,6 +160,8 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mitchellh/cli v1.1.5 h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng= github.com/mitchellh/cli v1.1.5/go.mod h1:v8+iFts2sPIKUV1ltktPXMCC8fumSKFItNcD2cLtRR4= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= @@ -162,15 +185,18 @@ github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndr github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ= +github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= @@ -196,8 +222,16 @@ github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAh github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= +github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc= +github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= github.com/zclconf/go-cty v1.14.2 h1:kTG7lqmBou0Zkx35r6HJHUQTvaRPr5bIAf3AoHS0izI= github.com/zclconf/go-cty v1.14.2/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= +github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +go.abhg.dev/goldmark/frontmatter v0.2.0 h1:P8kPG0YkL12+aYk2yU3xHv4tcXzeVnN+gU0tJ5JnxRw= +go.abhg.dev/goldmark/frontmatter v0.2.0/go.mod h1:XqrEkZuM57djk7zrlRUB02x8I5J0px76YjkOzhB4YlU= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -205,9 +239,15 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= @@ -215,6 +255,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= +golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -235,6 +277,8 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -246,6 +290,8 @@ golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= @@ -268,9 +314,10 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= 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.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -repository.basistech.ru/BASIS/decort-golang-sdk v1.8.1 h1:wpxjnVO7hGaQVWbtFoYVbNoeFxk0QUnEfDsPuWjiNk0= -repository.basistech.ru/BASIS/decort-golang-sdk v1.8.1/go.mod h1:OaUynHHuSjWMzpfyoL4au6oLcUogqUkPPBKA15pbHWo= +repository.basistech.ru/BASIS/decort-golang-sdk v1.8.3 h1:fCwFvZR+HID7ie4Aap7cJd6SbuJ+4gBWysKaMQDCPgc= +repository.basistech.ru/BASIS/decort-golang-sdk v1.8.3/go.mod h1:OaUynHHuSjWMzpfyoL4au6oLcUogqUkPPBKA15pbHWo= diff --git a/internal/provider/provider.go b/internal/provider/provider.go index f0723e5..b276d30 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -1,169 +1,169 @@ -/* -Copyright (c) 2019-2022 Digital Energy Cloud Solutions LLC. All Rights Reserved. -Authors: -Petr Krutov, -Stanislav Solovev, -Kasim Baybikov, - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package provider - -import ( - "fmt" - - "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/validation" - "golang.org/x/net/context" - - "repository.basistech.ru/BASIS/terraform-provider-decort/internal/controller" - "repository.basistech.ru/BASIS/terraform-provider-decort/internal/location" - "repository.basistech.ru/BASIS/terraform-provider-decort/internal/statefuncs" -) - -func Provider() *schema.Provider { - return &schema.Provider{ - Schema: map[string]*schema.Schema{ - "authenticator": { - Type: schema.TypeString, - Required: true, - StateFunc: statefuncs.StateFuncToLower, - ValidateFunc: validation.StringInSlice([]string{"decs3o", "legacy", "jwt", "bvs"}, true), // ignore case while validating - Description: "Authentication mode to use when connecting to DECORT cloud API. Should be one of 'decs3o', 'legacy', 'jwt' or 'bvs'.", - }, - - "oauth2_url": { - Type: schema.TypeString, - Optional: true, - StateFunc: statefuncs.StateFuncToLower, - DefaultFunc: schema.EnvDefaultFunc("DECORT_OAUTH2_URL", nil), - Description: "OAuth2 application URL in 'decs3o' and 'bvs' authentication mode.", - }, - - "controller_url": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - StateFunc: statefuncs.StateFuncToLower, - Description: "URL of DECORT Cloud controller to use. API calls will be directed to this URL.", - }, - - "user": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_USER", nil), - Description: "User name for DECORT cloud API operations in 'legacy' authentication mode.", - }, - - "password": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_PASSWORD", nil), - Description: "User password for DECORT cloud API operations in 'legacy' authentication mode.", - }, - - "bvs_user": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_BVS_USER", nil), - Description: "User name for DECORT cloud API operations in 'bvs' authentication mode.", - }, - - "bvs_password": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_BVS_PASSWORD", nil), - Description: "User password for DECORT cloud API operations in 'bvs' authentication mode.", - }, - - "domain": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_DOMAIN", nil), - Description: "User password for DECORT cloud API operations in 'bvs' authentication mode.", - }, - - "app_id": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_APP_ID", nil), - Description: "Application ID to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode.", - }, - - "app_secret": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_APP_SECRET", nil), - Description: "Application secret to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode.", - }, - - "jwt": { - Type: schema.TypeString, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("DECORT_JWT", nil), - Description: "JWT to access DECORT cloud API in 'jwt' authentication mode.", - }, - - "allow_unverified_ssl": { - Type: schema.TypeBool, - Optional: true, - Default: false, - Description: "If true, DECORT API will not verify SSL certificates. Use this with caution and in trusted environments only!", - }, - - "path_cfg": { - Type: schema.TypeString, - Optional: true, - Description: "The path of the configuration file entry", - }, - - "path_token": { - Type: schema.TypeString, - Optional: true, - Description: "The path of the token file entry", - }, - - "time_to_refresh": { - Type: schema.TypeInt, - Optional: true, - Description: "The number of minutes before the expiration of the token, a refresh will be made", - }, - - }, - - ResourcesMap: newResourcesMap(), - - DataSourcesMap: newDataSourcesMap(), - - ConfigureContextFunc: providerConfigure, - } -} - -func providerConfigure(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) { - decsController, err := controller.ControllerConfigure(d) - if err != nil { - return nil, diag.FromErr(err) - } - - gridId, err := location.UtilityLocationGetDefaultGridID(ctx, decsController) - if err != nil { - return nil, diag.FromErr(err) - } - if gridId == 0 { - return nil, diag.FromErr(fmt.Errorf("providerConfigure: invalid default Grid ID = 0")) - } - - return decsController, nil -} +/* +Copyright (c) 2019-2022 Digital Energy Cloud Solutions LLC. All Rights Reserved. +Authors: +Petr Krutov, +Stanislav Solovev, +Kasim Baybikov, + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package provider + +import ( + "fmt" + + "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/validation" + "golang.org/x/net/context" + + "repository.basistech.ru/BASIS/terraform-provider-decort/internal/controller" + "repository.basistech.ru/BASIS/terraform-provider-decort/internal/location" + "repository.basistech.ru/BASIS/terraform-provider-decort/internal/statefuncs" +) + +func Provider() *schema.Provider { + return &schema.Provider{ + Schema: map[string]*schema.Schema{ + "authenticator": { + Type: schema.TypeString, + Required: true, + StateFunc: statefuncs.StateFuncToLower, + ValidateFunc: validation.StringInSlice([]string{"decs3o", "legacy", "jwt", "bvs"}, true), // ignore case while validating + Description: "Authentication mode to use when connecting to DECORT cloud API. Should be one of 'decs3o', 'legacy', 'jwt' or 'bvs'.", + }, + + "oauth2_url": { + Type: schema.TypeString, + Optional: true, + StateFunc: statefuncs.StateFuncToLower, + DefaultFunc: schema.EnvDefaultFunc("DECORT_OAUTH2_URL", nil), + Description: "OAuth2 application URL in 'decs3o' and 'bvs' authentication mode.", + }, + + "controller_url": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + StateFunc: statefuncs.StateFuncToLower, + DefaultFunc: schema.EnvDefaultFunc("DECORT_CONTROLLER_URL", nil), + Description: "URL of DECORT Cloud controller to use. API calls will be directed to this URL.", + }, + + "user": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_USER", nil), + Description: "User name for DECORT cloud API operations in 'legacy' authentication mode.", + }, + + "password": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_PASSWORD", nil), + Description: "User password for DECORT cloud API operations in 'legacy' authentication mode.", + }, + + "bvs_user": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_BVS_USER", nil), + Description: "User name for DECORT cloud API operations in 'bvs' authentication mode.", + }, + + "bvs_password": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_BVS_PASSWORD", nil), + Description: "User password for DECORT cloud API operations in 'bvs' authentication mode.", + }, + + "domain": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_DOMAIN", nil), + Description: "User password for DECORT cloud API operations in 'bvs' authentication mode.", + }, + + "app_id": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_APP_ID", nil), + Description: "Application ID to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode.", + }, + + "app_secret": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_APP_SECRET", nil), + Description: "Application secret to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode.", + }, + + "jwt": { + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("DECORT_JWT", nil), + Description: "JWT to access DECORT cloud API in 'jwt' authentication mode.", + }, + + "allow_unverified_ssl": { + Type: schema.TypeBool, + Optional: true, + Default: false, + Description: "If true, DECORT API will not verify SSL certificates. Use this with caution and in trusted environments only!", + }, + + "path_cfg": { + Type: schema.TypeString, + Optional: true, + Description: "The path of the configuration file entry", + }, + + "path_token": { + Type: schema.TypeString, + Optional: true, + Description: "The path of the token file entry", + }, + + "time_to_refresh": { + Type: schema.TypeInt, + Optional: true, + Description: "The number of minutes before the expiration of the token, a refresh will be made", + }, + }, + + ResourcesMap: newResourcesMap(), + + DataSourcesMap: newDataSourcesMap(), + + ConfigureContextFunc: providerConfigure, + } +} + +func providerConfigure(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) { + decsController, err := controller.ControllerConfigure(d) + if err != nil { + return nil, diag.FromErr(err) + } + + gridId, err := location.UtilityLocationGetDefaultGridID(ctx, decsController) + if err != nil { + return nil, diag.FromErr(err) + } + if gridId == 0 { + return nil, diag.FromErr(fmt.Errorf("providerConfigure: invalid default Grid ID = 0")) + } + + return decsController, nil +} diff --git a/internal/service/cloudapi/k8s/resource_k8s.go b/internal/service/cloudapi/k8s/resource_k8s.go index d8f4b2f..0ab2217 100644 --- a/internal/service/cloudapi/k8s/resource_k8s.go +++ b/internal/service/cloudapi/k8s/resource_k8s.go @@ -183,16 +183,16 @@ func resourceK8sCreate(ctx context.Context, d *schema.ResourceData, m interface{ } if lbSysctlParams, ok := d.GetOk("lb_sysctl_params"); ok { - syscrlSliceMaps := lbSysctlParams.([]map[string]string) + syscrlSliceMaps := lbSysctlParams.([]interface{}) res := make([]map[string]interface{}, 0, len(syscrlSliceMaps)) for _, syscrlMap := range syscrlSliceMaps { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } @@ -534,27 +534,28 @@ func resourceK8sUpdate(ctx context.Context, d *schema.ResourceData, m interface{ } if d.HasChange("lb_sysctl_params") && d.Get("with_lb").(bool) { - lbSysctlParams := d.Get("lb_sysctl_params").([]map[string]string) + lbSysctlParams := d.Get("lb_sysctl_params").([]interface{}) res := make([]map[string]interface{}, 0, len(lbSysctlParams)) for _, syscrlMap := range lbSysctlParams { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } - - req := lb.UpdateSysctParamsRequest{ - LBID: cluster.LBID, - SysctlParams: res, - } - _, err := c.CloudAPI().LB().UpdateSysctlParams(ctx, req) - if err != nil { - return diag.FromErr(err) + if len(res) > 0 { + req := lb.UpdateSysctParamsRequest{ + LBID: cluster.LBID, + SysctlParams: res, + } + _, err := c.CloudAPI().LB().UpdateSysctlParams(ctx, req) + if err != nil { + return diag.FromErr(err) + } } } diff --git a/internal/service/cloudapi/k8s/resource_k8s_cp.go b/internal/service/cloudapi/k8s/resource_k8s_cp.go index a581ccf..4f059cb 100644 --- a/internal/service/cloudapi/k8s/resource_k8s_cp.go +++ b/internal/service/cloudapi/k8s/resource_k8s_cp.go @@ -168,16 +168,16 @@ func resourceK8sCPCreate(ctx context.Context, d *schema.ResourceData, m interfac } if lbSysctlParams, ok := d.GetOk("lb_sysctl_params"); ok { - syscrlSliceMaps := lbSysctlParams.([]map[string]string) + syscrlSliceMaps := lbSysctlParams.([]interface{}) res := make([]map[string]interface{}, 0, len(syscrlSliceMaps)) for _, syscrlMap := range syscrlSliceMaps { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } @@ -552,27 +552,28 @@ func resourceK8sCPUpdate(ctx context.Context, d *schema.ResourceData, m interfac } if d.HasChange("lb_sysctl_params") && d.Get("with_lb").(bool) { - lbSysctlParams := d.Get("lb_sysctl_params").([]map[string]string) + lbSysctlParams := d.Get("lb_sysctl_params").([]interface{}) res := make([]map[string]interface{}, 0, len(lbSysctlParams)) for _, syscrlMap := range lbSysctlParams { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } - - req := lb.UpdateSysctParamsRequest{ - LBID: cluster.LBID, - SysctlParams: res, - } - _, err := c.CloudAPI().LB().UpdateSysctlParams(ctx, req) - if err != nil { - return diag.FromErr(err) + if len(res) > 0 { + req := lb.UpdateSysctParamsRequest{ + LBID: cluster.LBID, + SysctlParams: res, + } + _, err := c.CloudAPI().LB().UpdateSysctlParams(ctx, req) + if err != nil { + return diag.FromErr(err) + } } } diff --git a/internal/service/cloudapi/kvmvm/utility_data_source_compute.go b/internal/service/cloudapi/kvmvm/utility_data_source_compute.go index 86407bf..502b2de 100644 --- a/internal/service/cloudapi/kvmvm/utility_data_source_compute.go +++ b/internal/service/cloudapi/kvmvm/utility_data_source_compute.go @@ -48,7 +48,7 @@ func utilityDataComputeCheckPresence(ctx context.Context, d *schema.ResourceData computeRecord, err := c.CloudAPI().Compute().Get(ctx, req) if err != nil { - return *computeRecord, err + return compute.RecordCompute{}, err } return *computeRecord, nil diff --git a/internal/service/cloudapi/lb/resource_lb.go b/internal/service/cloudapi/lb/resource_lb.go index 28c34bf..66c8f23 100644 --- a/internal/service/cloudapi/lb/resource_lb.go +++ b/internal/service/cloudapi/lb/resource_lb.go @@ -92,16 +92,16 @@ func resourceLBCreate(ctx context.Context, d *schema.ResourceData, m interface{} req.HighlyAvailable = haMode.(bool) } if sysctlParams, ok := d.GetOk("sysctl_params"); ok { - syscrlSliceMaps := sysctlParams.([]map[string]string) + syscrlSliceMaps := sysctlParams.([]interface{}) res := make([]map[string]interface{}, 0, len(syscrlSliceMaps)) for _, syscrlMap := range syscrlSliceMaps { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } @@ -364,27 +364,28 @@ func resourceLBUpdate(ctx context.Context, d *schema.ResourceData, m interface{} } if d.HasChange("sysctl_params") { - syscrlSliceMaps := d.Get("sysctl_params").([]map[string]string) + syscrlSliceMaps := d.Get("sysctl_params").([]interface{}) res := make([]map[string]interface{}, 0, len(syscrlSliceMaps)) for _, syscrlMap := range syscrlSliceMaps { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } - - req := lb.UpdateSysctParamsRequest{ - LBID: uint64(d.Get("lb_id").(int)), - SysctlParams: res, - } - _, err := c.CloudAPI().LB().UpdateSysctlParams(ctx, req) - if err != nil { - return diag.FromErr(err) + if len(res) > 0 { + req := lb.UpdateSysctParamsRequest{ + LBID: uint64(d.Get("lb_id").(int)), + SysctlParams: res, + } + _, err := c.CloudAPI().LB().UpdateSysctlParams(ctx, req) + if err != nil { + return diag.FromErr(err) + } } } diff --git a/internal/service/cloudapi/lb/resource_lb_backend.go b/internal/service/cloudapi/lb/resource_lb_backend.go index 5ae240e..bc93c9c 100644 --- a/internal/service/cloudapi/lb/resource_lb_backend.go +++ b/internal/service/cloudapi/lb/resource_lb_backend.go @@ -1,379 +1,379 @@ -/* -Copyright (c) 2019-2022 Digital Energy Cloud Solutions LLC. All Rights Reserved. -Authors: -Petr Krutov, -Stanislav Solovev, -Kasim Baybikov, - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -/* -Terraform DECORT provider - manage resources provided by DECORT (Digital Energy Cloud -Orchestration Technology) with Terraform by Hashicorp. - -Source code: https://repository.basistech.ru/BASIS/terraform-provider-decort - -Please see README.md to learn where to place source code so that it -builds seamlessly. - -Documentation: https://repository.basistech.ru/BASIS/terraform-provider-decort/wiki -*/ - -package lb - -import ( - "context" - "strconv" - "strings" - - "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/validation" - log "github.com/sirupsen/logrus" - "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/lb" - "repository.basistech.ru/BASIS/terraform-provider-decort/internal/constants" - "repository.basistech.ru/BASIS/terraform-provider-decort/internal/controller" -) - -func resourceLBBackendCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendCreate") - - haveLBID, err := existLBID(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - - if !haveLBID { - return diag.Errorf("resourceLBBackendCreate: can't create LB backend because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) - } - - c := m.(*controller.ControllerCfg) - req := lb.BackendCreateRequest{} - - req.BackendName = d.Get("name").(string) - req.LBID = uint64(d.Get("lb_id").(int)) - - if algorithm, ok := d.GetOk("algorithm"); ok { - req.Algorithm = algorithm.(string) - } - if inter, ok := d.GetOk("inter"); ok { - req.Inter = uint64(inter.(int)) - } - if downinter, ok := d.GetOk("downinter"); ok { - req.DownInter = uint64(downinter.(int)) - } - if rise, ok := d.GetOk("rise"); ok { - req.Rise = uint64(rise.(int)) - } - if fall, ok := d.GetOk("fall"); ok { - req.Fall = uint64(fall.(int)) - } - if slowstart, ok := d.GetOk("slowstart"); ok { - req.SlowStart = uint64(slowstart.(int)) - } - if maxconn, ok := d.GetOk("maxconn"); ok { - req.MaxConn = uint64(maxconn.(int)) - } - if maxqueue, ok := d.GetOk("maxqueue"); ok { - req.MaxQueue = uint64(maxqueue.(int)) - } - if weight, ok := d.GetOk("weight"); ok { - req.Weight = uint64(weight.(int)) - } - - _, err = c.CloudAPI().LB().BackendCreate(ctx, req) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - d.SetId(strconv.Itoa(d.Get("lb_id").(int)) + "#" + d.Get("name").(string)) - - _, err = utilityLBBackendCheckPresence(ctx, d, m) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - return resourceLBBackendRead(ctx, d, m) -} - -func resourceLBBackendRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendRead") - - b, err := utilityLBBackendCheckPresence(ctx, d, m) - if b == nil { - d.SetId("") - return diag.FromErr(err) - } - - lbId, _ := strconv.ParseInt(strings.Split(d.Id(), "#")[0], 10, 32) - - flattenResourceLBBackend(d, b, lbId) - - return nil -} - -func resourceLBBackendDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendDelete") - - _, err := utilityLBBackendCheckPresence(ctx, d, m) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - c := m.(*controller.ControllerCfg) - req := lb.BackendDeleteRequest{ - LBID: uint64(d.Get("lb_id").(int)), - BackendName: d.Get("name").(string), - } - - _, err = c.CloudAPI().LB().BackendDelete(ctx, req) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - d.SetId("") - - return nil -} - -func resourceLBBackendUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendEdit") - c := m.(*controller.ControllerCfg) - - haveLBID, err := existLBID(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - - if !haveLBID { - return diag.Errorf("resourceLBBackendUpdate: can't update LB backend because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) - } - - req := lb.BackendUpdateRequest{ - LBID: uint64(d.Get("lb_id").(int)), - BackendName: d.Get("name").(string), - } - - if d.HasChange("algorithm") { - req.Algorithm = d.Get("algorithm").(string) - } - if d.HasChange("inter") { - req.Inter = uint64(d.Get("inter").(int)) - } - if d.HasChange("downinter") { - req.DownInter = uint64(d.Get("downinter").(int)) - } - if d.HasChange("rise") { - req.Rise = uint64(d.Get("rise").(int)) - } - if d.HasChange("fall") { - req.Fall = uint64(d.Get("fall").(int)) - } - if d.HasChange("slowstart") { - req.SlowStart = uint64(d.Get("slowstart").(int)) - } - if d.HasChange("maxconn") { - req.MaxConn = uint64(d.Get("maxconn").(int)) - } - if d.HasChange("maxqueue") { - req.MaxQueue = uint64(d.Get("maxqueue").(int)) - } - if d.HasChange("weight") { - req.Weight = uint64(d.Get("weight").(int)) - } - - _, err = c.CloudAPI().LB().BackendUpdate(ctx, req) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - return resourceLBBackendRead(ctx, d, m) -} - -func ResourceLBBackend() *schema.Resource { - return &schema.Resource{ - SchemaVersion: 1, - - CreateContext: resourceLBBackendCreate, - ReadContext: resourceLBBackendRead, - UpdateContext: resourceLBBackendUpdate, - DeleteContext: resourceLBBackendDelete, - - Importer: &schema.ResourceImporter{ - StateContext: schema.ImportStatePassthroughContext, - }, - - Timeouts: &schema.ResourceTimeout{ - Create: &constants.Timeout600s, - Read: &constants.Timeout300s, - Update: &constants.Timeout300s, - Delete: &constants.Timeout300s, - Default: &constants.Timeout300s, - }, - - Schema: map[string]*schema.Schema{ - "lb_id": { - Type: schema.TypeInt, - Required: true, - Description: "ID of the LB instance to backendCreate", - }, - "name": { - Type: schema.TypeString, - Required: true, - Description: "Must be unique among all backends of this LB - name of the new backend to create", - }, - "algorithm": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{"roundrobin", "static-rr", "leastconn"}, false), - }, - "guid": { - Type: schema.TypeString, - Computed: true, - }, - "downinter": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "fall": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "inter": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "maxconn": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "maxqueue": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "rise": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "slowstart": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "weight": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "servers": { - Type: schema.TypeList, - Optional: true, - Computed: true, - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "address": { - Type: schema.TypeString, - Optional: true, - Computed: true, - }, - "check": { - Type: schema.TypeString, - Optional: true, - Computed: true, - }, - "guid": { - Type: schema.TypeString, - Computed: true, - }, - "name": { - Type: schema.TypeString, - Optional: true, - Computed: true, - }, - "port": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "server_settings": { - Type: schema.TypeList, - Optional: true, - Computed: true, - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "downinter": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "fall": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "guid": { - Type: schema.TypeString, - Computed: true, - }, - "inter": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "maxconn": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "maxqueue": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "rise": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "slowstart": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "weight": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - }, - }, - }, - }, - }, - }, - }, - } -} +/* +Copyright (c) 2019-2022 Digital Energy Cloud Solutions LLC. All Rights Reserved. +Authors: +Petr Krutov, +Stanislav Solovev, +Kasim Baybikov, + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +/* +Terraform DECORT provider - manage resources provided by DECORT (Digital Energy Cloud +Orchestration Technology) with Terraform by Hashicorp. + +Source code: https://repository.basistech.ru/BASIS/terraform-provider-decort + +Please see README.md to learn where to place source code so that it +builds seamlessly. + +Documentation: https://repository.basistech.ru/BASIS/terraform-provider-decort/wiki +*/ + +package lb + +import ( + "context" + "strconv" + "strings" + + "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/validation" + log "github.com/sirupsen/logrus" + "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/lb" + "repository.basistech.ru/BASIS/terraform-provider-decort/internal/constants" + "repository.basistech.ru/BASIS/terraform-provider-decort/internal/controller" +) + +func resourceLBBackendCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendCreate") + + haveLBID, err := existLBID(ctx, d, m) + if err != nil { + return diag.FromErr(err) + } + + if !haveLBID { + return diag.Errorf("resourceLBBackendCreate: can't create LB backend because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) + } + + c := m.(*controller.ControllerCfg) + req := lb.BackendCreateRequest{} + + req.BackendName = d.Get("name").(string) + req.LBID = uint64(d.Get("lb_id").(int)) + + if algorithm, ok := d.GetOk("algorithm"); ok { + req.Algorithm = algorithm.(string) + } + if inter, ok := d.GetOk("inter"); ok { + req.Inter = uint64(inter.(int)) + } + if downinter, ok := d.GetOk("downinter"); ok { + req.DownInter = uint64(downinter.(int)) + } + if rise, ok := d.GetOk("rise"); ok { + req.Rise = uint64(rise.(int)) + } + if fall, ok := d.GetOk("fall"); ok { + req.Fall = uint64(fall.(int)) + } + if slowstart, ok := d.GetOk("slowstart"); ok { + req.SlowStart = uint64(slowstart.(int)) + } + if maxconn, ok := d.GetOk("maxconn"); ok { + req.MaxConn = uint64(maxconn.(int)) + } + if maxqueue, ok := d.GetOk("maxqueue"); ok { + req.MaxQueue = uint64(maxqueue.(int)) + } + if weight, ok := d.GetOk("weight"); ok { + req.Weight = uint64(weight.(int)) + } + + _, err = c.CloudAPI().LB().BackendCreate(ctx, req) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + d.SetId(strconv.Itoa(d.Get("lb_id").(int)) + "#" + d.Get("name").(string)) + + _, err = utilityLBBackendCheckPresence(ctx, d, m) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + return resourceLBBackendRead(ctx, d, m) +} + +func resourceLBBackendRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendRead") + + b, err := utilityLBBackendCheckPresence(ctx, d, m) + if b == nil { + d.SetId("") + return diag.FromErr(err) + } + + lbId, _ := strconv.ParseInt(strings.Split(d.Id(), "#")[0], 10, 32) + + flattenResourceLBBackend(d, b, lbId) + + return nil +} + +func resourceLBBackendDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendDelete") + + _, err := utilityLBBackendCheckPresence(ctx, d, m) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + c := m.(*controller.ControllerCfg) + req := lb.BackendDeleteRequest{ + LBID: uint64(d.Get("lb_id").(int)), + BackendName: d.Get("name").(string), + } + + _, err = c.CloudAPI().LB().BackendDelete(ctx, req) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + d.SetId("") + + return nil +} + +func resourceLBBackendUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendEdit") + c := m.(*controller.ControllerCfg) + + haveLBID, err := existLBID(ctx, d, m) + if err != nil { + return diag.FromErr(err) + } + + if !haveLBID { + return diag.Errorf("resourceLBBackendUpdate: can't update LB backend because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) + } + + req := lb.BackendUpdateRequest{ + LBID: uint64(d.Get("lb_id").(int)), + BackendName: d.Get("name").(string), + } + + if algorithm, ok := d.GetOk("algorithm"); ok { + req.Algorithm = algorithm.(string) + } + if inter, ok := d.GetOk("inter"); ok { + req.Inter = uint64(inter.(int)) + } + if downinter, ok := d.GetOk("downinter"); ok { + req.DownInter = uint64(downinter.(int)) + } + if rise, ok := d.GetOk("rise"); ok { + req.Rise = uint64(rise.(int)) + } + if fall, ok := d.GetOk("fall"); ok { + req.Fall = uint64(fall.(int)) + } + if slowstart, ok := d.GetOk("slowstart"); ok { + req.SlowStart = uint64(slowstart.(int)) + } + if maxconn, ok := d.GetOk("maxconn"); ok { + req.MaxConn = uint64(maxconn.(int)) + } + if maxqueue, ok := d.GetOk("maxqueue"); ok { + req.MaxQueue = uint64(maxqueue.(int)) + } + if weight, ok := d.GetOk("weight"); ok { + req.Weight = uint64(weight.(int)) + } + + _, err = c.CloudAPI().LB().BackendUpdate(ctx, req) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + return resourceLBBackendRead(ctx, d, m) +} + +func ResourceLBBackend() *schema.Resource { + return &schema.Resource{ + SchemaVersion: 1, + + CreateContext: resourceLBBackendCreate, + ReadContext: resourceLBBackendRead, + UpdateContext: resourceLBBackendUpdate, + DeleteContext: resourceLBBackendDelete, + + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + + Timeouts: &schema.ResourceTimeout{ + Create: &constants.Timeout600s, + Read: &constants.Timeout300s, + Update: &constants.Timeout300s, + Delete: &constants.Timeout300s, + Default: &constants.Timeout300s, + }, + + Schema: map[string]*schema.Schema{ + "lb_id": { + Type: schema.TypeInt, + Required: true, + Description: "ID of the LB instance to backendCreate", + }, + "name": { + Type: schema.TypeString, + Required: true, + Description: "Must be unique among all backends of this LB - name of the new backend to create", + }, + "algorithm": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ValidateFunc: validation.StringInSlice([]string{"roundrobin", "static-rr", "leastconn"}, false), + }, + "guid": { + Type: schema.TypeString, + Computed: true, + }, + "downinter": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "fall": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "inter": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "maxconn": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "maxqueue": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "rise": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "slowstart": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "weight": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "servers": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "address": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "check": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "guid": { + Type: schema.TypeString, + Computed: true, + }, + "name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "port": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "server_settings": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "downinter": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "fall": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "guid": { + Type: schema.TypeString, + Computed: true, + }, + "inter": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "maxconn": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "maxqueue": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "rise": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "slowstart": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "weight": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + }, + } +} diff --git a/internal/service/cloudapi/lb/resource_lb_backend_server.go b/internal/service/cloudapi/lb/resource_lb_backend_server.go index 0961239..ed28e9f 100644 --- a/internal/service/cloudapi/lb/resource_lb_backend_server.go +++ b/internal/service/cloudapi/lb/resource_lb_backend_server.go @@ -1,320 +1,320 @@ -/* -Copyright (c) 2019-2022 Digital Energy Cloud Solutions LLC. All Rights Reserved. -Authors: -Petr Krutov, -Stanislav Solovev, -Kasim Baybikov, - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -/* -Terraform DECORT provider - manage resources provided by DECORT (Digital Energy Cloud -Orchestration Technology) with Terraform by Hashicorp. - -Source code: https://repository.basistech.ru/BASIS/terraform-provider-decort - -Please see README.md to learn where to place source code so that it -builds seamlessly. - -Documentation: https://repository.basistech.ru/BASIS/terraform-provider-decort/wiki -*/ - -package lb - -import ( - "context" - "strconv" - "strings" - - "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/validation" - log "github.com/sirupsen/logrus" - "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/lb" - "repository.basistech.ru/BASIS/terraform-provider-decort/internal/constants" - "repository.basistech.ru/BASIS/terraform-provider-decort/internal/controller" -) - -func resourceLBBackendServerCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendServerCreate") - - haveLBID, err := existLBID(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - - if !haveLBID { - return diag.Errorf("resourceLBBackendServerCreate: can't create LB backend server because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) - } - - c := m.(*controller.ControllerCfg) - req := lb.BackendServerAddRequest{ - BackendName: d.Get("backend_name").(string), - ServerName: d.Get("name").(string), - Address: d.Get("address").(string), - LBID: uint64(d.Get("lb_id").(int)), - Port: uint64(d.Get("port").(int)), - } - - if check, ok := d.GetOk("check"); ok { - req.Check = check.(string) - } - - if inter, ok := d.GetOk("inter"); ok { - req.Inter = uint64(inter.(int)) - } - if downinter, ok := d.GetOk("downinter"); ok { - req.DownInter = uint64(downinter.(int)) - } - if rise, ok := d.GetOk("rise"); ok { - req.Rise = uint64(rise.(int)) - } - if fall, ok := d.GetOk("fall"); ok { - req.Fall = uint64(fall.(int)) - } - if slowstart, ok := d.GetOk("slowstart"); ok { - req.SlowStart = uint64(slowstart.(int)) - } - if maxconn, ok := d.GetOk("maxconn"); ok { - req.MaxConn = uint64(maxconn.(int)) - } - if maxqueue, ok := d.GetOk("maxqueue"); ok { - req.MaxQueue = uint64(maxqueue.(int)) - } - if weight, ok := d.GetOk("weight"); ok { - req.Weight = uint64(weight.(int)) - } - - _, err = c.CloudAPI().LB().BackendServerAdd(ctx, req) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - d.SetId(strconv.Itoa(d.Get("lb_id").(int)) + "#" + d.Get("backend_name").(string) + "#" + d.Get("name").(string)) - - _, err = utilityLBBackendServerCheckPresence(ctx, d, m) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - return resourceLBBackendServerRead(ctx, d, m) -} - -func resourceLBBackendServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendServerRead") - - s, err := utilityLBBackendServerCheckPresence(ctx, d, m) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - lbId, _ := strconv.ParseInt(strings.Split(d.Id(), "#")[0], 10, 32) - backendName := strings.Split(d.Id(), "#")[1] - - flattenResourceLBBackendServer(d, s, lbId, backendName) - - return nil -} - -func resourceLBBackendServerDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendServerDelete") - - _, err := utilityLBBackendServerCheckPresence(ctx, d, m) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - c := m.(*controller.ControllerCfg) - req := lb.BackendServerDeleteRequest{ - LBID: uint64(d.Get("lb_id").(int)), - BackendName: d.Get("backend_name").(string), - ServerName: d.Get("name").(string), - } - - _, err = c.CloudAPI().LB().BackendServerDelete(ctx, req) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - d.SetId("") - - return nil -} - -func resourceLBBackendServerUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceLBBackendServerEdit") - c := m.(*controller.ControllerCfg) - - haveLBID, err := existLBID(ctx, d, m) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - if !haveLBID { - return diag.Errorf("resourceLBBackendServerUpdate: can't update LB backend server because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) - } - - req := lb.BackendServerUpdateRequest{ - BackendName: d.Get("backend_name").(string), - LBID: uint64(d.Get("lb_id").(int)), - ServerName: d.Get("name").(string), - Address: d.Get("address").(string), - Port: uint64(d.Get("port").(int)), - } - - if d.HasChange("check") { - req.Check = d.Get("check").(string) - } - if d.HasChange("inter") { - req.Inter = uint64(d.Get("inter").(int)) - } - if d.HasChange("downinter") { - req.DownInter = uint64(d.Get("downinter").(int)) - } - if d.HasChange("rise") { - req.Rise = uint64(d.Get("rise").(int)) - } - if d.HasChange("fall") { - req.Fall = uint64(d.Get("fall").(int)) - } - if d.HasChange("slowstart") { - req.SlowStart = uint64(d.Get("slowstart").(int)) - } - if d.HasChange("maxconn") { - req.MaxConn = uint64(d.Get("maxconn").(int)) - } - if d.HasChange("maxqueue") { - req.MaxQueue = uint64(d.Get("maxqueue").(int)) - } - if d.HasChange("weight") { - req.Weight = uint64(d.Get("weight").(int)) - } - - _, err = c.CloudAPI().LB().BackendServerUpdate(ctx, req) - if err != nil { - d.SetId("") - return diag.FromErr(err) - } - - //TODO: перенести servers сюда - - return resourceLBBackendServerRead(ctx, d, m) -} - -func ResourceLBBackendServer() *schema.Resource { - return &schema.Resource{ - SchemaVersion: 1, - - CreateContext: resourceLBBackendServerCreate, - ReadContext: resourceLBBackendServerRead, - UpdateContext: resourceLBBackendServerUpdate, - DeleteContext: resourceLBBackendServerDelete, - - Importer: &schema.ResourceImporter{ - StateContext: schema.ImportStatePassthroughContext, - }, - - Timeouts: &schema.ResourceTimeout{ - Create: &constants.Timeout600s, - Read: &constants.Timeout300s, - Update: &constants.Timeout300s, - Delete: &constants.Timeout300s, - Default: &constants.Timeout300s, - }, - - Schema: map[string]*schema.Schema{ - "lb_id": { - Type: schema.TypeInt, - Required: true, - Description: "ID of the LB instance to backendCreate", - }, - "backend_name": { - Type: schema.TypeString, - Required: true, - Description: "Must be unique among all backends of this LB - name of the new backend to create", - }, - "name": { - Type: schema.TypeString, - Required: true, - Description: "Must be unique among all servers defined for this backend - name of the server definition to add.", - }, - "address": { - Type: schema.TypeString, - Required: true, - Description: "IP address of the server.", - }, - "port": { - Type: schema.TypeInt, - Required: true, - Description: "Port number on the server", - }, - "check": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{"disabled", "enabled"}, false), - Description: "set to disabled if this server should be used regardless of its state.", - }, - "guid": { - Type: schema.TypeString, - Computed: true, - }, - "downinter": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "fall": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "inter": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "maxconn": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "maxqueue": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "rise": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "slowstart": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - "weight": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - }, - }, - } -} +/* +Copyright (c) 2019-2022 Digital Energy Cloud Solutions LLC. All Rights Reserved. +Authors: +Petr Krutov, +Stanislav Solovev, +Kasim Baybikov, + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +/* +Terraform DECORT provider - manage resources provided by DECORT (Digital Energy Cloud +Orchestration Technology) with Terraform by Hashicorp. + +Source code: https://repository.basistech.ru/BASIS/terraform-provider-decort + +Please see README.md to learn where to place source code so that it +builds seamlessly. + +Documentation: https://repository.basistech.ru/BASIS/terraform-provider-decort/wiki +*/ + +package lb + +import ( + "context" + "strconv" + "strings" + + "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/validation" + log "github.com/sirupsen/logrus" + "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/lb" + "repository.basistech.ru/BASIS/terraform-provider-decort/internal/constants" + "repository.basistech.ru/BASIS/terraform-provider-decort/internal/controller" +) + +func resourceLBBackendServerCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendServerCreate") + + haveLBID, err := existLBID(ctx, d, m) + if err != nil { + return diag.FromErr(err) + } + + if !haveLBID { + return diag.Errorf("resourceLBBackendServerCreate: can't create LB backend server because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) + } + + c := m.(*controller.ControllerCfg) + req := lb.BackendServerAddRequest{ + BackendName: d.Get("backend_name").(string), + ServerName: d.Get("name").(string), + Address: d.Get("address").(string), + LBID: uint64(d.Get("lb_id").(int)), + Port: uint64(d.Get("port").(int)), + } + + if check, ok := d.GetOk("check"); ok { + req.Check = check.(string) + } + + if inter, ok := d.GetOk("inter"); ok { + req.Inter = uint64(inter.(int)) + } + if downinter, ok := d.GetOk("downinter"); ok { + req.DownInter = uint64(downinter.(int)) + } + if rise, ok := d.GetOk("rise"); ok { + req.Rise = uint64(rise.(int)) + } + if fall, ok := d.GetOk("fall"); ok { + req.Fall = uint64(fall.(int)) + } + if slowstart, ok := d.GetOk("slowstart"); ok { + req.SlowStart = uint64(slowstart.(int)) + } + if maxconn, ok := d.GetOk("maxconn"); ok { + req.MaxConn = uint64(maxconn.(int)) + } + if maxqueue, ok := d.GetOk("maxqueue"); ok { + req.MaxQueue = uint64(maxqueue.(int)) + } + if weight, ok := d.GetOk("weight"); ok { + req.Weight = uint64(weight.(int)) + } + + _, err = c.CloudAPI().LB().BackendServerAdd(ctx, req) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + d.SetId(strconv.Itoa(d.Get("lb_id").(int)) + "#" + d.Get("backend_name").(string) + "#" + d.Get("name").(string)) + + _, err = utilityLBBackendServerCheckPresence(ctx, d, m) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + return resourceLBBackendServerRead(ctx, d, m) +} + +func resourceLBBackendServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendServerRead") + + s, err := utilityLBBackendServerCheckPresence(ctx, d, m) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + lbId, _ := strconv.ParseInt(strings.Split(d.Id(), "#")[0], 10, 32) + backendName := strings.Split(d.Id(), "#")[1] + + flattenResourceLBBackendServer(d, s, lbId, backendName) + + return nil +} + +func resourceLBBackendServerDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendServerDelete") + + _, err := utilityLBBackendServerCheckPresence(ctx, d, m) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + c := m.(*controller.ControllerCfg) + req := lb.BackendServerDeleteRequest{ + LBID: uint64(d.Get("lb_id").(int)), + BackendName: d.Get("backend_name").(string), + ServerName: d.Get("name").(string), + } + + _, err = c.CloudAPI().LB().BackendServerDelete(ctx, req) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + d.SetId("") + + return nil +} + +func resourceLBBackendServerUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + log.Debugf("resourceLBBackendServerEdit") + c := m.(*controller.ControllerCfg) + + haveLBID, err := existLBID(ctx, d, m) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + if !haveLBID { + return diag.Errorf("resourceLBBackendServerUpdate: can't update LB backend server because LBID %d is not allowed or does not exist", d.Get("lb_id").(int)) + } + + req := lb.BackendServerUpdateRequest{ + BackendName: d.Get("backend_name").(string), + LBID: uint64(d.Get("lb_id").(int)), + ServerName: d.Get("name").(string), + Address: d.Get("address").(string), + Port: uint64(d.Get("port").(int)), + } + + if check, ok := d.GetOk("check"); ok { + req.Check = check.(string) + } + if inter, ok := d.GetOk("inter"); ok { + req.Inter = uint64(inter.(int)) + } + if downinter, ok := d.GetOk("downinter"); ok { + req.DownInter = uint64(downinter.(int)) + } + if rise, ok := d.GetOk("rise"); ok { + req.Rise = uint64(rise.(int)) + } + if fall, ok := d.GetOk("fall"); ok { + req.Fall = uint64(fall.(int)) + } + if slowstart, ok := d.GetOk("slowstart"); ok { + req.SlowStart = uint64(slowstart.(int)) + } + if maxconn, ok := d.GetOk("maxconn"); ok { + req.MaxConn = uint64(maxconn.(int)) + } + if maxqueue, ok := d.GetOk("maxqueue"); ok { + req.MaxQueue = uint64(maxqueue.(int)) + } + if weight, ok := d.GetOk("weight"); ok { + req.Weight = uint64(weight.(int)) + } + + _, err = c.CloudAPI().LB().BackendServerUpdate(ctx, req) + if err != nil { + d.SetId("") + return diag.FromErr(err) + } + + //TODO: перенести servers сюда + + return resourceLBBackendServerRead(ctx, d, m) +} + +func ResourceLBBackendServer() *schema.Resource { + return &schema.Resource{ + SchemaVersion: 1, + + CreateContext: resourceLBBackendServerCreate, + ReadContext: resourceLBBackendServerRead, + UpdateContext: resourceLBBackendServerUpdate, + DeleteContext: resourceLBBackendServerDelete, + + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + + Timeouts: &schema.ResourceTimeout{ + Create: &constants.Timeout600s, + Read: &constants.Timeout300s, + Update: &constants.Timeout300s, + Delete: &constants.Timeout300s, + Default: &constants.Timeout300s, + }, + + Schema: map[string]*schema.Schema{ + "lb_id": { + Type: schema.TypeInt, + Required: true, + Description: "ID of the LB instance to backendCreate", + }, + "backend_name": { + Type: schema.TypeString, + Required: true, + Description: "Must be unique among all backends of this LB - name of the new backend to create", + }, + "name": { + Type: schema.TypeString, + Required: true, + Description: "Must be unique among all servers defined for this backend - name of the server definition to add.", + }, + "address": { + Type: schema.TypeString, + Required: true, + Description: "IP address of the server.", + }, + "port": { + Type: schema.TypeInt, + Required: true, + Description: "Port number on the server", + }, + "check": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ValidateFunc: validation.StringInSlice([]string{"disabled", "enabled"}, false), + Description: "set to disabled if this server should be used regardless of its state.", + }, + "guid": { + Type: schema.TypeString, + Computed: true, + }, + "downinter": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "fall": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "inter": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "maxconn": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "maxqueue": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "rise": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "slowstart": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "weight": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + }, + } +} diff --git a/internal/service/cloudapi/vins/resource_vins.go b/internal/service/cloudapi/vins/resource_vins.go index 5fc166d..9b9356d 100644 --- a/internal/service/cloudapi/vins/resource_vins.go +++ b/internal/service/cloudapi/vins/resource_vins.go @@ -718,7 +718,7 @@ func ipSchemaMake() map[string]*schema.Schema { "type": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringInSlice([]string{"DHCP", "VIP", "EXCLUDE"}, false), + ValidateFunc: validation.StringInSlice([]string{"DHCP", "VIP", "EXCLUDED"}, false), }, "ip_addr": { Type: schema.TypeString, diff --git a/internal/service/cloudbroker/ic/input_checks.go b/internal/service/cloudbroker/ic/input_checks.go index ada7925..1b56891 100644 --- a/internal/service/cloudbroker/ic/input_checks.go +++ b/internal/service/cloudbroker/ic/input_checks.go @@ -186,6 +186,10 @@ func ExistVins(ctx context.Context, vinsId uint64, c *controller.ControllerCfg) func ExistVinses(ctx context.Context, vinsIds []uint64, c *controller.ControllerCfg) []error { var errs []error + if len(vinsIds) == 0 { + return errs + } + req := cb_vins.ListRequest{ IncludeDeleted: false, } @@ -217,6 +221,10 @@ func ExistVinses(ctx context.Context, vinsIds []uint64, c *controller.Controller func ExistExtNets(ctx context.Context, extNetIds []uint64, c *controller.ControllerCfg) []error { var errs []error + if len(extNetIds) == 0 { + return errs + } + req := cb_extnet.ListRequest{} extNetList, err := c.CloudBroker().ExtNet().List(ctx, req) @@ -246,6 +254,10 @@ func ExistExtNets(ctx context.Context, extNetIds []uint64, c *controller.Control func ExistVFPools(ctx context.Context, vfpoolIds []uint64, c *controller.ControllerCfg) []error { var errs []error + if len(vfpoolIds) == 0 { + return errs + } + req := cb_vfpool.ListRequest{} vfpoolList, err := c.CloudBroker().VFPool().List(ctx, req) diff --git a/internal/service/cloudbroker/k8s/resource_k8s_cp.go b/internal/service/cloudbroker/k8s/resource_k8s_cp.go index 57551fe..f947300 100644 --- a/internal/service/cloudbroker/k8s/resource_k8s_cp.go +++ b/internal/service/cloudbroker/k8s/resource_k8s_cp.go @@ -167,16 +167,16 @@ func resourceK8sCPCreate(ctx context.Context, d *schema.ResourceData, m interfac } if lbSysctlParams, ok := d.GetOk("lb_sysctl_params"); ok { - syscrlSliceMaps := lbSysctlParams.([]map[string]string) + syscrlSliceMaps := lbSysctlParams.([]interface{}) res := make([]map[string]interface{}, 0, len(syscrlSliceMaps)) for _, syscrlMap := range syscrlSliceMaps { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } @@ -428,7 +428,7 @@ func resourceK8sCPDelete(ctx context.Context, d *schema.ResourceData, m interfac c := m.(*controller.ControllerCfg) req := k8s.DeleteRequest{ - K8SID: k8sData.ID, + K8SID: k8sData.ID, } if val, ok := d.GetOk("permanently"); ok { @@ -586,25 +586,28 @@ func handleStart(ctx context.Context, c *controller.ControllerCfg, start bool, k func handleUpdateLbSysctlParams(ctx context.Context, d *schema.ResourceData, c *controller.ControllerCfg, k8sData *k8s.RecordK8S) error { - lbSysctlParams := d.Get("lb_sysctl_params").([]map[string]string) + lbSysctlParams := d.Get("lb_sysctl_params").([]interface{}) res := make([]map[string]interface{}, 0, len(lbSysctlParams)) for _, syscrlMap := range lbSysctlParams { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } - req := lb.UpdateSysctParamsRequest{ - LBID: k8sData.LBID, - SysctlParams: res, - } + if len(res) > 0 { + req := lb.UpdateSysctParamsRequest{ + LBID: k8sData.LBID, + SysctlParams: res, + } - _, err := c.CloudBroker().LB().UpdateSysctlParams(ctx, req) - return err + _, err := c.CloudBroker().LB().UpdateSysctlParams(ctx, req) + return err + } + return nil } diff --git a/internal/service/cloudbroker/kvmvm/schema.go b/internal/service/cloudbroker/kvmvm/schema.go index 4bcc001..f239408 100644 --- a/internal/service/cloudbroker/kvmvm/schema.go +++ b/internal/service/cloudbroker/kvmvm/schema.go @@ -193,12 +193,6 @@ func dataSourceComputeSchemaMake() map[string]*schema.Schema { Type: schema.TypeInt, Computed: true, }, - "depresent": { - Type: schema.TypeBool, - Optional: true, - Default: true, - Description: "whether to depresent compute disks from node or not", - }, "desc": { Type: schema.TypeString, Computed: true, @@ -2849,6 +2843,12 @@ func resourceComputeSchemaMake() map[string]*schema.Schema { Computed: true, Description: "Optional text description of this compute instance.", }, + "depresent": { + Type: schema.TypeBool, + Optional: true, + Default: true, + Description: "whether to depresent compute disks from node or not", + }, "started": { Type: schema.TypeBool, Optional: true, diff --git a/internal/service/cloudbroker/lb/resource_lb.go b/internal/service/cloudbroker/lb/resource_lb.go index 7558739..ce52403 100644 --- a/internal/service/cloudbroker/lb/resource_lb.go +++ b/internal/service/cloudbroker/lb/resource_lb.go @@ -71,16 +71,16 @@ func resourceLBCreate(ctx context.Context, d *schema.ResourceData, m interface{} req.HighlyAvailable = haMode.(bool) } if sysctlParams, ok := d.GetOk("sysctl_params"); ok { - syscrlSliceMaps := sysctlParams.([]map[string]string) + syscrlSliceMaps := sysctlParams.([]interface{}) res := make([]map[string]interface{}, 0, len(syscrlSliceMaps)) for _, syscrlMap := range syscrlSliceMaps { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } @@ -349,26 +349,28 @@ func resourceLbEnable(ctx context.Context, lbId uint64, m interface{}) error { func resourceLbChangeSysctlParams(ctx context.Context, d *schema.ResourceData, lbId uint64, m interface{}) error { c := m.(*controller.ControllerCfg) - syscrlSliceMaps := d.Get("sysctl_params").([]map[string]string) + syscrlSliceMaps := d.Get("sysctl_params").([]interface{}) res := make([]map[string]interface{}, 0, len(syscrlSliceMaps)) for _, syscrlMap := range syscrlSliceMaps { tempMap := make(map[string]interface{}) - for k, v := range syscrlMap { - if intVal, err := strconv.Atoi(v); err == nil { + for k, v := range syscrlMap.(map[string]interface{}) { + if intVal, err := strconv.Atoi(v.(string)); err == nil { tempMap[k] = intVal continue } - tempMap[k] = v + tempMap[k] = v.(string) } res = append(res, tempMap) } - - req := lb.UpdateSysctParamsRequest{ - LBID: lbId, - SysctlParams: res, + if len(res) > 0 { + req := lb.UpdateSysctParamsRequest{ + LBID: lbId, + SysctlParams: res, + } + _, err := c.CloudBroker().LB().UpdateSysctlParams(ctx, req) + return err } - _, err := c.CloudBroker().LB().UpdateSysctlParams(ctx, req) - return err + return nil } func resourceLbDisable(ctx context.Context, lbId uint64, m interface{}) error { diff --git a/internal/service/cloudbroker/lb/resource_lb_backend.go b/internal/service/cloudbroker/lb/resource_lb_backend.go index 171c2ea..6dbb379 100644 --- a/internal/service/cloudbroker/lb/resource_lb_backend.go +++ b/internal/service/cloudbroker/lb/resource_lb_backend.go @@ -150,32 +150,32 @@ func resourceLBBackendUpdate(ctx context.Context, d *schema.ResourceData, m inte BackendName: d.Get("name").(string), } - if d.HasChange("algorithm") { - req.Algorithm = d.Get("algorithm").(string) + if algorithm, ok := d.GetOk("algorithm"); ok { + req.Algorithm = algorithm.(string) } - if d.HasChange("inter") { - req.Inter = uint64(d.Get("inter").(int)) + if inter, ok := d.GetOk("inter"); ok { + req.Inter = uint64(inter.(int)) } - if d.HasChange("downinter") { - req.DownInter = uint64(d.Get("downinter").(int)) + if downinter, ok := d.GetOk("downinter"); ok { + req.DownInter = uint64(downinter.(int)) } - if d.HasChange("rise") { - req.Rise = uint64(d.Get("rise").(int)) + if rise, ok := d.GetOk("rise"); ok { + req.Rise = uint64(rise.(int)) } - if d.HasChange("fall") { - req.Fall = uint64(d.Get("fall").(int)) + if fall, ok := d.GetOk("fall"); ok { + req.Fall = uint64(fall.(int)) } - if d.HasChange("slowstart") { - req.SlowStart = uint64(d.Get("slowstart").(int)) + if slowstart, ok := d.GetOk("slowstart"); ok { + req.SlowStart = uint64(slowstart.(int)) } - if d.HasChange("maxconn") { - req.MaxConn = uint64(d.Get("maxconn").(int)) + if maxconn, ok := d.GetOk("maxconn"); ok { + req.MaxConn = uint64(maxconn.(int)) } - if d.HasChange("maxqueue") { - req.MaxQueue = uint64(d.Get("maxqueue").(int)) + if maxqueue, ok := d.GetOk("maxqueue"); ok { + req.MaxQueue = uint64(maxqueue.(int)) } - if d.HasChange("weight") { - req.Weight = uint64(d.Get("weight").(int)) + if weight, ok := d.GetOk("weight"); ok { + req.Weight = uint64(weight.(int)) } _, err := c.CloudBroker().LB().BackendUpdate(ctx, req) diff --git a/internal/service/cloudbroker/lb/resource_lb_backend_server.go b/internal/service/cloudbroker/lb/resource_lb_backend_server.go index 9d133df..bb44951 100644 --- a/internal/service/cloudbroker/lb/resource_lb_backend_server.go +++ b/internal/service/cloudbroker/lb/resource_lb_backend_server.go @@ -161,32 +161,32 @@ func resourceLBBackendServerUpdate(ctx context.Context, d *schema.ResourceData, Port: uint64(d.Get("port").(int)), } - if d.HasChange("check") { - req.Check = d.Get("check").(string) + if check, ok := d.GetOk("check"); ok { + req.Check = check.(string) } - if d.HasChange("inter") { - req.Inter = uint64(d.Get("inter").(int)) + if inter, ok := d.GetOk("inter"); ok { + req.Inter = uint64(inter.(int)) } - if d.HasChange("downinter") { - req.DownInter = uint64(d.Get("downinter").(int)) + if downinter, ok := d.GetOk("downinter"); ok { + req.DownInter = uint64(downinter.(int)) } - if d.HasChange("rise") { - req.Rise = uint64(d.Get("rise").(int)) + if rise, ok := d.GetOk("rise"); ok { + req.Rise = uint64(rise.(int)) } - if d.HasChange("fall") { - req.Fall = uint64(d.Get("fall").(int)) + if fall, ok := d.GetOk("fall"); ok { + req.Fall = uint64(fall.(int)) } - if d.HasChange("slowstart") { - req.SlowStart = uint64(d.Get("slowstart").(int)) + if slowstart, ok := d.GetOk("slowstart"); ok { + req.SlowStart = uint64(slowstart.(int)) } - if d.HasChange("maxconn") { - req.MaxConn = uint64(d.Get("maxconn").(int)) + if maxconn, ok := d.GetOk("maxconn"); ok { + req.MaxConn = uint64(maxconn.(int)) } - if d.HasChange("maxqueue") { - req.MaxQueue = uint64(d.Get("maxqueue").(int)) + if maxqueue, ok := d.GetOk("maxqueue"); ok { + req.MaxQueue = uint64(maxqueue.(int)) } - if d.HasChange("weight") { - req.Weight = uint64(d.Get("weight").(int)) + if weight, ok := d.GetOk("weight"); ok { + req.Weight = uint64(weight.(int)) } _, err := c.CloudBroker().LB().BackendServerUpdate(ctx, req) diff --git a/internal/service/cloudbroker/node/flattens.go b/internal/service/cloudbroker/node/flattens.go index 85c3fc7..b493b02 100644 --- a/internal/service/cloudbroker/node/flattens.go +++ b/internal/service/cloudbroker/node/flattens.go @@ -185,7 +185,20 @@ func flattenNicInfo(infos node.ListNicInfo) []map[string]interface{} { "num_vfs": item.NumVFS, "os_name": item.OSName, "pci_slot": item.PCISlot, - "vf_list": flattenNodeItem(item.VFList), + "vf_list": flattenVFList(item.VFList), + } + res = append(res, temp) + } + return res +} + +func flattenVFList(vfList []interface{}) []map[string]interface{} { + res := make([]map[string]interface{}, 0, len(vfList)) + for _, v := range vfList { + vConv := v.(map[string]interface{}) + temp := map[string]interface{}{ + "fn_id": vConv["fnId"], + "pci_slot": vConv["pciSlot"], } res = append(res, temp) } diff --git a/internal/service/cloudbroker/node/schema.go b/internal/service/cloudbroker/node/schema.go index 236d85b..2af9791 100644 --- a/internal/service/cloudbroker/node/schema.go +++ b/internal/service/cloudbroker/node/schema.go @@ -164,8 +164,17 @@ func dataSourceNodeSchemaMake() map[string]*schema.Schema { "vf_list": { Type: schema.TypeList, Computed: true, - Elem: &schema.Schema{ - Type: schema.TypeString, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "fn_id": { + Type: schema.TypeInt, + Computed: true, + }, + "pci_slot": { + Type: schema.TypeString, + Computed: true, + }, + }, }, }, }, @@ -477,8 +486,17 @@ func dataSourceNodeListSchemaMake() map[string]*schema.Schema { "vf_list": { Type: schema.TypeList, Computed: true, - Elem: &schema.Schema{ - Type: schema.TypeString, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "fn_id": { + Type: schema.TypeInt, + Computed: true, + }, + "pci_slot": { + Type: schema.TypeString, + Computed: true, + }, + }, }, }, }, diff --git a/internal/service/cloudbroker/sep/resource_sep.go b/internal/service/cloudbroker/sep/resource_sep.go index 1994ce8..44f8c08 100644 --- a/internal/service/cloudbroker/sep/resource_sep.go +++ b/internal/service/cloudbroker/sep/resource_sep.go @@ -34,6 +34,7 @@ package sep import ( "context" + "encoding/json" "strconv" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" @@ -69,7 +70,7 @@ func resourceSepCreate(ctx context.Context, d *schema.ResourceData, m interface{ } var consumedNIDs []uint64 - for _, item := range d.Get("consumed_by").([]interface{}) { + for _, item := range d.Get("consumed_by").(*schema.Set).List() { consumedNIDs = append(consumedNIDs, uint64(item.(int))) } @@ -172,84 +173,9 @@ func resourceSepDelete(ctx context.Context, d *schema.ResourceData, m interface{ } func resourceSepUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - log.Debugf("resourceSepUpdate: called for %s, id: %d", d.Get("name").(string), d.Get("sep_id").(int)) - c := m.(*controller.ControllerCfg) - - if diags := checkParamsExistence(ctx, d, c); diags != nil { - return diags - } - - if d.HasChange("account_ids") { - err := resourceSepChangeAccess(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("access_to_pool") { - err := resourceSepChangeAccessToPool(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("decommission") { - err := resourceSepDecommission(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("upd_capacity_limit") { - err := resourceSepUpdateCapacityLimit(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("config") { - err := resourceSepUpdateConfig(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("field_edit") { - err := resourceSepFieldEdit(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("enable") { - err := resourceSepChangeEnabled(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("consumed_by") { - err := resourceSepUpdateNodes(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - if d.HasChange("provided_by") { - err := resourceSepUpdateProviders(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } + return diag.Errorf( + "SEP upgrade is not possible via terraform") - if d.HasChange("pools") { - err := resourceSepChangePools(ctx, d, m) - if err != nil { - return diag.FromErr(err) - } - } - - return resourceSepRead(ctx, d, m) } func resourceSepChangeAccess(ctx context.Context, d *schema.ResourceData, m interface{}) error { @@ -371,50 +297,50 @@ func resourceSepChangePools(ctx context.Context, d *schema.ResourceData, m inter newPoolsList := newPoolsInterface.(*schema.Set).Difference(oldPoolsInterface.(*schema.Set)).List() for _, pool := range newPoolsList { - addPoolReq := sep.AddPoolRequest{ - SEPID: uint64(d.Get("sep_id").(int)), - Sync: true, - Pool: pool.(string), - } - - _, err := c.CloudBroker().SEP().AddPool(ctx, addPoolReq) - if err != nil { - return err - } - } + poolItem := pool.(map[string]interface{}) - return nil -} - -func resourceSepDecommission(ctx context.Context, d *schema.ResourceData, m interface{}) error { - c := m.(*controller.ControllerCfg) + accessAccountIDs := []uint64{} - decommission := d.Get("decommission").(bool) - if decommission { - req := sep.DecommissionRequest{ - SEPID: uint64(d.Get("sep_id").(int)), - ClearPhisically: d.Get("clear_physically").(bool), + for _, v := range poolItem["access_account_ids"].([]interface{}) { + accessAccountIDs = append(accessAccountIDs, uint64(v.(int))) } - - _, err := c.CloudBroker().SEP().Decommission(ctx, req) - if err != nil { - return err + accessResGroupIDs := []uint64{} + for _, v := range poolItem["access_res_group_ids"].([]interface{}) { + accessResGroupIDs = append(accessResGroupIDs, uint64(v.(int))) } - } - return nil -} + types := []string{} + for _, v := range poolItem["types"].([]interface{}) { + types = append(types, v.(string)) + } -func resourceSepUpdateCapacityLimit(ctx context.Context, d *schema.ResourceData, m interface{}) error { - c := m.(*controller.ControllerCfg) + uris := []UrisModel{} + list := poolItem["uris"].(*schema.Set).List() + for _, v := range list { + if m, ok := v.(map[string]interface{}); ok { + uris = append(uris, UrisModel{IP: m["ip"].(string), + Port: uint64(m["port"].(int)), + }) + } + } - updCapacityLimit := d.Get("upd_capacity_limit").(bool) - if updCapacityLimit { - req := sep.UpdateCapacityLimitRequest{ + poolValue := PoolModel{ + AccessAccountIDs: accessAccountIDs, + AccessResGroupIDs: accessResGroupIDs, + Name: poolItem["name"].(string), + Types: types, + Uris: uris, + UsageLimit: uint64(poolItem["usage_limit"].(int)), + } + marshalPool, _ := json.Marshal(poolValue) + log.Debugf(string(marshalPool)) + addPoolReq := sep.AddPoolRequest{ SEPID: uint64(d.Get("sep_id").(int)), + Sync: true, + Pool: string(marshalPool), } - _, err := c.CloudBroker().SEP().UpdateCapacityLimit(ctx, req) + _, err := c.CloudBroker().SEP().AddPool(ctx, addPoolReq) if err != nil { return err } @@ -581,3 +507,18 @@ func ResourceSep() *schema.Resource { Schema: resourceSepSchemaMake(), } } + +type PoolModel struct { + AccessAccountIDs []uint64 `json:"accessAccountIds"` + AccessResGroupIDs []uint64 `json:"accessResGroupIds"` + Name string `json:"name"` + Types []string `json:"types"` + Uris []UrisModel `json:"uris"` + UsageLimit uint64 `json:"usage_limit"` +} + +type UrisModel struct { + IP string `json:"ip"` + + Port uint64 `json:"port"` +} diff --git a/internal/service/cloudbroker/sep/schema.go b/internal/service/cloudbroker/sep/schema.go index 3439215..57e7b48 100644 --- a/internal/service/cloudbroker/sep/schema.go +++ b/internal/service/cloudbroker/sep/schema.go @@ -533,67 +533,78 @@ func resourceSepSchemaMake() map[string]*schema.Schema { Type: schema.TypeInt, }, }, - "clear_physically": { - Type: schema.TypeBool, - Optional: true, - Default: true, - Description: "clear disks and images physically", - }, - "decommission": { - Type: schema.TypeBool, - Optional: true, - Default: false, - Description: "unlink everything that exists from SEP", - }, "enable": { Type: schema.TypeBool, Optional: true, Default: false, Description: "enable SEP after creation", }, - "field_edit": { - Type: schema.TypeList, - MaxItems: 1, - Optional: true, - Computed: true, - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "field_name": { - Type: schema.TypeString, - Required: true, - Description: "field name", - }, - "field_value": { - Type: schema.TypeString, - Required: true, - Description: "field value", - }, - "field_type": { - Type: schema.TypeString, - Required: true, - Description: "field type", - }, - }, - }, - }, "sep_id": { Type: schema.TypeInt, Optional: true, Computed: true, Description: "sep type des id", }, - "upd_capacity_limit": { - Type: schema.TypeBool, - Optional: true, - Default: false, - Description: "Update SEP capacity limit", - }, "pools": { Type: schema.TypeSet, Optional: true, Description: "add/delete pools to/from sep", - Elem: &schema.Schema{ - Type: schema.TypeString, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "access_account_ids": { + Type: schema.TypeList, + Required: true, + Description: "access account ids", + Elem: &schema.Schema{ + Type: schema.TypeInt, + }, + }, + "access_res_group_ids": { + Type: schema.TypeList, + Required: true, + Description: "access res group ids", + Elem: &schema.Schema{ + Type: schema.TypeInt, + }, + }, + "name": { + Type: schema.TypeString, + Optional: true, + Description: "name", + }, + "types": { + Type: schema.TypeList, + Optional: true, + Description: "types", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "uris": { + Type: schema.TypeSet, + Optional: true, + Description: "uris", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "ip": { + Type: schema.TypeString, + Required: true, + Description: "ip", + }, + "port": { + Type: schema.TypeInt, + Required: true, + Description: "port", + }, + }, + }, + }, + "usage_limit": { + Type: schema.TypeInt, + Required: true, + Description: "usage limit", + }, + }, }, }, "ckey": { @@ -610,9 +621,10 @@ func resourceSepSchemaMake() map[string]*schema.Schema { }, }, "config": { - Type: schema.TypeString, - Required: true, - Description: "sep config string", + Type: schema.TypeString, + Required: true, + Description: "sep config string", + DiffSuppressFunc: resourceSepDiffSupperss, }, "consumed_by": { Type: schema.TypeSet, diff --git a/internal/service/cloudbroker/sep/utility_sep.go b/internal/service/cloudbroker/sep/utility_sep.go index aeae4e8..e456c48 100644 --- a/internal/service/cloudbroker/sep/utility_sep.go +++ b/internal/service/cloudbroker/sep/utility_sep.go @@ -34,6 +34,8 @@ package sep import ( "context" + "encoding/json" + "reflect" "strconv" log "github.com/sirupsen/logrus" @@ -67,3 +69,15 @@ func utilitySepCheckPresence(ctx context.Context, d *schema.ResourceData, m inte return sep, nil } + +func resourceSepDiffSupperss(key, oldVal, newVal string, d *schema.ResourceData) bool { + var v1, v2 interface{} + json.Unmarshal([]byte(newVal), &v1) + json.Unmarshal([]byte(oldVal), &v2) + if reflect.DeepEqual(v1, v2) { + log.Debugf("resourceSepDiffSupperss: key=%s, oldVal=%q, newVal=%q -> suppress=TRUE", key, oldVal, newVal) + return true + } + log.Debugf("resourceSepDiffSupperss: key=%s, oldVal=%q, newVal=%q -> suppress=FALSE", key, oldVal, newVal) + return false +} diff --git a/internal/service/cloudbroker/user/data_source_user_list.go b/internal/service/cloudbroker/user/data_source_user_list.go index 9141923..9d5ab98 100644 --- a/internal/service/cloudbroker/user/data_source_user_list.go +++ b/internal/service/cloudbroker/user/data_source_user_list.go @@ -33,6 +33,7 @@ package user import ( "context" + "github.com/google/uuid" log "github.com/sirupsen/logrus" diff --git a/internal/service/cloudbroker/user/flattens.go b/internal/service/cloudbroker/user/flattens.go index 7ced2c3..770c646 100644 --- a/internal/service/cloudbroker/user/flattens.go +++ b/internal/service/cloudbroker/user/flattens.go @@ -139,7 +139,7 @@ func flattenUserList(users *user.ListUsers) []map[string]interface{} { temp := map[string]interface{}{ "ckey": item.CKey, "meta": flattens.FlattenMeta(item.Meta), - "api_access": item.APIAccess, + "apiaccess": item.APIAccess, "active": item.Active, "authkey": item.AuthKey, "authkeys": flattenItemUser(item.AuthKeys), diff --git a/internal/service/cloudbroker/vins/schema.go b/internal/service/cloudbroker/vins/schema.go index 1d4b6e7..74c7859 100644 --- a/internal/service/cloudbroker/vins/schema.go +++ b/internal/service/cloudbroker/vins/schema.go @@ -2018,7 +2018,7 @@ func resourceVinsSchemaMake() map[string]*schema.Schema { "type": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringInSlice([]string{"DHCP", "VIP", "EXCLUDE"}, false), + ValidateFunc: validation.StringInSlice([]string{"DHCP", "VIP", "EXCLUDED"}, false), }, "ip_addr": { Type: schema.TypeString, diff --git a/samples/cloudapi/k8s/resource_k8s/main.tf b/samples/cloudapi/k8s/resource_k8s/main.tf index 163663f..0ecea74 100644 --- a/samples/cloudapi/k8s/resource_k8s/main.tf +++ b/samples/cloudapi/k8s/resource_k8s/main.tf @@ -222,7 +222,7 @@ resource "decort_k8s" "cluster" { # пользовательские значения sysctl для LB # опциональный параметр # тип - список мап - lb_sysctl_params = [{ text = "1", text = "some" }] + lb_sysctl_params = [{ key1 = "value1", key2 = "value2" }] # позволяет создать схему отказоустройчивой LB # опциональный параметр diff --git a/samples/cloudapi/k8s/resource_k8s_cp/main.tf b/samples/cloudapi/k8s/resource_k8s_cp/main.tf index 7e53040..172ee9a 100644 --- a/samples/cloudapi/k8s/resource_k8s_cp/main.tf +++ b/samples/cloudapi/k8s/resource_k8s_cp/main.tf @@ -162,7 +162,7 @@ resource "decort_k8s_cp" "cp" { #пользовательские значения sysctl для LB #опциональный параметр #тип - список мап - lb_sysctl_params = [{text = "1", text = "some"}] + lb_sysctl_params = [{ key1 = "value1", key2 = "value2" }] #команда destroy удаляет кластер без возможности восстановления #опциональный параметр diff --git a/samples/cloudapi/lb/resource_lb/main.tf b/samples/cloudapi/lb/resource_lb/main.tf index 99e26eb..f3b19ca 100644 --- a/samples/cloudapi/lb/resource_lb/main.tf +++ b/samples/cloudapi/lb/resource_lb/main.tf @@ -111,8 +111,7 @@ resource "decort_lb" "lb" { #пользовательские значения sysctl для LB #опциональный параметр #тип - список мап - sysctl_params = [{ text = "1", text = "some" }] - + sysctl_params = [{ key1 = "value1", key2 = "value2" }] } output "test" { diff --git a/samples/cloudbroker/grid/decort_cb_grid_get_diagnosis/main.tf b/samples/cloudbroker/grid/decort_cb_grid_get_diagnosis/main.tf new file mode 100644 index 0000000..a1db4d6 --- /dev/null +++ b/samples/cloudbroker/grid/decort_cb_grid_get_diagnosis/main.tf @@ -0,0 +1,39 @@ +/* +Пример использования +Получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. +*/ + +#Расскомментируйте этот код, +#и внесите необходимые правки в версию и путь, +#чтобы работать с установленным вручную (не через hashicorp provider registry) провайдером +/* +terraform { + required_providers { + decort = { + source = "basis/decort/decort" + version = "" + } + } +} +*/ + +provider "decort" { + authenticator = "decs3o" + #controller_url = + controller_url = "https://ds1.digitalenergy.online" + #oauth2_url = + oauth2_url = "https://sso.digitalenergy.online" + allow_unverified_ssl = true +} + +data "decort_cb_grid_get_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} + +output "test" { + value = data.decort_cb_grid_get_diagnosis.grid +} diff --git a/samples/cloudbroker/grid/decort_cb_grid_post_diagnosis/main.tf b/samples/cloudbroker/grid/decort_cb_grid_post_diagnosis/main.tf new file mode 100644 index 0000000..75c61bd --- /dev/null +++ b/samples/cloudbroker/grid/decort_cb_grid_post_diagnosis/main.tf @@ -0,0 +1,39 @@ +/* +Пример использования +Получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. +*/ + +#Расскомментируйте этот код, +#и внесите необходимые правки в версию и путь, +#чтобы работать с установленным вручную (не через hashicorp provider registry) провайдером +/* +terraform { + required_providers { + decort = { + source = "basis/decort/decort" + version = "" + } + } +} +*/ + +provider "decort" { + authenticator = "decs3o" + #controller_url = + controller_url = "https://ds1.digitalenergy.online" + #oauth2_url = + oauth2_url = "https://sso.digitalenergy.online" + allow_unverified_ssl = true +} + +data "decort_cb_grid_post_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} + +output "test" { + value = data.decort_cb_grid_post_diagnosis.grid +} diff --git a/samples/cloudbroker/k8s/resource_k8s_cp/main.tf b/samples/cloudbroker/k8s/resource_k8s_cp/main.tf index 15264a6..9a03684 100644 --- a/samples/cloudbroker/k8s/resource_k8s_cp/main.tf +++ b/samples/cloudbroker/k8s/resource_k8s_cp/main.tf @@ -178,7 +178,7 @@ resource "decort_cb_k8s_cp" "cp" { #пользовательские значения sysctl для LB #опциональный параметр #тип - массив мап - lb_sysctl_params = [{text = "1", text = "some"}] + lb_sysctl_params = [{ key1 = "value1", key2 = "value2" }] } output "cp_out" { diff --git a/samples/cloudbroker/lb/resource_lb/main.tf b/samples/cloudbroker/lb/resource_lb/main.tf index 3a02308..5b668b8 100644 --- a/samples/cloudbroker/lb/resource_lb/main.tf +++ b/samples/cloudbroker/lb/resource_lb/main.tf @@ -110,7 +110,7 @@ resource "decort_cb_lb" "lb" { #пользовательские значения sysctl для LB #опциональный параметр #тип - список мап - #sysctl_params = [{text = "1", text = "some"}] + #sysctl_params = [{ key1 = "value1", key2 = "value2" }] } diff --git a/samples/cloudbroker/sep/resource_sep/main.tf b/samples/cloudbroker/sep/resource_sep/main.tf index 91b6875..c571760 100644 --- a/samples/cloudbroker/sep/resource_sep/main.tf +++ b/samples/cloudbroker/sep/resource_sep/main.tf @@ -3,9 +3,7 @@ Ресурса sep Ресурс позволяет: 1. Создавать sep. -2. Редактировать sep. -3. Удалять sep. -4. Конфигурировать sep. +2. Удалять sep. */ #Расскомментируйте код ниже, @@ -50,7 +48,7 @@ resource "decort_cb_sep" "s" { #конфигурация sep #обязательный параметр - #мб применен при создании или редактировании sep + #мб применен при создании sep #представляет собой json-строку #тип - строка config = file("./config.json") @@ -61,31 +59,8 @@ resource "decort_cb_sep" "s" { #тип - строка #desc = "rrrrr" - #изменение поля в конфигурации - #опциональный параметр - #может быть применен на уже созданном sep - #внимание, во избежание конфликтов не использовать с полем config - #тип - блок поля - #field_edit { - #имя поля - #обязательный параметр - #тип - строка - #field_name = "edgeuser_password" - - #значение поля - #обязательный параметр - #тип - json строка - #field_value = "mosk" - - #тип значения - #обязательный параметр - #возможные значения: list,dict,int,bool,str - #тип - строка - #field_type = "str" - #} - #предоставление/отключение доступа указанных аккаунтов к sep - #опциональный параметр, используется при редактировании и создании ресурса + #опциональный параметр, используется создании ресурса #тип - массив целых чисел #account_ids = [12, 245] @@ -118,42 +93,61 @@ resource "decort_cb_sep" "s" { #использование нодами #опциональный параметр - #используется при редактировании и создании ресурса + #используется при создании ресурса #тип - массив целых чисел #consumed_by = [] - #обновление лимита объема - #опциональный параметр - #применяется на уж созданном ресурсе - #тип - булев - #upd_capacity_limit = true - #id provided nodes #опциональный параметр - #используется при редактировании и создании ресурса + #используется при создании ресурса #тип - массив целых чисел #provided_by = [16, 14, 15] - #отключение nodes + #добавление/удаление pools к/из sep #опциональный параметр - #применяется на уже созданном ресурсе - #используется в связке с clear_physically - #по умолчанию - true - #тип - булев - #decommission = true + #используется при создании ресурса, состоит из имен pool + #тип - блок pools + pools { + #идентификаторы учетных записей доступа + #обязательный параметр + #тип - массив целых чисел + access_account_ids = [1, 2, 3] - #физическое очищение nodes - #опциональный параметр - #используется при удалении ресурса - #внимание, во избежание конфликтов использовать только в связке с полем decommission = true - #тип - булев - #clear_physically = false + #идентификаторы групп ресурсов доступа + #обязательный параметр + #тип - массив целых чисел + access_res_group_ids = [10, 20, 30] - #добавление/удаление pools к/из sep - #опциональный параметр - #используется при редактировании и создании ресурса, состоит из имен pool - #тип - массив строк - #pools = ["data01", "data02"] + #имя пула + #опциональный параметр + #тип - строка + name = "example_pool_name" + + #тип пула + #опциональный параметр + #тип - массив строк + types = ["type1", "type2"] + + #адреса узлов хранения + #опциональный параметр + #тип - блок ip адресов + uris { + #ip адрес узла + #обязательный параметр + #тип - строка + ip = "192.168.1.1" + + #порт узла + #обязательный параметр + #тип - целое число + port = 8080 + } + + #доступный объем пула + #обязательный параметр + #тип - целое число + usage_limit = 1000 + } } diff --git a/samples/cloudbroker/vfpool/resource_vfpool/main.tf b/samples/cloudbroker/vfpool/resource_vfpool/main.tf index 478f0b8..bacd599 100644 --- a/samples/cloudbroker/vfpool/resource_vfpool/main.tf +++ b/samples/cloudbroker/vfpool/resource_vfpool/main.tf @@ -60,7 +60,7 @@ resource "decort_cb_vfpool" "vfpool" { #блок для указания списка конфигурации #опциональный параметр #тип - блок - #config = { + #config { #идентификатор узла #обязательный параметр #тип - целое число diff --git a/wiki/.gitignore b/wiki/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/wiki/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/wiki/4.5.2/06.02.110-Data-decort_cb_grid_get_diagnosis.md b/wiki/4.5.2/06.02.110-Data-decort_cb_grid_get_diagnosis.md new file mode 100644 index 0000000..b9f4512 --- /dev/null +++ b/wiki/4.5.2/06.02.110-Data-decort_cb_grid_get_diagnosis.md @@ -0,0 +1,34 @@ +Функция доступна в провайдере версии 4.5.1 и выше. + +_Data source_ функция **decort_cb_grid_get_diagnosis** служит для получения снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + +## Аргументы +_Data source_ функция **decort_cb_grid_get_diagnosis** принимает следующие аргументы: + +| Аргумент | Тип | Обязательный | Описание | +| --- | --- | --- | --- | +| grid_id | int | :heavy_check_mark: | ID grid | + +## Возвращаемые значения +В случае успешного выполнения _data source_ функция **decort_cb_grid_get_diagnosis** возвращает в указанную при вызове переменную, которая состоит из следующих параметров: + +| Параметр | Тип | Описание | +| --- | --- | --- | +| diagnosis | string | Диагностическая информация | + + +## Пример использования +Пример вызова _data source_ функции **decort_cb_grid_get_diagnosis**: +```terraform +data "decort_cb_grid_get_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} +``` + +Данный пример подразумевает, что ранее по тексту tf-файла выполнена корректная инициализация провайдера (подробнее об инициализации Terraform провайдера DECORT см. соответствующий [раздел](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/04.02-Инициализация-Terraform-провайдера-DECORT.md)). + +После успешного завершения такого вызова **decort_cb_grid_get_diagnosis** в переменной `data.decort_cb_grid_get_diagnosis.grid` будут сохранены возвращаемые значения. diff --git a/wiki/4.5.2/06.02.110-Data-decort_cb_grid_post_diagnosis.md b/wiki/4.5.2/06.02.110-Data-decort_cb_grid_post_diagnosis.md new file mode 100644 index 0000000..1a65e62 --- /dev/null +++ b/wiki/4.5.2/06.02.110-Data-decort_cb_grid_post_diagnosis.md @@ -0,0 +1,34 @@ +Функция доступна в провайдере версии 4.5.1 и выше. + +_Data source_ функция **decort_cb_grid_post_diagnosis** служит для получения снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + +## Аргументы +_Data source_ функция **decort_cb_grid_post_diagnosis** принимает следующие аргументы: + +| Аргумент | Тип | Обязательный | Описание | +| --- | --- | --- | --- | +| grid_id | int | :heavy_check_mark: | ID grid | + +## Возвращаемые значения +В случае успешного выполнения _data source_ функция **decort_cb_grid_post_diagnosis** возвращает в указанную при вызове переменную, которая состоит из следующих параметров: + +| Параметр | Тип | Описание | +| --- | --- | --- | +| diagnosis | string | Диагностическая информация | + + +## Пример использования +Пример вызова _data source_ функции **decort_cb_grid_post_diagnosis**: +```terraform +data "decort_cb_grid_post_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} +``` + +Данный пример подразумевает, что ранее по тексту tf-файла выполнена корректная инициализация провайдера (подробнее об инициализации Terraform провайдера DECORT см. соответствующий [раздел](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/04.02-Инициализация-Terraform-провайдера-DECORT.md)). + +После успешного завершения такого вызова **decort_cb_grid_post_diagnosis** в переменной `data.decort_cb_grid_post_diagnosis.grid` будут сохранены возвращаемые значения. diff --git a/wiki/4.5.2/07.01.09-Resource_decort_image.md b/wiki/4.5.2/07.01.09-Resource_decort_image.md index c1633d1..57e04fe 100644 --- a/wiki/4.5.2/07.01.09-Resource_decort_image.md +++ b/wiki/4.5.2/07.01.09-Resource_decort_image.md @@ -15,7 +15,7 @@ _Resource_ функция **decort_image** для создания образа | url | string | :heavy_check_mark: | Адрес образа | | gid | int | :heavy_check_mark: | Grid id образа | | boot_type | string | :heavy_check_mark: | Тип загрузки образа,
возможные варианты: "bios" или "uefi" | -| image_type | string | :heavy_check_mark: | Тип образа,
возможные варианты - "linux", "windows" | +| type | string | :heavy_check_mark: | Тип образа,
возможные варианты - "linux", "windows" | | drivers | []string | :heavy_check_mark: | Драйвера,
возможные варианты - ["KVM_X86", "SVA_KVM_X86"], ["KVM_X86"], ["SVA_KVM_X86"] | | account_id | int | :x: | ID аккаунта владельца образа,
может быть использован как при создании, так и редактировании образа | | username | string | :x: | Имя пользователя,
может быть использован как при создании, так и редактировании образа | diff --git a/wiki/4.5.2/08.-Полезные-советы.md b/wiki/4.5.2/08.-Полезные-советы.md index 07af556..e0ffa49 100644 --- a/wiki/4.5.2/08.-Полезные-советы.md +++ b/wiki/4.5.2/08.-Полезные-советы.md @@ -42,3 +42,14 @@ terraform { ``` Обратите внимание, что провайдер `terraform-provider-decs` разрабатывался для Terrafrom версии 0.11.х. Его работа с более новыми версиями Terraform не гарантируется. + +## 8.4 OpenTofu +`Terraform-provider-decort` полностью совместим с OpenTofu версии 1.8. OpenTofu - это форк Terraform, созданный в ответ на переход HashiCorp с лицензии с открытым исходным кодом на BUSL. Инструкция по его установке находится на официальном сайте https://opentofu.org/docs/intro/install/. Все основные команды terraform можно использовать и в OpenTofu +Основные используемые команды: + +- `tofu init` — инициализирует рабочий каталог OpenTofu. +- `tofu validate` — подтверждает правильность синтаксиса файла. +- `tofu plan` — генерирует файл изменений и показывает, что изменится при запуске. +- `tofu apply` — строит или изменяет инфраструктуру. Команда покажет план - выполнения и потребует ответа «да» или «нет». +- `tofu refresh` — обновляет локальный файл состояния относительно реальных ресурсов. +- `tofu destroy` — удаляет инфраструктуру, управляемую OpenTofu. \ No newline at end of file diff --git a/wiki/4.5.2/Home.md b/wiki/4.5.2/Home.md index c267482..11b5d6c 100644 --- a/wiki/4.5.2/Home.md +++ b/wiki/4.5.2/Home.md @@ -1,4 +1,4 @@ -Terraform провайдер версии 4.5.2, для платформы DECORT с API версии 3.8.х и выше. +Terraform провайдер версии 4.5.2, для платформы DECORT с API версии 3.8.9 и выше. 1. [Введение](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/01.-Введение.md) 2. [Пример работы](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/02.-Пример-работы.md) @@ -157,6 +157,8 @@ Terraform провайдер версии 4.5.2, для платформы DECOR - [**decort_cb_grid_list_consumption**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.41-Data_decort_cb_grid_list_consumption.md) - получение потребленных и зарезервированных ресурсов во всех grid - [**decort_cb_grid_get_consumption**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.42-Data_decort_cb_grid_get_consumption.md) - получение потребленных и зарезервированных ресурсов в grid - [**decort_cb_grid_get_status**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.43-Data_decort_cb_grid_get_status.md) - проверка статуса активности текущей среды + - [**decort_cb_grid_get_diagnosis**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.111-Data_decort_cb_grid_get_diagnosis.md) - получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + - [**decort_cb_grid_post_diagnosis**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.110-Data_decort_cb_grid_post_diagnosis.md) - получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. - [**decort_cb_vins_list_deleted**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.44-Data_decort_cb_vins_list_deleted.md) - получение информации о всех удаленных виртуальных сетях - [**decort_cb_vins_nat_rule_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.45-Data_decort_cb_vins_nat_rule_list.md) - получение информации о правилах переадресации портов для сети vins - [**decort_cb_vins_ext_net_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/06.02.46-Data_decort_cb_vins_ext_net_list.md) - получение информации о внешних сетях vins @@ -276,3 +278,4 @@ Terraform провайдер версии 4.5.2, для платформы DECOR - [Как хранить авторизационную информацию отдельно от tf-файла](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/08.-Полезные-советы.md#81-Как-хранить-авторизационную-информацию-отдельно-от-tf-файла) - [Если Terraform провайдер DECORT жалуется на SSL сертификаты.](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/08.-Полезные-советы.md#82-Если-terraform-провайдер-жалуется-на-ssl-сертификаты) - [Настройка локального провайдера для работы с новыми версиями Terraform.](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/08.-Полезные-советы.md#82-Если-terraform-провайдер-жалуется-на-ssl-сертификаты) + - [OpenTofu](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.2/08.-Полезные-советы.md#8.4-OpenTofu) diff --git a/wiki/4.5.3/06.02.110-Data-decort_cb_grid_get_diagnosis.md b/wiki/4.5.3/06.02.110-Data-decort_cb_grid_get_diagnosis.md new file mode 100644 index 0000000..a6d0a83 --- /dev/null +++ b/wiki/4.5.3/06.02.110-Data-decort_cb_grid_get_diagnosis.md @@ -0,0 +1,34 @@ +Функция доступна в провайдере версии 4.5.1 и выше. + +_Data source_ функция **decort_cb_grid_get_diagnosis** служит для получения снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + +## Аргументы +_Data source_ функция **decort_cb_grid_get_diagnosis** принимает следующие аргументы: + +| Аргумент | Тип | Обязательный | Описание | +| --- | --- | --- | --- | +| grid_id | int | :heavy_check_mark: | ID grid | + +## Возвращаемые значения +В случае успешного выполнения _data source_ функция **decort_cb_grid_get_diagnosis** возвращает в указанную при вызове переменную, которая состоит из следующих параметров: + +| Параметр | Тип | Описание | +| --- | --- | --- | +| diagnosis | string | Диагностическая информация | + + +## Пример использования +Пример вызова _data source_ функции **decort_cb_grid_get_diagnosis**: +```terraform +data "decort_cb_grid_get_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} +``` + +Данный пример подразумевает, что ранее по тексту tf-файла выполнена корректная инициализация провайдера (подробнее об инициализации Terraform провайдера DECORT см. соответствующий [раздел](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/04.02-Инициализация-Terraform-провайдера-DECORT.md)). + +После успешного завершения такого вызова **decort_cb_grid_get_diagnosis** в переменной `data.decort_cb_grid_get_diagnosis.grid` будут сохранены возвращаемые значения. diff --git a/wiki/4.5.3/06.02.110-Data-decort_cb_grid_post_diagnosis.md b/wiki/4.5.3/06.02.110-Data-decort_cb_grid_post_diagnosis.md new file mode 100644 index 0000000..c0d132f --- /dev/null +++ b/wiki/4.5.3/06.02.110-Data-decort_cb_grid_post_diagnosis.md @@ -0,0 +1,34 @@ +Функция доступна в провайдере версии 4.5.1 и выше. + +_Data source_ функция **decort_cb_grid_post_diagnosis** служит для получения снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + +## Аргументы +_Data source_ функция **decort_cb_grid_post_diagnosis** принимает следующие аргументы: + +| Аргумент | Тип | Обязательный | Описание | +| --- | --- | --- | --- | +| grid_id | int | :heavy_check_mark: | ID grid | + +## Возвращаемые значения +В случае успешного выполнения _data source_ функция **decort_cb_grid_post_diagnosis** возвращает в указанную при вызове переменную, которая состоит из следующих параметров: + +| Параметр | Тип | Описание | +| --- | --- | --- | +| diagnosis | string | Диагностическая информация | + + +## Пример использования +Пример вызова _data source_ функции **decort_cb_grid_post_diagnosis**: +```terraform +data "decort_cb_grid_post_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} +``` + +Данный пример подразумевает, что ранее по тексту tf-файла выполнена корректная инициализация провайдера (подробнее об инициализации Terraform провайдера DECORT см. соответствующий [раздел](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/04.02-Инициализация-Terraform-провайдера-DECORT.md)). + +После успешного завершения такого вызова **decort_cb_grid_post_diagnosis** в переменной `data.decort_cb_grid_post_diagnosis.grid` будут сохранены возвращаемые значения. diff --git a/wiki/4.5.3/07.01.09-Resource_decort_image.md b/wiki/4.5.3/07.01.09-Resource_decort_image.md index c1633d1..57e04fe 100644 --- a/wiki/4.5.3/07.01.09-Resource_decort_image.md +++ b/wiki/4.5.3/07.01.09-Resource_decort_image.md @@ -15,7 +15,7 @@ _Resource_ функция **decort_image** для создания образа | url | string | :heavy_check_mark: | Адрес образа | | gid | int | :heavy_check_mark: | Grid id образа | | boot_type | string | :heavy_check_mark: | Тип загрузки образа,
возможные варианты: "bios" или "uefi" | -| image_type | string | :heavy_check_mark: | Тип образа,
возможные варианты - "linux", "windows" | +| type | string | :heavy_check_mark: | Тип образа,
возможные варианты - "linux", "windows" | | drivers | []string | :heavy_check_mark: | Драйвера,
возможные варианты - ["KVM_X86", "SVA_KVM_X86"], ["KVM_X86"], ["SVA_KVM_X86"] | | account_id | int | :x: | ID аккаунта владельца образа,
может быть использован как при создании, так и редактировании образа | | username | string | :x: | Имя пользователя,
может быть использован как при создании, так и редактировании образа | diff --git a/wiki/4.5.3/08.-Полезные-советы.md b/wiki/4.5.3/08.-Полезные-советы.md index 5b04ff3..7d5099e 100644 --- a/wiki/4.5.3/08.-Полезные-советы.md +++ b/wiki/4.5.3/08.-Полезные-советы.md @@ -42,3 +42,14 @@ terraform { ``` Обратите внимание, что провайдер `terraform-provider-decs` разрабатывался для Terrafrom версии 0.11.х. Его работа с более новыми версиями Terraform не гарантируется. + +## 8.4 OpenTofu +`Terraform-provider-decort` полностью совместим с OpenTofu версии 1.8. OpenTofu - это форк Terraform, созданный в ответ на переход HashiCorp с лицензии с открытым исходным кодом на BUSL. Инструкция по его установке находится на официальном сайте https://opentofu.org/docs/intro/install/. Все основные команды terraform можно использовать и в OpenTofu +Основные используемые команды: + +- `tofu init` — инициализирует рабочий каталог OpenTofu. +- `tofu validate` — подтверждает правильность синтаксиса файла. +- `tofu plan` — генерирует файл изменений и показывает, что изменится при запуске. +- `tofu apply` — строит или изменяет инфраструктуру. Команда покажет план - выполнения и потребует ответа «да» или «нет». +- `tofu refresh` — обновляет локальный файл состояния относительно реальных ресурсов. +- `tofu destroy` — удаляет инфраструктуру, управляемую OpenTofu. diff --git a/wiki/4.5.3/Home.md b/wiki/4.5.3/Home.md index 3af0e0e..40f0713 100644 --- a/wiki/4.5.3/Home.md +++ b/wiki/4.5.3/Home.md @@ -1,4 +1,4 @@ -Terraform провайдер версии 4.5.3, для платформы DECORT с API версии 3.8.х и выше. +Terraform провайдер версии 4.5.3, для платформы DECORT с API версии 3.8.9 и выше. 1. [Введение](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/01.-Введение.md) 2. [Пример работы](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/02.-Пример-работы.md) @@ -157,6 +157,8 @@ Terraform провайдер версии 4.5.3, для платформы DECOR - [**decort_cb_grid_list_consumption**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.41-Data_decort_cb_grid_list_consumption.md) - получение потребленных и зарезервированных ресурсов во всех grid - [**decort_cb_grid_get_consumption**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.42-Data_decort_cb_grid_get_consumption.md) - получение потребленных и зарезервированных ресурсов в grid - [**decort_cb_grid_get_status**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.43-Data_decort_cb_grid_get_status.md) - проверка статуса активности текущей среды + - [**decort_cb_grid_get_diagnosis**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.111-Data_decort_cb_grid_get_diagnosis.md) - получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + - [**decort_cb_grid_post_diagnosis**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.110-Data_decort_cb_grid_post_diagnosis.md) - получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. - [**decort_cb_vins_list_deleted**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.44-Data_decort_cb_vins_list_deleted.md) - получение информации о всех удаленных виртуальных сетях - [**decort_cb_vins_nat_rule_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.45-Data_decort_cb_vins_nat_rule_list.md) - получение информации о правилах переадресации портов для сети vins - [**decort_cb_vins_ext_net_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/06.02.46-Data_decort_cb_vins_ext_net_list.md) - получение информации о внешних сетях vins @@ -276,3 +278,4 @@ Terraform провайдер версии 4.5.3, для платформы DECOR - [Как хранить авторизационную информацию отдельно от tf-файла](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/08.-Полезные-советы.md#81-Как-хранить-авторизационную-информацию-отдельно-от-tf-файла) - [Если Terraform провайдер DECORT жалуется на SSL сертификаты.](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/08.-Полезные-советы.md#82-Если-terraform-провайдер-жалуется-на-ssl-сертификаты) - [Настройка локального провайдера для работы с новыми версиями Terraform.](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/08.-Полезные-советы.md#82-Если-terraform-провайдер-жалуется-на-ssl-сертификаты) + - [OpenTofu](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.5.3/08.-Полезные-советы.md#8.4-OpenTofu) diff --git a/wiki/4.6.0/06.02.110-Data_decort_cb_disk_replication.md b/wiki/4.6.0/06.02.108-Data_decort_cb_disk_replication.md similarity index 100% rename from wiki/4.6.0/06.02.110-Data_decort_cb_disk_replication.md rename to wiki/4.6.0/06.02.108-Data_decort_cb_disk_replication.md diff --git a/wiki/4.6.0/06.02.110-Data-decort_cb_grid_get_diagnosis.md b/wiki/4.6.0/06.02.110-Data-decort_cb_grid_get_diagnosis.md new file mode 100644 index 0000000..878ff5e --- /dev/null +++ b/wiki/4.6.0/06.02.110-Data-decort_cb_grid_get_diagnosis.md @@ -0,0 +1,34 @@ +Функция доступна в провайдере версии 4.5.1 и выше. + +_Data source_ функция **decort_cb_grid_get_diagnosis** служит для получения снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + +## Аргументы +_Data source_ функция **decort_cb_grid_get_diagnosis** принимает следующие аргументы: + +| Аргумент | Тип | Обязательный | Описание | +| --- | --- | --- | --- | +| grid_id | int | :heavy_check_mark: | ID grid | + +## Возвращаемые значения +В случае успешного выполнения _data source_ функция **decort_cb_grid_get_diagnosis** возвращает в указанную при вызове переменную, которая состоит из следующих параметров: + +| Параметр | Тип | Описание | +| --- | --- | --- | +| diagnosis | string | Диагностическая информация | + + +## Пример использования +Пример вызова _data source_ функции **decort_cb_grid_get_diagnosis**: +```terraform +data "decort_cb_grid_get_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} +``` + +Данный пример подразумевает, что ранее по тексту tf-файла выполнена корректная инициализация провайдера (подробнее об инициализации Terraform провайдера DECORT см. соответствующий [раздел](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/04.02-Инициализация-Terraform-провайдера-DECORT.md)). + +После успешного завершения такого вызова **decort_cb_grid_get_diagnosis** в переменной `data.decort_cb_grid_get_diagnosis.grid` будут сохранены возвращаемые значения. diff --git a/wiki/4.6.0/06.02.110-Data-decort_cb_grid_post_diagnosis.md b/wiki/4.6.0/06.02.110-Data-decort_cb_grid_post_diagnosis.md new file mode 100644 index 0000000..3a73eb6 --- /dev/null +++ b/wiki/4.6.0/06.02.110-Data-decort_cb_grid_post_diagnosis.md @@ -0,0 +1,34 @@ +Функция доступна в провайдере версии 4.5.1 и выше. + +_Data source_ функция **decort_cb_grid_post_diagnosis** служит для получения снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + +## Аргументы +_Data source_ функция **decort_cb_grid_post_diagnosis** принимает следующие аргументы: + +| Аргумент | Тип | Обязательный | Описание | +| --- | --- | --- | --- | +| grid_id | int | :heavy_check_mark: | ID grid | + +## Возвращаемые значения +В случае успешного выполнения _data source_ функция **decort_cb_grid_post_diagnosis** возвращает в указанную при вызове переменную, которая состоит из следующих параметров: + +| Параметр | Тип | Описание | +| --- | --- | --- | +| diagnosis | string | Диагностическая информация | + + +## Пример использования +Пример вызова _data source_ функции **decort_cb_grid_post_diagnosis**: +```terraform +data "decort_cb_grid_post_diagnosis" "grid" { + #id grid для получения информации + #обязательный параметр + #тип - целое число + gid = 215 + +} +``` + +Данный пример подразумевает, что ранее по тексту tf-файла выполнена корректная инициализация провайдера (подробнее об инициализации Terraform провайдера DECORT см. соответствующий [раздел](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/04.02-Инициализация-Terraform-провайдера-DECORT.md)). + +После успешного завершения такого вызова **decort_cb_grid_post_diagnosis** в переменной `data.decort_cb_grid_post_diagnosis.grid` будут сохранены возвращаемые значения. diff --git a/wiki/4.6.0/07.01.09-Resource_decort_image.md b/wiki/4.6.0/07.01.09-Resource_decort_image.md index 2effebc..b40d7a2 100644 --- a/wiki/4.6.0/07.01.09-Resource_decort_image.md +++ b/wiki/4.6.0/07.01.09-Resource_decort_image.md @@ -14,7 +14,7 @@ _Resource_ функция **decort_image** для создания образа | name | string | :heavy_check_mark: | Имя образа
При изменении - изменяет название образа | | url | string | :heavy_check_mark: | Адрес образа | | boot_type | string | :heavy_check_mark: | Тип загрузки образа,
возможные варианты: "bios" или "uefi" | -| image_type | string | :heavy_check_mark: | Тип образа,
возможные варианты - "linux", "windows" | +| type | string | :heavy_check_mark: | Тип образа,
возможные варианты - "linux", "windows" | | drivers | []string | :heavy_check_mark: | Драйвера,
возможные варианты - ["KVM_X86", "SVA_KVM_X86"], ["KVM_X86"], ["SVA_KVM_X86"] | | account_id | int | :heavy_check_mark: | ID аккаунта владельца образа,
может быть использован как при создании, так и редактировании образа | | username | string | :x: | Имя пользователя,
может быть использован как при создании, так и редактировании образа | diff --git a/wiki/4.6.0/07.02.29-Resource_decort_cb_vfpool.md b/wiki/4.6.0/07.02.29-Resource_decort_cb_vfpool.md index 3785d7f..6a0e3f1 100644 --- a/wiki/4.6.0/07.02.29-Resource_decort_cb_vfpool.md +++ b/wiki/4.6.0/07.02.29-Resource_decort_cb_vfpool.md @@ -91,7 +91,7 @@ resource "decort_cb_vfpool" "vfpool" { #блок для указания списка конфигурации #опциональный параметр #тип - блок - #config = { + #config { #идентификатор узла #обязательный параметр #тип - целое число diff --git a/wiki/4.6.0/08.-Полезные-советы.md b/wiki/4.6.0/08.-Полезные-советы.md index 0622679..6de6f9d 100644 --- a/wiki/4.6.0/08.-Полезные-советы.md +++ b/wiki/4.6.0/08.-Полезные-советы.md @@ -42,3 +42,14 @@ terraform { ``` Обратите внимание, что провайдер `terraform-provider-decs` разрабатывался для Terrafrom версии 0.11.х. Его работа с более новыми версиями Terraform не гарантируется. + +## 8.4 OpenTofu +`Terraform-provider-decort` полностью совместим с OpenTofu версии 1.8. OpenTofu - это форк Terraform, созданный в ответ на переход HashiCorp с лицензии с открытым исходным кодом на BUSL. Инструкция по его установке находится на официальном сайте https://opentofu.org/docs/intro/install/. Все основные команды terraform можно использовать и в OpenTofu +Основные используемые команды: + +- `tofu init` — инициализирует рабочий каталог OpenTofu. +- `tofu validate` — подтверждает правильность синтаксиса файла. +- `tofu plan` — генерирует файл изменений и показывает, что изменится при запуске. +- `tofu apply` — строит или изменяет инфраструктуру. Команда покажет план - выполнения и потребует ответа «да» или «нет». +- `tofu refresh` — обновляет локальный файл состояния относительно реальных ресурсов. +- `tofu destroy` — удаляет инфраструктуру, управляемую OpenTofu. \ No newline at end of file diff --git a/wiki/4.6.0/Home.md b/wiki/4.6.0/Home.md index d287ed7..6ee0b7a 100644 --- a/wiki/4.6.0/Home.md +++ b/wiki/4.6.0/Home.md @@ -1,4 +1,4 @@ -Terraform провайдер версии 4.6.0, для платформы DECORT с API версии 3.8.х и выше. +Terraform провайдер версии 4.6.0, для платформы DECORT с API версии 4.0.х и выше. 1. [Введение](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/01.-Введение.md) 2. [Пример работы](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/02.-Пример-работы.md) @@ -162,6 +162,8 @@ Terraform провайдер версии 4.6.0, для платформы DECOR - [**decort_cb_grid_list_consumption**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.41-Data_decort_cb_grid_list_consumption.md) - получение потребленных и зарезервированных ресурсов во всех grid - [**decort_cb_grid_get_consumption**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.42-Data_decort_cb_grid_get_consumption.md) - получение потребленных и зарезервированных ресурсов в grid - [**decort_cb_grid_get_status**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.43-Data_decort_cb_grid_get_status.md) - проверка статуса активности текущей среды + - [**decort_cb_grid_get_diagnosis**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.111-Data_decort_cb_grid_get_diagnosis.md) - получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. + - [**decort_cb_grid_post_diagnosis**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.110-Data_decort_cb_grid_post_diagnosis.md) - получение снимка платформы с дополнительной диагностической информацией, такой как журналы и т.д. - [**decort_cb_vins_list_deleted**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.44-Data_decort_cb_vins_list_deleted.md) - получение информации о всех удаленных виртуальных сетях - [**decort_cb_vins_nat_rule_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.45-Data_decort_cb_vins_nat_rule_list.md) - получение информации о правилах переадресации портов для сети vins - [**decort_cb_vins_ext_net_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.46-Data_decort_cb_vins_ext_net_list.md) - получение информации о внешних сетях vins @@ -222,7 +224,7 @@ Terraform провайдер версии 4.6.0, для платформы DECOR - [**decort_cb_account_resource_consumption_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.101-Data_decort_cb_account_resource_consumption_list.md) - получение информации о количестве потребляемых и зарезервированных ресурсов - [**decort_cb_account_available_templates_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.102-Data_decort_cb_account_available_templates_list.md) - получение информации о списках доступных образов аккаунту - [**decort_cb_node**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.106-Data_decort_cb_node.md) - получение информации о узле платформы - - [**decort_cb_node_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.107-Data_decort_cb_node_list.md) - получение информации о всех узлах платформы + - [**decort_cb_node_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.107-Data_decort_cb_node_list.md) - получение информации о всех узлах платформы - [**decort_cb_user**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.103-Data_decort_cb_user.md) - получение информации о пользователе - [**decort_cb_user_list**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.104-Data_decort_cb_user_list.md) - получение информации о списке всех доступных пользователей - [**decort_cb_user_get_audit**](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/06.02.105-Data_decort_cb_user_get_audit.md) - получение информации об аудитах пользователя @@ -294,3 +296,4 @@ Terraform провайдер версии 4.6.0, для платформы DECOR - [Как хранить авторизационную информацию отдельно от tf-файла](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/08.-Полезные-советы.md#81-Как-хранить-авторизационную-информацию-отдельно-от-tf-файла) - [Если Terraform провайдер DECORT жалуется на SSL сертификаты.](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/08.-Полезные-советы.md#82-Если-terraform-провайдер-жалуется-на-ssl-сертификаты) - [Настройка локального провайдера для работы с новыми версиями Terraform.](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/08.-Полезные-советы.md#82-Если-terraform-провайдер-жалуется-на-ssl-сертификаты) + - [OpenTofu](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.0/08.-Полезные-советы.md#8.4-OpenTofu) \ No newline at end of file diff --git a/wiki/4.6.1/01.-Введение.md b/wiki/4.6.1/01.-Введение.md new file mode 100644 index 0000000..385bee4 --- /dev/null +++ b/wiki/4.6.1/01.-Введение.md @@ -0,0 +1,7 @@ +DECORT Terraform Provider версии 4.6.x позволяет управлять облачными ресурсами на платформе Digital Energy Cloud Orchestration Technology (DECORT) версии 4.0.x и выше посредством Terraform. + +С помощью данного провайдера можно организовать программное управление вычислительными ресурсами (_compute_), ресурсными группами, сетевыми и дисковыми ресурсами, образами дисков, кластером, а также другими параметрами облачной платформы DECORT. + +Если вы хорошо знакомы с инструментом Terraform и хотите максимально быстро начать использовать платформу DECORT в своих Terraform-проектах, то можете сразу перейти к разделу [Пример работы](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/02.-Пример-работы.md), где приведён подробно откомментированный пример работы с основными видами ресурсов платформы. Если у вас всё же возникнут вопросы по облачной платформе DECORT и порядку авторизации в ней, то обратитесь к главе [«Обзор облачной платформы DECORT»](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT.md). Также может оказаться полезной глава [«Инициализация Terraform провайдера DECORT»](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/04.02-Инициализация-Terraform-провайдера-DECORT.md). + +Если вы только начинаете использовать инструмент Terraform и облачную платформу DECORT, то рекомендуем вам начать с главы [«Обзор облачной платформы DECORT»](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT.md), после чего изучить главы [«_Data source_ функции Terraform провайдера DECORT»](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/06.-Data-source-функции-Terraform-провайдера-DECORT.md) и [«_Resource_ функции Terraform провайдера DECORT»](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/07.-Resource-функции-Terraform-провайдера-DECORT.md). Примеры, приведенные в этих разделах, помогут вам быстро освоить базовые приёмы работы с инструментом Terraform и провайдером DECORT. diff --git a/wiki/4.6.1/02.-Пример-работы.md b/wiki/4.6.1/02.-Пример-работы.md new file mode 100644 index 0000000..bd8fd32 --- /dev/null +++ b/wiki/4.6.1/02.-Пример-работы.md @@ -0,0 +1,92 @@ +Данный раздел предназначен для тех, кто хорошо знаком с инструментом Terraform, а также имеет представление об основных понятиях и способах авторизации в облачной платформе DECORT. + +Ниже приведён подробно откомментированный пример, показывающий, как создать виртуальный сервер (aka _compute_ на базе системы виртуализации KVM x86) в облачной платформе DECORT с помощью соответствующего Terraform провайдера. Сервер будет создан в новой ресурсной группе, к нему будет подключён один предварительно созданный диск, у сервера будет прямое сетевое подключение во внешнюю сеть. + +Идентификатор образа операционной системы, на базе которого должен быть создан виртуальный сервер, считывается из облачной платформы с помощью _data source_ функции `decort_image`. + +Далее мы с помощью _resource_ функции `decort_resgroup` создаём новую ресурсную группу, в которую будет помещён этот виртуальный сервер. В качестве альтернативы, для получения информации об уже имеющейся ресурсной группе можно использовать _data source_ функцию с таким же названием. + +Затем с помощью _resource_ функции `decort_disk` создаётся диск, который будет подключён к виртуальному серверу в качестве дополнительного. Помимо этого дополнительного диска у сервера будет также и загрузочный диск, на который в процессе создания сервера клонируется выбранный образ операционной системы. + +Виртуальный сервер - в данном примере на базе системы виртуализации KVM x86 - создаётся посредством _resource_ функции `decort_kvmvm`. + +Только авторизованные в контроллере облачной платформы пользователи могут управлять облачными ресурсами. Подробнее о способах авторизации см. [Обзор облачной платформы DECORT](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT.md). + +```terraform +# 1. Initialize DECORT plugin and connection to DECORT cloud controller +# NOTE: in this example credentials are expected to come from +# DECORT_APP_ID and DECORT_APP_SECRET environmental variables - set them +# in the shell before calling terraform. +# Alternatively you may define plugin parameters app_id and app_secret in +# the TF file, however, this may not be secure if you plan to share this TF +# file with others. + +provider "decort" { + authenticator = "decs3o" + controller_url = "<>" # specify correct DECORT controller URL, e.g. "https://ds1.digitalenergy.online" + oauth2_url = "<>" # specify corresponding DECORT OAUTH2 URL, e.g. "https://sso.digitalenergy.online" + app_id = "<>" # application secret to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode, e.g. "ewqfrvea7s890avw804389qwguf234h0otfi3w4eiu" + app_secret = "<>" # application ID to access DECORT cloud API in 'decs3o' and 'bvs' authentication mode, e.g. "ewqfrvea7s890avw804389qwguf234h0otfi3w4eiu" + # allow_unverified_ssl = true +} + +# 2. Load account to use - new VM will belong to this account +data "decort_account" "my_account" { + account_id = # Specify account ID +} + +# 3. Load OS image to use for VM deployment +data "decort_image" "os_image" { + image_id = # Specify OS image id, e.g. 1234. You can get accessible image id from data source "decort_image_list" +} + +# 4. Create new Resource Group in the selected account, new VM will be created in this RG +resource "decort_resgroup" "my_rg" { + name = "NewRgByTF" + account_id = data.decort_account.my_account.account_id + gid = # Grid (platform) ID + # if you want to set resource quota on this Resource Group, uncomment + # the following code fragment + # quota { + # cpu = 8 # CPU limit + # ram = 8912 # RAM limit in MB + # disk = 96 # disk volume limit in GB + #} +} + +# 5. Create extra disk, which will be attached to the new VM. +# This step is optional - if you do not want extra disks on your VM, skip it +# and comment out extra_disks parameter when creating VM below. +resource "decort_disk" "extra_disk" { + disk_name = "extra-disk-for-vm" + account_id = data.decort_account.my_account.account_id + gid = # Grid (platform) ID + size_max = 5 # disk size in GB + type = "D" # disk type, always use "D" for extra disks + sep_id = data.decort_image.os_image.sep_id # use the same SEP ID as the OS image + pool = "<>" # consult your DECORT platform admin for configured storage pool names +} + +# 6. Create virtual machine (a compute of type KVM VM x86 in this example) +# Now that we have all necessary components at hand, we may create a virtual machine. +# This VM will be based on the previsouly obtained OS image, located in the specified +# Resource Group, directly connected to an external network, have a boot disk of +# specified size and one extra disk attached. +resource "decort_kvmvm" "my_new_vm" { + name = "tf-managed-vm" + driver = "KVM_X86" # Compute virtualization driver + rg_id = decort_resgroup.my_rg.id + cpu = 1 # CPU count + ram = 1024 # RAM size in MB, must be even number, ideally a power of 2 + boot_disk_size = 10 # Boot disk size in GB + image_id = data.decort_image.os_image.image_id + description = "Test KVM VM Compute managed by Terraform" + extra_disks = [ decort_disk.extra_disk.id ] + + network { + net_type = "EXTNET" + net_id = <> # specify external network ID to use, consult your DECORT platform admin for correct IDs + # ip_address = "<>" # you may optionally request a specific IP address + } +} +``` diff --git a/wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT.md b/wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT.md new file mode 100644 index 0000000..938223a --- /dev/null +++ b/wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT.md @@ -0,0 +1,31 @@ +## Основные понятия +Ниже перечислены основные понятия с указанием соответствующих им аргументов в Terraform провайдере DECORT. +1. **Контроллер облачной платформы DECORT** – управляющее приложение, которое обеспечивает авторизацию пользователей и оркестрацию облачных ресурсов. + - Адрес контроллера задается в обязательном аргументе `controller_url` на стадии инициализации Terraform провайдера DECORT. Например, `controller_url= "https://ds1.digitalenergy.online"` +2. **Авторизационный провайдер** – приложение, работающее по протоколу Oauth2, предназначенное для выпуска и валидации токенов доступа к контроллеру облачной платформы в соответствующих режимах авторизации. Все действия в платформе должны выполняться авторизованными пользователями, и авторизационное приложение позволяет получить токен доступа, действующий некоторое ограниченное время, наличие которого подтверждает успешную авторизацию. + - Адрес авторизационного провайдера задается в аргументе`oauth2_url` на стадии инициализации Terraform провайдера DECORT. Например `oauth2_url= "https://sso.digitalenergy.online"` +3. **Подписчик** (_account_) – сущность, которая используется для группирования облачных ресурсов по принадлежности к определенному клиенту для целей учета потребления и биллинга. + - Имя подписчика задается аргументом `account_name` при вызове _resource_ или _data_ функций провайдера. Альтернативной является задание численного идентификатора подписчика в аргументе `account_id`. +4. **Пользователь** (_user_) – пользователь облачной инфраструктуры, представленный учетной записью. Чтобы получить возможность управлять облачными ресурсами (например, создавать виртуальные серверы или дискт) пользователь должен быть ассоциирован с одним или несколькими подписчиками и иметь соответствующие права, определяемые ролевой моделью, принятой в облачной платформе DECORT. Для доступа к платформе пользователь должен авторизоваться одним из способов, описанных ниже в разделе «Способы авторизации». +5. **Ресурсная группа** (_resource group_) – способ группирования вычислительных ресурсов (например, виртуальных серверов по функциональному признаку или принадлежности к одному и тому же проекту). Ресурсную группу можно рассматривать как небольшой персональный дата-центр, в котором размещаются один или несколько серверов и виртуальных сетевых сегментов. Ресурсная группа идентифицируется по комбинации параметров `account` и `name`. Обратите внимание, что имя имя ресурсной группы уникально только в рамках одного и того же `account`. +6. **Вычислительный ресурс** (_compute_) - универсальная абстракция пользовательского сервера в платформе DECORT. Благодаря использованию такой абстракции можно, например, создать одну виртуальную машину на базе KVM Intel x86, а другую - на базе KVM IBM Power, а потом управлять ими - изменять количество CPU/RAM, подключать/отключать диски и т.п. - одинаковым образом, не задумываясь об их архитектурных различиях. В то же время, так как типизация ресурсов в Terraform не поддерживает наследование, различные типы вычислительных ресурсов, доступных на платформе DECORT и абстрагируемых через понятие унифицированный _compute_, в Terraform представлены разными типами (напр., свой тип для виртуальных серверов на базе KVM и свой тип для перспективных x86-совместимых bare metal серверов). +7. **Ресурс хранения** (_disk_) - универсальная абстракция дискового ресурса в платформе DECORT. Платформа поддерживает различные типы систем хранения данных, но при этом управление созданными на разных системах хранения дисками осуществляется посредством унифицированного набора действий, например, "подключить диск к _compute_", "увеличить размер диска", "сделать мгновенный снимок диска", "настроить параметры быстродействия диска". +8. **Виртуальный сервер** – экземпляр _compute_, в основе технической реализации которого лежит виртуальная машина, работающая в облаке DECORT и доступна по сети. Виртуальный сервер характеризуется количеством выделенных ему CPU (аргумент`cpu`), объемом ОЗУ (`ram`), размером загрузочного диска (`boot_disk size`). При создании виртуального сервера на загрузочный диск устанавливается образ операционной системы, заданный в аргументе `image_id`. Помимо загрузочного диска к виртуальному серверу можно подключить несколько дисков для хранения прикладных данных, список которых задается аргументами `extra_disks`. Виртуальный сервер идентифицируется по комбинации аргументов `name` (имя сервера) и `rgid` (идентификатор ресурсной группы). Обратите внимание, что имя виртуального сервера `name` уникально только в рамках одной и той же ресурсной группы. +9. **Виртуальный сетевой сегмент** (_Virtual Network Segment_ или _ViNS_) - сетевой сегмент и обеспечивающая его функционирование виртуальная инфраструктура, которые пользователь может создавать для своих нужд на уровне ресурсной группы или подписчика (_account_). ViNS можно создать полностью изолированным от внешних сетей (см. ниже _External Network_) или с подключением во внешнюю сеть. Внутри ViNS работает DHCP-сервис, обеспечивающий управление IP адресами экземпляров _compute_, подключённых в этот ViNS. +10. **Внешняя сеть** (_External Network_) - сетевой сегмент, через который платформа DECORT взаимодействует с внешними по отношению к ней сетевыми ресурсами. Например, в случае с публичным облаком на базе DECORT в качестве внешней сети выступает сеть Интернет. В отличие от ViNS платформа не управляет внешней сетью, а лишь пользуется её ресурсами. В платформе может быть настроено несколько внешних сетей с различными диапазонами IP адресов, и существует механизм управления доступом пользователей к внешним сетям. +11. Сетевой доступ к экземпляру _compute_ (виртуальному серверу) реализуется через его подключение к ViNS и/или прямое подключение во внешнюю сеть (External Network). Один и тот же экземпляр _compute_ может одновременно иметь несколько подключений в разные ViNS и/или различные внешние сети. + +## Способы авторизации +Облачная платформа DECORT поддерживает три базовых типа авторизации: +1. С использованием авторизационного провайдера, работающего по протоколу _Oauth2_. Данный способ является предпочтительным, так как обеспечивает бОльшую гибкость и безопасность. Для авторизации в этом режиме при инициализации Terrafrom провайдера DECORT необходимо указать параметры `oauth2_url` и `controller_url`, а также предоставить одно из нижеперечисленного: + - Комбинация Application ID & Application secret, соответствующих пользователю, от имени которого будет осуществляться управление облачными ресурсами в текущей сессии. В процессе проверки предоставленных Application ID & Application secret модуль получает от авторизационного провайдера токен (JSON Web Token, JWT), который затем используется для доступа к указанному контроллеру DECORT. Для авторизации по данному варианту, при инициализации Terraform провайдера DECORT следует установить аргумент `authenticator=decs3o` и задать аргументы `app_id` и `app_secret` (или определить соответствующие переменные окружения `DECORT_APP_ID` и `DECORT_APP_SECRET`). + - JSON Web Token – заранее полученный от авторизационного провайдера токен доступа, ассоциированный с определенным пользователем, от имени которого будет осуществляться управление облачными ресурсами в текущей сессии. Для авторизации по данному варианту, при инициализации Terraform провайдера DECORT следует установить аргумент `authenticator=jwt` и задать аргумент `jwt` (или определить переменную окружения `DECORT_JWT`). +2. С использованием комбинации _имя пользователя : пароль_. Данный режим не использует внешних авторизационных провайдеров и подразумевает, что пользователь с такой комбинацией зарегистрирован непосредственно на указанном в параметре `controller_url` контроллере облачной платформы DECORT. + - Чтобы провайдер авторизовался по данному варианту, при его инициализации следует установить аргумент `authenticator=legacy` и задать аргументы `user` и `password` (или определить соответствующие переменные окружения `DECORT_USER` и `DECORT_PASSWORD`). +3. С использованием авторизационного провайдера, работающего по протоколу _Oauth2_oidc_. Для авторизации в этом режиме при инициализации Terrafrom провайдера DECORT необходимо указать параметры `oauth2_url` и `controller_url`, а также Application ID & Application secret, _имя пользователя и пароль_, соответствующих пользователю, от имени которого будет осуществляться управление облачными ресурсами в текущей сессии, и _имя домена_. В процессе проверки предоставленных Application ID & Application secret и пары _имя пользователя-пароль_ модуль получает от авторизационного провайдера токен (JSON Web Token, JWT), который затем используется для доступа к указанному контроллеру DECORT. Для авторизации по данному варианту, при инициализации Terraform провайдера DECORT следует установить аргумент `authenticator=bvs`, задать аргументы `app_id` и `app_secret` (или определить соответствующие переменные окружения `DECORT_APP_ID` и `DECORT_APP_SECRET`), `bvs_user` и `bvs_password` (или определить соответствующие переменные окружения `DECORT_BVS_USER` и `DECORT_BVS_PASSWORD`), а также указать `domain` (или определить соответствующие переменные окружения `DECORT_DOMAIN`). + +После успешной авторизации пользователь (или приложение-клиент) получает доступ к ресурсам, находящимся под управлением соответствующего DECORT контроллера. Доступ предоставляется в рамках подписчиков (_account_), с которыми ассоциирован данный пользователь (_user_), и в соответствии с присвоенными ему ролями. + +## Пользовательская и административная группы API +Пользовательская группа API - группа API платформы DECORT, которая позволяет выполнять операции с платформой с правами обычного пользователя. Покрывает большую часть задач. +Административная группа API - группа API платформы DECORT, которая позволяет выполнять операции с платформой с расширенными правами. Данные права подразумевают расширенный перечень операций над ресурсами, расширенный перечень ресурсов, расширенную информацию. Требуются права администратора для взаимодействия с этой группой API. diff --git a/wiki/4.6.1/04.-Начало-работы-с-terraform-провайдером-DECORT.md b/wiki/4.6.1/04.-Начало-работы-с-terraform-провайдером-DECORT.md new file mode 100644 index 0000000..edaa664 --- /dev/null +++ b/wiki/4.6.1/04.-Начало-работы-с-terraform-провайдером-DECORT.md @@ -0,0 +1,6 @@ +Данный раздел описывает: +- Системные требования +- Установку провайдера +- Инициализацию провайдера +- Переключение режима работы между разными группами API +- Получение gid/grid_id площадки diff --git a/wiki/4.6.1/04.01-Установка-Terraform-провайдера-DECORT.md b/wiki/4.6.1/04.01-Установка-Terraform-провайдера-DECORT.md new file mode 100644 index 0000000..7a44fe9 --- /dev/null +++ b/wiki/4.6.1/04.01-Установка-Terraform-провайдера-DECORT.md @@ -0,0 +1,150 @@ +## Системные требования + +Для запуска провайдера вам потребуется машина, на которой установлен Terraform. + +Кроме того, в связи с тем, что начиная с версии 0.12 Terraform изменил алгоритм поиска и инициализации локальных провайдеров, настройка данного провайдера для работы с Terraform 0.12 или более новыми версиями потребует выполнения ряда дополнительных действий. Подробнее см. [8.3 Настройка локального провайдера для работы с новыми версиями Terraform](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/08.-Полезные-советы#user-content-8-3-настройка-локального-провайдера-для-работы-с-новыми-версиями-terraform.md). + +## Установка +Начиная с версии провайдера `4.3.0` в релизном архиве находятся скрипты-инсталляторы. +Чтобы выполнить установку, необходимо: +1. Перейти по адресу: https://repository.basistech.ru/BASIS/terraform-provider-decort/releases +2. Выбрать необходимую версию провайдера подходящую под операционную систему. +3. Скачать архив. +4. Распаковать архив. +5. Выполнить скрипт установщика, `install.sh` или `install.bat` для Windows.
+*Для запуска `install.sh` не забудьте изменить права доступа к файлу* +```bash +chmod u+x install.sh +``` +6. Дождаться сообщения об успешной установке. Установщик выведет актуальный блок конфигурации провайдера, скопируйте его +```bash +DECORT provider version 4.3.0 has been successfully installed + +Copy this provider configuration to main.tf file: +terraform { + required_providers { + decort = { + version = "4.3.0" + source = "basis/decort/decort" + } + } +} +``` +7. После этого, создайте файл `main.tf` в рабочей директории, которая может находится в любом удобном для пользователя месте. +В данном примере, рабочая директория с файлом main.tf находится по пути: +```bash +~/work/tfdir/main.tf +``` +8. Вставьте в `main.tf` блок конфигурации провайдера, который был выведен на экран установщиком: +```terraform +terraform { + required_providers { + decort = { + version = "4.3.0" + source = "basis/decort/decort" + } + } +} +``` +9. Добавьте в файл блок с инициализацией провайдера. +```terraform +provider "decort" { + authenticator = "decs3o" + controller_url = "https://mr4.digitalenergy.online" + oauth2_url = "https://sso.digitalenergy.online" + allow_unverified_ssl = true +} +``` + +10. В консоли выполните команду +```bash +terraform init +``` + +11. В случае успешной установки, Terraform инициализирует провайдер и будет готов к дальнейшей работе. + +## Установка из релизов +Terraform провайдер DECORT имеет скомпилированные релизные версии, которые расположены по адресу: [Релизы](https://repository.basistech.ru/BASIS/terraform-provider-decort/releases). +Чтобы выполнить установку из релиза, необходимо: +1. Перейти по адресу: https://repository.basistech.ru/BASIS/terraform-provider-decort/releases +2. Выбрать необходимую версию провайдера подходящую под операционную систему. +3. Скачать архив. +4. Распаковать архив. +5. Полученный файл (в директории `bin/`) необходимо поместить: +Linux: +```bash +~/.terraform.d/plugins/${host_name}/${namespace}/${type}/${version}/${target} +``` +Windows: +```powershell +%APPDATA%\terraform.d\plugins\${host_name}\${namespace}\${type}\${version}\${target} +``` +Где: +- host_name - имя хоста, держателя провайдера, например, basis +- namespace - пространство имен хоста, например decort +- type - тип провайдера, может совпадать с пространством имен, например, decort +- version - версия провайдера, например 4.3.0 +- target - архитектура операционной системы, например windows_amd64 + +В примере ниже используется путь до провайдера на машине с ОС Linux: + +```bash +~/.terraform.d/plugins/basis/decort/decort/4.3.0/linux_amd64/tf-provider + ^ ^ ^ ^ ^ ^ + host_name | | | | | | + | | | | | + namespace | | | | | + | | | | + type | | | | + | | | + version | | | + | | + target | | + | + исполняемый файл | +``` + +6. После этого, создайте файл `main.tf` в рабочей директории, которая может находится в любом удобном для пользователя месте. +В данном примере, рабочая директория с файлом main.tf находится по пути: +```bash +~/work/tfdir/main.tf +``` +7. Добавьте в `main.tf` следующий блок +```terraform +terraform { + required_providers { + decort = { + version = "4.3.0" + source = "basis/decort/decort" + } + } +} +``` +В поле `version` указывается версия провайдера. +
+**ВНИМАНИЕ: Версии в блоке и в пути к исполняемому файлу провайдера должны совпадать!** + +В поле `source` помещается путь до репозитория с версией вида: + +```bash +${host_name}/${namespace}/${type} +``` + +**ВНИМАНИЕ: Версии в блоке и в пути к исполняемому файлу провайдера должны совпадать!** + +8. Добавьте в файл блок с инициализацией провайдера. +```terraform +provider "decort" { + authenticator = "decs3o" + controller_url = "https://mr4.digitalenergy.online" + oauth2_url = "https://sso.digitalenergy.online" + allow_unverified_ssl = true +} +``` + +9. В консоли выполните команду +```bash +terraform init +``` + +10. В случае успешной установки, Terraform инициализирует провайдер и будет готов к дальнейшей работе. diff --git a/wiki/4.6.1/04.02-Инициализация-Terraform-провайдера-DECORT.md b/wiki/4.6.1/04.02-Инициализация-Terraform-провайдера-DECORT.md new file mode 100644 index 0000000..a3e47f3 --- /dev/null +++ b/wiki/4.6.1/04.02-Инициализация-Terraform-провайдера-DECORT.md @@ -0,0 +1,64 @@ +## Список аргументов для инициализации +Перед началом использования любой Terraform провайдер должен быть инициализирован. + +В процессе инициализации Terraform провайдера DECORT проверяется корректность переданных аргументов и выполняется авторизация в указанном контроллере облачной инфраструктуры. Подробнее о способах авторизации в платформе DECORT смотри соответствующий [раздел](https://repository.basistech.ru/BASIS/terraform-provider-decort/src/branch/main/wiki/4.6.1/03.-Обзор-облачной-платформы-DECORT#user-content-способы-авторизации.md). + +При инициализации Terraform провайдера DECORT используются следующие аргументы: + +| Аргумент | Переменная окружения | Описание | +| --- | --- | --- | +| allow_unverified_ssl | - | Если данный аргумент явно установлен в `true`, то провайдер **не будет** проверять SSL сертификаты при взаимодействии с авторизационным сервисом OAuth2 и контроллером облачной платформы.
Отключение проверок может быть полезным при работе в доверенной среде, использующей самоподписанные SSL сертификаты. Однако, так как отключение проверок несёт потенциальные риски безопасности, данную настройку следует использовать с осторожностью.
Разрешённые значения: `false` (значение по умолчанию) и `true`. | +| app_id | DECORT_APP_ID | Идентификатор приложения (клиента) для авторизации в контроллере облачной платформы в режиме `decs3o` или `bvs`.
Аргументы `app_id` и `app_secret` являются обязательными для режимов авторизации `authenticator=decs3o` и `authenticator=bvs`.
Если `app_id` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_APP_ID`. | +| app_secret | DECORT_APP_SECRET | Секретный код приложения (клиента) для авторизации в контроллере облачной платформы в режиме `decs3o` или `bvs`.
Аргументы `app_id` и `app_secret` являются обязательными для режимов авторизации `authenticator=decs3o` и `authenticator=bvs`.
Если `app_secret` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_APP_SECRET`. | +| authenticator | - | Режим авторизации при подключении к контроллеру облачной платформы.
Доступные режимы: `decs3o`, `legacy`, `jwt` или `bvs`.
Данный аргумент является обязательным. | +| bvs_user | DECORT_BVS_USER | Имя пользователя для авторизации в контроллере облачной платформы в режиме `bvs`.
Аргументы `bvs_password` и `bvs_user` являются обязательными для режима авторизации `authenticator=bvs`.
Если `bvs_user` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_BVS_USER`. | +| bvs_password | DECORT_BVS_PASSWORD | Пароль пользователя для авторизации в контроллере облачной платформы в режиме `bvs`.
Аргументы `bvs_user` и `bvs_password` являются обязательными для режима авторизации `authenticator=bvs`.
Если `bvs_password` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_BVS_PASSWORD`. | +| domain | DECORT_DOMAIN | Имя домена в контроллере облачной платформы в режиме `bvs`.
Данный аргумент является обязательным.
Если `domain` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_DOMAIN`. | +| controller_url | DECORT_CONTROLLER_URL | URL контроллера облачной платформы, через который будет осуществляться управление облачными ресурсами.
Данный аргумент является обязательным. | +| jwt | DECORT_JWT | JSON Web Token (JWT), который используется для авторизации в контроллере облачной платформы в режиме `jwt`.
Данный аргумент является обязательным для режима авторизации `authenticator=jwt`.
Если `jwt` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_JWT` | +| oauth2_url | DECORT_OAUTH2_URL | URL авторизационного сервиса OAuth2, который используется для управления доступом пользователей (или программных клиентов) к контроллеру облачной платформы.
Данный аргумент является обязательным для режимов авторизации `authenticator=decs3o`, `authenticator=bvs` и `authenticator=jwt`.
Если `oauth2_url` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_OAUTH2_URL` | +| password | DECORT_PASSWORD | Пароль для авторизации в контроллере облачной платформы в режиме `legacy`.
Аргументы `password` и `user` являются обязательными для режима авторизации `authenticator=legacy`.
Если `password` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_PASSWORD`. | +| user | DECORT_USER | Имя пользователя для авторизации в контроллере облачной платформы в режиме `legacy`.
Аргументы `user` и `password` являются обязательными для режима авторизации `authenticator=legacy`.
Если `user` не задан в tf-файле, то провайдер будет использовать значение из переменной окружения `DECORT_USER`. | + +## Пример инициализации в режиме авторизации `decs3o` +Пример инициализации Terraform провайдера DECORT: +```terraform +provider "decort" { + authenticator = "decs3o" + controller_url = "https://ctrl.decort.online" + oauth2_url = "https://oauth2.decort.online:7777" +} +``` + +В данном примере используется режим авторизации `decs3o`. + +Как отмечено выше, в данном режиме требуется указать аргументы `app_id` и `app_secret`, идентифицирующие пользователя (или приложение-клиент), от лица которого будут выполняться дальнейшие действия. Однако, так как данная информация является конфиденциальной (по сути, она эквивалентна паре _имя пользователя : пароль_), то в общем случае заносить такого рода данные в tf-файл не следует. Рекомендуется определять в среде запуска Terraform переменные окружения `DECORT_APP_ID` и `DECORT_APP_SECRET`, из которых провайдер извлечёт нужные данные. Приведенный пример подразумевает, что нужная информация будет получена из этих переменных окружения. + +Пользователь, от лица которого Terrafrom будет выполнять действия в облачной платформе, должен заранее создать пару _Application ID_ и _Application Secret_ в авторизационном приложении OAuth2. Именно эти значения, а также URL авторизационного приложения Oauth2, должны присваиваться аргументам `app_id`, `app_secret` и `oauth2_url` соответственно для успешной инициализации провайдера. + +Также обратите внимание на формат задания аргументов `controller_url` и `oauth2_url`. В общем случае они должны содержать идентификатор протокола (_https://_) и сетевой порт, если он отличается от порта по умолчанию (в примере для авторизационного сервиса OAuth2 указан порт _7777_). Эту информацию вы можете узнать у администратора вашей облачной инфраструктуры DECORT. + +## Пример инициализации в режиме авторизации `bvs` +Пример инициализации Terraform провайдера DECORT: +```terraform +provider "decort" { + authenticator = "bvs" + controller_url = "https://delta.qa.loc" + oauth2_url = "https://bvs-delta.qa.loc:8443" + app_id = "delta" + app_secret = "" + bvs_password = "" + bvs_user = "" + domain = "dynamix" +} +``` + +В данном примере используется режим авторизации `bvs`. + +Как отмечено выше, в данном режиме требуется указать аргументы `app_id` - идентификатор площадки - delta, alpha, poc, etc. Можно найти на странице администратора по следующему пути: вкладка безопасность - клиентские сервисы - наименование площадки. `app_secret` - пароль площадки. Можно найти на странице администратора по следующему пути: вкладка безопасность - клиентские сервисы - наименование площадки (символ i) - поле "Пароль". Однако, так как данная информация является конфиденциальной, то в общем случае заносить такого рода данные в tf-файл не следует. Рекомендуется определять в среде запуска Terraform переменные окружения `DECORT_APP_ID` и `DECORT_APP_SECRET`, из которых провайдер извлечёт нужные данные. Приведенный пример подразумевает, что нужная информация будет получена из этих переменных окружения. +Также обязательными аргументами являются: `bvs_user` - имя пользователя, `bvs_password` - пароль пользователя. Рекомендуется не заносить их в tf-файл, а определять в среде запуска Terraform переменные окружения `DECORT_BVS_USER` и `DECORT_BVS_PASSWORD`, из которых провайдер извлечёт нужные данные. Приведенный пример подразумевает, что нужная информация будет получена из этих переменных окружения. +Домен для подключения `domain` - указывается наименование площадки. Данный аргумент является обязательным. Рекомендуется не заносить его в tf-файл, а определять в среде запуска Terraform переменную окружения `DECORT_DOMAIN`, из которой провайдер извлечёт нужные данные. Приведенный пример подразумевает, что нужная информация будет получена из этих переменных окружения. + +Пользователь, от лица которого Terrafrom будет выполнять действия в облачной платформе, должен заранее получить от администратора _Application ID_ и _Application Secret_, _bvs user_ и _bvs password_, а также _domain_. А также осуществить первичный вход на платформу посредством браузера. + +Также обратите внимание на формат задания аргументов `controller_url` и `oauth2_url`. В общем случае они должны содержать идентификатор протокола (_https://_) и сетевой порт, если он отличается от порта по умолчанию (в примере для авторизационного сервиса OAuth2 указан порт _8443_). Эту информацию вы можете узнать у администратора вашей облачной инфраструктуры DECORT. diff --git a/wiki/4.6.1/04.03-Переключение-между-группами-API.md b/wiki/4.6.1/04.03-Переключение-между-группами-API.md new file mode 100644 index 0000000..fb722ac --- /dev/null +++ b/wiki/4.6.1/04.03-Переключение-между-группами-API.md @@ -0,0 +1,38 @@ +Так как платформа DECORT предоставляет для работы две группы API, то terraform провайдер позволяет свободно переключать режимы работы между этими группами. +По умолчанию стоит пользовательская группа API. Ее можно сменить на административную группу. +Если прав у пользователя будет достаточно, то запрос будет выполнен, если нет, то будет ошибка: +```bash +Permission denied +``` +Которая говорит о том, что прав недостаточно. Тогда для выполнения операции обратитесь к администратору платформы. +Установка режима взаимодействия с группами API осуществляется через установку переменной окружения _DECORT_ADMIN_MODE_. +Для более подробного описания возможностей каждой группы API см. соответствующий раздел. + +## Переключение режима работы в Windows +Используйте сл. команду: +```Powershell +$Env:DECORT_ADMIN_MODE=1 +``` +Для отключения: +```Powershell +$Env:DECORT_ADMIN_MODE=0 +``` +## Переключение режима работы в Linux +Используйте сл. команду: +```bash +DECORT_ADMIN_MODE=1 +``` +или +```bash +export DECORT_ADMIN_MODE=1 +``` +Для отключения: +```bash +DECORT_ADMIN_MODE=0 +``` +или +```bash +export DECORT_ADMIN_MODE=0 +``` +**ОБРАТИТЕ ВНИМАНИЕ** +Переменные окружения создаются для терминальной сессии. В сл. раз их придется задавать еще раз, если требуется режим, отличный от пользовательского. diff --git a/wiki/4.6.1/04.04-Получение-gid-или-grid_id.md b/wiki/4.6.1/04.04-Получение-gid-или-grid_id.md new file mode 100644 index 0000000..4b316ac --- /dev/null +++ b/wiki/4.6.1/04.04-Получение-gid-или-grid_id.md @@ -0,0 +1,31 @@ +Платформа может располагаться на нескольких площадках(grid). +Такие площадки имеют свой id. +Для создания некоторых ресурсов требуется ввести grid_id или gid площадки. +Получение gid различается для пользовательского и административного API. + +## Получение gid для пользовательского API +Для получения gid с помощью пользовательского API, необходимо получить информацию из _data_source_ функции _decort_locations_list_, как указано ниже: +```terraform +data "decort_locations_list" "ll" { + +} + +output "test" { + value = data.decort_locations_list.ll +} +``` +В файл состояния будет сохранен результат, где можно посмотреть доступные для работы площадки. + +## Получение gid для административного API +Для получения gid с помощью административного API, необходимо получить информацию из _data_source_ функции _decort_grid_list_, как указано ниже: +```terraform +data "decort_grid_list" "gl" { + +} + +output "test" { + value = data.decort_grid_list.gl +} + +``` +В файл состояния будет сохранен результат, где можно посмотреть доступные для работы площадки. diff --git a/wiki/4.6.1/04.05-Сборка-terraform-провайдера-в-образ.md b/wiki/4.6.1/04.05-Сборка-terraform-провайдера-в-образ.md new file mode 100644 index 0000000..02bc8b7 --- /dev/null +++ b/wiki/4.6.1/04.05-Сборка-terraform-провайдера-в-образ.md @@ -0,0 +1,43 @@ +Образ приложения - современный способ запуска приложений. Образ приложения представляет собой контейнер, в который входит ОС и необходимые для работы приложения пакеты. +Способов создать образ приложения довольно много, для этого существуют программы контейнеризации: +- Docker +- Podman +- и другие +Образ представляет собой "зафиксированную" версию приложения, что означает, что никакие изменения в приложения внесены быть не могут. Так же означает то, что приложение не может создавать побочные файлы при работе. +Контейнер - это запущенный экземпляр образа. То есть, один образ может порождать множество контейнеров, каждый из которых будет включать в себя отдельный экземпляр приложения. +Одно из преимуществ работы приложения в контейнере - кроссплатформенность. Это преимущество обуславливается тем, что образ приложения уже включает в себя все необходимое для успешной работы приложения, в том числе операционную систему. Поэтому, пользователю достаточно установить на вычислительной машине программу, которая обеспечивает работу с образами приложений. + +## Docker +Docker является одной из самых популярных программ для работы с образами. +Docker позволяет: +- Создавать образы +- Запускать контейнеры +- Управлять контейнерами +- Управлять образами +Скачать и установить Docker можно по ссылке https://docs.docker.com/get-docker/ + +## Сборка terraform провайдера +### Требования: +- Docker +- git +- Компилятор языка GO += make +### Установка необходимых программ +1. Компилятор языка GO можно скачать и установить по ссылке: https://go.dev/dl/ +2. Docker можно скачать и установить по ссылке выше. +3. Git можно скачать и установить по ссылке: https://git-scm.com/ +4. Программа make входит в пакет установленных программ для ОС Linux. Для Windows можно воспользоваться инструкцией со stack overflow: https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows +### Порядок действий +1. Склонировать репозиторий с провайдером: +```bash +git clone https://github.com/rudecs/terraform-provider-decort.git +``` +2. Перейти в директорию со скачанным кодом: +```bash +cd terraform-provider-decort +``` +3. Выполнить команду: +```bash +make image +``` +В результате выполнения данной последовательности, будет создан docker образ, который содержит в себе приложение terraform, terraform провайдер. diff --git a/wiki/4.6.1/05.-Работа-с-terraform.md b/wiki/4.6.1/05.-Работа-с-terraform.md new file mode 100644 index 0000000..675f2ea --- /dev/null +++ b/wiki/4.6.1/05.-Работа-с-terraform.md @@ -0,0 +1,4 @@ +Раздел описывает некоторые практики работы с terraform, которые могут быть полезны пользователю. +Раздел включает в себя следующие статьи: +- Импортирование ресурсов +- Работа с таймаутами diff --git a/wiki/4.6.1/05.01-Импортирование-ресурсов.md b/wiki/4.6.1/05.01-Импортирование-ресурсов.md new file mode 100644 index 0000000..8a419d3 --- /dev/null +++ b/wiki/4.6.1/05.01-Импортирование-ресурсов.md @@ -0,0 +1,75 @@ +Импортирование ресурсов в terraform позволяет привести в соответствие состояние terraform (.tfstate) к состоянию ресурса в платформе. +Необходимость такого приведения возникает в нескольких случаях: +- Ресурс был создан через портал платформы, работа продолжается через terraform провайдер, +- Ресурс был создан через terraform провайдер, однако был изменен через портал платформы, +- Ресурс был создан через terraform провайдер, однако был изменен другим пользователем через terraform провайдер, +- И так далее + +Такие расхождения в состоянии ресурсов нередки, путей их решения несколько: +- Использовать импортирование ресурсов, +- Использовать общие файлы состояний ресурсов, к которым будут иметь доступ все участники, занятые в работе с платформой. +В текущем разделе рассматривается первый вариант. + +## Импортирование ресурсов +Импортирование ресурсов позволяет совершить запрос к платформе, чтобы сформировать файл состояния. +Чтобы совершить импортирование ресурсов необходимо ввести сл. команду: +```bash +terraform import . +``` +## Пример +Предположим, что у нас ресурс, описывающий диск: +```terraform +resource "decort_disk" "disk" { + account_id = 121212 + gid = 3333 + disk_name = "mySuperDisk" + size_max = 100500 +} +``` +Если запустить команду: +```bash +terraform apply +``` +То у нас будет создан новый диск. +Но, такой диск уже есть на площадке и мы хотели бы сформировать .tfstate для этого ресурса. +Поэтому, для начала, необходимо получить список дисков: +```terraform +data "decort_disk_list" "dl"{ + +} +output "test" { + value = data.decort_disk_list.dl +} +``` +В полученных данных необходимо найти требуемый диск, получить его id - параметр disk_id. Пусть это будет - 777777 +Теперь можно выполнить импортирование: +```bash +terraform import decort_disk.disk 777777 +``` +Команда должна успешно завершиться, появиться файл состояний, который позволит манипулировать ресурсом. + +## Ошибки при импортировании +При импортировании ресурса может возникнуть сл. ошибка: +```bash +Error: : required field is not set +``` +Где - наименование поля. +Ошибка возникает в том случае, если в описании ресурса отсутствует обязательное поле. +Например: +```terraform +resource "decort_disk" "disk" { + account_id = 121212 + gid = 3333 + size_max = 100500 +} +``` +В приведенном выше описании отсутствует поле disk_name, поэтому, при попытке импортирования возникнет ошибка. +Для ее устранения, необходимо выполнить запрос на получение списка дисков, найти недостающее поле, после чего добавить его в описание ресурса. +После этого повторить попытку импортирования. + +## Общий алгоритм устранения ошибок +1. Выполнить запрос импортирования +2. В случае ошибки - внести недостающие поля. +3. Повторить п.1. + + diff --git a/wiki/4.6.1/05.02-Работа-с-таймаутами.md b/wiki/4.6.1/05.02-Работа-с-таймаутами.md new file mode 100644 index 0000000..9a739b4 --- /dev/null +++ b/wiki/4.6.1/05.02-Работа-с-таймаутами.md @@ -0,0 +1,100 @@ +Terraform провайдер DECORT поддерживает тонкую настройку таймаутов выполнения запросов к платформе. Таймауты необходимы для определения максимального времени выполнения запроса. При превышении этого времени соединение рвется и запрос считается невыполненным. +Таймауты применяются при работе с _resource_ функциями провайдера. _Data source_ функции по-умолчанию имеют таймаут в 20 минут и изменяться не может. + +## Стандартные таймауты terraform +| Операция | Время | Описание | +| --- | --- | --- | +| create | 20 минут | Создание ресурса | +| read | 20 минут | Чтение ресурса | +| update | 20 минут | Обновление ресурса | +| delete | 20 минут | Удаление ресурса | +| default | 20 минут | Значение по умолчанию. Устанавливает значение для всех операций | + +## Стандартные таймауты провайдера DECORT +В провайдере DECORT таймауты переопределены для того, чтобы уменьшить нагрузку на платформу. +| Операция | Время | Описание | +| --- | --- | --- | +| create | 10 минут | Создание ресурса | +| read | 5 минут | Чтение ресурса | +| update | 5 минут | Обновление ресурса | +| delete | 5 минут | Удаление ресурса | +| default | 5 минут | Значение по умолчанию. Устанавливает значение для всех операций | + +## Установка таймаутов +Все таймауты можно установить самостоятельно для каждого ресурса. +Для этого используется блок _timeouts_, который имеется в каждом ресурсе провайдера. +Пример: +```terraform +resource "decort_res" "res_name" { + timeouts { + create = "10m" + update = "1m" + delete = "2m" + read = "7m" + #default = "15m" + } +} +``` +Где: +- create - операция создания ресурса +- read - операция чтения ресурса +- update - операция обновления ресурса +- delete - операция удаления ресурса +- default - установит заданное время для всех операций +## Формат установления времени +Как видно из примера выше, провайдер принимает на вход строку вида: +``` +"" +``` +Где: +- time-num - число +- time-val - сокращенная запись значения временного отрезка. + +Таблица с временными отрезками: + +| Отрезок | Значение | +| --- | --- | +| n | наносекунда | +| ms | миллисекунда | +| s | секунда | +| m | минута | +| h | час | + +Примеры: +``` +"10m" +"1s" +"1h10m" +``` +И так далее + +## Работа с таймером через .tf-файл +В .tf-файле, в блоке ресурса можно задавать таймауты для операций над ресурсом, однако, при работе с таймаутом, следует помнить о правиле: +__В случае изменения таймаутов в .tf-файле, операции с новыми таймаутами будут производиться только после apply/plan/destroy__ +То есть, если изменить таймауты и выполнить операцию, то она выполнится со старыми таймаутами, а сл. операция уже будет выполнена с новыми таймаутами. +Это объясняется тем, что значения таймаутов считываются из файла состояний .tfstate при выполнении операции, и новые значения таймаутов попадут туда только при успешно выполненной операции. + +## Ошибки при работе с таймаутом +### context deadline exceeded +Если время таймаута слишком короткое, то можно получить сл. ошибку: +``` +context deadline exceeded +``` +Которая говорит, что было выполнено прерывание работы программы из-за истечения времени на операцию. +Для исправления можно увеличить размер окна таймаута и выполнить успешный запрос (например, с помощью терминала), чтобы новое значения таймаутов было добавлено в .tfstate. В противном случае, файл состояния придется править в ручную, либо удалить его и импортировать ресурс для формирования .tfstate. + +### 504 ошибка +Данная ошибка говорит о том, что сервер принудительно разорвал соединения из-за истечения времени на ответ. +В случае получения данной ошибки, обратитесь в службу технической поддержки. + +## Работа с таймаутами через терминал +Сл. команда выполнит операцию terraform с заданным таймаутом: +```bash +timeout