Home > Tintri VMstore™ > Knowledge Base > How to use API to associate VMstores with Tintri Global Center datastores

How to use API to associate VMstores with Tintri Global Center datastores

Applies To

 

Product(s)

Version(s)

Tintri REST API

v310

Description

 

When using the GET /v310/Datastore API call against a Tintri Global Center(TGC) instance, it does not return the expected 'applianceUuid' field as per documentation. As such there is no way to associate the datastore with a VMstore applianceUuid. 

 

Example response to a VMstore "GET /v310/datastore" API call:

 

[{'applianceUuid': {...},

  'displayName': 'defaultTenant',

  'isDataFromAppliance': True,

  'lastUpdatedTime': '1970-01-01T01:00:00.000+01:00',

  'localAlias': 'default',

  'nfsAccesses': {...},

  'qosInfo': {...},

  'replication': {...},

  'snapshotHighFrequencyVmsCount': 0,

  'snapshotHighFrequencyVmsMax': 75,

  'snapshotSchedules': [...],

  'stat': {...},

  'storageContainers': [...],

  'typeId': 'com.tintri.api.rest.v310.dto.domain.Datastore',

  'uuid': {...},

  'vaaiThickSupportDisabled': 'false'}]

 

Example response to a TGC "GET /v310/datastore" API call:

 

[{'displayName': 'defaultTenant',

  'isDataFromAppliance': False,

  'lastUpdatedTime': '1970-01-01T01:00:00.000+01:00',

  'nfsAccesses': {...},

  'qosInfo': {...},

  'replication': {...},

  'snapshotHighFrequencyVmsCount': 0,

  'snapshotHighFrequencyVmsMax': 75,

  'snapshotSchedules': [...],

  'stat': {...},

  'storageContainers': [...],

  'typeId': 'com.tintri.api.rest.v310.dto.domain.Datastore',

  'uuid': {...}},

{'displayName': 'defaultTenant',

  'isDataFromAppliance': False,

  'lastUpdatedTime': '1970-01-01T01:00:00.000+01:00',

  'nfsAccesses': {...},

  'qosInfo': {...},

  'replication': {...},

  'snapshotHighFrequencyVmsCount': 0,

  'snapshotHighFrequencyVmsMax': 100,

  'snapshotSchedules': [...],

  'stat': {...},

  'storageContainers': [...],

  'typeId': 'com.tintri.api.rest.v310.dto.domain.Datastore',

  'uuid': {...}}]

How-To

 

A workaround is to query the datastore uuids first and then to use "datastore/{uuid}" to retrieve the datastore details. Review the python SDK example located on the Tintri Github repository link below:

https://github.com/Tintri/tintri-python-sdk/blob/master/examples/get_vmstores.py

 

Tintri Development will update the API and documentation in an upcoming release. 

Viewing 2 of 2 comments: view all
Review and light editing complete
Posted 16:00, 27 Feb 2017
Article final approval by Jim Ripley. 2017-02-27
Posted 08:05, 28 Feb 2017
Viewing 2 of 2 comments: view all
You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.