theapsgroup / steampipe-plugin-vsphere

Use SQL to instantly query vSphere VMs, networks and more. Open source CLI. No DB required.

Home Page:https://hub.steampipe.io/plugins/theapsgroup/vsphere

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

vSphere plugin for Steampipe

Use SQL to query information about your vSphere resources.

Quick start

Install the plugin with Steampipe:

steampipe plugin install theapsgroup/vsphere

Configure the plugin using the configuration file:

vi ~/.steampipe/vsphere.spc

Or environment variables:

export VSPHERE_SERVER=10.20.30.40
export VSPHERE_USER=bob
export VSPHERE_PASSWORD=s0m3p@ss

Start Steampipe:

steampipe query

Run a query:

select
  name,
  num_cpu,
  ip_address
from
  vsphere_vm;

Developing

Prerequisites:

Clone:

git clone https://github.com/theapsgroup/steampipe-plugin-vsphere.git
cd steampipe-plugin-vsphere

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/vsphere.spc

Try it!

steampipe query
> .inspect vsphere

Further reading:

Contributing

All contributions are subject to the Apache 2.0 open source license.

Credits

A Go library for interacting with VMware vSphere APIs govmomi (licensed separately using this Apache License)

About

Use SQL to instantly query vSphere VMs, networks and more. Open source CLI. No DB required.

https://hub.steampipe.io/plugins/theapsgroup/vsphere

License:Apache License 2.0


Languages

Language:Go 96.4%Language:PLSQL 3.0%Language:Makefile 0.7%