/db2whrest/v1/buckets/<bucket>: GET
Gets information on a specific bucket that is supported.
Buckets influence the manner in which Data Cataloging
groups data for search faceting and in the user interface widgets. The predefined bucket types that
are supported are:
- SizeRange
- TimeSinceAccess
- FileGroup
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
✓ | Χ | Χ | Χ | Χ |
Synopsis of the request URL
curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/db2whrest/v1/buckets/<bucket> -X GET
Supported request types and response formats
Supported request types:
- GET
- JSON
Examples
- The following example shows how to get information on all the buckets that are supported by the
bucket service.
- Submit the
request:
curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/db2whrest/v1/buckets/SizeRange -X GET -H "Accept: application/json"
- The following response is
returned.
[ { "data": "{\"type\": \"int\", \"source_field\": \"size\", \"ranges\": {\"extra small\": [0, 4096], \"small\": [4096, 1048576], \"extra large\": [1099511627776, \"INFINITY\"], \"large\": [1073741824, 1099511627776], \"medium\": [1048576, 1073741824]}, \"name\": \"SizeRange\"}", "name": "SizeRange" } ]
- Submit the
request: