This repo contains an Ansible-based automation for CVO customers, that retreives all resources of a user per account, and checks if a given serial number is in use.
- A server/computer that has https access to the internet (in particular to: cloudmanager.netapp.com and cloudsync.netapp.com )
- A valid version of Ansible installed
- The current dir cloned into the server
- An API refresh_token (Click here for the refresh token generator site)
Run the following command from the main folder of this repository with extre-vars as explained below (do not keep the square brackets in the final command):
Ansible-playbook playbooks/get_working_environments.yml --extra-vars="refresh_token=[YOUR_REFRESH_TOKEN] serial_id=[SERIAL_ID]"
- refresh_token: Your user's refresh token for all Cloud Central APIs
- serial_id (optional): The serial_id you would like to search for
Example:
Ansible-playbook playbooks/get_working_environments.yml --extra-vars="refresh_token=fdkjn3094uwer9u4rhedoif390e8whdf"