vCLI updates


Userlevel 5
Badge +3
  • Comes here often
  • 13 comments

Hi all, 

I just wanted to give you some updates on vCLI’s updates (up to 0.7.0-beta1):

  1. PUT and POST operations
  2. Default API updated to v12 VBR and v7 VB365
  3. Enterprise Manager support
  4. Utility functions:
    1. VBR Job GET to POST converter
    2. Check for version updates 
  5. Job template feature

VBR Job GET to POST converter

The VBR API Job object is slightly different to the POST object; the converter can take a GET object json file and convert it to a POST object json file. 

Job Template feature

The job template feature was put together to help with having to manage large VBR job objects. 

A job template can be created, forming the basis for any new jobs you want to create. 

For example, if you only need to modify the VMs, you only need to pass a relatively small object:

type: Backup
name: my job
description: Created by VCLI.
isDisabled: false
virtualMachines:
includes:
- type: VirtualMachine
hostName: your-vmware-host
name: your-vm-name
objectId: vm-0001

The command being:

vcli job create abc-job.yaml

You can also modify the other key objects of the job:

  • schedule
  • guest processing
  • storage

When you want to modify more than just the virtual machine, you can pass a -f/ --folder flag and point it to a folder with a job file and one or all of the above files.

/path/to/job/folder
├── job-abc.yaml
└── storage-abc.yaml

Then run:

vcli job create -f .\sql-job-folder

There are more features which you can read about here:

vcli/job.md at master · shapedthought/vcli (github.com)

Main repo can be found here:

shapedthought/vcli: vcli is a simple tool to interact with (most) Veeam APIs (github.com)

If you have any other features you think could be added, please add an issue on the repository. 

Also, if you like this project, please give it a star on GitHub!

Ed


2 comments

Userlevel 7
Badge +17

You are faster in developing than I am in testing 😎👍🏼

Userlevel 7
Badge +20

Thanks for sharing.

Comment