workers_pipelines_other
[DEPRECATED] Create Pipeline
POST /accounts/{account_id}/pipelines
[DEPRECATED] Create a new pipeline. Use the new /pipelines/v1/pipelines endpoint instead.
Responses
200 [DEPRECATED] Indicates a successfully created pipeline. Use /pipelines/v1/pipelines instead.
Data is at
body["result"]
{
"destination": {
"batch": {
"max_bytes": "*integer*",
"max_duration_s": "*number*",
"max_rows": "*integer*"
},
"compression": {
"type": "*string*"
},
"format": "*string*",
"path": {
"bucket": "*string*",
"filename": "*string*",
"filepath": "*string*",
"prefix": "*string*"
},
"type": "*string*"
},
"endpoint": "*string*",
"id": "*string*",
"name": "*string*",
"source": [
null
],
"version": "*number*"
}4XX Indicates an error in creating a pipeline.
{
"errors": [
{
"code": "*number*",
"message": "*string*"
}
],
"results": {},
"success": "*boolean*"
}[DEPRECATED] List Pipelines
GET /accounts/{account_id}/pipelines
[DEPRECATED] List, filter, and paginate pipelines in an account. Use the new /pipelines/v1/pipelines endpoint instead.
Responses
200 [DEPRECATED] Lists the pipelines. Use /pipelines/v1/pipelines instead.
Data is at
body["result"]
{
"result_info": {
"count": "*number*",
"page": "*number*",
"per_page": "*number*",
"total_count": "*number*"
},
"results": [
{
"destination": {
"batch": {
"max_bytes": null,
"max_duration_s": null,
"max_rows": null
},
"compression": {
"type": null
},
"format": "*string*",
"path": {
"bucket": null,
"filename": null,
"filepath": null,
"prefix": null
},
"type": "*string*"
},
"endpoint": "*string*",
"id": "*string*",
"name": "*string*",
"source": [
null
],
"version": "*number*"
}
],
"success": "*boolean*"
}4XX Indicates the error trying to list pipelines.
{
"errors": [
{
"code": "*number*",
"message": "*string*"
}
],
"results": {},
"success": "*boolean*"
}Create Pipeline
POST /accounts/{account_id}/pipelines/v1/pipelines
Create a new Pipeline.
Responses
200 Indicates a successfully created Pipeline.
Data is at
body["result"]
{
"created_at": "*string*",
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"sql": "*string*",
"status": "*string*"
}4XX Indicates an error in creating a Pipeline.
List Pipelines
GET /accounts/{account_id}/pipelines/v1/pipelines
List/Filter Pipelines in Account.
Responses
200 Indicates a successfully listed Pipelines.
Data is at
body["result"]
[
{
"created_at": "*string*",
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"sql": "*string*",
"status": "*string*"
}
]4XX Indicates an error in listing Pipelines.
Get Pipeline Details
GET /accounts/{account_id}/pipelines/v1/pipelines/{pipeline_id}
Get Pipelines Details.
Responses
200 Indicates a successfully retrieved Pipeline.
Data is at
body["result"]
{
"created_at": "*string*",
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"sql": "*string*",
"status": "*string*",
"tables": [
{
"id": "*string*",
"latest": "*integer*",
"name": "*string*",
"type": "*string*",
"version": "*integer*"
}
]
}4XX Indicates an error in retrieving Pipelines.
Delete Pipelines
DELETE /accounts/{account_id}/pipelines/v1/pipelines/{pipeline_id}
Delete Pipeline in Account.
Responses
200 Indicates a successfully deleted Pipeline.
Data is at
body["result"]
4XX Indicates an error in listing Pipelines.
Create Sink
POST /accounts/{account_id}/pipelines/v1/sinks
Create a new Sink.
Responses
200 Indicates a successfully created Sink.
Data is at
body["result"]
{
"config": null,
"created_at": "*string*",
"format": null,
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"schema": {
"fields": [
null
],
"format": null,
"inferred": "*boolean*"
},
"type": "*string*"
}4XX Indicates an error in creating a Sink.
List Sinks
GET /accounts/{account_id}/pipelines/v1/sinks
List/Filter Sinks in Account.
Responses
200 Indicates successfully listed Sinks.
Data is at
body["result"]
[
{
"config": null,
"created_at": "*string*",
"format": null,
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"schema": {
"fields": [
null
],
"format": null,
"inferred": "*boolean*"
},
"type": "*string*"
}
]4XX Indicates an error in listing Sinks.
Get Sink Details
GET /accounts/{account_id}/pipelines/v1/sinks/{sink_id}
Get Sink Details.
Responses
200 Indicates that Sink was retrieved.
Data is at
body["result"]
{
"config": null,
"created_at": "*string*",
"format": null,
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"schema": {
"fields": [
null
],
"format": null,
"inferred": "*boolean*"
},
"type": "*string*"
}4XX Indicates an error in listing Sinks.
Delete Sink
DELETE /accounts/{account_id}/pipelines/v1/sinks/{sink_id}
Delete Pipeline in Account.
Responses
200 Indicates a successfully deleted Sink.
Data is at
body["result"]
4XX Indicates an error in listing Sinks.
Create Stream
POST /accounts/{account_id}/pipelines/v1/streams
Create a new Stream.
Responses
200 Indicates a successfully created Stream.
Data is at
body["result"]
{
"created_at": "*string*",
"endpoint": "*string*",
"format": null,
"http": {
"authentication": "*boolean*",
"cors": {
"origins": [
"*string*"
]
},
"enabled": "*boolean*"
},
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"schema": {
"fields": [
null
],
"format": null,
"inferred": "*boolean*"
},
"version": "*integer*",
"worker_binding": {
"enabled": "*boolean*"
}
}4XX Indicates an error in creating a Stream.
List Streams
GET /accounts/{account_id}/pipelines/v1/streams
List/Filter Streams in Account.
Responses
200 Indicates a successfully created Stream.
Data is at
body["result"]
[
{
"created_at": "*string*",
"endpoint": "*string*",
"format": null,
"http": {
"authentication": "*boolean*",
"cors": {
"origins": [
"*string*"
]
},
"enabled": "*boolean*"
},
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"schema": {
"fields": [
null
],
"format": null,
"inferred": "*boolean*"
},
"version": "*integer*",
"worker_binding": {
"enabled": "*boolean*"
}
}
]4XX Indicates an error in listing Streams.
Update Stream
PATCH /accounts/{account_id}/pipelines/v1/streams/{stream_id}
Update a Stream.
Responses
200 Indicates a successfully updated Stream.
Data is at
body["result"]
{
"created_at": "*string*",
"endpoint": "*string*",
"format": null,
"http": {
"authentication": "*boolean*",
"cors": {
"origins": [
"*string*"
]
},
"enabled": "*boolean*"
},
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"version": "*integer*",
"worker_binding": {
"enabled": "*boolean*"
}
}4XX Indicates an error in creating a Stream.
Get Stream Details
GET /accounts/{account_id}/pipelines/v1/streams/{stream_id}
Get Stream Details.
Responses
200 Indicates a successfully retrieved Stream.
Data is at
body["result"]
{
"created_at": "*string*",
"endpoint": "*string*",
"format": null,
"http": {
"authentication": "*boolean*",
"cors": {
"origins": [
"*string*"
]
},
"enabled": "*boolean*"
},
"id": "*string*",
"modified_at": "*string*",
"name": "*string*",
"schema": {
"fields": [
null
],
"format": null,
"inferred": "*boolean*"
},
"version": "*integer*",
"worker_binding": {
"enabled": "*boolean*"
}
}4XX Indicates an error in retrieving Stream.
Delete Stream
DELETE /accounts/{account_id}/pipelines/v1/streams/{stream_id}
Delete Stream in Account.
Responses
200 Indicates a successfully deleted Stream.
Data is at
body["result"]
4XX Indicates an error in listing Streams.
Validate SQL
POST /accounts/{account_id}/pipelines/v1/validate_sql
Validate Arroyo SQL.
Responses
200 Indicates SQL validation success.
Data is at
body["result"]
{
"graph": {
"edges": [
{
"dest_id": null,
"edge_type": null,
"key_type": null,
"src_id": null,
"value_type": null
}
],
"nodes": [
{
"description": null,
"node_id": null,
"operator": null,
"parallelism": null
}
]
},
"tables": {}
}4XX Indicates SQL validation failed.
[DEPRECATED] Update Pipeline
PUT /accounts/{account_id}/pipelines/{pipeline_name}
[DEPRECATED] Update an existing pipeline. Use the new /pipelines/v1/pipelines endpoint instead.
Responses
200 [DEPRECATED] Indicates a successfully updated pipeline.
Data is at
body["result"]
{
"destination": {
"batch": {
"max_bytes": "*integer*",
"max_duration_s": "*number*",
"max_rows": "*integer*"
},
"compression": {
"type": "*string*"
},
"format": "*string*",
"path": {
"bucket": "*string*",
"filename": "*string*",
"filepath": "*string*",
"prefix": "*string*"
},
"type": "*string*"
},
"endpoint": "*string*",
"id": "*string*",
"name": "*string*",
"source": [
null
],
"version": "*number*"
}4XX Indicates an error updating pipeline.
{
"errors": [
{
"code": "*number*",
"message": "*string*"
}
],
"results": {},
"success": "*boolean*"
}[DEPRECATED] Get Pipeline
GET /accounts/{account_id}/pipelines/{pipeline_name}
[DEPRECATED] Get configuration of a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.
Responses
200 [DEPRECATED] Describes the configuration of a pipeline.
Data is at
body["result"]
{
"destination": {
"batch": {
"max_bytes": "*integer*",
"max_duration_s": "*number*",
"max_rows": "*integer*"
},
"compression": {
"type": "*string*"
},
"format": "*string*",
"path": {
"bucket": "*string*",
"filename": "*string*",
"filepath": "*string*",
"prefix": "*string*"
},
"type": "*string*"
},
"endpoint": "*string*",
"id": "*string*",
"name": "*string*",
"source": [
null
],
"version": "*number*"
}404 Indicates that the pipeline was not found.
{
"errors": [
{
"code": "*number*",
"message": "*string*"
}
],
"results": {},
"success": "*boolean*"
}[DEPRECATED] Delete Pipeline
DELETE /accounts/{account_id}/pipelines/{pipeline_name}
[DEPRECATED] Delete a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.
Responses
200 [DEPRECATED] Indicates a successfully deleted pipeline.
Data is at
body["result"]
4XX Indicates an error in deleting a pipeline.
Summary
Functions
@spec client(Restlax.Resource.action_options()) :: module()
@spec create( body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: {:ok, map()} | {:error, term()}
@spec create!( body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: map() | no_return()
@spec delete(id :: term(), opts :: Restlax.Resource.action_options()) :: {:ok, map()} | {:error, term()}
@spec delete!(id :: term(), opts :: Restlax.Resource.action_options()) :: map() | no_return()
@spec index(opts :: Restlax.Resource.action_options()) :: {:ok, map()} | {:error, term()}
@spec index!(opts :: Restlax.Resource.action_options()) :: map() | no_return()
@spec show(id :: term(), opts :: Restlax.Resource.action_options()) :: {:ok, map()} | {:error, term()}
@spec show!(id :: term(), opts :: Restlax.Resource.action_options()) :: map() | no_return()