All URIs are relative to https://epic.zenotech.com/api/v2
| Method | HTTP request | Description |
|---|---|---|
| job_auth_read | GET /job/{id}/auth/ | |
| job_auth_update | PUT /job/{id}/auth/ | |
| job_cancel | POST /job/{id}/cancel/ | |
| job_create | POST /job/ | |
| job_list | GET /job/ | |
| job_partial_update | PATCH /job/{id}/ | |
| job_quote | POST /job/quote/ | |
| job_read | GET /job/{id}/ | |
| job_residuals_read | GET /job/{id}/residuals/ |
JobAuthStatus job_auth_read(id)
Get the authorisation status for job with ID {id}
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job_auth_status import JobAuthStatus
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
id = 'id_example' # str |
try:
api_response = api_instance.job_auth_read(id)
print("The response of JobApi->job_auth_read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_auth_read: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobAuthStatus job_auth_update(id, data)
Update the authorisation status for job with ID {id}
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job_auth_status import JobAuthStatus
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
id = 'id_example' # str |
data = epiccore.JobAuthStatus() # JobAuthStatus |
try:
api_response = api_instance.job_auth_update(id, data)
print("The response of JobApi->job_auth_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_auth_update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| data | JobAuthStatus |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
job_cancel(id, data)
Cancel a job
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
id = 'id_example' # str |
data = None # object |
try:
api_instance.job_cancel(id, data)
except Exception as e:
print("Exception when calling JobApi->job_cancel: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| data | object |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Cancel request received | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[Job] job_create(data)
Create a new job bssased on the submitted job specification. App and Queue codes can be retreived from the catalog endpoints.
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job import Job
from epiccore.models.job_array_spec import JobArraySpec
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
data = epiccore.JobArraySpec() # JobArraySpec |
try:
api_response = api_instance.job_create(data)
print("The response of JobApi->job_create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_create: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| data | JobArraySpec |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobList200Response job_list(job_array=job_array, limit=limit, offset=offset)
List the jobs instances in EPIC
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job_list200_response import JobList200Response
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
job_array = 'job_array_example' # str | Filter by ID of the parent Job Array (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
try:
api_response = api_instance.job_list(job_array=job_array, limit=limit, offset=offset)
print("The response of JobApi->job_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| job_array | str | Filter by ID of the parent Job Array | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobAppOptions job_partial_update(id, data)
Update the job options for job instance with ID {id}
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job_app_options import JobAppOptions
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
id = 'id_example' # str |
data = epiccore.JobAppOptions() # JobAppOptions |
try:
api_response = api_instance.job_partial_update(id, data)
print("The response of JobApi->job_partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_partial_update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| data | JobAppOptions |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobQuote job_quote(data)
Provides a price quote based upon the given BatchJobLaunchSpec. Quotes will be returned for clusters that the user/team has permission to use and that support the requested application, task distribution and runtime. When submitting multiple steps in a the job specification then the task reference may be used to identify individual steps.
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job_quote import JobQuote
from epiccore.models.job_spec import JobSpec
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
data = epiccore.JobSpec() # JobSpec |
try:
api_response = api_instance.job_quote(data)
print("The response of JobApi->job_quote:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_quote: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| data | JobSpec |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Job job_read(id)
See the details for the job instance with ID {id}
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job import Job
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
id = 'id_example' # str |
try:
api_response = api_instance.job_read(id)
print("The response of JobApi->job_read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_read: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobResidual job_residuals_read(id, variables=variables)
Retreive the residuals for job with ID {id}
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.job_residual import JobResidual
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.JobApi(api_client)
id = 56 # int | A unique integer value identifying this batch job instance.
variables = ['variables_example'] # List[str] | Return data values for these variable names (optional)
try:
api_response = api_instance.job_residuals_read(id, variables=variables)
print("The response of JobApi->job_residuals_read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling JobApi->job_residuals_read: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | A unique integer value identifying this batch job instance. | |
| variables | List[str] | Return data values for these variable names | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]