Connection Service
The Connection Service is deprecated.
The Connection Service provides RESTful APIs for managing the lifecycle of connections. All connection information is stored in the connections store of the dataset.
These are the lifecycle operations supported by the connection service:
Create a new connection (POST,Â
${base}/connections/create
)Update an entire connection (POST,Â
${base}/connections/{id}/update
)Update properties of a connection (PUT,Â
${base}/connections/{id}/properties?key=<key>&value=<value>
)Retrieve all properties of a connection (GET,Â
${base}/connections/{id}/properties
)Delete a connection (DELETE,Â
${base}/connections/{id}
)Clone a connection (GET,Â
${base}/connections/{id}/clone
)Retrieve information about all of the connections (GET,Â
${base}/connections
)Retrieve information about a connection (GETÂ
${base}/connections/{id}
)
Base
This is the base URL for the service:
http://localhost:11015/v3/namespaces/<namespace>/apps/dataprep/services/service/methods
NOTE: All examples below use a 'default' namespace.
Request JSON Object for creation and complete update
These are the fields that can be in the request:
name (mandatory)
description (optional)
type (mandatory; one of:)
DATABASE
KAFKA
S3
properties (optional)
Here is an example of a JSON Request for creating a connection:
{
"name": "MySQL Database",
"description": "MySQL Configuration",
"type": "DATABASE",
"properties": {
"hostaname": "localhost",
"port": "3306"
}
}
Upon successful creation, the ID of the entry is returned. Here is an example response when creation is successful:
{
"status": 200,
"message": "Success",
"count": 1,
"values": [
"mysql_database"
]
}
Sample Runs
Connection JSON
Create REST API call.
Repeat creation will fail
Delete Connection
Repeated delete will also be successful or even when the key is not found.
Listing All Connections
Listing Only connections of type Database
Info about connection
Cloning connection
Fetch only properties
Adding new property or updating existing property
Â
Created in 2020 by Google Inc.