Unsolved
1 Message
0
1046
February 17th, 2021 04:00
Python-VPlex (vplexapi)
Hi @Anil_Degwekar, @Todd_Swierk,
We have a brain new Python->VPlex API here Thx to Anil:
https://github.com/dell/python-vplex
To make it easier to work on/with can you:
- Add it to PyPi to install/update in one command (python3 -m pip install -U python-vplex)
- Can you add can a simple exemple in README.md (like how connect with/wihout cert to a VPlex cluster and list /clusters maybe how to call a claim command
Thx in Adv @anil
No Events found!
Anil_Degwekar
13 Posts
0
February 17th, 2021 04:00
Hi,
Currently this python library is primarily to be used with the Ansible modules for VPLEX:
https://github.com/dell/ansible-vplex
You will find detailed instructions on how to use the Ansible modules for VPLEX at this location.
Regards
Anil
Mohana Priya
1 Message
0
February 21st, 2021 07:00
Hi,
In brief, to get the list of clusters below is the playbook task and we have a common module to get the list of VPLEX storage entities called “dellemc_vplex_gatherfacts”
# Gather Facts
---
- name: List the storage objects of VPLEX
hosts: localhost
connection: local
vars:
# Variable parameters
vplexhost: <**************>
vplexuser: <**************>
vplexpassword: <**************>
# Constant parameters
verifycert: false # Sample one to access VPLEX cluster without cert
tasks:
- name: List of clusters in VPLEX
dellemc_vplex_gatherfacts:
vplexhost: "{ { vplexhost }}"
vplexuser: "{ { vplexuser }}"
vplexpassword: "{ { vplexpassword }}"
verifycert: "{ { verifycert }}"
register: clusters
To access the VPLEX with cert set to True, we need to include “ssl_ca_cert” parameter in the task and details on how to retrieve CA certificate is covered in the Product guide under the section “Steps to retrieve CA certificate from VPLEX”
vars:
# Variable parameters
vplexhost: <**************>
vplexuser: <**************>
vplexpassword: <**************>
# Constant parameters
verifycert: true ssl_ca_cert: “
Regards,
Mohana Priya.