Skip to main content

vCloud: tools for interacting with the vCloud API

Project description

A set of commandline utilities to aid working with the VMWare vCloud API.

At the moment, vcloudtools is pretty minimal, but there’s still enough here to be useful. In addition to a Python API client (vcloudtools.api.VCloudAPIClient), there’s a series of small command line utilities to help interact with vCloud Director’s HTTP API.

Installation

vcloudtools is available on the Python Package Index:

$ pip install vcloudtools

Usage

First, tell vcloudtools where your vCloud Director API is by adding an environment variable to your .bash_profile or similar:

$ echo "export VCLOUD_API_ROOT=https://vcd.example.com/api" >> ~/.bash_profile
$ exec $SHELL

Then, login to the VCD API:

$ eval `vcloud-login`

You can now use vcloudtools without further authentication hassles. So far, the available tools include vcloud-org:

$ vcloud-org list
$ vcloud-org show My-Org-Name

vcloud-org will emit JSON, which you can parse with jsontool or similar.

You can also manually browse the API with vcloud-browse:

$ vcloud-browse /session
$ vcloud-browse /org/7318a9a7-cc79-4f88-b8f8-ddddec6873f8

License

vcloudtools is released under the MIT license, a copy of which can be found in LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vcloudtools-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file vcloudtools-0.0.1.tar.gz.

File metadata

File hashes

Hashes for vcloudtools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 779f9941561e2e0c64e3a22f0a1b4b6a17751d2d8d6db1aa466ea4e38e3a4887
MD5 924ea5f8c4d5f8c0a1ee2cc553e979b4
BLAKE2b-256 7fa35ed8b7ad1b9879d0b1bc93b50ef84ca5c63e89dff9c2360ef4b01e8bc599

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page