[{"label":"Latest (v36.3)","version":"latest"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Get VDC Compute Policy Metrics

Description

Returns metrics for the given compute policy. Returns 400 if the policyType does not support metrics. For example, if type of the policy is VdcVmPolicy, then this API returns a 400 BadRequest response.

Request

Request

URL

URL


get
https://{api_host}/cloudapi/2.0.0/vdcComputePolicies/{vdcComputePolicyId}/metrics
Copy

Path Parameters

Path Parameters

string
vdcComputePolicyId Required

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns VdcComputePolicyMetrics of type(s) application/json;version=36.3
string
policyMetricsType Required

The discriminator type is used to differentiate among various sub policy type metrics.

Errors

Errors

400

Invalid configuration.

Code Samples

Code Samples

cURL Command

curl https://{api_host}/cloudapi/2.0.0/vdcComputePolicies/{vdcComputePolicyId}/metrics


[{"label":"Latest (v36.3)","version":"latest"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Feedback

Was this page helpful?