Exercise 4: Resource Discovery
Overview
This exercise focuses on discovering and working with resources in your Zerto environment. You'll learn how to find VMs in your local site and discover various resources (datastores, hosts, folders, networks) in peer sites.
Objectives
- Discover local site VMs
- Work with peer site resources:
- Datastores
- Hosts
- Folders
- Networks
- Handle site identifiers properly
- Use JSON for data display
Time
15 minutes
Prerequisites
- Completed Exercise 3 (Site Discovery)
- Working site discovery
- Access to site resources
Exercise Steps
- Connect to ZVM
- Identify local and peer sites
- Discover local site VMs
- Get peer site resources:
- Datastores
- Hosts
- Folders
- Networks
Working Directory
The working directory contains:
resources.py- Template to complete
Solution
The solution directory contains:
resources.py- Complete working example
Key Concepts
- Site resource discovery
- Local vs peer site resources
- Resource types (VMs, datastores, hosts, folders, networks)
- JSON data handling
- Error handling
Common Issues
- No sites found
- Invalid site identifiers
- Authentication issues
- Connection problems
- Resource access issues
Next Steps
Proceed to Exercise 5: VPG Management to learn about protecting VMs.