Collections
Cloudera Data Visualization provides URL access to the Viz server object, collections.
In addition to the standard public collection that all users share, and the single private collection that each user has, Cloudera Data Visualization users with Create Collection privilege can create custom collections. These collections may be shared by specific users and user groups, so they can develop and view dashboards that are inherently useful to their line of business. Within each of these collections, each user has a defined access level: View Only, Edit, or Manage.
Collection data type
The JSON fields for collection data type are defined as follows:
| Field | Detail Only | Updatable | Description |
|---|---|---|---|
id |
No | No | Collection ID |
name |
No | Yes | Vollection name |
desc |
No | Yes | Collection description |
editable |
Yes | No | Permission to update only a non system-managed collection (Custom collection). The system managed collections are Public and Private collections. |
private_user_id |
Yes | No | ID of the user for private collections |
acl |
Yes | Yes | Access Control List (ACL) for a collection |
Access control list in collections
acl syntax shows two
entries:"acl": [
[entry_type, access_level, group_name],
[entry_type, access_level, user_name]]| Entry | Encoding |
|---|---|
entry_type |
1 = User,
2 = Group |
access_level |
1 = View,
2 = Edit, 3 =
Manage |
user_name/group_name |
User or group name of the
entry_type |
Creating collections
The following code creates a new collection Test
collection and provides View access to a
special group Everyone and Manage access to
user admin.
The actual APIKey and the method of retrieving the key depends on the user system.
curl -s \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: apikey apikey" \
-d 'data=[{
"name": "Test collection",
"desc": "Collection created via admin api",
"acl": [[2, 1, "Everyone"], [1, 3, "admin"]]
}]' \
127.0.0.1:7999/arc/adminapi/collections
When viewing this collection through the Cloudera Data Visualization UI, it appears on the collection edit modal like this:
