All URIs are relative to http://localhost:5000/api/v1
Method | HTTP request | Description |
---|---|---|
jobs_runs_id_abort_put | PUT /jobs/runs/{id}/abort | Abort a job run |
jobs_runs_id_complete_put | PUT /jobs/runs/{id}/complete | Complete a job run |
jobs_runs_id_fail_put | PUT /jobs/runs/{id}/fail | Fail a job run |
jobs_runs_id_get | GET /jobs/runs/{id} | Retrieve a job run |
jobs_runs_id_outputs_get | GET /jobs/runs/{id}/outputs | List all job run outputs |
jobs_runs_id_outputs_put | PUT /jobs/runs/{id}/outputs | Create multiple output datasets |
jobs_runs_id_run_put | PUT /jobs/runs/{id}/run | Start a job run |
namespaces_namespace_jobs_get | GET /namespaces/{namespace}/jobs | List all jobs |
namespaces_namespace_jobs_job_get | GET /namespaces/{namespace}/jobs/{job} | Retrieve a job |
namespaces_namespace_jobs_job_put | PUT /namespaces/{namespace}/jobs/{job} | Create a job |
namespaces_namespace_jobs_job_runs_get | GET /namespaces/{namespace}/jobs/{job}/runs | List all job runs |
namespaces_namespace_jobs_job_runs_post | POST /namespaces/{namespace}/jobs/{job}/runs | Create a job run |
namespaces_namespace_jobs_job_versions_get | GET /namespaces/{namespace}/jobs/{job}/versions | List all job versions |
jobs_runs_id_abort_put(id)
Abort a job run
Marks the job run as aborted.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
id = 'id_example' # str | The unique ID of the job run.
try:
# Abort a job run
api_instance.jobs_runs_id_abort_put(id)
except ApiException as e:
print("Exception when calling JobsApi->jobs_runs_id_abort_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The unique ID of the job run. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
jobs_runs_id_complete_put(id)
Complete a job run
Marks the job run as completed.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
id = 'id_example' # str | The unique ID of the job run.
try:
# Complete a job run
api_instance.jobs_runs_id_complete_put(id)
except ApiException as e:
print("Exception when calling JobsApi->jobs_runs_id_complete_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The unique ID of the job run. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
jobs_runs_id_fail_put(id)
Fail a job run
Marks the job run as failed.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
id = 'id_example' # str | The unique ID of the job run.
try:
# Fail a job run
api_instance.jobs_runs_id_fail_put(id)
except ApiException as e:
print("Exception when calling JobsApi->jobs_runs_id_fail_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The unique ID of the job run. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobRun jobs_runs_id_get(id)
Retrieve a job run
Retrieve a job run.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
id = 'id_example' # str | The unique ID of the job run.
try:
# Retrieve a job run
api_response = api_instance.jobs_runs_id_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->jobs_runs_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The unique ID of the job run. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Datasets jobs_runs_id_outputs_get(id)
List all job run outputs
Returns a list job run outputs.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
id = 'id_example' # str | The unique ID of the job run.
try:
# List all job run outputs
api_response = api_instance.jobs_runs_id_outputs_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->jobs_runs_id_outputs_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The unique ID of the job run. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Datasets jobs_runs_id_outputs_put(id, job_run_outputs=job_run_outputs)
Create multiple output datasets
Creates a multiple output dataset objects.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
id = 'id_example' # str | The unique ID of the job run.
job_run_outputs = marquez_codegen_client.JobRunOutputs() # JobRunOutputs | (optional)
try:
# Create multiple output datasets
api_response = api_instance.jobs_runs_id_outputs_put(id, job_run_outputs=job_run_outputs)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->jobs_runs_id_outputs_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The unique ID of the job run. | |
job_run_outputs | JobRunOutputs | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
jobs_runs_id_run_put(id)
Start a job run
Marks the job run as running.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
id = 'id_example' # str | The unique ID of the job run.
try:
# Start a job run
api_instance.jobs_runs_id_run_put(id)
except ApiException as e:
print("Exception when calling JobsApi->jobs_runs_id_run_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The unique ID of the job run. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Jobs namespaces_namespace_jobs_get(namespace)
List all jobs
Returns a list of jobs.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
namespace = wework # str | The name of the namespace. (default to 'wework')
try:
# List all jobs
api_response = api_instance.namespaces_namespace_jobs_get(namespace)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->namespaces_namespace_jobs_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | The name of the namespace. | [default to 'wework'] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Job namespaces_namespace_jobs_job_get(namespace, job)
Retrieve a job
Retrieve a job.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
namespace = wework # str | The name of the namespace. (default to 'wework')
job = room_bookings_7_days # str | The name of the job. (default to 'room_bookings_7_days')
try:
# Retrieve a job
api_response = api_instance.namespaces_namespace_jobs_job_get(namespace, job)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->namespaces_namespace_jobs_job_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | The name of the namespace. | [default to 'wework'] |
job | str | The name of the job. | [default to 'room_bookings_7_days'] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Job namespaces_namespace_jobs_job_put(namespace, job, create_job=create_job)
Create a job
Creates a new job object. All job objects are immutable and are uniquely identified by a generated ID. Marquez will create a version of a job each time the contents of the object is modified. For example, the location
of a job may change over time resulting in new versions. The accumulated versions can be listed, used to rerun a specific job version or possibly help debug a failed job run.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
namespace = wework # str | The name of the namespace. (default to 'wework')
job = room_bookings_7_days # str | The name of the job. (default to 'room_bookings_7_days')
create_job = marquez_codegen_client.CreateJob() # CreateJob | (optional)
try:
# Create a job
api_response = api_instance.namespaces_namespace_jobs_job_put(namespace, job, create_job=create_job)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->namespaces_namespace_jobs_job_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | The name of the namespace. | [default to 'wework'] |
job | str | The name of the job. | [default to 'room_bookings_7_days'] |
create_job | CreateJob | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobRuns namespaces_namespace_jobs_job_runs_get(namespace, job)
List all job runs
Returns a list of job runs.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
namespace = wework # str | The name of the namespace. (default to 'wework')
job = room_bookings_7_days # str | The name of the job. (default to 'room_bookings_7_days')
try:
# List all job runs
api_response = api_instance.namespaces_namespace_jobs_job_runs_get(namespace, job)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->namespaces_namespace_jobs_job_runs_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | The name of the namespace. | [default to 'wework'] |
job | str | The name of the job. | [default to 'room_bookings_7_days'] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobRunId namespaces_namespace_jobs_job_runs_post(namespace, job, create_job_run=create_job_run)
Create a job run
Creates a new job run object.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
namespace = wework # str | The name of the namespace. (default to 'wework')
job = room_bookings_7_days # str | The name of the job. (default to 'room_bookings_7_days')
create_job_run = marquez_codegen_client.CreateJobRun() # CreateJobRun | (optional)
try:
# Create a job run
api_response = api_instance.namespaces_namespace_jobs_job_runs_post(namespace, job, create_job_run=create_job_run)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->namespaces_namespace_jobs_job_runs_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | The name of the namespace. | [default to 'wework'] |
job | str | The name of the job. | [default to 'room_bookings_7_days'] |
create_job_run | CreateJobRun | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobVersions namespaces_namespace_jobs_job_versions_get(namespace, job)
List all job versions
Returns a list of job versions.
from __future__ import print_function
import time
import marquez_codegen_client
from marquez_codegen_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = marquez_codegen_client.JobsApi()
namespace = wework # str | The name of the namespace. (default to 'wework')
job = room_bookings_7_days # str | The name of the job. (default to 'room_bookings_7_days')
try:
# List all job versions
api_response = api_instance.namespaces_namespace_jobs_job_versions_get(namespace, job)
pprint(api_response)
except ApiException as e:
print("Exception when calling JobsApi->namespaces_namespace_jobs_job_versions_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | The name of the namespace. | [default to 'wework'] |
job | str | The name of the job. | [default to 'room_bookings_7_days'] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]