Skip to content

Commit

Permalink
Merge pull request #9 from smartxworks/vm-template-optimize
Browse files Browse the repository at this point in the history
Vm template optimize
  • Loading branch information
Sczlog authored Jun 14, 2022
2 parents 3392bbf + 4ee47ea commit b6e88a0
Show file tree
Hide file tree
Showing 28 changed files with 951 additions and 181 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.7
0.1.8
12 changes: 6 additions & 6 deletions docs/data-sources/cloudtower_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ CloudTower cluster data source.

### Optional

- **id** (String) The ID of this resource.
- **name** (String) filter clusters by name
- **name_contains** (String) filter clusters by name contain a certain string
- `name` (String) filter clusters by name
- `name_contains` (String) filter clusters by name contain a certain string

### Read-Only

- **clusters** (List of Object) list of clusters (see [below for nested schema](#nestedatt--clusters))
- `clusters` (List of Object) list of clusters (see [below for nested schema](#nestedatt--clusters))
- `id` (String) The ID of this resource.

<a id="nestedatt--clusters"></a>
### Nested Schema for `clusters`

Read-Only:

- **id** (String)
- **name** (String)
- `id` (String)
- `name` (String)


12 changes: 6 additions & 6 deletions docs/data-sources/cloudtower_datacenter.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ CloudTower datacenter data source.

### Optional

- **id** (String) The ID of this resource.
- **name** (String) filter datacenters by name
- **name_contains** (String) filter datacenters by name contain a certain string
- `name` (String) filter datacenters by name
- `name_contains` (String) filter datacenters by name contain a certain string

### Read-Only

- **datacenters** (List of Object) list of datacenters (see [below for nested schema](#nestedatt--datacenters))
- `datacenters` (List of Object) list of datacenters (see [below for nested schema](#nestedatt--datacenters))
- `id` (String) The ID of this resource.

<a id="nestedatt--datacenters"></a>
### Nested Schema for `datacenters`

Read-Only:

- **id** (String)
- **name** (String)
- `id` (String)
- `name` (String)


26 changes: 13 additions & 13 deletions docs/data-sources/cloudtower_host.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ CloudTower host data source.

### Optional

- **cluster_id** (String) filter hosts by cluster id
- **data_ip** (String) filter hosts by data IP
- **data_ip_contains** (String) filter hosts by data IP contain a certain string
- **id** (String) The ID of this resource.
- **management_ip** (String) filter hosts by management IP
- **management_ip_contains** (String) filter hosts by management IP contain a certain string
- **name** (String) filter hosts by name
- **name_contains** (String) filter hosts by name contain a certain string
- `cluster_id` (String) filter hosts by cluster id
- `data_ip` (String) filter hosts by data IP
- `data_ip_contains` (String) filter hosts by data IP contain a certain string
- `management_ip` (String) filter hosts by management IP
- `management_ip_contains` (String) filter hosts by management IP contain a certain string
- `name` (String) filter hosts by name
- `name_contains` (String) filter hosts by name contain a certain string

### Read-Only

- **hosts** (List of Object) list of hosts (see [below for nested schema](#nestedatt--hosts))
- `hosts` (List of Object) list of hosts (see [below for nested schema](#nestedatt--hosts))
- `id` (String) The ID of this resource.

<a id="nestedatt--hosts"></a>
### Nested Schema for `hosts`

Read-Only:

- **data_ip** (String)
- **id** (String)
- **management_ip** (String)
- **name** (String)
- `data_ip` (String)
- `id` (String)
- `management_ip` (String)
- `name` (String)


14 changes: 7 additions & 7 deletions docs/data-sources/cloudtower_iso.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ CloudTower iso data source.

### Optional

- **cluster_id** (String) filter ISOs by cluster id
- **id** (String) The ID of this resource.
- **name** (String) filter ISOs by name
- **name_contains** (String) filter ISOs by name contain a certain string
- `cluster_id` (String) filter ISOs by cluster id
- `name` (String) filter ISOs by name
- `name_contains` (String) filter ISOs by name contain a certain string

### Read-Only

- **isos** (List of Object) list of ISOs (see [below for nested schema](#nestedatt--isos))
- `id` (String) The ID of this resource.
- `isos` (List of Object) list of ISOs (see [below for nested schema](#nestedatt--isos))

<a id="nestedatt--isos"></a>
### Nested Schema for `isos`

Read-Only:

- **id** (String)
- **name** (String)
- `id` (String)
- `name` (String)


40 changes: 40 additions & 0 deletions docs/data-sources/cloudtower_svt_iso.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "cloudtower_svt_iso Data Source - cloudtower-terraform-provider"
subcategory: ""
description: |-
CloudTower vmtools iso data source.
---

# cloudtower_svt_iso (Data Source)

CloudTower vmtools iso data source.



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

### Optional

- `cluster_id` (String) filter svt ISOs by cluster id
- `name` (String) filter svt ISOs by name
- `name_contains` (String) filter svt ISOs by name contain a certain string
- `version` (Number) filter svt ISOs by version
- `version_gte` (Number) filter svt ISOs by version greater than or equal to

### Read-Only

- `id` (String) The ID of this resource.
- `isos` (List of Object) list of ISOs (see [below for nested schema](#nestedatt--isos))

<a id="nestedatt--isos"></a>
### Nested Schema for `isos`

Read-Only:

- `id` (String)
- `name` (String)
- `version` (Number)


18 changes: 9 additions & 9 deletions docs/data-sources/cloudtower_vlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ CloudTower vlan data source.

### Optional

- **cluster_id** (String) filter vlans by cluster id
- **id** (String) The ID of this resource.
- **name** (String) filter vlans by name
- **name_contains** (String) filter vlans by name contain a certain string
- **type** (String) filter vlans by type
- `cluster_id` (String) filter vlans by cluster id
- `name` (String) filter vlans by name
- `name_contains` (String) filter vlans by name contain a certain string
- `type` (String) filter vlans by type

### Read-Only

- **vlans** (List of Object) list of vlans (see [below for nested schema](#nestedatt--vlans))
- `id` (String) The ID of this resource.
- `vlans` (List of Object) list of vlans (see [below for nested schema](#nestedatt--vlans))

<a id="nestedatt--vlans"></a>
### Nested Schema for `vlans`

Read-Only:

- **id** (String)
- **name** (String)
- **type** (String)
- `id` (String)
- `name` (String)
- `type` (String)


20 changes: 10 additions & 10 deletions docs/data-sources/cloudtower_vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ CloudTower vm data source.

### Optional

- **cluster_id** (String) filter VMs by cluster id
- **host_id** (String) filter VMs by host id
- **id** (String) The ID of this resource.
- **name** (String) filter VMs by name
- **name_contains** (String) filter VMs by name contain a certain string
- **status** (String) filter VMs by status
- `cluster_id` (String) filter VMs by cluster id
- `host_id` (String) filter VMs by host id
- `name` (String) filter VMs by name
- `name_contains` (String) filter VMs by name contain a certain string
- `status` (String) filter VMs by status

### Read-Only

- **vms** (List of Object) list of VMs (see [below for nested schema](#nestedatt--vms))
- `id` (String) The ID of this resource.
- `vms` (List of Object) list of VMs (see [below for nested schema](#nestedatt--vms))

<a id="nestedatt--vms"></a>
### Nested Schema for `vms`

Read-Only:

- **id** (String)
- **name** (String)
- **status** (String)
- `id` (String)
- `name` (String)
- `status` (String)


16 changes: 8 additions & 8 deletions docs/data-sources/cloudtower_vm_snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ CloudTower vm snapshot data source.

### Optional

- **id** (String) The ID of this resource.
- **name** (String) vm snapshot's name
- **name_contains** (String) filter vm snapshot by its name contains characters
- **vm_id** (String) vm's id of the snapshot
- `name` (String) vm snapshot's name
- `name_contains` (String) filter vm snapshot by its name contains characters
- `vm_id` (String) vm's id of the snapshot

### Read-Only

- **vm_snapshots** (List of Object) list of queried vm snapshots (see [below for nested schema](#nestedatt--vm_snapshots))
- `id` (String) The ID of this resource.
- `vm_snapshots` (List of Object) list of queried vm snapshots (see [below for nested schema](#nestedatt--vm_snapshots))

<a id="nestedatt--vm_snapshots"></a>
### Nested Schema for `vm_snapshots`

Read-Only:

- **create_time** (String)
- **id** (String)
- **name** (String)
- `create_time` (String)
- `id` (String)
- `name` (String)


53 changes: 45 additions & 8 deletions docs/data-sources/cloudtower_vm_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,59 @@ CloudTower vm template data source.

### Optional

- **cluster_id** (String) cluster's id of the template
- **id** (String) The ID of this resource.
- **name** (String) vm template's name
- **name_contains** (String) filter vm template by its name contains characters
- `cluster_id` (String) cluster's id of the template
- `name` (String) vm template's name
- `name_contains` (String) filter vm template by its name contains characters

### Read-Only

- **vm_templates** (List of Object) list of queried vm templates (see [below for nested schema](#nestedatt--vm_templates))
- `id` (String) The ID of this resource.
- `vm_templates` (List of Object) list of queried vm templates (see [below for nested schema](#nestedatt--vm_templates))

<a id="nestedatt--vm_templates"></a>
### Nested Schema for `vm_templates`

Read-Only:

- **create_time** (String)
- **id** (String)
- **name** (String)
- `cd_roms` (List of Object) (see [below for nested schema](#nestedobjatt--vm_templates--cd_roms))
- `create_time` (String)
- `disks` (List of Object) (see [below for nested schema](#nestedobjatt--vm_templates--disks))
- `id` (String)
- `name` (String)
- `nics` (List of Object) (see [below for nested schema](#nestedobjatt--vm_templates--nics))

<a id="nestedobjatt--vm_templates--cd_roms"></a>
### Nested Schema for `vm_templates.cd_roms`

Read-Only:

- `boot` (Number)
- `elf_image_id` (String)
- `svt_image_id` (String)


<a id="nestedobjatt--vm_templates--disks"></a>
### Nested Schema for `vm_templates.disks`

Read-Only:

- `boot` (Number)
- `bus` (String)
- `name` (String)
- `path` (String)
- `size` (Number)
- `storage_policy` (String)


<a id="nestedobjatt--vm_templates--nics"></a>
### Nested Schema for `vm_templates.nics`

Read-Only:

- `enabled` (Boolean)
- `idx` (Number)
- `mirror` (Boolean)
- `model` (String)
- `vlan_id` (String)


8 changes: 4 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ description: |-

### Required

- **password** (String) The user password for CloudTower API operations.
- **user_source** (String) The source type of user
- **username** (String) The username for CloudTower API operations.
- `password` (String) The user password for CloudTower API operations.
- `user_source` (String) The source type of user
- `username` (String) The username for CloudTower API operations.

### Optional

- **cloudtower_server** (String) The CloudTower Server name.
- `cloudtower_server` (String) The CloudTower Server name.
12 changes: 6 additions & 6 deletions docs/resources/cloudtower_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ CloudTower cluster resource.

### Required

- **ip** (String) cluster's IP
- **password** (String) cluster's password
- **username** (String) cluster's username
- `ip` (String) cluster's IP
- `password` (String) cluster's password
- `username` (String) cluster's username

### Optional

- **datacenter_id** (String) the id of the datacenter this cluster belongs to
- `datacenter_id` (String) the id of the datacenter this cluster belongs to

### Read-Only

- **id** (String) cluster's id
- **name** (String) cluster's name
- `id` (String) cluster's id
- `name` (String) cluster's name


4 changes: 2 additions & 2 deletions docs/resources/cloudtower_datacenter.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ CloudTower datacenter resource.

### Required

- **name** (String) datacenter's name
- `name` (String) datacenter's name

### Read-Only

- **id** (String) datacenter's id
- `id` (String) datacenter's id


Loading

0 comments on commit b6e88a0

Please sign in to comment.