View API
|
| Local Methods | ||
| Service Types | Data Object Types | All Properties | All Methods |
Service - VmTemplate
- Class
- VMware.Hv.VmTemplate
- See also
- DatacenterId, VirtualCenterId, VmTemplateInfo
- Since
- Horizon View 6.0
Service Description
The object for fetching VM templates from VirtualCenter.Methods
| Methods defined in this Service |
|---|
| VmTemplate_List, VmTemplate_ListByDatacenter |
VmTemplate_List
Gets a list of all VM templates from VC suitable for full clone desktop creation. Requires at least one of the listed privileges.Privileges
| Privilege | Description |
|---|---|
| GLOBAL_CONFIG_VIEW | privilege is required to get the list of VmTemplateInfo. |
| VC_CONFIG_VIEW | privilege is required to get the list of VmTemplateInfo. |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VmTemplate used to make the method call. |
| virtualCenter | VirtualCenterId |
unique identifier for vc entry
|
Return Value
| Type | Description |
|---|---|
| VmTemplateInfo[] | Array of VmTemplateInfo |
Faults
| Type | Description |
|---|---|
| EntityNotFound | Thrown if any specified entity cannot be found. |
| InsufficientPermission | Thrown if the user does not have sufficient permission to perform the operation. |
| InvalidArgument | Thrown if any specified argument is invalid. |
| InvalidType | Thrown if the type of any specified argument is invalid. |
| UnexpectedFault | Thrown if an unexpected error occurs while performing the operation. |
Show WSDL type definition
VmTemplate_ListByDatacenter
Gets a list of all VM templates from the given datacenter suitable for full clone desktop creation. Requires at least one of the listed privileges.Privileges
| Privilege | Description |
|---|---|
| GLOBAL_CONFIG_VIEW | privilege is required to get the list of VmTemplateInfo. |
| VC_CONFIG_VIEW | privilege is required to get the list of VmTemplateInfo. |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VmTemplate used to make the method call. |
| datacenter | DatacenterId |
unique identifier for the data center
|
Return Value
| Type | Description |
|---|---|
| VmTemplateInfo[] | Array of VmTemplateInfo |
Faults
| Type | Description |
|---|---|
| EntityNotFound | Thrown if any specified entity cannot be found. |
| InsufficientPermission | Thrown if the user does not have sufficient permission to perform the operation. |
| InvalidArgument | Thrown if any specified argument is invalid. |
| InvalidType | Thrown if the type of any specified argument is invalid. |
| UnexpectedFault | Thrown if an unexpected error occurs while performing the operation. |
Show WSDL type definition
| Top of page | Local Methods | ||
| Service Types | Data Object Types | All Properties | All Methods |