Skip to main content

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​

PathJSON TypeFormatDescription
idstringVersion 4 UUIDThe dataplugin ID
namestringThe dataplugin name
descriptionstringA description of the dataplugin
repositoryUrlstringURLThe dataplugin repository URL
settingsobject[]Array of SettingsThe dataplugin settings
Example response body

Setting​

PathJSON TypeFormatDescription
namestringThe setting name
valuestringThe setting default value
labelstringThe setting label
protectedboolThe setting protection status
kindstringSetting KindThe setting kind
descriptionstringA description of the setting
placeholderstringThe setting placeholder text
envAliasesstring[]Environment variable aliases for the setting
documentationstringURLThe setting documentation URL
oauthOAuthThe setting OAuth configuration
envstring

OAuth​

PathJSON TypeFormatDescription
providerstringThe OAuth provider

Formats​

Setting Kind​

string

ValueDescription
STRINGString setting
INTEGERInteger setting
PASSWORDPassword setting
HIDDENHidden setting
BOOLEANBoolean setting
DATE_ISO8601ISO 8601 date setting
EMAILEmail setting
OAUTHOAuth setting
FILEFile setting
ARRAYArray setting

Requests​

View all supported dataplugins​

GET /api/dataplugins

Returns all dataplugins supported by Meltano Cloud.

Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/dataplugins' -i -X GET

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 -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/5038bb45-ec00-4fb8-ad8f-c16359cf53df/dataplugins' -i -X GET

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 -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/dataplugins/06d3f7d2-dc2b-41d8-bda1-20a300df6610' -i -X GET

Response​

200 OK

Dataplugin with HAL links.

Example response body

Initialise a new dataplugin​

POST /api/dataplugins

Initialises a new dataplugin.

Examples
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'

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 -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
} ]
}'

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
} ]
}
PathJSON TypeFormatDescriptionConstraints
descriptionstringA description of the dataplugin
repositoryUrlstringA URL to the dataplugin repository
settingsobject[]Array of SettingsThe dataplugin settings
Examples
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
} ]
}'

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 -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'

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 -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/dataplugins/bbbd5eea-9a8c-4dac-8a17-de5c7d662903' -i -X DELETE

Response​

204 No Content

No response body provided.