virtual_machine_templates
Creates, updates, deletes, gets or lists a virtual_machine_templates resource.
Overview
| Name | virtual_machine_templates |
| Type | Resource |
| Id | azure_isv.vmwarecloudsimple.virtual_machine_templates |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | virtual machine template id (privateCloudId:vsphereId). |
name | string | {virtualMachineTemplateName}. |
amountOfRam | integer | The amount of memory. |
controllers | array | The list of Virtual Disk Controllers. |
description | string | The description of Virtual Machine Template. |
disks | array | The list of Virtual Disks. |
exposeToGuestVM | boolean | Expose Guest OS or not. |
guestOS | string | The Guest OS. |
guestOSType | string | The Guest OS types. |
location | string | Azure region. |
nics | array | The list of Virtual NICs. |
numberOfCores | integer | The number of CPU cores. |
path | string | path to folder. |
privateCloudId | string | The Private Cloud Id. |
type | string | {resourceProviderNamespace}/{resourceType}. |
vSphereNetworks | array | The list of VSphere networks. |
vSphereTags | array | The tags from VSphere. |
vmwaretools | string | The VMware tools version. |
| Name | Datatype | Description |
|---|---|---|
id | string | virtual machine template id (privateCloudId:vsphereId). |
name | string | {virtualMachineTemplateName}. |
amountOfRam | integer | The amount of memory. |
controllers | array | The list of Virtual Disk Controllers. |
description | string | The description of Virtual Machine Template. |
disks | array | The list of Virtual Disks. |
exposeToGuestVM | boolean | Expose Guest OS or not. |
guestOS | string | The Guest OS. |
guestOSType | string | The Guest OS types. |
location | string | Azure region. |
nics | array | The list of Virtual NICs. |
numberOfCores | integer | The number of CPU cores. |
path | string | path to folder. |
privateCloudId | string | The Private Cloud Id. |
type | string | {resourceProviderNamespace}/{resourceType}. |
vSphereNetworks | array | The list of VSphere networks. |
vSphereTags | array | The tags from VSphere. |
vmwaretools | string | The VMware tools version. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | region_id, pc_name, virtual_machine_template_name, subscription_id | Implements virtual machine template GET method. Returns virtual machine templates by its name. | |
list | select | pc_name, region_id, subscription_id, resourcePoolName | Implements list of available VM templates. Returns list of virtual machine templates in region for private cloud. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
pc_name | string | The private cloud name. Required. |
region_id | string | The region Id (westus, eastus). Required. |
resourcePoolName | string | Resource pool used to derive vSphere cluster which contains VM templates. Required. |
subscription_id | string | |
virtual_machine_template_name | string | virtual machine template id (vsphereId). Required. |
SELECT examples
- get
- list
Implements virtual machine template GET method. Returns virtual machine templates by its name.
SELECT
id,
name,
amountOfRam,
controllers,
description,
disks,
exposeToGuestVM,
guestOS,
guestOSType,
location,
nics,
numberOfCores,
path,
privateCloudId,
type,
vSphereNetworks,
vSphereTags,
vmwaretools
FROM azure_isv.vmwarecloudsimple.virtual_machine_templates
WHERE region_id = '{{ region_id }}' -- required
AND pc_name = '{{ pc_name }}' -- required
AND virtual_machine_template_name = '{{ virtual_machine_template_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Implements list of available VM templates. Returns list of virtual machine templates in region for private cloud.
SELECT
id,
name,
amountOfRam,
controllers,
description,
disks,
exposeToGuestVM,
guestOS,
guestOSType,
location,
nics,
numberOfCores,
path,
privateCloudId,
type,
vSphereNetworks,
vSphereTags,
vmwaretools
FROM azure_isv.vmwarecloudsimple.virtual_machine_templates
WHERE pc_name = '{{ pc_name }}' -- required
AND region_id = '{{ region_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND resourcePoolName = '{{ resourcePoolName }}' -- required
;