This directory contains samples for snapservice APIs: 1. Protection Group Create, List and Delete operations: Sample | Description -------------------------------------|--------------------------------------------------- list_protection_groups.py | Demonstrates listing protection groups create_protection_group.py | Demonstrates creating protection group delete_protection_groups.py | Demonstrates deleting protection groups 2. Protection Group Snapshot Delete operations: Sample | Description -------------------------------------|--------------------------------------------------- delete_protection_group_snapshots.py | Demonstrates deleting protection group snapshots ### To view the available command-line options: $ python protection_group/list_protection_groups.py --help $ python protection_group/create_protection_group.py --help $ python protection_group/delete_protection_groups.py --help $ python snapshot/delete_protection_group_snapshots.py --help ### Running the samples: Fill "Snapservice protection group creation spec" section in vcenter/setup/testbed.py when calling create_pg.py $ python protection_group/list_protection_groups.py --server --username --password --snapservice --cluster -v $ python protection_group/create_protection_group.py --server --username --password --snapservice --cluster -v $ python protection_group/create_protection_group.py --server --username --password --snapservice --cluster -v -c $ python protection_group/delete_protection_groups.py --server --username --password --snapservice --cluster --pgnames -v $ python protection_group/delete_protection_groups.py --server --username --password --snapservice --cluster --pgnames -v --force $ python snapshot/delete_protection_group_snapshots.py --server --username --password --snapservice --cluster --pgname --remain -v ### Testbed Requirement: - vCenter Server >= 8.0.3+ - vSAN ESA disk - vSAN Cluster - Snapservice = 8.0.3