Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Table of Contents
minLevel1
maxLevel2
include
outlinefalse
indent
stylenone
excludeTable of Contents
typelist
class
printabletrue

Introduction

The vss-cli is a powerful command-line tool designed to help manage ITS Private Cloud resources efficiently. This guide provides an overview of how to use the vss-cli to track request status and details, manage VM change requests, and more.

Table of Contents
stylenone

👶 Basic Usage

The primary command to start with is vss-cli request, which allows you to manage various types of VM requests. Here's the basic structure:

...

  • change: Manage virtual machine change requests.

  • export: Manage virtual machine export requests.

  • folder: Manage logical folder requests.

  • image: Manage user-image synchronization requests.

  • inventory: Manage virtual machine inventory requests.

  • new: Manage new virtual machine deployment requests.

  • restore: Manage virtual machine restore requests.

  • retire: Manage virtual machine retirement requests.

  • snapshot: Manage virtual machine snapshot requests.

  • vmdk: Manage user-VMDK synchronization requests.

🆕 Managing VM New Requests

The vss-cli request new command group is dedicated to handling new virtual machine deployment requests. This group includes commands to get, list, and retry deployment requests. Below is an overview of the main commands and their usage.

...

This command attempts to reprocess a VM request that previously failed. RID is the new VM Request ID.

🌀 Managing VM Change Requests

...

Code Block
vss-cli request change [OPTIONS] COMMAND [ARGS]...

Options

  • --help: Show help information and exit.

Commands

  • get: Retrieve a specific change request.

  • ls: List VM change requests.

  • retry: Retry a VM change request.

  • set: Update a VM change request.

Listing VM Change Requests

To list VM change requests, use the ls command. This command provides various options to filter, sort, and display the requests.

Code Block
vss-cli request change ls [OPTIONS]

Options

  • -f, --filter-by TEXT: Filter the list by <field_name>=<operator>,<value>. Operators include eq, ne, lt, le, gt, ge, like, in.

    • Example: status=eq,Processed filters requests where the status is "Processed".

      Code Block
      vss-cli request change ls -f status=Processed
  • -s, --sort TEXT: Sort the list by <field_name>=<asc|desc>.

    • Example: created_on=desc sorts the list by the creation date in descending order.

      Code Block
      vss-cli request change ls -s created_on=desc
  • -a, --show-all: Show all results without pagination.

  • -c, --count INTEGER: Specify the number of results to display.

  • -p, --page: Page results in a less-like format for easier viewing.

  • --help: Show help information and exit.

Example Commands

  1. Listing All Change Requests

    Code Block
    vss-cli request change ls
  2. Filtering Change Requests by Status

    Code Block
    vss-cli request change ls -f status=eq,Processed
  3. Sorting Change Requests by Creation Date

    Code Block
    vss-cli request change ls -s created_on=desc
  4. Displaying All Results

    Code Block
    vss-cli request change ls -a
  5. Specifying the Number of Results

    Code Block
    vss-cli request change ls -c 10
  6. Paging Results for Easier Viewing

    Code Block
    vss-cli request change ls -p

Getting VM Change Requests Details

The vss-cli request change get command allows you to get various attributes for a VM change request.

Usage

Code Block
vss-cli request change get RID
  • RID: The request ID of the change request you want to update.

Options

  • --help: Show help information and exit.

Retrying a VM Change Request

To retry a VM request that encountered an error, use the retry command with the specific request ID:

...

  1. Setting a New Schedule

    Code Block
    vss-cli request change set 1234 schedule -d "2024-07-15 14:30"

    This command sets the schedule for the change request with ID 1234 to July 15, 2024, at 14:30.

  2. Canceling a Schedule

    Code Block
    vss-cli request change set 1234 schedule -c

    This command cancels the scheduling for the change request with ID 1234.

...

Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@32c6ab3f
sortmodified
showSpacefalse
reversetrue
typepage
labelskb-how-to-article
cqllabel = "kb-how-to-article" and type = "page" and space = "VSSPublic"