/auth/v1/groups/<group_ID>/collections: GET

Gets the details of the collections that are assigned in a group.

The following table shows which roles can access this REST API endpoint:
Table 1. Access by role
Data admin Data user Collection Admin Admin Service user
Χ Χ Χ Χ

Synopsis of the request URL

curl -k  -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/<group_ID>/collections

Supported request types and response formats

Supported request types:
  • GET
Supported response formats:
  • JSON

Examples

The following example shows how to get the details of the collections assigned within a user group.

Request:
curl -k  -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/a51f84bfeb034b12a9a362109d78bec3/collections

Response:

((200 OK):
[
    {
        "description": "This is a test collection",
        "domain_id": "default",
        "enabled": true,
        "id": "51d5bf6c7c4e4fd3b35c53ca91d95705",
        "is_domain": false,
        "name": "test-collection",
        "parent_id": "default",
        "tags": [
            "tag1",
            "tag2"
        ]
    }
]