-
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.
* Update docs * Remove vmaas_instance_clone
- Loading branch information
1 parent
07d56f7
commit db1c92c
Showing
4 changed files
with
198 additions
and
145 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
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
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,133 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "hpegl_vmaas_instance_clone Resource - terraform-provider-hpegl" | ||
subcategory: "" | ||
description: |- | ||
Instance clone resource facilitates creating, | ||
updating and deleting cloned virtual machines. | ||
For creating an instance clone, provide a unique name and all the Mandatory(Required) parameters. | ||
All optional parameters will be inherits from parent resource if not provided. | ||
--- | ||
|
||
# hpegl_vmaas_instance_clone (Resource) | ||
|
||
Instance clone resource facilitates creating, | ||
updating and deleting cloned virtual machines. | ||
For creating an instance clone, provide a unique name and all the Mandatory(Required) parameters. | ||
All optional parameters will be inherits from parent resource if not provided. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **name** (String) Name of the instance to be provisioned. | ||
- **network** (Block List, Min: 1) Details of the network to which the instance should belong. (see [below for nested schema](#nestedblock--network)) | ||
- **source_instance_id** (Number) Instance ID of the source instance. For getting source instance ID | ||
use 'hpeg_vmaas_instance' resource. | ||
|
||
### Optional | ||
|
||
- **cloud_id** (Number) Unique ID to identify a cloud. | ||
- **config** (Block Set) Configuration details for the instance to be provisioned. (see [below for nested schema](#nestedblock--config)) | ||
- **env_prefix** (String) Environment prefix | ||
- **environment_code** (String) Environment code, which can be obtained via | ||
hpegl_vmaas_environment.code | ||
- **evars** (Map of String) Environment Variables to be added to the provisioned instance. | ||
- **group_id** (Number) Unique ID to identify a group. | ||
- **hostname** (String) Hostname for the instance | ||
- **id** (String) The ID of this resource. | ||
- **instance_type_code** (String) Unique code used to identify the instance type. | ||
- **ip** (List of String) IP assigned to instance | ||
- **labels** (List of String) An array of strings used for labelling instance. | ||
- **layout_id** (Number) Unique ID to identify a layout. | ||
- **plan_id** (Number) Unique ID to identify a plan. | ||
- **power** (String) Power operation for an instance. Power attribute can be | ||
use to update power state of an existing instance. Allowed power operations are | ||
'poweroff', 'poweron' and 'suspend'. Upon creating an instance only 'poweron' operation is allowed. | ||
- **power_schedule_id** (Number) Scheduled power operations | ||
- **restart_instance** (Number) Restarts the instance if set to any positive integer. | ||
Restart works only on pre-created instance. | ||
- **scale** (Number) Number of nodes within an instance. | ||
- **snapshot** (Block Set, Max: 1) Snapshot details to be created. Snapshot name and description | ||
should be unique. Any change in those will results into creation of new snapshot, | ||
with preserving previous snapshot(s). (see [below for nested schema](#nestedblock--snapshot)) | ||
- **tags** (Map of String) A list of key and value pairs used to tag instances of similar type. | ||
- **timeouts** (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) | ||
- **volume** (Block List) A list of volumes to be created inside a provisioned instance. | ||
It can have a root volume and other secondary volumes. (see [below for nested schema](#nestedblock--volume)) | ||
|
||
### Read-Only | ||
|
||
- **status** (String) Status of the instance. | ||
|
||
<a id="nestedblock--network"></a> | ||
### Nested Schema for `network` | ||
|
||
Required: | ||
|
||
- **id** (Number) Unique ID to identify a network ID. | ||
|
||
Optional: | ||
|
||
- **interface_id** (Number) Unique ID to identify a network interface type. | ||
|
||
|
||
<a id="nestedblock--config"></a> | ||
### Nested Schema for `config` | ||
|
||
Optional: | ||
|
||
- **asset_tag** (String) Asset tag | ||
- **create_user** (Boolean) If true new user will be created | ||
- **no_agent** (Boolean) If true agent will not be installed on the instance. | ||
- **resource_pool_id** (Number) Unique ID to identify a resource pool. | ||
- **template_id** (Number) Unique ID for the template | ||
- **vm_folder** (String) Folder name where will be stored. | ||
|
||
|
||
<a id="nestedblock--snapshot"></a> | ||
### Nested Schema for `snapshot` | ||
|
||
Required: | ||
|
||
- **name** (String) Name of the snapshot. | ||
|
||
Optional: | ||
|
||
- **description** (String) Description of the snapshot | ||
- **id** (Number) ID of the snapshot. | ||
- **is_snapshot_exists** (Boolean) Flag which will be set to be true if the snapshot with the name | ||
exists. | ||
|
||
|
||
<a id="nestedblock--timeouts"></a> | ||
### Nested Schema for `timeouts` | ||
|
||
Optional: | ||
|
||
- **create** (String) | ||
- **delete** (String) | ||
|
||
|
||
<a id="nestedblock--volume"></a> | ||
### Nested Schema for `volume` | ||
|
||
Required: | ||
|
||
- **datastore_id** (String) Datastore ID can be obtained from hpegl_vmaas_datastore | ||
data source. Please provide 'auto' as value to select datastore as auto. | ||
- **name** (String) Unique name for the volume. | ||
- **size** (Number) Size of the volume in GB. | ||
|
||
Optional: | ||
|
||
- **root** (Boolean) true if volume is root | ||
|
||
Read-Only: | ||
|
||
- **id** (Number) ID for the volume | ||
|
||
|
Oops, something went wrong.