Policy >
Monitoring
>
Capacity Dashboard
Updates the thresholds for specified NSX Objects.
Updates the warning threshold(s) for NSX Objects specified, does not modify
thresholds for any other objects.
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/infra/capacity/threshold
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
CapacityThreshold
+
CapacityThreshold
(
schema
)
Name
Description
Type
Notes
max_threshold_percentage
Maximum threshold percentage
Set the maximum threshold percentage. Specify a value between 0 and
100. Usage percentage above this value is tagged as critical.
number
Required
Minimum: 0
Maximum: 100
min_threshold_percentage
Minimum threshold percentage
Set the minimum threshold percentage. Specify a value between 0 and
100. Usage percentage above this value is tagged as warning.
number
Required
Minimum: 0
Maximum: 100
threshold_type
Object type for which threshold is to be set
Indicate the object type for which threshold is to be set.
string
Required
Example Request:
PATCH https://<nsx-mgr>/policy/api/v1/infra/capacity/threshold { "threshold_type": "NUMBER_OF_SEGMENT_PORT", "min_threshold_percentage": 10, "max_threshold_percentage": 40 }
Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a
Required Permissions:
crud
Feature:
infra_admin
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable