[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations

Get Stats For Resource

Description

NOTE: When making an XML request, make sure the statKey field does not contain any key name with spaces.

Request

Request

URL

URL


post
https://localhost/suite-api/api/resources/{id}/stats/query
Copy

Path Parameters

Path Parameters

string
id Required

The Identifier of the resource object


Request Body

Request Body

stat-query of type(s) application/json, application/xml Optional

The StatsQuery object which can be used to refine the query

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns StatsOfResources of type(s) application/json, application/xml

Object, containing a map of List of Stat objects keyed by each resource UUID

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"begin":0,"currentOnly":false,"dt":false,"end":0,"intervalQuantifier":0,"intervalType":"HOURS","latestMaxSamples":0,"metrics":false,"resourceId":["string"],"rollUpType":"SUM","statKey":["string"]}' https://localhost/suite-api/api/resources/{id}/stats/query


Feedback

Was this page helpful?