All URIs are relative to https://madisonreed.looker.com:19999/api/3.0
Method | HTTP request | Description |
---|---|---|
allConnections | GET /connections | Get All Connections |
allDialectInfos | GET /dialect_info | Get All Dialect Infos |
connection | GET /connections/{connection_name} | Get Connection |
createConnection | POST /connections | Create Connection |
deleteConnection | DELETE /connections/{connection_name} | Delete Connection |
testConnection | PUT /connections/{connection_name}/test | Test Connection |
testConnectionConfig | PUT /connections/test | Test Connection Configuration |
updateConnection | PATCH /connections/{connection_name} | Update Connection |
[DBConnection] allConnections(opts)
Get All Connections
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var opts = {
'fields': "fields_example" // {String} Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.allConnections(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[DialectInfo] allDialectInfos(opts)
Get All Dialect Infos
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var opts = {
'fields': "fields_example" // {String} Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.allDialectInfos(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
DBConnection connection(connectionName, opts)
Get Connection
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var connectionName = "connectionName_example"; // {String} Name of connection
var opts = {
'fields': "fields_example" // {String} Requested fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.connection(connectionName, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
connectionName | String | Name of connection | |
fields | String | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
DBConnection createConnection(opts)
Create Connection
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var opts = {
'body': new LookerApi30Reference.DBConnection() // {DBConnection} Connection
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createConnection(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | DBConnection | Connection | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
'String' deleteConnection(connectionName)
Delete Connection
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var connectionName = "connectionName_example"; // {String} Name of connection
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deleteConnection(connectionName, callback);
Name | Type | Description | Notes |
---|---|---|---|
connectionName | String | Name of connection |
'String'
No authorization required
- Content-Type: application/json
- Accept: application/json
[DBConnectionTestResult] testConnection(connectionName, opts)
Test 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.
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var connectionName = "connectionName_example"; // {String} Name of connection
var opts = {
'tests': ["tests_example"] // {[String]} Array of names of tests to run
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.testConnection(connectionName, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
connectionName | String | Name of connection | |
tests | [String] | Array of names of tests to run | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[DBConnectionTestResult] testConnectionConfig(opts)
Test 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.
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var opts = {
'body': new LookerApi30Reference.DBConnection(), // {DBConnection} Connection
'tests': ["tests_example"] // {[String]} Array of names of tests to run
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.testConnectionConfig(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | DBConnection | Connection | [optional] |
tests | [String] | Array of names of tests to run | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
DBConnection updateConnection(connectionName, body)
Update Connection
var LookerApi30Reference = require('looker-api-3');
var apiInstance = new LookerApi30Reference.ConnectionApi()
var connectionName = "connectionName_example"; // {String} Name of connection
var body = new LookerApi30Reference.DBConnection(); // {DBConnection} Connection
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.updateConnection(connectionName, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
connectionName | String | Name of connection | |
body | DBConnection | Connection |
No authorization required
- Content-Type: application/json
- Accept: application/json