Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.67 KB

Readme.md

File metadata and controls

53 lines (43 loc) · 1.67 KB

Table of contents

Description

Python based clients

  • Image client to trigger Image Service REST commands.

Installation

https://github.com/RENCI-NRIG/exoimageservice.git
cd exoimageservice/python/

You are now ready execute python client.

Pre-requisites: requires python 3 or above version and python requests package installed

Image Client

Image client to trigger Image Service REST commands.

Usage

usage: python3 image_client.py -h
usage: image_client.py [-h] -p PROJECT [-e EXOIMAGEHOST] -u USER -w PASSWORD
                       -i IMAGEID -f FILE

Python client to download images.

optional arguments:
  -h, --help            show this help message and exit
  -p PROJECT, --project PROJECT
                        Openstack Project Name maps to
  -e EXOIMAGEHOST, --exoimageHost EXOIMAGEHOST
                        Exo Image Service Host e.g. http://localhost:8222/
  -u USER, --user USER  User Name
  -w PASSWORD, --password PASSWORD
                        password
  -i IMAGEID, --imageId IMAGEID
                        imageId
  -f FILE, --file FILE  file

Image Client Examples

Download an image

python3.6 image_client.py -e http://rocky-hn.exogeni.net:8222 -p tenant-Komal-V8J7MLMuwx -u owner-Komal-V8J7MLMuwx -w YMJhJ0xSlN -i a647c421-7c57-4b7f-ad23-66fe7594569c -f ./myimage.qcow2