[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen

Get VM Usages

Description

getVmUsages

Request

Request

URL

URL


get
https://cloud.vmwarehorizon.com/admin/v2/providers/{label}/instances/{id}/vm-usages
Copy

Path Parameters

Path Parameters

string
id Required

id


string
label Required

label


Query Parameters

Query Parameters

string
org_id Optional

Filter by orgId: non-super users can only query for their own orgIds


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns ProviderInstanceVmUsagesTO of type */*

Successfully retrieved capacity utilisation for a provider instance

{
	"orgId": "0123456789",
	"providerInstanceId": "0123456789",
	"providerInstanceName": "MyProviderInstance",
	"providerLabel": "AZURE",
	"vmSkuOverallSummary": [
		{
			"familyName": "standardA0_A7Family",
			"vmCoresUsage": {
				"currentValue": 1000,
				"limit": 2000
			},
			"vmSkus": [
				{
					"data": {},
					"id": "string",
					"infrastructureLinks": {},
					"kind": "string"
				}
			]
		}
	]
}
string
orgId Optional

CSP org id


string
providerInstanceId Optional

Provider instance unique id


string
providerInstanceName Optional

Provider instance name


string
providerLabel Optional

Provider type the provider instance belong to


vmSkuOverallSummary Optional

Overall summary for capacity utilisation

Errors

Errors

401

Unauthorized


403

Forbidden


404

Not Found


423

Provider disabled


500

Unexpected internal server error

Code Samples

Code Samples

cURL Command

curl https://cloud.vmwarehorizon.com/admin/v2/providers/{label}/instances/{id}/vm-usages


Feedback

Was this page helpful?