Skip to main content

HPC Web API

Project description

HPC Pack ACM API for Python

Requirements.

Python 2.7, 3.5 or 3.6.

Installation & Usage

python -m pip install --user hpc-acm

Then import the package:

import hpc_acm

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import hpc_acm
from hpc_acm.rest import ApiException
from pprint import pprint

# Set your API Base Point
hpc_acm.configuration.host = 'https://YOUR_SERVER_NAME/YOUR_PATH'
# Configure HTTP basic authorization: basic_auth
hpc_acm.configuration.username = 'YOUR_USERNAME'
hpc_acm.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = hpc_acm.DefaultApi()

try:
    # Get a list of nodes
    nodes = api_instance.get_nodes()
except ApiException as e:
    print(e)
else:
    for node in nodes:
        print(node)

Documentation for API Endpoints

All URIs are relative to API Base Point, which is be set by host in configuration as shown above.

Class Method HTTP request Description
DefaultApi cancel_clusrun_job PATCH /clusrun/{id} Cancel a clusrun
DefaultApi cancel_diagnostic_job PATCH /diagnostics/{id} Cancel a diagnostic test run
DefaultApi create_clusrun_job POST /clusrun Create a clusrun
DefaultApi create_diagnostic_job POST /diagnostics Create a diagnostic test run
DefaultApi get_clus_run_job_summary GET /dashboard/clusrun Get summary of ClusRun jobs
DefaultApi get_clusrun_job GET /clusrun/{id} Get a clusrun
DefaultApi get_clusrun_job_aggregation_result GET /clusrun/{id}/aggregationResult Get aggregation result of a clusrun job
DefaultApi get_clusrun_jobs GET /clusrun Get a list of clusruns
DefaultApi get_clusrun_output GET /output/clusrun/{key}/raw Get the whole output of a task
DefaultApi get_clusrun_output_in_page GET /output/clusrun/{key}/page Get partial output of a task
DefaultApi get_clusrun_task GET /clusrun/{id}/tasks/{taskId} Get a task of a clusrun
DefaultApi get_clusrun_task_result GET /clusrun/{id}/tasks/{taskId}/result Get a task result of a clusrun
DefaultApi get_clusrun_tasks GET /clusrun/{id}/tasks Get tasks of a clusrun
DefaultApi get_diagnostic_job GET /diagnostics/{id} Get a diagnostic test run
DefaultApi get_diagnostic_job_aggregation_result GET /diagnostics/{id}/aggregationResult Get aggregation result of a diagnostic job
DefaultApi get_diagnostic_job_summary GET /dashboard/diagnostics Get summary of diagnostic jobs
DefaultApi get_diagnostic_jobs GET /diagnostics Get a list of diagnostic test runs
DefaultApi get_diagnostic_task GET /diagnostics/{id}/tasks/{taskId} Get a task of a diagnostic test run
DefaultApi get_diagnostic_task_result GET /diagnostics/{id}/tasks/{taskId}/result Get a task result of a diagnostic test run
DefaultApi get_diagnostic_tasks GET /diagnostics/{id}/tasks Get tasks of a diagnostic test run
DefaultApi get_diagnostic_tests GET /diagnostics/tests Get available diagnostic tests
DefaultApi get_metric_categories GET /metrics/categories Get node metric categories
DefaultApi get_metrics_of_category GET /metrics/{category} Get node merics in a category
DefaultApi get_node GET /nodes/{id} Get a node
DefaultApi get_node_events GET /nodes/{id}/events Get events of a node
DefaultApi get_node_jobs GET /nodes/{id}/jobs Get jobs of a node
DefaultApi get_node_metadata GET /nodes/{id}/metadata get metadata of a node
DefaultApi get_node_metric_history GET /nodes/{id}/metricHistory Get metric history of a node
DefaultApi get_node_scheduled_events GET /nodes/{id}/scheduledEvents get scheduled events of a node
DefaultApi get_node_summary GET /dashboard/nodes Get summary of nodes
DefaultApi get_nodes GET /nodes Get a list of nodes
DefaultApi sync_scripts POST /sync Sync diagnostic and metric scripts from GitHub
DefaultApi validate_user GET /validation Validate user confidential for HTTP Basic Auth

Documentation For Models

Documentation For Authorization

basic_auth

  • Type: HTTP basic authentication

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpc-acm-1.1.0.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

hpc_acm-1.1.0-py3-none-any.whl (91.8 kB view details)

Uploaded Python 3

File details

Details for the file hpc-acm-1.1.0.tar.gz.

File metadata

  • Download URL: hpc-acm-1.1.0.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12

File hashes

Hashes for hpc-acm-1.1.0.tar.gz
Algorithm Hash digest
SHA256 999c95f0fdc29670e21913381386f03c57699025a2a4dc753bd2d51a0dc5b4ac
MD5 3c2b5cc5c058a4728b7b62319532d3d7
BLAKE2b-256 e0edbf6d61f2b9f2c604d2eba905ac54fcb308be0e1e480ce0db3277cbcd784d

See more details on using hashes here.

File details

Details for the file hpc_acm-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hpc_acm-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 91.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12

File hashes

Hashes for hpc_acm-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d061638be6e00edb9cfaa984eeaf8e7edafac47dfecda64dfc564d8163f9df22
MD5 db66633a248899b90b7c8775dd9ffbec
BLAKE2b-256 66123a0bc438721b1b65885b315562605e6b2b8e03ce5363a639ef25eab76762

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page