From 0c97abc8bba4b23d620fcc0b7577cb65868d8003 Mon Sep 17 00:00:00 2001 From: wangzepeng666 Date: Mon, 18 Sep 2023 11:19:23 +0800 Subject: [PATCH] docs(ecs): fix docs issues --- docs/data-sources/availability_zones.md | 12 +- docs/data-sources/compute_instance_v2.md | 27 ++- docs/data-sources/compute_instances.md | 36 ++-- docs/resources/compute_instance_v2.md | 188 ++++++++++-------- docs/resources/compute_interface_attach_v2.md | 21 +- docs/resources/compute_volume_attach_v2.md | 17 +- ...urce_flexibleengine_compute_instance_v2.go | 2 +- ...source_flexibleengine_compute_instances.go | 2 +- 8 files changed, 183 insertions(+), 122 deletions(-) diff --git a/docs/data-sources/availability_zones.md b/docs/data-sources/availability_zones.md index e2ca7f67b..ba70fa1d6 100644 --- a/docs/data-sources/availability_zones.md +++ b/docs/data-sources/availability_zones.md @@ -1,3 +1,9 @@ +--- +subcategory: "Elastic Cloud Server (ECS)" +description: "" +page_title: "flexibleengine_availability_zones" +--- + # flexibleengine_availability_zones Use this data source to get a list of availability zones from FlexibleEngine. @@ -10,11 +16,11 @@ data "flexibleengine_availability_zones" "zones" {} ## Argument Reference -* `region` - (Optional) The `region` to fetch availability zones from, defaults to the provider's `region`. +* `region` - (Optional, String) The `region` to fetch availability zones from, defaults to the provider's `region`. -* `state` - (Optional) The `state` of the availability zones to match, default ("available"). +* `state` - (Optional, String) The `state` of the availability zones to match, default ("available"). -## Attributes Reference +## Attribute Reference `id` is set to hash of the returned zone list. In addition, the following attributes are exported: diff --git a/docs/data-sources/compute_instance_v2.md b/docs/data-sources/compute_instance_v2.md index 84c4ecd5c..84f117402 100644 --- a/docs/data-sources/compute_instance_v2.md +++ b/docs/data-sources/compute_instance_v2.md @@ -1,8 +1,10 @@ --- subcategory: "Elastic Cloud Server (ECS)" +description: "" +page_title: "flexibleengine_compute_instance_v2" --- -# flexibleengine_compute_instance +# flexibleengine_compute_instance_v2 Use this data source to get the details of a specified compute instance. @@ -20,15 +22,15 @@ data "flexibleengine_compute_instance_v2" "demo" { The following arguments are supported: -* `region` - (Optional) The region in which to obtain the server instance. +* `region` - (Optional, String) The region in which to obtain the server instance. -* `name` - (Optional) Specifies the server name, which can be queried with a regular expression. +* `name` - (Optional, String) Specifies the server name, which can be queried with a regular expression. -* `fixed_ip_v4` - (Optional) Specifies the IPv4 addresses of the server. +* `fixed_ip_v4` - (Optional, String) Specifies the IPv4 addresses of the server. -* `flavor_id` - (Optional) Specifies the flavor ID. +* `flavor_id` - (Optional, String) Specifies the flavor ID. -## Attributes Reference +## Attribute Reference In addition to all arguments above, the following attributes are exported: @@ -38,21 +40,22 @@ In addition to all arguments above, the following attributes are exported: * `image_name` - The image name of the instance. * `flavor_name` - The flavor name of the instance. * `key_pair` - The key pair that is used to authenticate the instance. -* `floating_ip` - The EIP address that is associted to the instance. -* `system_disk_id` - The system disk voume ID. +* `floating_ip` - The EIP address that is associated to the instance. +* `system_disk_id` - The system disk volume ID. * `user_data` - The user data (information after encoding) configured during instance creation. * `security_groups` - An array of one or more security group names to associate with the instance. * `network` - An array of one or more networks to attach to the instance. - The network object structure is documented below. + The [network](#ecs_attr_network) object structure is documented below. * `block_device` - An array of one or more disks to attach to the instance. - The block_device object structure is documented below. + The [block_device](#ecs_attr_block_device) object structure is documented below. * `scheduler_hints` - The scheduler with hints on how the instance should be launched. - The available hints are described below. + The [scheduler_hints](#ecs_attr_scheduler_hints) object structure is documented below. * `tags` - The tags of the instance in key/value format. * `metadata` - The metadata of the instance in key/value format. * `status` - The status of the instance. + The `network` block supports: * `uuid` - The network UUID to attach to the server. @@ -61,6 +64,7 @@ The `network` block supports: * `fixed_ip_v4` - The fixed IPv4 address of the instance on this network. * `fixed_ip_v6` - The Fixed IPv6 address of the instance on that network. + The `block_device` block supports: * `uuid` - The volume id on that attachment. @@ -69,6 +73,7 @@ The `block_device` block supports: * `type` - The volume type on that attachment. * `pci_address` - The volume pci address on that attachment. + The `scheduler_hints` block supports: * `group` - The UUID of a Server Group where the instance will be placed into. diff --git a/docs/data-sources/compute_instances.md b/docs/data-sources/compute_instances.md index 92f72cbc7..918e41d0a 100644 --- a/docs/data-sources/compute_instances.md +++ b/docs/data-sources/compute_instances.md @@ -1,5 +1,7 @@ --- subcategory: "Elastic Cloud Server (ECS)" +description: "" +page_title: "flexibleengine_compute_instances" --- # flexibleengine_compute_instances @@ -20,35 +22,36 @@ data "flexibleengine_compute_instances" "demo" { The following arguments are supported: -* `region` - (Optional) The region in which to obtain the server instance. +* `region` - (Optional, String) The region in which to obtain the server instance. -* `name` - (Optional) Specifies the server name, which can be queried with a regular expression. +* `name` - (Optional, String) Specifies the server name, which can be queried with a regular expression. -* `fixed_ip_v4` - (Optional) Specifies the IPv4 addresses of the server. +* `fixed_ip_v4` - (Optional, String) Specifies the IPv4 addresses of the server. -* `flavor_id` - (Optional) Specifies the flavor ID. +* `flavor_id` - (Optional, String) Specifies the flavor ID. -* `status` - (Optional) Specifies the status of the instance. The valid values are as follows: +* `status` - (Optional, String) Specifies the status of the instance. The valid values are as follows: + **ACTIVE**: The instance is running properly. + **SHUTOFF**: The instance has been properly stopped. + **ERROR**: An error has occurred on the instance. -* `flavor_name` - (Optional) Specifies the flavor name of the instance. +* `flavor_name` - (Optional, String) Specifies the flavor name of the instance. -* `image_id` - (Optional) Specifies the image ID of the instance. +* `image_id` - (Optional, String) Specifies the image ID of the instance. -* `availability_zone` - (Optional) Specifies the availability zone where the instance is located. +* `availability_zone` - (Optional, String) Specifies the availability zone where the instance is located. -* `key_pair` - (Optional) Specifies the key pair that is used to authenticate the instance. +* `key_pair` - (Optional, String) Specifies the key pair that is used to authenticate the instance. -## Attributes Reference +## Attribute Reference In addition to all arguments above, the following attributes are exported: * `id` - Data source ID. -* `instances` - List of ECS instance details. The object structure of each ECS instance is documented below. +* `instances` - List of ECS instance details. The [instances](#ecs_attr_instances) object structure is documented below. + The `instances` block supports: * `id` - The instance ID in UUID format. @@ -67,7 +70,7 @@ The `instances` block supports: * `key_pair` - The key pair that is used to authenticate the instance. -* `floating_ip` - The EIP address that is associted to the instance. +* `floating_ip` - The EIP address that is associated to the instance. * `user_data` - The user data (information after encoding) configured during instance creation. @@ -75,13 +78,13 @@ The `instances` block supports: to associate with the instance. * `network` - An array of one or more networks to attach to the instance. - The network object structure is documented below. + The [network](#ecs_attr_network) object structure is documented below. * `volume_attached` - An array of one or more disks to attach to the instance. - The object structure is documented below. + The [volume_attached](#ecs_attr_volume_attached) object structure is documented below. * `scheduler_hints` - The scheduler with hints on how the instance should be launched. - The available hints are described below. + The [scheduler_hints](#ecs_attr_scheduler_hints) object structure is documented below. * `tags` - The tags of the instance in key/value format. @@ -89,6 +92,7 @@ The `instances` block supports: * `status` - The status of the instance. + The `network` block supports: * `uuid` - The network UUID to attach to the server. @@ -101,12 +105,14 @@ The `network` block supports: * `fixed_ip_v6` - The Fixed IPv6 address of the instance on that network. + The `volume_attached` block supports: * `volume_id` - The volume id on that attachment. * `is_sys_volume` - Whether the volume is the system disk. + The `scheduler_hints` block supports: * `group` - The UUID of a Server Group where the instance will be placed into. diff --git a/docs/resources/compute_instance_v2.md b/docs/resources/compute_instance_v2.md index 58051717a..566fff236 100644 --- a/docs/resources/compute_instance_v2.md +++ b/docs/resources/compute_instance_v2.md @@ -269,170 +269,200 @@ function, or the `template_cloudinit_config` resource. The following arguments are supported: -* `region` - (Optional) The region in which to create the server instance. If - omitted, the `region` argument of the provider is used. Changing this - creates a new server. +* `region` - (Optional, String, ForceNew) The region in which to create the server instance. + If omitted, the `region` argument of the provider is used. Changing this creates a new server. -* `name` - (Required) A unique name for the resource. +* `name` - (Required, String) A unique name for the resource. -* `image_id` - (Optional; Required if `image_name` is empty and not booting - from a volume. Do not specify if booting from a volume.) The image ID of - the desired image for the server. Changing this creates a new server. +* `image_id` - (Optional, String, ForceNew) The image ID of the desired image for the server. + It is **Required** if `image_name` is empty and not booting from a volume. Do not specify if booting from a volume. + Changing this creates a new server. -* `image_name` - (Optional; Required if `image_id` is empty and not booting - from a volume. Do not specify if booting from a volume.) The name of the - desired image for the server. Changing this creates a new server. +* `image_name` - (Optional, String, ForceNew) The name of the desired image for the server. + It is **Required** if `image_id` is empty and not booting from a volume. Do not specify if booting from a volume. + Changing this creates a new server. -* `flavor_id` - (Optional; Required if `flavor_name` is empty) The flavor ID of - the desired flavor for the server. Changing this resizes the existing server. +* `flavor_id` - (Optional, String) The flavor ID of the desired flavor for the server. + It is **Required** if `flavor_name` is empty. Changing this resizes the existing server. -* `flavor_name` - (Optional; Required if `flavor_id` is empty) The name of the - desired flavor for the server. Changing this resizes the existing server. +* `flavor_name` - (Optional, String) The name of the desired flavor for the server. + It is **Required** if `flavor_id` is empty. Changing this resizes the existing server. -* `availability_zone` - (Optional) The availability zone in which to create - the server. Changing this creates a new server. +* `availability_zone` - (Optional, String, ForceNew) The availability zone in which to create the server. + Changing this creates a new server. -* `security_groups` - (Optional) An array of one or more security group names +* `security_groups` - (Optional, List) An array of one or more security group names to associate with the server. Changing this results in adding/removing security groups from the existing server. *Note*: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance. -* `network` - (Optional) An array of one or more networks to attach to the - instance. The network object structure is documented below. Changing this +* `network` - (Optional, List, ForceNew) An array of one or more networks to attach to the + instance. The [network](#ecs_arg_network) object structure is documented below. Changing this creates a new server. -* `user_data` - (Optional) The user data to provide when launching the instance. +* `user_data` - (Optional, String, ForceNew) The user data to provide when launching the instance. Changing this creates a new server. -* `metadata` - (Optional) The key/value pairs to associate with the instance. - Changing this updates the existing server metadata. +* `metadata` - (Optional, Map) The key/value pairs to associate with the instance. -* `config_drive` - (Optional) Whether to use the config_drive feature to +* `config_drive` - (Optional, Bool, ForceNew) Whether to use the config_drive feature to configure the instance. Changing this creates a new server. -* `admin_pass` - (Optional) The administrative password to assign to the server. - Changing this changes the root password on the existing server. +* `admin_pass` - (Optional, String) The administrative password to assign to the server. -* `key_pair` - (Optional) The name of a key pair to put on the server. The key +* `key_pair` - (Optional, String, ForceNew) The name of a key pair to put on the server. The key pair must already be created and associated with the tenant's account. Changing this creates a new server. -* `block_device` - (Optional) Configuration of block devices. The block_device - structure is documented below. Changing this creates a new server. - You can specify multiple block devices which will create an instance with +* `block_device` - (Optional, List) Configuration of block devices. The [block_device](#ecs_arg_block_device) object + structure is documented below. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the - following [reference](http://docs.openstack.org/developer/nova/block_device_mapping.html) - for more information. + following [reference](http://docs.openstack.org/developer/nova/block_device_mapping.html) for more information. -* `scheduler_hints` - (Optional) Provide the Nova scheduler with hints on how - the instance should be launched. The available hints are described below. +* `scheduler_hints` - (Optional, List) Provide the Nova scheduler with hints on how + the instance should be launched. The [scheduler_hints](#ecs_scheduler_hints) object structure is documented below. -* `stop_before_destroy` - (Optional) Whether to try stop instance gracefully +* `stop_before_destroy` - (Optional, Bool) Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn't stop within timeout, it will be destroyed anyway. -* `force_delete` - (Optional) Whether to force the FlexibleEngine instance to be - forcefully deleted. This is useful for environments that have reclaim / soft - deletion enabled. - -* `auto_recovery` - (Optional) Configures or deletes automatic recovery of an instance +* `auto_recovery` - (Optional, Bool) Configures or deletes automatic recovery of an instance -* `tags` - (Optional) Specifies the key/value pairs to associate with the instance. +* `tags` - (Optional, Map) Specifies the key/value pairs to associate with the instance. + The `network` block supports: -* `uuid` - (Required unless `port` is provided) The network UUID to - attach to the server. Changing this creates a new server. +* `uuid` - (Optional, String, ForceNew) The network UUID to attach to the server.It is **Required** unless `port` is + provided. Changing this creates a new server. -* `port` - (Required unless `uuid` is provided) The port UUID of a network to - attach to the server. Changing this creates a new server. +* `port` - (Optional, String, ForceNew) The port UUID of a network to attach to the server. + It is **Required** unless `uuid` is provided. Changing this creates a new server. -* `fixed_ip_v4` - (Optional) Specifies a fixed IPv4 address to be used on this +* `fixed_ip_v4` - (Optional, String, ForceNew) Specifies a fixed IPv4 address to be used on this network. Changing this creates a new server. -* `fixed_ip_v6` - (Optional) Specifies a fixed IPv6 address to be used on this +* `fixed_ip_v6` - (Optional, String, ForceNew) Specifies a fixed IPv6 address to be used on this network. Changing this creates a new server. -* `access_network` - (Optional) Specifies if this network should be used for +* `access_network` - (Optional, Bool) Specifies if this network should be used for provisioning access. Accepts true or false. Defaults to false. + The `block_device` block supports: -* `uuid` - (Required unless `source_type` is set to `"blank"` ) The UUID of - the image, volume, or snapshot. Changing this creates a new server. +* `uuid` - (Optional, String, ForceNew) The UUID of the image, volume, or snapshot. + It is Required unless `source_type` is set to `"blank"`. Changing this creates a new server. -* `source_type` - (Required) The source type of the device. Must be one of +* `source_type` - (Required, String, ForceNew) The source type of the device. Must be one of "blank", "image", "volume", or "snapshot". Changing this creates a new server. -* `volume_size` - The size of the volume to create (in gigabytes). Required - in the following combinations: source=image and destination=volume, - source=blank and destination=local, and source=blank and destination=volume. - Changing this creates a new server. +* `volume_size` - (Optional, Int, ForceNew)The size of the volume to create (in gigabytes). Required + in the following combinations: source=image and destination=volume, source=blank and destination=local, + and source=blank and destination=volume. Changing this creates a new server. -* `volume_type` - (Optional) Currently, the value can be `SSD` (ultra-I/O disk type), - `SAS` (high I/O disk type), or `SATA` (common I/O disk type) +* `volume_type` - (Optional, String, ForceNew) Currently, the value can be `SSD` (ultra-I/O disk type), + `SAS` (high I/O disk type), or `SATA` (common I/O disk type). Changing this creates a new server. -* `boot_index` - (Optional) The boot index of the volume. It defaults to 0, which +* `boot_index` - (Optional, Int, ForceNew) The boot index of the volume. It defaults to 0, which indicates that it's a system disk. Changing this creates a new server. -* `destination_type` - (Optional) The type that gets created. Possible values +* `destination_type` - (Optional, String, ForceNew) The type that gets created. Possible values are "volume" and "local". Changing this creates a new server. -* `delete_on_termination` - (Optional) Delete the volume / block device upon - termination of the instance. Defaults to false. Changing this creates a - new server. +* `delete_on_termination` - (Optional, Bool, ForceNew) Delete the volume / block device upon + termination of the instance. Defaults to false. Changing this creates a new server. -* `disk_bus` - (Optional) The low-level disk bus that will be used, for example, *virtio*, *scsi*. +* `disk_bus` - (Optional, String) The low-level disk bus that will be used, for example, *virtio*, *scsi*. Most common thing is to leave this empty. Changing this creates a new server. + The `scheduler_hints` block supports: -* `group` - (Optional) Specifies the **anti-affinity** group ID. The instance will be placed into that group. +* `group` - (Optional, String, ForceNew) Specifies the **anti-affinity** group ID. + The instance will be placed into that group. Changing this creates a new server. -* `tenancy` - (Optional) Specifies whether the ECS is created on a Dedicated Host (DeH) or in a shared pool (default). - The value can be **shared** or **dedicated**. +* `tenancy` - (Optional, String, ForceNew) Specifies whether the ECS is created on a Dedicated Host (DeH) or in a + shared pool (default). The value can be **shared** or **dedicated**. -* `deh_id` - (Optional) Specifies the DeH ID. This parameter takes effect only when the value of tenancy is dedicated. - If you do not specify this parameter, the system will automatically assign a DeH to you to deploy ECSs. +* `deh_id` - (Optional, String, ForceNew) Specifies the DeH ID.This parameter takes effect only when the value of tenancy + is dedicated. If you do not specify this parameter, the system will automatically assign a DeH to you to deploy ECSs. -## Attributes Reference +## Attribute Reference The following attributes are exported: * `region` - See Argument Reference above. + * `name` - See Argument Reference above. + * `access_ip_v4` - The first detected Fixed IPv4 address *or* the Floating IP. + * `access_ip_v6` - The first detected Fixed IPv6 address. + * `metadata` - See Argument Reference above. + * `security_groups` - See Argument Reference above. + * `flavor_id` - See Argument Reference above. + * `flavor_name` - See Argument Reference above. -* `network/uuid` - See Argument Reference above. -* `network/port` - See Argument Reference above. -* `network/name` - The human-readable name of the network. -* `network/fixed_ip_v4` - The Fixed IPv4 address of the Instance on that network. -* `network/fixed_ip_v6` - The Fixed IPv6 address of the Instance on that network. -* `network/mac` - The MAC address of the NIC on that network. -* `all_metadata` - Contains all instance metadata, even metadata not set - by Terraform. + +* `network` - See Argument Reference above. The [network](#ecs_attr_network) object structure is documented below. + +* `all_metadata` - Contains all instance metadata, even metadata not set by Terraform. + * `auto_recovery` - See Argument Reference above. + * `tags` - See Argument Reference above. -* `floating_ip` - The EIP address that is associted to the instance. -* `system_disk_id` - The system disk voume ID. + +* `floating_ip` - The EIP address that is associate to the instance. + +* `system_disk_id` - The system disk volume ID. + * `volume_attached` - An array of one or more disks to attach to the instance. - The volume_attached object structure is documented below. + The [volume_attached](#ecs_attr_volume_attached) object structure is documented below. + * `status` - The status of the instance. + +The `network` block supports: + +* `uuid` - See Argument Reference above. + +* `port` - See Argument Reference above. + +* `name` - The human-readable name of the network. + +* `fixed_ip_v4` - The Fixed IPv4 address of the Instance on that network. + +* `fixed_ip_v6` - The Fixed IPv6 address of the Instance on that network. + +* `mac` - The MAC address of the NIC on that network. + + The `volume_attached` block supports: * `uuid` - The volume id on that attachment. + * `boot_index` - The volume boot index on that attachment. + * `size` - The volume size on that attachment. + * `type` - The volume type on that attachment. + * `pci_address` - The volume pci address on that attachment. +## Timeouts + +This resource provides the following timeouts configuration options: + +* `create` - Default is 30 minutes. +* `update` - Default is 30 minutes. +* `delete` - Default is 30 minutes. + ## Import Instances can be imported by their `id`. For example, diff --git a/docs/resources/compute_interface_attach_v2.md b/docs/resources/compute_interface_attach_v2.md index 95ddfa69b..fd215703b 100644 --- a/docs/resources/compute_interface_attach_v2.md +++ b/docs/resources/compute_interface_attach_v2.md @@ -112,22 +112,22 @@ resource "flexibleengine_compute_interface_attach_v2" "example_interface_attach_ The following arguments are supported: -* `region` - (Optional) The region in which to create the interface attachment. +* `region` - (Optional, String, ForceNew) The region in which to create the interface attachment. If omitted, the `region` argument of the provider is used. Changing this creates a new attachment. -* `instance_id` - (Required) The ID of the Instance to attach the Port or Network to. +* `instance_id` - (Required, String, ForceNew) The ID of the Instance to attach the Port or Network to. -* `port_id` - (Optional) The ID of the Port to attach to an Instance. +* `port_id` - (Optional, String, ForceNew) The ID of the Port to attach to an Instance. This option and `network_id` are mutually exclusive. -* `network_id` - (Optional) The ID of the Network to attach to an Instance. A port will be created automatically. - This option and `port_id` are mutually exclusive. +* `network_id` - (Optional, String, ForceNew) The ID of the Network to attach to an Instance. + A port will be created automatically. This option and `port_id` are mutually exclusive. -* `fixed_ip` - (Optional) An IP address to assosciate with the port. +* `fixed_ip` - (Optional, String, ForceNew) An IP address to associate with the port. This option cannot be used with port_id. You must specify a network_id. The IP address must lie in a range on the supplied network. -## Attributes Reference +## Attribute Reference The following attributes are exported: @@ -137,6 +137,13 @@ The following attributes are exported: * `network_id` - See Argument Reference above. * `fixed_ip` - See Argument Reference above. +## Timeouts + +This resource provides the following timeouts configuration options: + +* `create` - Default is 10 minutes. +* `delete` - Default is 10 minutes. + ## Import Interface Attachments can be imported using the Instance ID and Port ID diff --git a/docs/resources/compute_volume_attach_v2.md b/docs/resources/compute_volume_attach_v2.md index 473cc9df8..5e56af60e 100644 --- a/docs/resources/compute_volume_attach_v2.md +++ b/docs/resources/compute_volume_attach_v2.md @@ -59,23 +59,23 @@ output "volume devices" { The following arguments are supported: -* `region` - (Optional) The region in which to obtain the V2 Compute client. +* `region` - (Optional, String, ForceNew) The region in which to obtain the V2 Compute client. A Compute client is needed to create a volume attachment. If omitted, the `region` argument of the provider is used. Changing this creates a new volume attachment. -* `instance_id` - (Required) The ID of the Instance to attach the Volume to. +* `instance_id` - (Required, String, ForceNew) The ID of the Instance to attach the Volume to. -* `volume_id` - (Required) The ID of the Volume to attach to an Instance. +* `volume_id` - (Required, String, ForceNew) The ID of the Volume to attach to an Instance. -* `device` - (Optional) The device of the volume attachment (ex: `/dev/vdc`). +* `device` - (Optional, String) The device of the volume attachment (ex: `/dev/vdc`). Being able to specify a device is dependent upon the hypervisor in use. There is a chance that the device specified in Terraform will not be the same device the hypervisor chose. If this happens, Terraform will wish to update the device upon subsequent applying which will cause the volume to be detached and reattached indefinitely. Please use with caution. -## Attributes Reference +## Attribute Reference The following attributes are exported: @@ -86,6 +86,13 @@ The following attributes are exported: information is dependent upon the hypervisor in use. In some cases, this should not be used as an authoritative piece of information. +## Timeouts + +This resource provides the following timeouts configuration options: + +* `create` - Default is 10 minutes. +* `delete` - Default is 10 minutes. + ## Import Volume Attachments can be imported using the Instance ID and Volume ID diff --git a/flexibleengine/data_source_flexibleengine_compute_instance_v2.go b/flexibleengine/data_source_flexibleengine_compute_instance_v2.go index d407e1211..8ddb9f49c 100644 --- a/flexibleengine/data_source_flexibleengine_compute_instance_v2.go +++ b/flexibleengine/data_source_flexibleengine_compute_instance_v2.go @@ -130,7 +130,7 @@ func dataSourceComputeInstance() *schema.Resource { }, "scheduler_hints": { Type: schema.TypeSet, - Optional: true, + Computed: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "group": { diff --git a/flexibleengine/data_source_flexibleengine_compute_instances.go b/flexibleengine/data_source_flexibleengine_compute_instances.go index 9510ba58a..19b4051dc 100644 --- a/flexibleengine/data_source_flexibleengine_compute_instances.go +++ b/flexibleengine/data_source_flexibleengine_compute_instances.go @@ -152,7 +152,7 @@ func dataSourceComputeInstances() *schema.Resource { }, "scheduler_hints": { Type: schema.TypeSet, - Optional: true, + Computed: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "group": {