Skip to main content
ONTAP tools for VMware vSphere 10.1
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

管理存储阈值

贡献者

使用以下获取阈值API可检索为卷和聚合配置的存储阈值限制。

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

示例 按vCenter guid获取每个vCenter Server实例的存储阈值

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

在达到配置的阈值限制时、使用以下修补程序配置卷和聚合警报以生成通知。

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

示例 按vCenter guid更新每个vCenter的存储阈值。对于接近全满、默认限制为80%、对于全满、默认限制为90%。 修改所有阈值设置

{{{}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
}
}{}}}{}