Update Troubleshooting Metrics Data Collection
Updates the list of resource IDs that have troubleshooting metrics data collection enabled for the specified category. Troubleshooting data collection enables enhanced metrics gathering for security monitoring and diagnostics. This operation replaces the existing configuration with the provided resource IDs.
The request body must include the resource_ids array. The array can be empty to clear all configured resources for the category, or contain up to a maximum of 10 resource IDs. Each resource ID must be an intent path (the 'path' field on the NSX API output). For example, '/infra/sites/default/enforcement-points/default/host-transport-nodes/TN1'.
Site id in the query
The metrics data collection category for which to retrieve or update configured resource IDs. Only one category can be specified per request. Supported values include DISTRIBUTED_IDPS_HOST_TROUBLESHOOTING, DISTRIBUTED_IDPS_VM_TROUBLESHOOTING, and DISTRIBUTED_TLS_VM_STATS_COLLECTION. For DISTRIBUTED_IDPS_HOST_TROUBLESHOOTING and DISTRIBUTED_IDPS_VM_TROUBLESHOOTING, resource_ids must be of HostTransportNode resource type.
{
"_create_user": "string",
"_create_time": 0,
"_last_modified_user": "string",
"_last_modified_time": 0,
"_revision": 0,
"_resource_type": "string",
"_system_owned": false,
"id": "string",
"display_name": "string",
"description": "string",
"site_ids": [
"string"
],
"resource_ids": [
"string"
]
}
Successfully updated the list of resource IDs that have troubleshooting metrics data collection enabled for the specified category.
{
"_create_user": "string",
"_create_time": 0,
"_last_modified_user": "string",
"_last_modified_time": 0,
"_revision": 0,
"_resource_type": "string",
"_system_owned": false,
"id": "string",
"display_name": "string",
"description": "string",
"site_ids": [
"string"
],
"resource_ids": [
"string"
]
}
Bad request. The request body is invalid, missing required parameters, or contains invalid values. A maximum of 10 resource IDs are supported.
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Not found. The site or category was not found.
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
An unexpected error occurred while processing the request.
"Error Object"
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"resource_ids":["string"]}' https://{api_host}/security-monitoring/sites/{site-id}/troubleshooting-metrics/{category}