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

Zerto Python SDK Hands-On Lab

This hands-on lab provides practical experience with the Zerto Python SDK. The lab is designed to take approximately 60 minutes to complete and covers key aspects of the SDK including authentication, site discovery, VPG operations, and more.

Prerequisites

  • Python 3.8 or higher
  • Access to a Zerto Virtual Manager (ZVM)
  • API credentials (client ID and secret)
  • Basic understanding of Python programming
  • Basic understanding of Zerto concepts

Lab Structure

The lab is divided into 7 exercises:

  1. Introduction to Zerto APIs (5 min)

    • Understanding Zerto's REST API
    • API documentation overview
    • Keycloak authentication basics
  2. Authentication (10 min)

    • Creating a Keycloak client
    • Establishing connection to ZVM
    • Testing authentication
  3. Site Discovery (5 min)

    • Listing virtualization sites
    • Understanding site information
    • Basic site operations
  4. Resource Discovery (10 min)

    • Discovering local site resources
    • Working with peer sites
    • Understanding resource identifiers
  5. VPG Operations (15 min)

    • Creating VPGs
    • Adding VMs to VPGs
    • Managing VPG settings
    • VPG validation
  6. Failover Testing (10 min)

    • Initiating failover tests
    • Monitoring test status
    • Stopping tests
  7. Bulk Operations (5 min)

    • Performing bulk IP modifications
    • Managing multiple VMs

Getting Started

  1. Clone this repository:

    git clone <repository-url>
    cd Zerto-Python-SDK-Hands-On-Labs
    
  2. Install required packages:

    pip install -r prerequisites/requirements.txt
    
  3. Set up your environment:

    • Copy prerequisites/config.example.py to prerequisites/config.py
    • Update the configuration with your ZVM details
  4. Start with Exercise 1 in the exercises directory

Lab Completion

Each exercise includes:

  • Step-by-step instructions
  • Working directory for your code
  • Solution directory for reference
  • Common issues and troubleshooting

Complete all exercises to gain a comprehensive understanding of the Zerto Python SDK.

Support

If you encounter any issues during the lab:

  1. Check the troubleshooting section in each exercise
  2. Review the solution code
  3. Consult the Zerto API documentation

Feedback

Your feedback is valuable! Please complete the feedback form after finishing the lab to help us improve the content.

S
Description
Zerto Python SDK Hands-on Labs
Readme 876 KiB
Languages
Python 90.3%
PowerShell 9.7%