All URIs are relative to https://demo.looker.com:19999/api/3.0
| Method | HTTP request | Description |
|---|---|---|
| all_spaces | GET /spaces | Get All Spaces |
| create_space | POST /spaces | Create Space |
| delete_space | DELETE /spaces/{space_id} | Delete Space |
| search_spaces | GET /spaces/search | Search Spaces |
| space | GET /spaces/{space_id} | Get Space |
| space_ancestors | GET /spaces/{space_id}/ancestors | Get Space Ancestors |
| space_children | GET /spaces/{space_id}/children | Get Space Children |
| space_children_search | GET /spaces/{space_id}/children/search | Search Space Children |
| space_dashboards | GET /spaces/{space_id}/dashboards | Get Space Dashboards |
| space_looks | GET /spaces/{space_id}/looks | Get Space Looks |
| space_parent | GET /spaces/{space_id}/parent | Get Space Parent |
| update_space | PATCH /spaces/{space_id} | Update Space |
list[SpaceBase] all_spaces(fields=fields)
Get All Spaces
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get All Spaces
api_response = api_instance.all_spaces(fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->all_spaces: %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]
Space create_space(body=body)
Create Space
Create a space with specified information. Caller must have permission to edit the parent space and to create spaces, otherwise the request returns 404 Not Found.
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
body = lookerapi.Space() # Space | Space (optional)
try:
# Create Space
api_response = api_instance.create_space(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->create_space: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | Space | Space | [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_space(space_id)
Delete Space
Delete the space with a specific id including any children spaces. DANGER this will delete all looks and dashboards in the space.
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
try:
# Delete Space
api_response = api_instance.delete_space(space_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->delete_space: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space |
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]
list[Space] search_spaces(fields=fields, page=page, per_page=per_page, limit=limit, offset=offset, sorts=sorts, name=name, id=id, parent_id=parent_id, creator_id=creator_id)
Search Spaces
Search for spaces by creator id, parent id, name, etc
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
fields = 'fields_example' # str | Requested fields. (optional)
page = 789 # int | Requested page. (optional)
per_page = 789 # int | Results per page. (optional)
limit = 789 # int | Number of results to return. (used with offset and takes priority over page and per_page) (optional)
offset = 789 # int | Number of results to skip before returning any. (used with limit and takes priority over page and per_page) (optional)
sorts = 'sorts_example' # str | Fields to sort by. (optional)
name = 'name_example' # str | Match Space title. (optional)
id = 789 # int | Match Space id (optional)
parent_id = 'parent_id_example' # str | Filter on a children of a particular space. (optional)
creator_id = 'creator_id_example' # str | Filter on dashboards created by a particular user. (optional)
try:
# Search Spaces
api_response = api_instance.search_spaces(fields=fields, page=page, per_page=per_page, limit=limit, offset=offset, sorts=sorts, name=name, id=id, parent_id=parent_id, creator_id=creator_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->search_spaces: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| fields | str | Requested fields. | [optional] |
| page | int | Requested page. | [optional] |
| per_page | int | Results per page. | [optional] |
| limit | int | Number of results to return. (used with offset and takes priority over page and per_page) | [optional] |
| offset | int | Number of results to skip before returning any. (used with limit and takes priority over page and per_page) | [optional] |
| sorts | str | Fields to sort by. | [optional] |
| name | str | Match Space title. | [optional] |
| id | int | Match Space id | [optional] |
| parent_id | str | Filter on a children of a particular space. | [optional] |
| creator_id | str | Filter on dashboards created by a particular user. | [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]
Space space(space_id, fields=fields)
Get Space
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Space
api_response = api_instance.space(space_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->space: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| 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[Space] space_ancestors(space_id, fields=fields)
Get Space Ancestors
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Space Ancestors
api_response = api_instance.space_ancestors(space_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->space_ancestors: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| 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[Space] space_children(space_id, fields=fields, page=page, per_page=per_page, sorts=sorts)
Get Space Children
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
fields = 'fields_example' # str | Requested fields. (optional)
page = 789 # int | Requested page. (optional)
per_page = 789 # int | Results per page. (optional)
sorts = 'sorts_example' # str | Fields to sort by. (optional)
try:
# Get Space Children
api_response = api_instance.space_children(space_id, fields=fields, page=page, per_page=per_page, sorts=sorts)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->space_children: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| fields | str | Requested fields. | [optional] |
| page | int | Requested page. | [optional] |
| per_page | int | Results per page. | [optional] |
| sorts | str | Fields to sort by. | [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[Space] space_children_search(space_id, fields=fields, sorts=sorts, name=name)
Search Space Children
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
fields = 'fields_example' # str | Requested fields. (optional)
sorts = 'sorts_example' # str | Fields to sort by. (optional)
name = 'name_example' # str | Match Space name. (optional)
try:
# Search Space Children
api_response = api_instance.space_children_search(space_id, fields=fields, sorts=sorts, name=name)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->space_children_search: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| fields | str | Requested fields. | [optional] |
| sorts | str | Fields to sort by. | [optional] |
| name | str | Match Space name. | [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[Dashboard] space_dashboards(space_id, fields=fields)
Get Space Dashboards
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Space Dashboards
api_response = api_instance.space_dashboards(space_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->space_dashboards: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| 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[LookWithQuery] space_looks(space_id, fields=fields)
Get Space Looks
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Space Looks
api_response = api_instance.space_looks(space_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->space_looks: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| 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]
Space space_parent(space_id, fields=fields)
Get Space Parent
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Space Parent
api_response = api_instance.space_parent(space_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->space_parent: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| 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]
Space update_space(space_id, body)
Update Space
from __future__ import print_statement
import time
import lookerapi
from lookerapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerapi.SpaceApi()
space_id = 'space_id_example' # str | Id of space
body = lookerapi.Space() # Space | Space
try:
# Update Space
api_response = api_instance.update_space(space_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpaceApi->update_space: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| space_id | str | Id of space | |
| body | Space | Space |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]