The JARVICE API allows full control on running jobs as well as managing applications via PushToCompute™.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0
- Package version: 1.0.14
- Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen
Python 3.7+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/nimbix/python-jarviceapi.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/nimbix/python-jarviceapi.git
)
Then import the package:
import jarviceapi_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import jarviceapi_client
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import time
import jarviceapi_client
from jarviceapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = jarviceapi_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with jarviceapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = jarviceapi_client.JobControlApi(api_client)
apikey = 'apikey_example' # str | API key for user to authenticate
username = 'username_example' # str | Name of user to authenticate
action = 'action_example' # str | The name of the action to run (must be a valid action from /jarvice/info)
name = 'name_example' # str | Job name (name key returned from /jarvice/submit *Must be specifed or number is specified (optional)
number = 56 # int | Job number (number key returned from /jarvice/submit) *Must be specifed or name is specified (optional)
try:
# Perform a configured action on your job
api_response = api_instance.action_get(apikey, username, action, name=name, number=number)
print("The response of JobControlApi->action_get:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling JobControlApi->action_get: %s\n" % e)
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
JobControlApi | action_get | GET /jarvice/action | Perform a configured action on your job |
JobControlApi | batch_post | POST /jarvice/batch | Submits a job for processing. |
JobControlApi | shutdown_get | GET /jarvice/shutdown | Requests a graceful termination of a job, executing the operating system poweroff mechanism if applicable. |
JobControlApi | signal_get | GET /jarvice/signal | Send a signal to a running job (e.g. SIGTSTP/20). |
JobControlApi | submit_post | POST /jarvice/submit | Submits a job for processing. |
JobControlApi | terminate_get | GET /jarvice/terminate | Immediately terminates a running job. NB: This will terminate the job regardless of current status. |
PushToComputeApi | build_get | GET /jarvice/build | Builds a JARVICE application image for a Docker repository. The JARVICE application ID must already exist. |
PushToComputeApi | history_get | GET /jarvice/history | Retrieve build/pull history for a JARVICE application image. |
PushToComputeApi | pull_get | GET /jarvice/pull | Pulls a Docker repository into a JARVICE application image. The JARVICE application image must already exist. |
PushToComputeApi | validate_post | POST /jarvice/validate | Validates an AppDef (application definition). |
StatusAndInformationApi | appdef_get | GET /jarvice/appdef | Returns the Application Definition (AppDef) for a given application. |
StatusAndInformationApi | apps_get | GET /jarvice/apps | Returns the Application Definition (AppDef) for a given application. |
StatusAndInformationApi | billing_get | GET /jarvice/billing | (JXE/System Admins only) Returns billing report for JARVICE users |
StatusAndInformationApi | connect_get | GET /jarvice/connect | Requests the network address and user nimbix password (if set), for an interactive job. |
StatusAndInformationApi | events_get | GET /jarvice/events | (JXE/System Admins only) Retrieves event logs for a running job that are related to the cluster infrastructure |
StatusAndInformationApi | info_get | GET /jarvice/info | Get info from job |
StatusAndInformationApi | jobs_get | GET /jarvice/jobs | Returns job information and status for all queued and running jobs. |
StatusAndInformationApi | license_get | GET /jarvice/license | (JXE/System Admins only) Retrieves Jarvice license |
StatusAndInformationApi | live_get | GET /jarvice/live | Get info is API is alive |
StatusAndInformationApi | machines_get | GET /jarvice/machines | Returns information about available machine type(s). |
StatusAndInformationApi | metrics_get | GET /jarvice/metrics | Returns the last known CPU and memory utilization metrics for a given job. |
StatusAndInformationApi | output_get | GET /jarvice/output | Returns a tail (or optionally all) of the output of a completed job. |
StatusAndInformationApi | projects_get | GET /jarvice/projects | (JXE/System Admins only) Returns all JARVICE projects and members |
StatusAndInformationApi | queues_get | GET /jarvice/queues | (JXE only) Returns information about available queue(s). |
StatusAndInformationApi | ready_get | GET /jarvice/ready | Get info if DAL is ready |
StatusAndInformationApi | screenshot_get | GET /jarvice/screenshot | Returns a screenshot for a running job (if it is graphical). |
StatusAndInformationApi | status_get | GET /jarvice/status | Queries status for a previously submitted job. |
StatusAndInformationApi | tail_get | GET /jarvice/tail | Returns a tail (or optionally all) of the output of a completed job. |
StatusAndInformationApi | teamjobs_get | GET /jarvice/teamjobs | Returns job information and status for all queued and running jobs for an entire team. |
StatusAndInformationApi | teamusers_get | GET /jarvice/teamusers | (Team Admins only) Returns a list of JARVICE users who are members of the callers team |
StatusAndInformationApi | vault_get | GET /jarvice/vault | List files in a vault. |
- App
- AppDef
- AppDefCmd
- AppDefIdent
- AppDefImage
- Application
- Container
- HpcReq
- JobEntry
- JobStats
- Machine
- MachineDef
- ParDef
- Queue
- RTMetricsItemized
- RTMetricsSummary
- RuntimeConnect
- RuntimeInfo
- RuntimeMetrics
- SchedJobStatusEntry
- Submission
- SubmitUser
- TeamUser
- Variable
- Vault
Endpoints do not require authorization.