NSX-T Data Center REST API
Updates the warning threshold(s) for NSX Objects.
Updates the warning threshold(s) for NSX Objects specified, and returnsnew threshold(s). Threshold list in the request must contain value for GLOBAL_DEFAULT
threshold_type which represents global thresholds.
Request:
Method:
              PUT
            URI Path(s):
              
              
                  
                  /policy/api/v1/infra/capacity/threshold
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    CapacityThresholdList+
  Example Request:
PUT https://<nsx-mgr>/policy/api/v1/infra/capacity/threshold { "capacity_thresholds": [ { "threshold_type": "NUMBER_OF_PREPARED_HOSTS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_FIREWALL_RULES", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_ACTIVE_DIRECTORY_DOMAINS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_PROTECTION_ENABLED_VIRTUAL_MACHINES", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "GLOBAL_DEFAULT", "min_threshold_percentage": 60, "max_threshold_percentage": 70 }, { "threshold_type": "NUMBER_OF_SEGMENT", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_GROUPS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_SECURITY_POLICY_RULES", "min_threshold_percentage": 70, "max_threshold_percentage": 100 }, { "threshold_type": "NUMBER_OF_SECURITY_POLICY", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_SEGMENT_PORT", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_EDGE_NODES", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_TIER0_ROUTERS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_FIREWALL_SECTIONS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_TIER1_ROUTERS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_EDGE_CLUSTERS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_NAT_RULES", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_ACTIVE_DIRECTORY_GROUPS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_VSPHERE_CLUSTERS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_PREFIX_LIST", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_TIER1_WITH_NAT_RULE", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_DHCP_IP_POOLS", "min_threshold_percentage": 80, "max_threshold_percentage": 90 }, { "threshold_type": "NUMBER_OF_PROTECTION_ENABLED_HOST", "min_threshold_percentage": 80, "max_threshold_percentage": 90 } ], "resource_type": "CapacityThresholdList", "id": "CapacityThresholdIdentifier", "display_name": "CapacityThresholdIdentifier", "_create_user": "system", "_create_time": 1588972275391, "_last_modified_user": "admin", "_last_modified_time": 1588972521446, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    CapacityThresholdList+
  