All URIs are relative to https://ethosce.looker.com:19999/api/3.1
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 |
deleteConnectionOverride | DELETE /connections/{connection_name}/connection_override/{override_context} | Delete Connection |
testConnection | PUT /connections/{connection_name}/test | Test Connection |
testConnectionConfig | PUT /connections/test | Test Connection Configuration |
updateConnection | PATCH /connections/{connection_name} | Update Connection |
\Looker\Model\DBConnection[] allConnections($fields)
Get All Connections
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->allConnections($fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->allConnections: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
fields | string | 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]
\Looker\Model\DialectInfo[] allDialectInfos($fields)
Get All Dialect Infos
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->allDialectInfos($fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->allDialectInfos: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
fields | string | 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]
\Looker\Model\DBConnection connection($connection_name, $fields)
Get Connection
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$connection_name = "connection_name_example"; // string | Name of connection
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->connection($connection_name, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->connection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
connection_name | string | Name of connection | |
fields | string | 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]
\Looker\Model\DBConnection createConnection($body)
Create Connection
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Looker\Model\DBConnection(); // \Looker\Model\DBConnection | Connection
try {
$result = $apiInstance->createConnection($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->createConnection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Looker\Model\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]
string deleteConnection($connection_name)
Delete Connection
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$connection_name = "connection_name_example"; // string | Name of connection
try {
$result = $apiInstance->deleteConnection($connection_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->deleteConnection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
connection_name | string | Name of connection |
string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string deleteConnectionOverride($connection_name, $override_context)
Delete Connection
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$connection_name = "connection_name_example"; // string | Name of connection
$override_context = "override_context_example"; // string | Context of connection override
try {
$result = $apiInstance->deleteConnectionOverride($connection_name, $override_context);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->deleteConnectionOverride: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
connection_name | string | Name of connection | |
override_context | string | Context of connection override |
string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\DBConnectionTestResult[] testConnection($connection_name, $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.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$connection_name = "connection_name_example"; // string | Name of connection
$tests = array("tests_example"); // string[] | Array of names of tests to run
try {
$result = $apiInstance->testConnection($connection_name, $tests);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->testConnection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
connection_name | string | Name of connection | |
tests | string[] | Array of names of tests to run | [optional] |
\Looker\Model\DBConnectionTestResult[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\DBConnectionTestResult[] testConnectionConfig($body, $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.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Looker\Model\DBConnection(); // \Looker\Model\DBConnection | Connection
$tests = array("tests_example"); // string[] | Array of names of tests to run
try {
$result = $apiInstance->testConnectionConfig($body, $tests);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->testConnectionConfig: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Looker\Model\DBConnection | Connection | [optional] |
tests | string[] | Array of names of tests to run | [optional] |
\Looker\Model\DBConnectionTestResult[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\DBConnection updateConnection($connection_name, $body)
Update Connection
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\ConnectionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$connection_name = "connection_name_example"; // string | Name of connection
$body = new \Looker\Model\DBConnection(); // \Looker\Model\DBConnection | Connection
try {
$result = $apiInstance->updateConnection($connection_name, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConnectionApi->updateConnection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
connection_name | string | Name of connection | |
body | \Looker\Model\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]