Fetch Sensor Profiles Associated with a Sensor
Use this API to get a list of sensor profiles that could be associated with a sensor of the corresponding type.
Input ParametersInput Parameters
|
Parameter |
Mandatory/Optional |
Data Type |
Description |
|---|---|---|---|
|
sensorType |
Mandatory |
string |
Specify the sensor type: REGISTRY, GENERAL, CICD, CLUSTER, or RUNTIME. The default value is 'GENERAL'. |
|
pageNumber |
Optional |
integer |
The page to be returned. Page numbers start with 1. |
|
pageSize |
Optional |
integer |
The number of records per page to be included in the response. The default value is 50. |
|
sort |
Optional |
string |
Sort the results using a Qualys token. For example created:desc. Refer to the “Sortable tokens” topic in the online help for more information. |
Sample Sample
API request
curl -X GET
"<qualys_base_url>/csapi/v1.3/sensors/profile/associate?sensorType=GENERAL"
-H "accept: application/json"
-H "Authorization: Bearer <token>"
Response
{
"data": [
{
"profileId": "string",
"profileName": "string",
"profileType": "GENERAL",
"description": "string",
"createdBy": "string",
"created": "string",
"updatedBy": "string",
"updated": "string",
"associatedSensorsCount": 0
}
]
"count": 1
}