Http api
Functions:
Method | Path | Params | Description |
GET | /v2/api/functions | None | List of all functions |
GET | /v2/api/functions/{id} | None | Get function by id |
DELETE | /v2/api/functions/{id} | None | Delete function by id |
POST | /v2/api/functions |
Post body - json: function configuration:
|
Create function |
POST | /v2/api/functions/{id}/jobs |
Post body: function (MistFn) arguments Query params:
|
Start job on function |
GET | /v2/api/functions/{id}/jobs | Query params:
|
List of jobs that was ran with given function |
Jobs:
Method | Path | Params | Description |
GET | /v2/api/jobs | Query params:
|
List of all jobs that was ran on all functions |
GET | /v2/api/jobs/{id} | None | Get info about particular job |
GET | /v2/api/jobs/{id}/logs | None | Logs from job |
DELETE | /v2/api/jobs/{id} | None | Try cancel job execution |
Workers:
Method | Path | Params | Description |
GET | /v2/api/workers | None | List of all active workers |
DELETE | /v2/api/workers/{id} | None | Stop worker |
GET | /v2/api/workers/{id} | None | Get detailed worker info(context config, jobs, etc..) |
GET | /v2/api/workers/{id}/jobs | Query params:
|
List of all jobs that was ran on worker |
Contexts:
Method | Path | Params | Description |
GET | /v2/api/contexts | None | List of all contexts |
GET | /v2/api/contexts/{id} | None | Get context by id |
DELETE | /v2/api/contexts/{id} | None | Delete context by id |
POST | /v2/api/contexts | Json body:
|
Get context by id |
Status
Method | Path | Params | Description |
GET | /v2/api/status | None | Mist status info (version, start time, spark version) |
Artifacts
Method | Path | Params | Description |
GET | /v2/api/artifacts | None | list of all artifacts |
GET | /v2/api/artifacts/{id} | None | artifact info |
DELETE | /v2/api/artifacts/{id} | None | Delete artifact |
POST | /v2/api/artifacts | file: Multipart form data | upload new artifact |
Note: Mist always has default context settings, you can obtain it by “default” id.