This URL is used to retrieve traffic statistics for internal web certificate matches for a Sensor.
Resource URL
GET /sensor/{sensorId}/trafficstats/sslinternalwebcertmatches
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor id | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Count of unmatched certificates | Number |
| List of matched certificates | Array |
Details of object in matchedCertificates:
Field Name | Description | Data Type |
|---|---|---|
| Certificate name | String |
| Number of flows | Number |
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/sslinternalwebcertmatches
Response
{
"unMatchedCertificates": 0,
"matchedCertificates": [
{
“certificateName": ”: “test”,
“flows”: 10
},
{
“certificateName”: “test2",
“flows”: 2
}
]
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | Invalid Sensor: When the device id given is not valid |