hpeOneView


NamehpeOneView JSON
Version 8.8.0 PyPI version JSON
download
home_pagehttps://github.com/HewlettPackard/oneview-python
SummaryHPE OneView Python Library
upload_time2024-03-08 04:07:41
maintainer
docs_urlNone
authorHewlett Packard Enterprise Development LP
requires_python
licenseApache
keywords oneview hpe
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # HPE OneView SDK for Python

## Build Status 

| OV Version | 8.80 | 8.70 | 8.60 | 8.50 | 8.40 | 8.30 | 8.20 | 8.10 | 8.00 | 7.20 | 7.10 | 7.00                                                                                                                                                                                    | 6.60                                                                                                                                                                                    | 6.50                                                                                                                                                                                    |                                                                                      6.40                                                                                       |                                                                                      6.30                                                                                       |                                                                                          6.20                                                                                          |                                                                                          6.10                                                                                          |                                                                                          6.00                                                                                          |                                                                                            5.60                                                                                            |
| ------------- | ------------- |  ------------- | ------------- | ------------- |  ------------- |  ------------- |  ------------- |  ------------- |  ------------- |   --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |----------------------------------------------------------------------------: |
| SDK Version/Tag |[v8.8.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.8.0)|[v8.7.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.7.0)|[v8.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.6.0)|[v8.5.1](https://github.com/HewlettPackard/oneview-python/releases/tag/8.5.1)|[v8.4.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.4.0)|[v8.3.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.3.0)|[v8.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.2.0)|[v8.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.1.0)|[v8.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.0.0)|[v7.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/7.2.0)|[v7.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/7.1.0)| [v7.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v7.0.0)                                                                                                          | [v6.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.6.0)                                                                                                          | [v6.5.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.5.0)                                                                                                          |                                                 [v6.4.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.4.0)                                                  |                                                 [v6.3.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.3.0)                                                  |                                                     [v6.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.2.0)                                                     |                                                     [v6.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.1.0)                                                     |                                                     [v6.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.0.0)                                                     |                                                       [v5.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v5.6.0)                                                       |
| Build Status    |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/8137922616) |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/7421375670) |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/5851838948) |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/5332199086) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/4800354967) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/4371621558) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/3626826357)| [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/3006374044) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/2675986741) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/2376290875) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/1967921808) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/1658469670) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/runs/4236699714) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/runs/3524286157) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/986745563) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/726148134) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/623585124) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://travis-ci.com/github/HewlettPackard/oneview-python/builds/214352373) |

## Introduction

HPE OneView makes it simple to deploy and manage today’s complex hybrid cloud infrastructure. HPE OneView can help you transform your data center to software-defined, and it supports HPE’s broad portfolio of servers, storage, and networking solutions, ensuring the simple and automated management of your hybrid infrastructure. Software-defined intelligence enables a template-driven approach for deploying, provisioning, updating, and integrating compute, storage, and networking infrastructure.

The HPE OneView Python library provides a pure Python interface to the HPE OneView REST APIs. It depends on the [Python-Future](http://python-future.org/index.html) library to provide Python 2/3 compatibility.

You can find the latest supported HPE OneView Python SDK [here](https://github.com/HewlettPackard/oneview-python/releases/latest)

Refer to

Supported HPE OneView Python [APIs Implementation](https://github.com/HewlettPackard/oneview-python/blob/master/endpoints-support.md) and
Latest version of the OneView Python [SDK Documentation](https://hewlettpackard.github.io/oneview-python/index.html)

## What's New

HPE OneView Python library extends support of the SDK to OneView REST API version 6200 (OneView v8.80)
### Migration script
Perform migration from HPE OneView 6.x to HPE OneView 7.0 for non-Synergy appliance using below script.
```bash
   $ git clone https://github.com/HewlettPackard/oneview-python.git
   $ cd oneview-python/examples/migration/
   $ python migrate.py [<list of server hardwware names to be migrated>] 
```

Please refer to [notes](https://github.com/HewlettPackard/oneview-python/blob/master/CHANGELOG.md) for more information on the changes , features supported and issues fixed in this version

## Getting Started 

HPE OneView SDK for Python can be installed from Source,Pypi and Docker container installation methods.

   ## From Source
   ```bash
   $ git clone https://github.com/HewlettPackard/oneview-python.git
   $ cd oneview-python 
   ```
   ```python
   $ python setup.py install --user  # to install in the user directory (~/.local)
   ```
   ```bash
   $ sudo python setup.py install    # to install globally
   ```
   
   ## Or using PIP:
   ```bash
   $ git clone https://github.com/HewlettPackard/oneview-python.git 
   $ cd oneview-python 
   ```
   ```python
   $ pip install . 
   ```   
   
   ## From Pypi
   ```bash
   $ git clone https://github.com/HewlettPackard/oneview-python.git
   $ cd oneview-python 
   ```
   ```python
   $ pip install hpeOneView 
   ```
   
   ## From Docker Image / Container
   
   Clone this repo and cd into it:
   ```bash
   $ git clone https://github.com/HewlettPackard/oneview-python.git
   $ cd oneview-python
   ```
   
   # Build the docker image:
   ```bash
   $ docker build -t oneview-python . 
   ```
   Now you can run any of the example in this directory:
   Run the container, passing in your credentials to OneView and specifying which example recipe to run. <br />
   `-v`: The volume on which repo code is mounted <br />
   Replace `connection_templates` with the name of the example you'd like to run <br />
   Replace `pwd` with the path of the example file you'd like to run. <br />
   ```bash
   $ docker run -it --rm \ -v $(pwd)/:/root/oneview/ python examples/connection_templates.py
   ```
   
   ## Running Examples with published docker image
   We also provide a lightweight and easy way to test and run oneview-python. The hewlettpackardenterprise/hpe-oneview-sdk-for-python:<tag> docker image 
   contains an installation of oneview-python installation you can use by just pulling down the Docker Image:

   The Docker Store image tag consist of two sections: <sdk_version-OV_version>

   Download and store a local copy of hpe-oneview-sdk-for-python and use it as a Docker image. <br />
   ```bash

   $ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-python:v8.8.0-OV8.8
   ```

   Run docker commands and this will in turn create sh session where you can create files, issue commands and execute the tests <br />
   ```bash

   $ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-python:v8.8.0-OV8.8 /bin/sh

   ```
   
## Configuration

  ### JSON: 
  Connection properties for accessing the OneView appliance can be set in a JSON file.
  Before running the samples or your own scripts, you must create the JSON file. An example can be found at: OneView configuration sample.

  Note: If you have an active and valid login session and want to use it, define the sessionID in the Credentials. When sessionID is defined, you can remove username 
  and password from your JSON (they will be disregarded anyway).

  Once you have created the JSON file, you can initialize the OneViewClient:

   ```python 
   from hpeOneView.oneview_client import OneViewClient
   oneview_client = OneViewClient.from_json_file('/path/config.json')
   ``` 
   
  :lock: Tip: Check the file permissions because the password is stored in clear-text.

  ### Environment Variables:
  Configuration can also be defined through environment variables:

  ### Required
  ```bash
  export ONEVIEWSDK_IP='172.16.102.82'
  export ONEVIEWSDK_USERNAME='Administrator'
  export ONEVIEWSDK_PASSWORD='secret123'
  ```
  Or sessionID 
  ```bash
   export ONEVIEWSDK_SESSIONID='123'
   ```
    
  Once you have defined the environment variables, you can initialize the OneViewClient using the following code snippet:

  ```python 
   from hpeOneView.oneview_client import OneViewClient
   oneview_client = OneViewClient.from_environment_variables()
   ```
  :lock: Tip: Make sure no unauthorized person has access to the environment variables, since the password is stored in clear-text.

  Note: If you have an active and valid login session and want to use it, define the ```ONEVIEWSDK_SESSIONID```. When a sessionID is defined, it will be used for 
  authentication (username and password will be ignored in this case).

  ### Dictionary:
  ```python
  # You can also set the configuration using a dictionary. As described above, for authentication you can use username/password:
  config = { 
    "ip": "172.16.102.82", 
    "credentials": { 
        "userName": "Administrator",
        "password": "secret123"
    }
  }
  ```
  
  ```python 
  #Or if you have an active and valid login session and want to use it, define the sessionID in the Credentials:
  config = {
    "ip": "172.16.102.82",
    "credentials": { 
        "sessionID": "123" 
    } 
  }
  ```

  ```python
  # If you need to use a proxy server, You can add the same in config dictionary as below:
  config = { 
    "ip": "172.16.102.82",
    "proxy": "1.2.3.4:8080",
    "credentials": {
        "userName": "Administrator",
        "password": "secret123"
    }
  }
  ```

  ```python 
   from hpeOneView.oneview_client import OneViewClient
   oneview_client = OneViewClient(config) 
   ```
  :lock: Tip: Check the file permissions because the password is stored in clear-text.


For more details on the Installation , Configuration , Logging , Troubleshooting refer to [WIKI# Installation & Configuration section](https://github.com/HewlettPackard/oneview-python/wiki#installation).

### HPE Synergy Image Streamer

From Release 8.1, Image streamer is no longer supported.

## Getting Help 

Are you running into a road block? Have an issue with unexpected bahriov? Feel free to open a new issue on the [issue tracker](https://github.com/HewlettPackard/oneview-python/issues)

For more information on how to open a new issue refer to [How can I get help & support](https://github.com/HewlettPackard/oneview-python/wiki#getting-help---how-can-i-get-help—support)

## License 

This project is licensed under the Apache license. Please see [LICENSE](https://github.com/HewlettPackard/oneview-python/blob/master/LICENSE) for more information.

## Additional Resources 

**HPE OneView Documentation**

[HPE OneView Release Notes](http://hpe.com/info/OneView/docs)

[HPE OneView Support Matrix](http://hpe.com/info/OneView/docs)

[HPE OneView Installation Guide](http://hpe.com/info/OneView/docs)

[HPE OneView User Guide](http://hpe.com/info/OneView/docs)

[HPE OneView Online Help](http://hpe.com/info/OneView/docs)

[HPE OneView REST API Reference](http://hpe.com/info/OneView/docs)

[HPE OneView Firmware Management White Paper](http://hpe.com/info/OneView/docs)

[HPE OneView Deployment and Management White Paper](http://hpe.com/info/OneView/docs)


**HPE OneView Community**

[HPE OneView Community Forums](http://hpe.com/info/oneviewcommunity)

Learn more about HPE OneView at [hpe.com/info/oneview](https://hpe.com/info/oneview)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/HewlettPackard/oneview-python",
    "name": "hpeOneView",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "oneview,hpe",
    "author": "Hewlett Packard Enterprise Development LP",
    "author_email": "oneview-pythonsdk@hpe.com",
    "download_url": "https://files.pythonhosted.org/packages/b8/23/90ca571ac0f78c7edebe900ed6c2e9269a2e74146ad3240053025b80c04c/hpeOneView-8.8.0.tar.gz",
    "platform": null,
    "description": "# HPE OneView SDK for Python\n\n## Build Status \n\n| OV Version | 8.80 | 8.70 | 8.60 | 8.50 | 8.40 | 8.30 | 8.20 | 8.10 | 8.00 | 7.20 | 7.10 | 7.00                                                                                                                                                                                    | 6.60                                                                                                                                                                                    | 6.50                                                                                                                                                                                    |                                                                                      6.40                                                                                       |                                                                                      6.30                                                                                       |                                                                                          6.20                                                                                          |                                                                                          6.10                                                                                          |                                                                                          6.00                                                                                          |                                                                                            5.60                                                                                            |\n| ------------- | ------------- |  ------------- | ------------- | ------------- |  ------------- |  ------------- |  ------------- |  ------------- |  ------------- |   --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |----------------------------------------------------------------------------: |\n| SDK Version/Tag |[v8.8.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.8.0)|[v8.7.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.7.0)|[v8.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.6.0)|[v8.5.1](https://github.com/HewlettPackard/oneview-python/releases/tag/8.5.1)|[v8.4.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.4.0)|[v8.3.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.3.0)|[v8.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.2.0)|[v8.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.1.0)|[v8.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/8.0.0)|[v7.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/7.2.0)|[v7.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/7.1.0)| [v7.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v7.0.0)                                                                                                          | [v6.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.6.0)                                                                                                          | [v6.5.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.5.0)                                                                                                          |                                                 [v6.4.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.4.0)                                                  |                                                 [v6.3.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.3.0)                                                  |                                                     [v6.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.2.0)                                                     |                                                     [v6.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.1.0)                                                     |                                                     [v6.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.0.0)                                                     |                                                       [v5.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v5.6.0)                                                       |\n| Build Status    |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/8137922616) |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/7421375670) |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/5851838948) |[![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/5332199086) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/4800354967) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/4371621558) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/3626826357)| [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/3006374044) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/2675986741) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/2376290875) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/1967921808) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/1658469670) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/runs/4236699714) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/runs/3524286157) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/986745563) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/726148134) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://github.com/HewlettPackard/oneview-python/actions/runs/623585124) | [![Build status](https://github.com/HewlettPackard/oneview-python/actions/workflows/run_tests.yml/badge.svg)](https://travis-ci.com/github/HewlettPackard/oneview-python/builds/214352373) |\n\n## Introduction\n\nHPE OneView makes it simple to deploy and manage today\u2019s complex hybrid cloud infrastructure. HPE OneView can help you transform your data center to software-defined, and it supports HPE\u2019s broad portfolio of servers, storage, and networking solutions, ensuring the simple and automated management of your hybrid infrastructure. Software-defined intelligence enables a template-driven approach for deploying, provisioning, updating, and integrating compute, storage, and networking infrastructure.\n\nThe HPE OneView Python library provides a pure Python interface to the HPE OneView REST APIs. It depends on the [Python-Future](http://python-future.org/index.html) library to provide Python 2/3 compatibility.\n\nYou can find the latest supported HPE OneView Python SDK [here](https://github.com/HewlettPackard/oneview-python/releases/latest)\n\nRefer to\n\nSupported HPE OneView Python [APIs Implementation](https://github.com/HewlettPackard/oneview-python/blob/master/endpoints-support.md) and\nLatest version of the OneView Python [SDK Documentation](https://hewlettpackard.github.io/oneview-python/index.html)\n\n## What's New\n\nHPE OneView Python library extends support of the SDK to OneView REST API version 6200 (OneView v8.80)\n### Migration script\nPerform migration from HPE OneView 6.x to HPE OneView 7.0 for non-Synergy appliance using below script.\n```bash\n   $ git clone https://github.com/HewlettPackard/oneview-python.git\n   $ cd oneview-python/examples/migration/\n   $ python migrate.py [<list of server hardwware names to be migrated>] \n```\n\nPlease refer to [notes](https://github.com/HewlettPackard/oneview-python/blob/master/CHANGELOG.md) for more information on the changes , features supported and issues fixed in this version\n\n## Getting Started \n\nHPE OneView SDK for Python can be installed from Source,Pypi and Docker container installation methods.\n\n   ## From Source\n   ```bash\n   $ git clone https://github.com/HewlettPackard/oneview-python.git\n   $ cd oneview-python \n   ```\n   ```python\n   $ python setup.py install --user  # to install in the user directory (~/.local)\n   ```\n   ```bash\n   $ sudo python setup.py install    # to install globally\n   ```\n   \n   ## Or using PIP:\n   ```bash\n   $ git clone https://github.com/HewlettPackard/oneview-python.git \n   $ cd oneview-python \n   ```\n   ```python\n   $ pip install . \n   ```   \n   \n   ## From Pypi\n   ```bash\n   $ git clone https://github.com/HewlettPackard/oneview-python.git\n   $ cd oneview-python \n   ```\n   ```python\n   $ pip install hpeOneView \n   ```\n   \n   ## From Docker Image / Container\n   \n   Clone this repo and cd into it:\n   ```bash\n   $ git clone https://github.com/HewlettPackard/oneview-python.git\n   $ cd oneview-python\n   ```\n   \n   # Build the docker image:\n   ```bash\n   $ docker build -t oneview-python . \n   ```\n   Now you can run any of the example in this directory:\n   Run the container, passing in your credentials to OneView and specifying which example recipe to run. <br />\n   `-v`: The volume on which repo code is mounted <br />\n   Replace `connection_templates` with the name of the example you'd like to run <br />\n   Replace `pwd` with the path of the example file you'd like to run. <br />\n   ```bash\n   $ docker run -it --rm \\ -v $(pwd)/:/root/oneview/ python examples/connection_templates.py\n   ```\n   \n   ## Running Examples with published docker image\n   We also provide a lightweight and easy way to test and run oneview-python. The hewlettpackardenterprise/hpe-oneview-sdk-for-python:<tag> docker image \n   contains an installation of oneview-python installation you can use by just pulling down the Docker Image:\n\n   The Docker Store image tag consist of two sections: <sdk_version-OV_version>\n\n   Download and store a local copy of hpe-oneview-sdk-for-python and use it as a Docker image. <br />\n   ```bash\n\n   $ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-python:v8.8.0-OV8.8\n   ```\n\n   Run docker commands and this will in turn create sh session where you can create files, issue commands and execute the tests <br />\n   ```bash\n\n   $ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-python:v8.8.0-OV8.8 /bin/sh\n\n   ```\n   \n## Configuration\n\n  ### JSON: \n  Connection properties for accessing the OneView appliance can be set in a JSON file.\n  Before running the samples or your own scripts, you must create the JSON file. An example can be found at: OneView configuration sample.\n\n  Note: If you have an active and valid login session and want to use it, define the sessionID in the Credentials. When sessionID is defined, you can remove username \n  and password from your JSON (they will be disregarded anyway).\n\n  Once you have created the JSON file, you can initialize the OneViewClient:\n\n   ```python \n   from hpeOneView.oneview_client import OneViewClient\n   oneview_client = OneViewClient.from_json_file('/path/config.json')\n   ``` \n   \n  :lock: Tip: Check the file permissions because the password is stored in clear-text.\n\n  ### Environment Variables:\n  Configuration can also be defined through environment variables:\n\n  ### Required\n  ```bash\n  export ONEVIEWSDK_IP='172.16.102.82'\n  export ONEVIEWSDK_USERNAME='Administrator'\n  export ONEVIEWSDK_PASSWORD='secret123'\n  ```\n  Or sessionID \n  ```bash\n   export ONEVIEWSDK_SESSIONID='123'\n   ```\n    \n  Once you have defined the environment variables, you can initialize the OneViewClient using the following code snippet:\n\n  ```python \n   from hpeOneView.oneview_client import OneViewClient\n   oneview_client = OneViewClient.from_environment_variables()\n   ```\n  :lock: Tip: Make sure no unauthorized person has access to the environment variables, since the password is stored in clear-text.\n\n  Note: If you have an active and valid login session and want to use it, define the ```ONEVIEWSDK_SESSIONID```. When a sessionID is defined, it will be used for \n  authentication (username and password will be ignored in this case).\n\n  ### Dictionary:\n  ```python\n  # You can also set the configuration using a dictionary. As described above, for authentication you can use username/password:\n  config = { \n    \"ip\": \"172.16.102.82\", \n    \"credentials\": { \n        \"userName\": \"Administrator\",\n        \"password\": \"secret123\"\n    }\n  }\n  ```\n  \n  ```python \n  #Or if you have an active and valid login session and want to use it, define the sessionID in the Credentials:\n  config = {\n    \"ip\": \"172.16.102.82\",\n    \"credentials\": { \n        \"sessionID\": \"123\" \n    } \n  }\n  ```\n\n  ```python\n  # If you need to use a proxy server, You can add the same in config dictionary as below:\n  config = { \n    \"ip\": \"172.16.102.82\",\n    \"proxy\": \"1.2.3.4:8080\",\n    \"credentials\": {\n        \"userName\": \"Administrator\",\n        \"password\": \"secret123\"\n    }\n  }\n  ```\n\n  ```python \n   from hpeOneView.oneview_client import OneViewClient\n   oneview_client = OneViewClient(config) \n   ```\n  :lock: Tip: Check the file permissions because the password is stored in clear-text.\n\n\nFor more details on the Installation , Configuration , Logging , Troubleshooting refer to [WIKI# Installation & Configuration section](https://github.com/HewlettPackard/oneview-python/wiki#installation).\n\n### HPE Synergy Image Streamer\n\nFrom Release 8.1, Image streamer is no longer supported.\n\n## Getting Help \n\nAre you running into a road block? Have an issue with unexpected bahriov? Feel free to open a new issue on the [issue tracker](https://github.com/HewlettPackard/oneview-python/issues)\n\nFor more information on how to open a new issue refer to [How can I get help & support](https://github.com/HewlettPackard/oneview-python/wiki#getting-help---how-can-i-get-help\u2014support)\n\n## License \n\nThis project is licensed under the Apache license. Please see [LICENSE](https://github.com/HewlettPackard/oneview-python/blob/master/LICENSE) for more information.\n\n## Additional Resources \n\n**HPE OneView Documentation**\n\n[HPE OneView Release Notes](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Support Matrix](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Installation Guide](http://hpe.com/info/OneView/docs)\n\n[HPE OneView User Guide](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Online Help](http://hpe.com/info/OneView/docs)\n\n[HPE OneView REST API Reference](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Firmware Management White Paper](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Deployment and Management White Paper](http://hpe.com/info/OneView/docs)\n\n\n**HPE OneView Community**\n\n[HPE OneView Community Forums](http://hpe.com/info/oneviewcommunity)\n\nLearn more about HPE OneView at [hpe.com/info/oneview](https://hpe.com/info/oneview)\n\n\n",
    "bugtrack_url": null,
    "license": "Apache",
    "summary": "HPE OneView Python Library",
    "version": "8.8.0",
    "project_urls": {
        "Download": "https://github.com/HewlettPackard/oneview-python/tarball/v8.6.0",
        "Homepage": "https://github.com/HewlettPackard/oneview-python"
    },
    "split_keywords": [
        "oneview",
        "hpe"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ed07ba242b80a56225a0f6edb4fe035cec7df6b5851549a101123fb6f28e499",
                "md5": "c6810459649e5f83064a22c2eca6255a",
                "sha256": "e23688f7605e5b671b11715496d0e1196f83d3afd51af84bc437b1fa5b09e27c"
            },
            "downloads": -1,
            "filename": "hpeOneView-8.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c6810459649e5f83064a22c2eca6255a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 190846,
            "upload_time": "2024-03-08T04:07:39",
            "upload_time_iso_8601": "2024-03-08T04:07:39.887761Z",
            "url": "https://files.pythonhosted.org/packages/7e/d0/7ba242b80a56225a0f6edb4fe035cec7df6b5851549a101123fb6f28e499/hpeOneView-8.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b82390ca571ac0f78c7edebe900ed6c2e9269a2e74146ad3240053025b80c04c",
                "md5": "2f6e7024057bb5ab482735130443de5d",
                "sha256": "b3b48fe9f73d43392de4cffea76e4e0b8add505a4ca48c6a2bb47584a332846b"
            },
            "downloads": -1,
            "filename": "hpeOneView-8.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2f6e7024057bb5ab482735130443de5d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 93261,
            "upload_time": "2024-03-08T04:07:41",
            "upload_time_iso_8601": "2024-03-08T04:07:41.804176Z",
            "url": "https://files.pythonhosted.org/packages/b8/23/90ca571ac0f78c7edebe900ed6c2e9269a2e74146ad3240053025b80c04c/hpeOneView-8.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-08 04:07:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "HewlettPackard",
    "github_project": "oneview-python",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "test_requirements": [],
    "tox": true,
    "lcname": "hpeoneview"
}
        
Elapsed time: 0.20700s