AllowedLocationDatastoreTiersResource


List allowed datastore tiers that are enabled in a datacenter location


Retrieve a list of all datastore tiers that are allowed in a given datacenter location and that are currently enabled for use. This method can be used to retrieve allowed, enabled datastore tiers when you wish to modify a disk and add it to a datastore tier. For example, in an undeployed VM, or as a default datastore for a disk in VM template. And for example, to set the default datastore tier for a virtual datacenter.

GET https://example.com/api/cloud/locations/{location}/datastoretiers

Roles : [ROLE_VDC_MANAGE_VAPP]

Accept : datastoretiers

Example

List datastore tiers that are compatible with datastore tiers in a datacenter location


A VM can only use datastore tiers that contain disks from a single hypervisor. Use this request to retrieve datastore tiers that are compatible with a list of one or more tiers, using links to datastore tiers. If you supply more than one tier, the intersection of the compatible tiers is returned.
The request object contains one or more link/s to ''datastoretier'' entities.

PUT https://example.com/api/cloud/locations/{location}/datastoretiers/action/compatibles

Roles : [ROLE_VDC_MANAGE_VAPP]

Content-Type : links Accept : links

Error Codes

  • VM-149 - A deployed virtual machine was expected for this action

Example

Get a datastore tier enabled and allowed in a datacenter location


Retrieve a datastore tier that is allowed in a given datacenter location and that is currently enabled for use. This method can be used to retrieve an allowed, enabled tier.

GET https://example.com/api/cloud/locations/{location}/datastoretiers/{datastoretier}

Roles : [ROLE_VDC_MANAGE_VAPP]

Accept : datastoretier

Error Codes

  • DSTIER-0 - The requested datastore tier does not exist

Example