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

Subpackage Name

9.0.0.0

v9_0_0

9.1.0.0

v9_1_0

9.2.0.0

v9_2_0

9.2.1.0

v9_2_1

9.3.0.0

v9_3_0

9.4.0.0

v9_4_0

9.5.0.0

v9_5_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_3_0
from isilon_sdk.v9_3_0.rest import ApiException

urllib3.disable_warnings()

# configure cluster connection: basicAuth
configuration = isilon_sdk.v9_3_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_3_0.ApiClient(configuration)
api_instance = isilon_sdk.v9_3_0.ProtocolsApi(api_client)

# get all exports
sort = 'description'
limit = 50
dir = 'ASC'
try:
    api_response = api_instance.list_nfs_exports(sort=sort, limit=limit, dir=dir)
    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.3.0.1.tar.gz (9.1 MB view hashes)

Uploaded Source

Built Distribution

isilon_sdk-0.3.0.1-py2.py3-none-any.whl (18.7 MB view hashes)

Uploaded Python 2 Python 3

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