Data Source APIs JDBC Datasource Resource
GET pentaho/plugin/data-access/api/datasource/jdbc/connectioncurl -X GET \
"http://localhost:8080/pentaho/plugin/data-access/api/datasource/jdbc/connection" \
-H "Authorization: Basic YWRtaW46cGFzc3dvcmQ=" \
-H "Accept: application/json"HTTP Basic Authentication
Successfully retrieved the list of JDBC datasource IDs
List of JDBC datasource IDs in XML format
Internal error retrieving JDBC datasource IDs
PUT pentaho/plugin/data-access/api/datasource/jdbc/connection/TestDatasourcecurl -X PUT \
"http://localhost:8080/pentaho/plugin/data-access/api/datasource/jdbc/connection/TestDatasource" \
-H "Authorization: Basic YWRtaW46cGFzc3dvcmQ=" \
-H "Content-Type: application/json" \
-d '{
"changed": true,
"usingConnectionPool": true,
"connectSql": "",
"databaseName": "SampleData",
"databasePort": "9001",
"hostname": "localhost",
"name": "TestDataSourceResource",
"password": "password",
"username": "pentaho_user",
"attributes": {},
"connectionPoolingProperties": {},
"extraOptions": {},
"accessType": "NATIVE",
"databaseType": {
"defaultDatabasePort": 9001,
"extraOptionsHelpUrl": "http://hsqldb.sourceforge.net/doc/guide/ch04.html#N109DA",
"name": "Hypersonic",
"shortName": "HYPERSONIC",
"supportedAccessTypes": ["NATIVE", "ODBC", "JNDI"]
}
}'HTTP Basic Authentication
The ID of the JDBC datasource to add or update
TestDatasourceDatabase connection configuration
Unique identifier for the database connection
00ac4db3-7567-4019-8917-1b6f512ee162Name of the database connection
TestDataSourceResourceDatabase server hostname
localhostName of the database
SampleDataDatabase server port
9001Database username
pentaho_userDatabase password (may be encrypted or nullified for security)
passwordType of database access
NATIVEValue for the access type
NATIVESQL to execute on connection
Whether to use connection pooling
trueInitial connection pool size
0Maximum connection pool size
0Whether the database is partitioned
falseWhether the connection has been modified
falseWhether to quote all field names
falseWhether to use streaming results
falseWhether to force identifiers to lowercase
falseWhether to force identifiers to uppercase
falseWhether to use double decimal as schema table separator
falseData tablespace name
Index tablespace name
Informix server name
SQL Server instance name
JDBC datasource added successfully.
Datasource was not modified
User is not authorized to add JDBC datasources.
An unexpected error occurred while adding the JDBC datasource.
No content
GET pentaho/plugin/data-access/api/datasource/jdbc/connection/TestDataSourceResourcecurl -X GET \
"http://localhost:8080/pentaho/plugin/data-access/api/datasource/jdbc/connection/TestDataSourceResource" \
-H "Authorization: Basic YWRtaW46cGFzc3dvcmQ=" \
-H "Accept: application/json"HTTP Basic Authentication
The name of the JDBC datasource to retrieve
TestDataSourceResourceSuccessfully retrieved the JDBC datasource
Database connection configuration
Unique identifier for the database connection
00ac4db3-7567-4019-8917-1b6f512ee162Name of the database connection
TestDataSourceResourceDatabase server hostname
localhostName of the database
SampleDataDatabase server port
9001Database username
pentaho_userDatabase password (may be encrypted or nullified for security)
passwordType of database access
NATIVEValue for the access type
NATIVESQL to execute on connection
Whether to use connection pooling
trueInitial connection pool size
0Maximum connection pool size
0Whether the database is partitioned
falseWhether the connection has been modified
falseWhether to quote all field names
falseWhether to use streaming results
falseWhether to force identifiers to lowercase
falseWhether to force identifiers to uppercase
falseWhether to use double decimal as schema table separator
falseData tablespace name
Index tablespace name
Informix server name
SQL Server instance name
An error occurred retrieving the JDBC datasource
DELETE pentaho/plugin/data-access/api/datasource/jdbc/connection/TestDataSourceResourcecurl -X DELETE \
"http://localhost:8080/pentaho/plugin/data-access/api/datasource/jdbc/connection/TestDataSourceResource" \
-H "Authorization: Basic YWRtaW46cGFzc3dvcmQ="HTTP Basic Authentication
The name of the JDBC datasource to remove
TestDataSourceResourceJDBC datasource removed successfully.
User is not authorized to remove the JDBC datasource or the connection does not exist.
An unexpected error occurred while deleting the JDBC datasource.
No content
Last updated
Was this helpful?

