HPC Pack ACM API Client for Python
Перейти к файлу
microsoft-github-policy-service[bot] 89615dc33f
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-05-31 18:48:10 +00:00
.swagger-codegen API changes: 1) new "eof" field of task output 2) renaming an operationId. 2018-07-30 11:07:38 +08:00
docs 1) Remove "events" from Job and add two new API to retrieve it: 2019-01-29 14:49:58 +08:00
hpc_acm Add 3rd party licenses. 2019-04-16 13:16:06 +08:00
test API changes: 1) new "eof" field of task output 2) renaming an operationId. 2018-07-30 11:07:38 +08:00
.gitignore Init commit. 2018-07-06 15:11:19 +08:00
.swagger-codegen-ignore Init commit. 2018-07-06 15:11:19 +08:00
.travis.yml Travis CI: “async” is a reserved word in Python >= 3.7 2019-06-18 06:38:50 +02:00
CONTRIBUTING.md Add CONTRIBUTING.md 2018-09-18 15:18:45 +08:00
LICENSE Add LICENSE file. 2018-09-17 17:24:55 +08:00
README.md 1) Remove "events" from Job and add two new API to retrieve it: 2019-01-29 14:49:58 +08:00
SECURITY.md Microsoft mandatory file 2023-01-24 16:35:48 +00:00
git_push.sh Init commit. 2018-07-06 15:11:19 +08:00
requirements.txt Init commit. 2018-07-06 15:11:19 +08:00
setup.py Add 3rd party licenses. 2019-04-16 13:16:06 +08:00
test-requirements.txt Init commit. 2018-07-06 15:11:19 +08:00
tox.ini Init commit. 2018-07-06 15:11:19 +08:00

README.md

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 OAuth2 access token for authorization: aad
hpc_acm.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# 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_events GET /clusrun/{id}/events Get clusrun events
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_events GET /diagnostics/{id}/events Get events of a diagnostic test run
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

Documentation For Models

Documentation For Authorization

aad

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A

Author