Skip to content

Commit

Permalink
Generate docs for new release (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
joannelynch92 authored Oct 24, 2024
1 parent be99ece commit 34013b8
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docs/data-sources/vmaas_instance_storage_controller.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
page_title: "hpegl_vmaas_instance_storage_controller Data Source - terraform-provider-hpegl"
subcategory: "vmaas"
description: |-
The hpegl_vmaas_instance_storage_controller data source can be used to discover the ID of a storage controller mount.
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_storage_controller (Data Source)

The hpegl_vmaas_instance_storage_controller data source can be used to discover the ID of a storage controller mount.
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
variable "instance_id" {
type = number
default = 0
}
data "hpegl_vmaas_instance_storage_controller" "scsi3" {
instance_id = var.instance_id
controller_type = "scsi"
bus_number = 0
interface_number = 3
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `bus_number` (Number) The Bus sequence for a storage controller type
- `controller_type` (String) The storage controller name displayed in an instance. Supported values are `IDE`, `SCSI`
- `instance_id` (Number) Unique ID to identify an instance
- `interface_number` (Number) The interface number to be allocated

### Read-Only

- `id` (String) The ID of this resource.


3 changes: 3 additions & 0 deletions docs/resources/vmaas_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ resource "hpegl_vmaas_instance" "tf_instance" {
size = 5
datastore_id = data.hpegl_vmaas_datastore.c_3par.id
storage_type = data.hpegl_vmaas_instance_disk_type.vmware_thin.id
controller = data.hpegl_vmaas_instance_storage_controller.scsi3.id
}
labels = ["test_label"]
Expand Down Expand Up @@ -244,6 +245,8 @@ Required:

Optional:

- `controller` (String) Storage controller ID can be obtained from hpegl_vmaas_instance_storage_controller
data source.
- `root` (Boolean) true if volume is root
- `storage_type` (Number) Storage type ID can be obtained from hpegl_vmaas_instance_disk_type
data source.
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/vmaas_instance_clone.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ Required:

Optional:

- `controller` (String) Storage controller ID can be obtained from hpegl_vmaas_instance_storage_controller
data source.
- `root` (Boolean) true if volume is root
- `storage_type` (Number) Storage type ID can be obtained from hpegl_vmaas_instance_disk_type
data source.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# (C) Copyright 2024 Hewlett Packard Enterprise Development LP

variable "instance_id" {
type = number
default = 0
}
data "hpegl_vmaas_instance_storage_controller" "scsi3" {
instance_id = var.instance_id
controller_type = "scsi"
bus_number = 0
interface_number = 3
}
1 change: 1 addition & 0 deletions examples/resources/hpegl_vmaas_instance/all_options.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ resource "hpegl_vmaas_instance" "tf_instance" {
size = 5
datastore_id = data.hpegl_vmaas_datastore.c_3par.id
storage_type = data.hpegl_vmaas_instance_disk_type.vmware_thin.id
controller = data.hpegl_vmaas_instance_storage_controller.scsi3.id
}

labels = ["test_label"]
Expand Down

0 comments on commit 34013b8

Please sign in to comment.