1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-26 03:10:00 -05:00
vsphere-automation-sdk-python/samples/vsphere/backuprestore
het cfa9acdb88 Add tests to make sure vsphere client stubs are present
Add unittests for vsphere client
Fixed some format issues
Run the tests as part of travis ci
2018-09-21 13:38:40 -07:00
..
__init__.py vSphere 6.7 Release 2018-04-17 11:01:27 -07:00
backup_job_list.py dict.itervalues is deprecated in Python3. Fixing samples to call method dict.values() works for Python 2.7 & 3 2018-06-13 16:57:42 +05:30
backup_schedule.py Add tests to make sure vsphere client stubs are present 2018-09-21 13:38:40 -07:00
README.md vSphere 6.7 Release 2018-04-17 11:01:27 -07:00

This directory contains samples for Backup Restore APIs:

* List all backup jobs
* CRUD operations on backup schedule

Running the samples

$ python <sample-dir>/<sample>.py --server <vCenter Server IP> --username <username> --password <password> <additional-sample-parameters>

The additional sample parameters are as follows (all parameters can be displayed for any sample using option --help)

* backup_schedule.py --location <location URL> --location_user <location-user> location_password <location-password>
  • Testbed Requirement:
    • 1 vCenter Server
    • Backup server reachable through any of the supported protocols FTP/FTPS/SCP/HTTP/HTTPS