Files
Kosta Mushkin 3a075e5ecf initial commit
2025-05-22 10:10:15 -04:00

57 lines
1.3 KiB
Markdown

# 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
1. Connect to ZVM
2. Identify local and peer sites
3. Discover local site VMs
4. 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.