Use this API to get a list of sensors associated with a sensor profile in your account.
Parameter |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
sensorProfileId |
Mandatory |
string |
The ID/UUID for the sensor profile for which you want to get associated sensors. |
filter |
Optional |
string |
Filter the sensor profiles list by providing a query using Qualys syntax. Refer to the “How to Search” topic in the online help for assistance with creating your query. |
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. |
API request
curl -X GET
"<qualys_base_url>/csapi/v1.3/sensorProfile/d96b936c-4d7c-449a-bc32-cfdc31c87a9c/sensor" --header "Authorization: Bearer <token>"
Response
{
"content": [
{
"uuid": "e9f3c631-e440-443f-92d0-73624647b707",
"activationUuid": "9315142c-d52e-4378-b3e9-6ca16925f15f",
"hostname": "ip-10-82-11-73",
"customerUuid": "46fa2878-32d7-75af-82de-e624b224d693",
"dockerVersion": "20.10.12",
"ipv4": "10.82.11.73",
"os": "Ubuntu 20.04.4 LTS",
"ipv6": "fe80::8c6:9aff:fe55:1239",
"sensorVersion": "1.16.0-0",
"platform": "LINUX_SENSOR",
"lastCheckedIn": "1657871603302",
"label": [
{
"key": "image-source",
"value": "Docker Hub"
},
{
"key": "name",
"value": "Qualys Sensor Image"
},
{
"key": "jira-id",
"value": "BI-117"
},
{
"key": "VersionInfo",
"value": "Qualys Sensor Version 1.16.0-0"
},
{
"key": "build-date",
"value": "Wed Jul 6 14:37:41 UTC 2022"
},
{
"key": "vendor",
"value": "Qualys, Inc"
},
{
"key": "Base_image_name",
"value": "art-hq.intranet.qualys.com:5006/secure/oraclelinux:7"
},
{
"key": "maintainer",
"value": "DevOps <devops@qualys.com>"
}
],
"privileged": "false",
"macAddress": "0a:c6:9a:55:12:39",
"vulnSigVersion": null,
"hostUuid": "be084969-957f-4959-a813-fa06ded2dde5",
"configurationProfile": null,
"status": "Provisioned",
"registry": "docker.io",
"sha": "49fc4327957c8979dcf87a7436c8152fa10b3039197489e631c3f7f595398740",
"sensorId": "49fc4327957c",
"name": "qualys-container-sensor",
"created": "1657793184000",
"imageId": "1ab23c77b5d4",
"imageSha": "1ab23c77b5d44b1e798355c73f3e5feb3ceab8d0bcf9cd3ef0b8511a6f685ba6",
"binaryVersion": null,
"containerIpv4": null,
"containerIpv6": null,
"containerMacAddress": "",
"sensorType": "REGISTRY",
"containerRuntime": "DOCKER",
"containerRuntimeVersion": "20.10.12",
"architecture": "x86_64"
}
]
}
Was this topic helpful?