Dataplugins
Dataplugins simply define a source of data from a given repository. Meltano Cloud provides a number of pre-configured platform-wide dataplugins out-the-box, as well as the ability to create custom dataplugins through the API. From these, pipeline jobs can be run to inject data into a workspace.
Objects
Dataplugin
| Path | JSON Type | Format | Description |
|---|---|---|---|
id | string | Version 4 UUID | The dataplugin ID |
name | string | The dataplugin name | |
description | string | A description of the dataplugin | |
repositoryUrl | string | URL | The dataplugin repository URL |
settings | object[] | Array of Settings | The dataplugin settings |
Example response body
Setting
| Path | JSON Type | Format | Description |
|---|---|---|---|
name | string | The setting name | |
value | string | The setting default value | |
label | string | The setting label | |
protected | bool | The setting protection status | |
kind | string | Setting Kind | The setting kind |
description | string | A description of the setting | |
placeholder | string | The setting placeholder text | |
envAliases | string[] | Environment variable aliases for the setting | |
documentation | string | URL | The setting documentation URL |
oauth | OAuth | The setting OAuth configuration | |
env | string |
OAuth
| Path | JSON Type | Format | Description |
|---|---|---|---|
provider | string | The OAuth provider |
Formats
Setting Kind
string
| Value | Description |
|---|---|
STRING | String setting |
INTEGER | Integer setting |
PASSWORD | Password setting |
HIDDEN | Hidden setting |
BOOLEAN | Boolean setting |
DATE_ISO8601 | ISO 8601 date setting |
EMAIL | Email setting |
OAUTH | OAuth setting |
FILE | File setting |
ARRAY | Array setting |
Requests
View all supported dataplugins
GET /api/dataplugins
Returns all dataplugins supported by Meltano Cloud.
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/dataplugins' -i -X GET
import requests
url = "https://app.meltano.com:443/api/dataplugins"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataplugin collection with HAL links.
Example response body
View all workspace dataplugins
GET /api/workspaces/{workspace-id}/dataplugins
Returns all dataplugins available to the workspace {workspace-id}.
Prerequisites
- Workspace
{workspace-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins' -i -X GET
import requests
url = "https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataplugin collection with HAL links.
Example response body
View a dataplugin
GET /api/dataplugins/{dataplugin-id}
Returns the dataplugin {dataplugin-id}.
Prerequisites
- Dataplugin
{dataplugin-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/dataplugins/06d3f7d2-dc2b-41d8-bda1-20a300df6610' -i -X GET
import requests
url = "https://app.meltano.com:443/api/dataplugins/06d3f7d2-dc2b-41d8-bda1-20a300df6610"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataplugin with HAL links.
Example response body
Initialise a new dataplugin
POST /api/dataplugins
Initialises a new dataplugin.
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins' -i -X POST \
-H 'Content-Type: application/json'
import requests
url = "https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataplugin with HAL links.
Example response body
Create a dataplugin
PUT /api/dataplugins/{dataplugin-id}
Creates the dataplugin {dataplugin-id}.
Body
Dataplugin resource.
{
"name" : "tap-custom-test",
"variant" : "sit",
"pluginType" : "EXTRACTOR",
"label" : "Tap Custom Test",
"description" : "A dataplugin created during an SIT run",
"pipUrl" : "git+https://github.com/Matatika/example-repository",
"settings" : [ {
"name" : "username",
"kind" : "STRING",
"label" : "Username",
"placeholder" : "username",
"description" : "The username login credential.",
"protected" : false
}, {
"name" : "email",
"kind" : "EMAIL",
"label" : "Email",
"description" : "The email login credential.",
"placeholder" : "example@domain.com",
"protected" : false
}, {
"name" : "start_date",
"kind" : "DATE_ISO8601",
"label" : "Start Date",
"description" : "The data to begin extracting data from, in ISO 8601 format.",
"placeholder" : "2020-01-01T00:00:00Z",
"protected" : false
} ]
}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins/bbbd5eea-9a8c-4dac-8a17-de5c7d662903' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "tap-custom-test",
"variant" : "sit",
"pluginType" : "EXTRACTOR",
"label" : "Tap Custom Test",
"description" : "A dataplugin created during an SIT run",
"pipUrl" : "git+https://github.com/Matatika/example-repository",
"settings" : [ {
"name" : "username",
"kind" : "STRING",
"label" : "Username",
"placeholder" : "username",
"description" : "The username login credential.",
"protected" : false
}, {
"name" : "email",
"kind" : "EMAIL",
"label" : "Email",
"description" : "The email login credential.",
"placeholder" : "example@domain.com",
"protected" : false
}, {
"name" : "start_date",
"kind" : "DATE_ISO8601",
"label" : "Start Date",
"description" : "The data to begin extracting data from, in ISO 8601 format.",
"placeholder" : "2020-01-01T00:00:00Z",
"protected" : false
} ]
}'
import requests
url = "https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins/bbbd5eea-9a8c-4dac-8a17-de5c7d662903"
data = {
"name" : "tap-custom-test",
"variant" : "sit",
"pluginType" : "EXTRACTOR",
"label" : "Tap Custom Test",
"description" : "A dataplugin created during an SIT run",
"pipUrl" : "git+https://github.com/Matatika/example-repository",
"settings" : [ {
"name" : "username",
"kind" : "STRING",
"label" : "Username",
"placeholder" : "username",
"description" : "The username login credential.",
"protected" : false
}, {
"name" : "email",
"kind" : "EMAIL",
"label" : "Email",
"description" : "The email login credential.",
"placeholder" : "example@domain.com",
"protected" : false
}, {
"name" : "start_date",
"kind" : "DATE_ISO8601",
"label" : "Start Date",
"description" : "The data to begin extracting data from, in ISO 8601 format.",
"placeholder" : "2020-01-01T00:00:00Z",
"protected" : false
} ]
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
201 Created
Dataplugin with HAL links.
Example response body
Update a dataplugin
PUT /api/dataplugins/{dataplugin-id}
Updates the dataplugin {dataplugin-id}.
Prerequisites
- Dataplugin
{dataplugin-id}must exist
Body
Dataplugin resource.
{
"name" : "tap-custom-test",
"variant" : "sit",
"pluginType" : "EXTRACTOR",
"label" : "Tap Custom Test",
"description" : "A dataplugin updated during an SIT run",
"pipUrl" : "git+https://github.com/Matatika/example-repository-2",
"settings" : [ {
"name" : "username",
"kind" : "STRING",
"label" : "Username",
"placeholder" : "username",
"description" : "The username login credential.",
"protected" : false
}, {
"name" : "email",
"kind" : "EMAIL",
"label" : "Email",
"description" : "The email login credential.",
"placeholder" : "example@domain.com",
"protected" : false
}, {
"name" : "start_date",
"kind" : "DATE_ISO8601",
"label" : "Start Date",
"description" : "The data to begin extracting data from, in ISO 8601 format.",
"placeholder" : "2020-01-01T00:00:00Z",
"protected" : false
} ]
}
| Path | JSON Type | Format | Description | Constraints |
|---|---|---|---|---|
description | string | A description of the dataplugin | ||
repositoryUrl | string | A URL to the dataplugin repository | ||
settings | object[] | Array of Settings | The dataplugin settings |
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins/bbbd5eea-9a8c-4dac-8a17-de5c7d662903' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "tap-custom-test",
"variant" : "sit",
"pluginType" : "EXTRACTOR",
"label" : "Tap Custom Test",
"description" : "A dataplugin updated during an SIT run",
"pipUrl" : "git+https://github.com/Matatika/example-repository-2",
"settings" : [ {
"name" : "username",
"kind" : "STRING",
"label" : "Username",
"placeholder" : "username",
"description" : "The username login credential.",
"protected" : false
}, {
"name" : "email",
"kind" : "EMAIL",
"label" : "Email",
"description" : "The email login credential.",
"placeholder" : "example@domain.com",
"protected" : false
}, {
"name" : "start_date",
"kind" : "DATE_ISO8601",
"label" : "Start Date",
"description" : "The data to begin extracting data from, in ISO 8601 format.",
"placeholder" : "2020-01-01T00:00:00Z",
"protected" : false
} ]
}'
import requests
url = "https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins/bbbd5eea-9a8c-4dac-8a17-de5c7d662903"
data = {
"name" : "tap-custom-test",
"variant" : "sit",
"pluginType" : "EXTRACTOR",
"label" : "Tap Custom Test",
"description" : "A dataplugin updated during an SIT run",
"pipUrl" : "git+https://github.com/Matatika/example-repository-2",
"settings" : [ {
"name" : "username",
"kind" : "STRING",
"label" : "Username",
"placeholder" : "username",
"description" : "The username login credential.",
"protected" : false
}, {
"name" : "email",
"kind" : "EMAIL",
"label" : "Email",
"description" : "The email login credential.",
"placeholder" : "example@domain.com",
"protected" : false
}, {
"name" : "start_date",
"kind" : "DATE_ISO8601",
"label" : "Start Date",
"description" : "The data to begin extracting data from, in ISO 8601 format.",
"placeholder" : "2020-01-01T00:00:00Z",
"protected" : false
} ]
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
200 OK
Dataplugin with HAL links.
Example response body
Update an installed dataplugin to latest
PUT /api/workspaces/{workspace-id}/dataplugins/{dataplugin-id}/updated
Updates the dataplugin {dataplugin-id} installed in the workspace {workspace-id} to the definition Meltano Cloud supports now. A dataplugin is copied into a workspace when it is installed, and the copy does not follow later changes to the supported definition.
The dataplugin carries the update dataplugin to latest link only while it is behind the supported definition, and only for a user who may apply the update.
Prerequisites
- Workspace
{workspace-id}must exist - Dataplugin
{dataplugin-id}must exist
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins/dbac358e-a84f-404c-ae98-8224bcb5e542/updated' -i -X PUT \
-H 'Content-Type: application/json'
import requests
url = "https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins/dbac358e-a84f-404c-ae98-8224bcb5e542/updated"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Dataplugin with HAL links.
Example response body
Delete a dataplugin
DELETE /api/dataplugins/{dataplugin-id}
Deletes the dataplugin {dataplugin-id}.
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/dataplugins/bbbd5eea-9a8c-4dac-8a17-de5c7d662903' -i -X DELETE
import requests
url = "https://app.meltano.com:443/api/dataplugins/bbbd5eea-9a8c-4dac-8a17-de5c7d662903"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.