Skip to main content

Python language bindings for managing OneFS clusters.

Project description

About

This package is part of the Isilon SDK. It includes language bindings for easier programmatic access to the OneFS API for cluster configuration (on your cluster this is the REST API made up of all the URIs underneath https://[cluster]:8080/platform/*, also called the “Platform API” or “PAPI”). The SDK also includes language bindings for the OneFS RAN (i.e. RESTful Access to Namespace) interface, which provides access to the OneFS filesystem namespace.

Installation

pip install isilon_sdk

Example program

Please select the subpackage as applicable to the OneFS version of your cluster by referring to the below table:

OneFS Version and respective subpackage name are as:

9.4.0.0: v9_4_0 9.5.0.0: v9_5_0 9.6.0.0: v9_6_0 9.7.0.0: v9_7_0 9.8.0.0: v9_8_0 9.9.0.0: v9_9_0

Here’s an example of using the Python PAPI bindings to retrieve a list of NFS exports from your clusters

from __future__ import print_function

from pprint import pprint
import time
import urllib3

import isilon_sdk.v9_9_0
from isilon_sdk.v9_9_0.rest import ApiException

urllib3.disable_warnings()

# configure cluster connection: basicAuth
configuration = isilon_sdk.v9_9_0.Configuration()
configuration.host = 'https://10.205.228.161:8080'
configuration.username = 'root'
configuration.password = 'a'
configuration.verify_ssl = False

# create an instance of the API class
api_client = isilon_sdk.v9_9_0.ApiClient(configuration)
api_instance = isilon_sdk.v9_9_0.ProtocolsApi(api_client)

# get all exports
sort = 'description'
limit = 50
order = 'ASC'
try:
    api_response = api_instance.list_nfs_exports(sort=sort, limit=limit, dir=order)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProtocolsApi->list_nfs_exports: %s\n" % e)

More Info

See the Github repo for more information: https://github.com/isilon/isilon_sdk

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

isilon_sdk-0.4.0.tar.gz (8.0 MB view details)

Uploaded Source

Built Distribution

isilon_sdk-0.4.0-py3-none-any.whl (18.8 MB view details)

Uploaded Python 3

File details

Details for the file isilon_sdk-0.4.0.tar.gz.

File metadata

  • Download URL: isilon_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 8.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for isilon_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e3d6726f6c51ba81261dc91749309276b52ab3936be9ba0555ac181b8c540275
MD5 615003ee3b34e420467d1a21e8185cf5
BLAKE2b-256 fbcb6514386c2db9097c2538f703d7f32ac3b14e1005332486a09d2390a8206c

See more details on using hashes here.

File details

Details for the file isilon_sdk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: isilon_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for isilon_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1978b5a19955efc05b23ac34ad02c30dc39d2536c06130be39c5e5b377061daf
MD5 3ca04ab56965ae2fa2c39fb2b4a5b1c2
BLAKE2b-256 37c2f353ed02c8db738c70683a25eed29abc16d3877fc16d4f1d02d1925c872a

See more details on using hashes here.

Supported by

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