All URIs are relative to https://looker.buffer.com:19999/api/3.0
Method | HTTP request | Description |
---|---|---|
all_model_sets | GET /model_sets | get all model sets |
all_permission_sets | GET /permission_sets | get all permission sets |
all_permissions | GET /permissions | get all permissions |
all_roles | GET /roles | get all roles |
create_model_set | POST /model_sets | create a model set |
create_permission_set | POST /permission_sets | create a permission set |
create_role | POST /roles | create a role |
delete_model_set | DELETE /model_sets/{model_set_id} | delete a model set |
delete_permission_set | DELETE /permission_sets/{permission_set_id} | delete a permission set |
delete_role | DELETE /roles/{role_id} | delete a role |
model_set | GET /model_sets/{model_set_id} | Get a model set |
permission_set | GET /permission_sets/{permission_set_id} | Get a permission set |
role | GET /roles/{role_id} | Get a role |
role_users | GET /roles/{role_id}/users | Get users with role |
set_role_users | PUT /roles/{role_id}/users | Set users with role |
update_model_set | PATCH /model_sets/{model_set_id} | update a model set |
update_permission_set | PATCH /permission_sets/{permission_set_id} | update a permission set |
update_role | PATCH /roles/{role_id} | update a role |
list[ModelSet] all_model_sets(fields=fields)
get all model sets
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# get all model sets
api_response = api_instance.all_model_sets(fields=fields)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->all_model_sets: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[PermissionSet] all_permission_sets(fields=fields)
get all permission sets
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# get all permission sets
api_response = api_instance.all_permission_sets(fields=fields)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->all_permission_sets: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Permission] all_permissions()
get all permissions
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
try:
# get all permissions
api_response = api_instance.all_permissions()
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->all_permissions: %s\n" % e
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Role] all_roles(fields=fields)
get all roles
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# get all roles
api_response = api_instance.all_roles(fields=fields)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->all_roles: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelSet create_model_set(body=body)
create a model set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
body = lookerpy.ModelSet() # ModelSet | ModelSet (optional)
try:
# create a model set
api_response = api_instance.create_model_set(body=body)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->create_model_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
body | ModelSet | ModelSet | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PermissionSet create_permission_set(body=body)
create a permission set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
body = lookerpy.PermissionSet() # PermissionSet | PermissionSet (optional)
try:
# create a permission set
api_response = api_instance.create_permission_set(body=body)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->create_permission_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
body | PermissionSet | PermissionSet | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Role create_role(body=body)
create a role
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
body = lookerpy.Role() # Role | Role (optional)
try:
# create a role
api_response = api_instance.create_role(body=body)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->create_role: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
body | Role | Role | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_model_set(model_set_id)
delete a model set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
model_set_id = 789 # int | id of model set
try:
# delete a model set
api_response = api_instance.delete_model_set(model_set_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->delete_model_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | id of model set |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_permission_set(permission_set_id)
delete a permission set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
permission_set_id = 789 # int | Id of permission set
try:
# delete a permission set
api_response = api_instance.delete_permission_set(permission_set_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->delete_permission_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | Id of permission set |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_role(role_id)
delete a role
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
role_id = 789 # int | id of role
try:
# delete a role
api_response = api_instance.delete_role(role_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->delete_role: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelSet model_set(model_set_id, fields=fields)
Get a model set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
model_set_id = 789 # int | Id of model set
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get a model set
api_response = api_instance.model_set(model_set_id, fields=fields)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->model_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | Id of model set | |
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PermissionSet permission_set(permission_set_id, fields=fields)
Get a permission set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
permission_set_id = 789 # int | Id of permission set
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get a permission set
api_response = api_instance.permission_set(permission_set_id, fields=fields)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->permission_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | Id of permission set | |
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Role role(role_id)
Get a role
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
role_id = 789 # int | id of role
try:
# Get a role
api_response = api_instance.role(role_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->role: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[User] role_users(role_id, fields=fields)
Get users with role
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
role_id = 789 # int | id of user
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get users with role
api_response = api_instance.role_users(role_id, fields=fields)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->role_users: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of user | |
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[User] set_role_users(role_id, body)
Set users with role
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
role_id = 789 # int | id of role
body = [lookerpy.list[int]()] # list[int] | array of user ids for role
try:
# Set users with role
api_response = api_instance.set_role_users(role_id, body)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->set_role_users: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
body | list[int] | array of user ids for role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelSet update_model_set(model_set_id, body)
update a model set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
model_set_id = 789 # int | id of model set
body = lookerpy.ModelSet() # ModelSet | ModelSet
try:
# update a model set
api_response = api_instance.update_model_set(model_set_id, body)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->update_model_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | id of model set | |
body | ModelSet | ModelSet |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PermissionSet update_permission_set(permission_set_id, body)
update a permission set
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
permission_set_id = 789 # int | id of permission set
body = lookerpy.PermissionSet() # PermissionSet | PermissionSet
try:
# update a permission set
api_response = api_instance.update_permission_set(permission_set_id, body)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->update_permission_set: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | id of permission set | |
body | PermissionSet | PermissionSet |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Role update_role(role_id, body)
update a role
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.RoleApi()
role_id = 789 # int | id of role
body = lookerpy.Role() # Role | Role
try:
# update a role
api_response = api_instance.update_role(role_id, body)
pprint(api_response)
except ApiException as e:
print "Exception when calling RoleApi->update_role: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
body | Role | Role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]