Use this API to get a mapping of assetUuids with assetIds.
Parameter |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
assetIds |
Mandatory |
Integer |
Specify a list of assetIds for which the assetUuids are required.
|
API request
curl -X POST
"https://<QualysBaseURL>/pm/v1/assets/uuids" \
-H "accept: application/json" \
-H "Authorization: Bearer <jwt token>" \
-H "Content-Type: application/json" \
-d "<comma separated list of asset ids>"
Response
{
"mappedAssets": [
{
"assetId": 27994959,
"assetUuid": "ecf76a16-1bb6-4adf-8e25-b8dab426a724"
},
{
"assetId": 29997962,
"assetUuid": "f7df266c-df01-4669-9cfb-2a2cc6c375b1"
}
],
"unmappedAssets": "[29995962]"
}