Coalesce API (1.0.0)
Download OpenAPI specification:Download
REST API for performing operations with the Coalesce backend.
List Environments
Get a collection of environment information.
Authorizations:
query Parameters
| detail | boolean Default: false Include the full detail of the environments. |
Responses
Response samples
- 200
- 400
- 403
- 500
- 502
- 503
- 504
{- "data": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "id": "string",
- "firstName": "string",
- "lastName": "string"
}, - "currentGitBranch": "string",
- "currentGitCommit": "string",
- "currentGitURL": "string",
- "currentMappings": {
- "property1": {
- "database": "string",
- "schema": "string"
}, - "property2": {
- "database": "string",
- "schema": "string"
}
}, - "currentlyRunningJobs": [
- 0
], - "id": "string",
- "deployedCommit": "string",
- "status": "Deleting",
- "connectionAccount": "string",
- "defaultStorageMapping": "string",
- "description": "string",
- "name": "string",
- "oauthEnabled": true,
- "runTimeParameters": { },
- "tagColors": {
- "backgroundColor": "string",
- "textColor": "string"
}, - "project": "string"
}
]
}Get Environment
Get information about an environment.
Authorizations:
path Parameters
| environmentID required | string The environment ID. |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
- 502
- 503
- 504
{- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "id": "string",
- "firstName": "string",
- "lastName": "string"
}, - "currentGitBranch": "string",
- "currentGitCommit": "string",
- "currentGitURL": "string",
- "currentMappings": {
- "property1": {
- "database": "string",
- "schema": "string"
}, - "property2": {
- "database": "string",
- "schema": "string"
}
}, - "currentlyRunningJobs": [
- 0
], - "id": "string",
- "deployedCommit": "string",
- "status": "Deleting",
- "connectionAccount": "string",
- "defaultStorageMapping": "string",
- "description": "string",
- "name": "string",
- "oauthEnabled": true,
- "runTimeParameters": { },
- "tagColors": {
- "backgroundColor": "string",
- "textColor": "string"
}, - "project": "string"
}List Nodes
Get a collection of nodes for an environment
Authorizations:
path Parameters
| environmentID required | string The environment ID. |
query Parameters
| detail | boolean Default: false Include the full detail of the nodes. |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
- 502
- 503
- 504
{- "data": [
- {
- "database": "string",
- "id": "string",
- "locationName": "string",
- "name": "string",
- "nodeType": "Dimension",
- "schema": "string"
}
]
}Get Node
Get information about a node in an environment.
Authorizations:
path Parameters
| environmentID required | string The environment ID. |
| nodeID required | string The node ID. |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
- 502
- 503
- 504
{- "metadata": {
- "columns": [
- {
- "appliedColumnTests": {
- "property1": true,
- "property2": true
}, - "columnID": "string",
- "columnReferences": [
- {
- "columnName": "string",
- "tableName": "string"
}
], - "config": { },
- "dataType": "string",
- "defaultValue": "string",
- "description": "string",
- "hashDetails": {
- "hashAlgorithm": "MD5",
- "hashType": "ChangeHash",
- "hubHashes": [
- {
- "columnID": "string",
- "nodeID": "string"
}
]
}, - "hashedColumns": [
- {
- "columnID": "string",
- "nodeID": "string"
}
], - "isBusinessKey": true,
- "isChangeTracking": true,
- "isSurrogateKey": true,
- "keyColumnType": "None",
- "name": "string",
- "nullable": true,
- "primaryKey": true,
- "sources": [
- {
- "columnReferences": [
- {
- "columnID": "string",
- "nodeID": "string"
}
], - "transform": "string"
}
], - "systemColumnType": "None",
- "transform": "string",
- "uniqueKey": true
}
], - "join": {
- "joinCondition": "string"
}, - "sourceMapping": [
- {
- "aliases": {
- "property1": "string",
- "property2": "string"
}, - "customSQL": {
- "customSQL": "string"
}, - "dependencies": [
- {
- "locationName": "string",
- "nodeName": "string"
}
], - "join": {
- "joinCondition": "string"
}, - "name": "string",
- "noLinkRefs": [
- {
- "locationName": "string",
- "nodeName": "string"
}
]
}
]
}, - "table": "string",
- "database": "string",
- "description": "string",
- "id": "string",
- "locationName": "string",
- "name": "string",
- "nodeType": "Dimension",
- "schema": "string"
}List Runs
Get a collection of information about runs.
Authorizations:
query Parameters
| limit | integer [ 0 .. 1000 ] Default: 25 The maximum number of runs to return. |
integer or string The starting run ID, runStartTime, or runEndTime (exclusive) for paging the query results. | |
| orderBy | string (RunsOrderBy) Default: "id" Enum: "id" "runStartTime" "runEndTime" The field used to order results. |
| orderByDirection | string Default: "desc" Enum: "asc" "desc" The sort order for query results. |
| runType | string (RunType) Enum: "deploy" "refresh" A run type to filter the query results. |
| runStatus | string (RunStatus) Enum: "canceled" "completed" "failed" "running" "waitingToRun" A status value to filter the query results. |
| environmentID | string An environment ID to filter the query results. |
| detail | boolean Default: false Include the full detail of the run. |
Responses
Response samples
- 200
- 400
- 403
- 500
- 502
- 503
- 504
{- "limit": 0,
- "orderByDirection": "asc",
- "orderBy": "id",
- "data": [
- {
- "id": 0,
- "reRunID": "string",
- "runStartTime": "2019-08-24T14:15:22Z",
- "runEndTime": "2019-08-24T14:15:22Z",
- "runType": "deploy",
- "runStatus": "canceled",
- "environmentID": "string",
- "runFailureReason": "string"
}
]
}Get Run
Gets a single run.
Authorizations:
path Parameters
| runID required | integer The run ID. |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
- 502
- 503
- 504
{- "id": 0,
- "reRunID": "string",
- "runDetails": {
- "canceled": true,
- "deployCommit": "string",
- "deployCommitMessage": "string",
- "environmentID": "string",
- "parallelism": 0,
- "nodesInRun": 0
}, - "runEndTime": "2019-08-24T14:15:22Z",
- "runHistory": [
- 0
], - "runStartTime": "2019-08-24T14:15:22Z",
- "runStatus": "canceled",
- "runTimeParameters": { },
- "runType": "deploy",
- "userCredentials": {
- "snowflakeAccount": "string",
- "snowflakeAuthType": "Basic",
- "snowflakeRole": "string",
- "snowflakeUsername": "string",
- "snowflakeWarehouse": "string"
}, - "userID": "string",
- "version": 0
}List Run Results
Get a collection of the results of a deploy or refresh run
Authorizations:
path Parameters
| runID required | integer The run ID. |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
- 502
- 503
- 504
{- "data": [
- {
- "isRunning": true,
- "name": "string",
- "nodeID": "string",
- "queryResults": [
- {
- "endTime": "2019-08-24T14:15:22Z",
- "error": {
- "errorString": "string",
- "errorDetail": "string"
}, - "isRunning": true,
- "name": "string",
- "queryID": "string",
- "rowsDeleted": 0,
- "rowsInserted": 0,
- "rowsUpdated": 0,
- "sql": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "status": "string",
- "success": true,
- "warehouse": "string"
}
], - "renderQueryResult": {
- "endTime": "2019-08-24T14:15:22Z",
- "error": {
- "errorString": "string",
- "errorDetail": "string"
}, - "isRunning": true,
- "name": "string",
- "queryID": "string",
- "rowsDeleted": 0,
- "rowsInserted": 0,
- "rowsUpdated": 0,
- "sql": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "status": "string",
- "success": true,
- "warehouse": "string"
}
}
]
}Get database connectivity information.
Gets the information required to connect to the Coalesce database.
Responses
Response samples
- 200
{- "apiKey": "string",
- "authDomain": "string",
- "projectId": "string",
- "storageBucket": "string",
- "messagingSenderId": "string",
- "appId": "string",
- "measurementId": "string"
}