Vstats. Counter Metadata Get Default
This operation returns the "default" CounterMetadata. A Counter has at least one related metadata object. Usually, stats providers (for example hosts) are in agreement about the default metadata. In this case the returned list has a single metadata object.
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
Warning: this operation is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.
List of counter metadata records.
[
"Vstats.CounterMetadata.Info Object"
]
if cid is invalid.
"Vapi.Std.Errors.InvalidArgument Object"
if the user can not be authenticated.
"Vapi.Std.Errors.Unauthenticated Object"
if the user does not have sufficient privileges.
"Vapi.Std.Errors.Unauthorized Object"
if Counter could not be located.
"Vapi.Std.Errors.NotFound Object"
if the system reports an error while responding to the request.
"Vapi.Std.Errors.Error Object"
curl -H 'Authorization: <value>' https://{api_host}/stats/counters/{cid}/metadata/default