Path: / v310 / vm / {vmId}

Path parameters:
vmId - the VM UUID

Resources
NameDescription
affinityUpdates virtual machine affinity rule.
customizationScriptsAPI to get customization scripts for the VM
hfSnapshotConfigUpdate the VM high frequency snapshot configuration properties
pinOperation will pin the VM to Flash storage in case of hybrid platform.
qosConfigUpdate QoS per VM.
relocateRelocate a virtual machine to another datastore.
replicationConfigDeprecated. Create a new replication configuration for the VM.
replicationConfigsUpdate the outgoing replication configurations for the VM specified by the given vmId to the new replication configurations, specified in the API input.
snapshotScheduleCreate a new custom VM snapshot schedule
statsDownloadableCreate a URL for retrieving the specified VM historical statistics report which is returned as output.
statsHistoricGets the historic VM performance slice containing all of the statistics for the VM specified by query parameters.
statsRealtimeGets the real time VM performance slice containing all of the statistics for the VM.
unpinUn-pin VM from Flash storage in case of hybrid platform.

Method Summary
ResourceDescription
GET /v310/vm/{vmId}Return the virtual machine information specified in the URI.
PUT /v310/vm/{vmId}Update VM properties apart from SnapshotSchedule and ReplConfig, like enabling or disabling replication at VM level.

Method Detail
HTTP Example:
GET /v310/vm/{vmId}

API Example:

VirtualMachineResource.getVm({'vmId': /* tintriUuid the VM UUID */});

Description:
Return the virtual machine information specified in the URI.
Tintri Api Server Support:
All
Output:
VirtualMachine - VirtualMachine This includes basic information, latest historic statistics, replication configuration along with it's status
Produces:
application/json;qs=1, application/xml;qs=0.5
Consumes:
application/json;qs=1, application/xml;qs=0.5
HTTP Example:
PUT /v310/vm/{vmId}

API Example:

VirtualMachineResource.updateVm({'vmId': /* vmId the vm id */,
  '$entity': /* vmContainer the vm container */});

Description:
Update VM properties apart from SnapshotSchedule and ReplConfig, like enabling or disabling replication at VM level.
Tintri Api Server Support:
All
Input:
Request<VirtualMachine> - the vm container
Output:
void
Produces:
application/json;qs=1, application/xml;qs=0.5
Consumes:
application/json;qs=1, application/xml;qs=0.5