All URIs are relative to https://looker.buffer.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 |
| test_connection | PUT /connections/{connection_name}/test | test existing 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
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.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
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.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
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.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
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.ConnectionApi()
body = lookerpy.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
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.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]
DBConnectionTestResult test_connection(connection_name, tests=tests)
test existing 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.
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.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 existing 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]
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.
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.ConnectionApi()
body = lookerpy.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
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.ConnectionApi()
connection_name = 'connection_name_example' # str | Name of connection
body = lookerpy.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]