Get Mapping assetUuids with assetIds

Use this API to get a mapping of assetUuids with assetIds.

GET/pm/v1/assets/uuids

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

assetIds

Mandatory

Integer

Specify a list of assetIds for which the assetUuids are required.


For example: 27994959,29997962

Sample - Get a mapping of assetUuids with assetIds.Sample - Get a mapping of assetUuids with assetIds.

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]"
}