Announcement Banner
UNSOLVED

Socle800

updated

6 years ago

S

Socle800

1 Rookie

•

1 Message

0

1100

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

  • 976

    0

    Posted 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

  • 924

    0

    Posted February 21st, 2021 07:00

    Hi,

    1. For python-vplex to get added into PyPi, backlog is already created and it will be available in PyPi as part of future milestone releases
    2. We have specified the details of accessing VPLEX clusters with or without cert in the Product Guide and is present in the docs folder of  GITHUB repository https://github.com/dell/ansible-vplex/tree/master/dellemc_ansible/docs

     

    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.