Vsan Diagnostics System Vsan Get Thresholds

Vsan Diagnostics System Vsan Get Thresholds

Get the threshold.

If "entityType" is not set, all threshold settings will be returned; If "entityType" is set but "metric" is not set, threshold settings for the specified "entityType" will be returned; If threshold settings doesn't exist for "entityType", empty result ([]) will be returned; If both "entityType" and "metric" are set, threshold settings for the specified "entityType" and "metric" will be returned; If threshold settings doesn't exist for either "entityType" or "metric", empty result ([]) will be returned. If "metric" is set but "entityType" is not set, "metric" will be ignored and all threshold settings will be returned.

Required privileges: System.Read

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vsan/VsanDiagnosticsSystem/{moId}/VsanGetThresholds
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case VsanDiagnosticsSystem/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.


Request Body
VsanGetThresholdsRequestType of type(s) application/json
Required
"VsanGetThresholdsRequestType Object"
cluster
Required

The cluster where the threshold is to get from

string
entityType
Optional

Get threshold only for the specified entity type.

string
metric
Optional

Get threshold only for the specified metric, "entityType" must also be set if "metric" is set.

Authentication
This operation uses the following authentication methods.
Responses
200

vim.cluster.VsanDiagnosticsThreshold[]

[
    "VsanDiagnosticsThreshold Object"
]
Optional

500

Failure

Returns NotFound of type(s) application/json
"NotFound Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanDiagnosticsSystem/{moId}/VsanGetThresholds