virtual_machine_templates
Creates, updates, deletes, gets or lists a virtual_machine_templates resource.
Overview
| Name | virtual_machine_templates |
| Type | Resource |
| Id | azure_isv.vmware_cloud_simple.virtual_machine_templates |
Fields
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string | virtual machine template id (privateCloudId:vsphereId) |
name | string | {virtualMachineTemplateName} |
location | string | Azure region |
properties | object | The Virtual Machine Template properties |
type | string | {resourceProviderNamespace}/{resourceType} |
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string | virtual machine template id (privateCloudId:vsphereId) |
name | string | {virtualMachineTemplateName} |
location | string | Azure region |
properties | object | The Virtual Machine Template properties |
type | string | {resourceProviderNamespace}/{resourceType} |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | subscriptionId, regionId, pcName, virtualMachineTemplateName | api-version | Returns virtual machine templates by its name |
list | select | subscriptionId, pcName, regionId, resourcePoolName | api-version | 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 |
|---|---|---|
pcName | string | The private cloud name |
regionId | string | The region Id (westus, eastus) |
resourcePoolName | string | Resource pool used to derive vSphere cluster which contains VM templates |
subscriptionId | string | The subscription ID. |
virtualMachineTemplateName | string | virtual machine template id (vsphereId) |
api-version | string | Client API version. |
SELECT examples
- get
- list
Returns virtual machine templates by its name
SELECT
id,
name,
location,
properties,
type
FROM azure_isv.vmware_cloud_simple.virtual_machine_templates
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND regionId = '{{ regionId }}' -- required
AND pcName = '{{ pcName }}' -- required
AND virtualMachineTemplateName = '{{ virtualMachineTemplateName }}' -- required
AND api-version = '{{ api-version }}'
;
Returns list of virtual machine templates in region for private cloud
SELECT
id,
name,
location,
properties,
type
FROM azure_isv.vmware_cloud_simple.virtual_machine_templates
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND pcName = '{{ pcName }}' -- required
AND regionId = '{{ regionId }}' -- required
AND resourcePoolName = '{{ resourcePoolName }}' -- required
AND api-version = '{{ api-version }}'
;