5
5
OV Version | 6.30 | 6.20 | 6.10 | 6.00 | 5.60 |
6
6
| ------------- | :-------------:| :-------------:| :-------------:| :-------------:| :-------------:|
7
7
SDK Version/Tag |[ 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 ) |
8
- Build Status | [ ![ Build status] ( https://action-badges.now.sh/JasonEtco/action-badges )] ( https://github.com/HewlettPackard/oneview-python/runs/3524286157 ) | [ ![ Build status] ( https://action-badges.now.sh/JasonEtco/action-badges )] ( https://github.com/HewlettPackard/oneview-python/actions/runs/986745563 ) | [ ![ Build status] ( https://action-badges.now.sh/JasonEtco/action-badges )] ( https://github.com/HewlettPackard/oneview-python/actions/runs/726148134 ) | [ ![ Build status] ( https://action-badges.now.sh/JasonEtco/action-badges )] ( https://github.com/HewlettPackard/oneview-python/actions/runs/623585124 ) | [ ![ Build status] ( https://action-badges.now.sh/JasonEtco/action-badges )] ( https://travis-ci.com/github/HewlettPackard/oneview-python/builds/214352373 ) |
8
+ Build Status | [ ![ 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 ) |
9
9
10
10
11
11
## Introduction
@@ -75,14 +75,11 @@ HPE OneView SDK for Python can be installed from Source,Pypi and Docker containe
75
75
```
76
76
Now you can run any of the example in this directory:
77
77
Run the container, passing in your credentials to OneView and specifying which example recipe to run. <br />
78
- -v : The volume on which repo code is mounted <br />
79
- Replace " connection_templates" with the name of the example you'd like to run <br />
80
- Replace " pwd" with the path of the example file you'd like to run. <br />
78
+ ` -v ` : The volume on which repo code is mounted <br />
79
+ Replace ` connection_templates ` with the name of the example you'd like to run <br />
80
+ Replace ` pwd ` with the path of the example file you'd like to run. <br />
81
81
``` bash
82
- $ docker run -it --rm \ -v $( pwd) /:/root/oneview/
83
- ```
84
- ``` python
85
- $ python examples/ connection_templates.py
82
+ $ docker run -it --rm \ -v $( pwd) /:/root/oneview/ python examples/connection_templates.py
86
83
```
87
84
88
85
## Running Examples with published docker image
@@ -112,7 +109,8 @@ HPE OneView SDK for Python can be installed from Source,Pypi and Docker containe
112
109
113
110
Once you have created the JSON file, you can initialize the OneViewClient:
114
111
115
- oneview_client = OneViewClient.from_json_file('/path/config.json') <br />
112
+ ``` oneview_client = OneViewClient.from_json_file('/path/config.json') ``` <br />
113
+
116
114
:lock : Tip: Check the file permissions because the password is stored in clear-text.
117
115
118
116
### Environment Variables:
@@ -126,7 +124,7 @@ HPE OneView SDK for Python can be installed from Source,Pypi and Docker containe
126
124
```
127
125
Or sessionID
128
126
``` bash
129
- export ONEVIEWSDK_SESSIONID=' 123' < br / >
127
+ export ONEVIEWSDK_SESSIONID=' 123'
130
128
```
131
129
132
130
Once you have defined the environment variables, you can initialize the OneViewClient using the following code snippet:
0 commit comments