Skip to main content
ONTAP tools for VMware vSphere 10.1

Manage Storage threshold

Contributors netapp-jani

Use the following Get threshold API to retrieve the configured storage threshold limits for volume and aggregate.

GET​/virtualization​/api​/v1​/vcenters​/{vcguid}​/storage-thresholds

Examples: Get the Storage thresholds per vCenter Server instance by vCenter guid

GET "/api/v1/vcenters/beded9ad-6bbb-4c9e-b4c6-691250bfe2da/storage-thresholds"

Use the following PATCH configure alarm for volume and aggregate to generate notification when configured threshold limits are reached.

PATCH​/virtualization​/api​/v1​/vcenters​/{vcguid}​/storage-thresholds

Examples: Update the Storage thresholds per vCenter by vCenter guid. Default limits are 80% for nearly-full and 90% for full. Modifying all threshold settings

{{{}PATCH "/api/v1/vcenters/beded9ad-6bbb-4c9e-b4c6-691250bfe2da/storage-thresholds"
Request Body
{
"volume":

{ "nearly_full_percent": 80, "full_percent": 90 }
,
"aggregate": {
"nearly_full_percent": 80,
"full_percent": 90
}
}{}}}{}