diff --git a/docs/data-sources/vmaas_instance_disk_type.md b/docs/data-sources/vmaas_instance_disk_type.md new file mode 100644 index 0000000..7a773a1 --- /dev/null +++ b/docs/data-sources/vmaas_instance_disk_type.md @@ -0,0 +1,40 @@ +--- +page_title: "hpegl_vmaas_instance_disk_type Data Source - terraform-provider-hpegl" +subcategory: "vmaas" +description: |- + The hpegl_vmaas_instance_disk_type data source can be used to discover the ID of a disk type. + This can then be used with resources or data sources that require a hpegl_vmaas_instance_disk_type, + such as the hpegl_vmaas_instance resource. +--- +# hpegl_vmaas_instance_disk_type (Data Source) + +The hpegl_vmaas_instance_disk_type data source can be used to discover the ID of a disk type. + This can then be used with resources or data sources that require a hpegl_vmaas_instance_disk_type, + such as the hpegl_vmaas_instance resource. + +## Example Usage + +```terraform +# (C) Copyright 2024 Hewlett Packard Enterprise Development LP + +data "hpegl_vmaas_instance_disk_type" "vmaas_cloud_vmware_thin_lazy" { + name = "thick (lazy zero)" + cloud_id = data.hpegl_vmaas_cloud.cloud.id + layout_id = data.hpegl_vmaas_layout.vmware.id +} +``` + + +## Schema + +### Required + +- `cloud_id` (String) Unique ID to identify a cloud. +- `layout_id` (String) Unique ID to identify a layout. +- `name` (String) Name of the disk type as it appears on HPE GreenLake for private cloud dashboard. If there is no disk type with this name, a 'NOT FOUND' error will returned. + +### Read-Only + +- `id` (String) The ID of this resource. + + diff --git a/examples/data-sources/hpegl_vmaas_instance_disk_type/data-source.tf b/examples/data-sources/hpegl_vmaas_instance_disk_type/data-source.tf new file mode 100644 index 0000000..02182ee --- /dev/null +++ b/examples/data-sources/hpegl_vmaas_instance_disk_type/data-source.tf @@ -0,0 +1,7 @@ +# (C) Copyright 2024 Hewlett Packard Enterprise Development LP + +data "hpegl_vmaas_instance_disk_type" "vmaas_cloud_vmware_thin_lazy" { + name = "thick (lazy zero)" + cloud_id = data.hpegl_vmaas_cloud.cloud.id + layout_id = data.hpegl_vmaas_layout.vmware.id +} \ No newline at end of file