List of Asset Groups

Use this API to get a list of asset groups.

GET/adminui/user-management/v1/asset-groups?buId={buId}&userRole={User Role}

The API request and response are in JSON format. Some characters, such as backslash (\) and double quotes (") in passwords or other fields may appear escaped in raw JSON responses. It is recommended to alway as parse responses using standard JSON parser to retrieve the correct values. 

Sample - Get a List of Asset GroupsSample - Get a List of Asset Groups

API request

curl --location --request GET '<qualys_base_url>/adminui/user-management/v1/asset-groups?buId=1776714&userRole=READER' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT_Token>' 
--data ''

Response

[
    {
        "assetGroupId": -999,
        "name": "All",
        "networkId": -2
    },
    {
        "assetGroupId": 54795353,
        "name": "AG_2",
        "networkId": 0,
        "subscriptionId": 1298123
    },
    {
        "assetGroupId": 54795354,
        "name": "AG in BU",
        "networkId": 0,
        "subscriptionId": 1298123
    },
    {
        "assetGroupId": 54795352,
        "name": "AG_1",
        "networkId": 0,
        "subscriptionId": 1298123
    }
]