-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 generated by tfplugindocs --> | ||
## 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. | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
examples/data-sources/hpegl_vmaas_instance_disk_type/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |