Fetch Registries Associated with a Sensor Profile

Use this API to get a list of registries associated with a sensor profile in your account.

GET/csapi/v1.3/sensorProfile/{sensorProfileId}/registry

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

sensorProfileId

Mandatory

string

The ID/UUID for the sensor profile for which you want to get associated registries.

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.

SampleSample

API request

    curl -X GET
"<qualys_base_url>/csapi/v1.3/sensorProfile/d96b936c-4d7c-449a-bc32-cfdc31c87a9c/registry" --header "Authorization: Bearer <token>"
    

Response

    {
    "data": [
        {
            "registryUuid": "e6d33990-41dc-46a0-8274-8eb6e65e25a2",
            "registryName": "reg1",
            "registryUri": "https://registry-1.docker.io",
            "registryType": "DockerHub",
            "totalImages": 10,
            "lastScanned": "1657868777405"
        }
    ],
    "count": 1,
    "groups": {}
}