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 package names are as:

OneFS Release

Package Name

9.4.0.0

isilon_sdk.v9_4_0

9.5.0.0

isilon_sdk.v9_5_0

9.6.0.0

isilon_sdk.v9_6_0

9.7.0.0

isilon_sdk.v9_7_0

9.8.0.0

isilon_sdk.v9_8_0

9.9.0.0

isilon_sdk.v9_9_0

9.10.0.0

isilon_sdk.v9_10_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.5.0.tar.gz (9.4 MB view details)

Uploaded Source

Built Distribution

isilon_sdk-0.5.0-py3-none-any.whl (22.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isilon_sdk-0.5.0.tar.gz
  • Upload date:
  • Size: 9.4 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.5.0.tar.gz
Algorithm Hash digest
SHA256 d50ba6a73d2cb6248279831d2d00bec888ffd704314dcfd281707be7ad34a5e9
MD5 6767183a7614ae34e51410edd04f8bb0
BLAKE2b-256 f7431a9c081ad92cd2e8889c475f71c3a94eb3f407aa5d738c366cbf6dee7854

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isilon_sdk-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 633500a4074b33d071afadef222cea5f1f4775b591f084f7d8d8909e3f252d8f
MD5 3fbb4e1a358baf992dcc1457f9d4876b
BLAKE2b-256 60366851178d969d2fda15b9ffabd56fbcc40a5f0d9d31ff130c576bac78ffc3

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