All URIs are relative to https://demo.looker.com:19999/api/3.0
| Method | HTTP request | Description |
|---|---|---|
| all_connections | GET /connections | Get All Connections |
| all_dialect_infos | GET /dialect_info | Get All Dialect Infos |
| connection | GET /connections/{connection_name} | Get Connection |
| create_connection | POST /connections | Create Connection |
| delete_connection | DELETE /connections/{connection_name} | Delete Connection |
| delete_connection_override | DELETE /connections/{connection_name}/connection_override/{override_context} | Delete Connection |
| test_connection | PUT /connections/{connection_name}/test | Test Connection |
| test_connection_config | PUT /connections/test | Test Connection Configuration |
| update_connection | PATCH /connections/{connection_name} | Update Connection |
list[DBConnection] all_connections(fields=fields)
Get All Connections
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.ConnectionApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get All Connections
api_response = api_instance.all_connections(fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->all_connections: %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[DialectInfo] all_dialect_infos(fields=fields)
Get All Dialect Infos
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.ConnectionApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get All Dialect Infos
api_response = api_instance.all_dialect_infos(fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->all_dialect_infos: %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]
DBConnection connection(connection_name, fields=fields)
Get Connection
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.ConnectionApi()
connection_name = 'connection_name_example' # str | Name of connection
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Connection
api_response = api_instance.connection(connection_name, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->connection: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_name | str | Name of connection | |
| 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]
DBConnection create_connection(body=body)
Create Connection
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.ConnectionApi()
body = lookerapi.DBConnection() # DBConnection | Connection (optional)
try:
# Create Connection
api_response = api_instance.create_connection(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->create_connection: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | DBConnection | Connection | [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_connection(connection_name)
Delete Connection
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.ConnectionApi()
connection_name = 'connection_name_example' # str | Name of connection
try:
# Delete Connection
api_response = api_instance.delete_connection(connection_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->delete_connection: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_name | str | Name of connection |
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_connection_override(connection_name, override_context)
Delete Connection
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.ConnectionApi()
connection_name = 'connection_name_example' # str | Name of connection
override_context = 'override_context_example' # str | Context of connection override
try:
# Delete Connection
api_response = api_instance.delete_connection_override(connection_name, override_context)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->delete_connection_override: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_name | str | Name of connection | |
| override_context | str | Context of connection override |
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[DBConnectionTestResult] test_connection(connection_name, tests=tests)
Test Connection
Test an existing connection. Note that a connection's 'dialect' property has a 'connection_tests' property that lists the specific types of tests that the connection supports. Unsupported tests in the request will be ignored.
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.ConnectionApi()
connection_name = 'connection_name_example' # str | Name of connection
tests = ['tests_example'] # list[str] | Array of names of tests to run (optional)
try:
# Test Connection
api_response = api_instance.test_connection(connection_name, tests=tests)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->test_connection: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_name | str | Name of connection | |
| tests | list[str] | Array of names of tests to run | [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[DBConnectionTestResult] test_connection_config(body=body, tests=tests)
Test Connection Configuration
Test a connection configuration. Note that a connection's 'dialect' property has a 'connection_tests' property that lists the specific types of tests that the connection supports. Unsupported tests in the request will be ignored.
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.ConnectionApi()
body = lookerapi.DBConnection() # DBConnection | Connection (optional)
tests = ['tests_example'] # list[str] | Array of names of tests to run (optional)
try:
# Test Connection Configuration
api_response = api_instance.test_connection_config(body=body, tests=tests)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->test_connection_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | DBConnection | Connection | [optional] |
| tests | list[str] | Array of names of tests to run | [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]
DBConnection update_connection(connection_name, body)
Update Connection
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.ConnectionApi()
connection_name = 'connection_name_example' # str | Name of connection
body = lookerapi.DBConnection() # DBConnection | Connection
try:
# Update Connection
api_response = api_instance.update_connection(connection_name, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConnectionApi->update_connection: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_name | str | Name of connection | |
| body | DBConnection | Connection |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]