vcloud-walker
所属分类:操作系统开发
开发工具:Ruby
文件大小:40KB
下载次数:0
上传日期:2018-03-05 12:48:55
上 传 者:
sh-1993
说明: 用于描述VMware vCloud控制器实体的命令行工具
(Command line tool to describe VMware vCloud Director entities)
文件列表:
.travis.yml (96, 2017-06-26)
CHANGELOG.md (2612, 2017-06-26)
CONTRIBUTING.md (3364, 2017-06-26)
Gemfile (372, 2017-06-26)
Jenkinsfile (847, 2017-06-26)
LICENSE (1092, 2017-06-26)
Rakefile (689, 2017-06-26)
bin (0, 2017-06-26)
bin\vcloud-walk (80, 2017-06-26)
docs (0, 2017-06-26)
docs\examples (0, 2017-06-26)
docs\examples\catalogs.json (1761, 2017-06-26)
docs\examples\edgegateways.json (13932, 2017-06-26)
docs\examples\networks.json (1479, 2017-06-26)
docs\examples\vdcs.json (9336, 2017-06-26)
jenkins.sh (95, 2017-06-26)
jenkins_tests.sh (597, 2017-06-26)
lib (0, 2017-06-26)
lib\vcloud (0, 2017-06-26)
lib\vcloud\walker.rb (616, 2017-06-26)
lib\vcloud\walker (0, 2017-06-26)
lib\vcloud\walker\cli.rb (1854, 2017-06-26)
lib\vcloud\walker\fog_interface.rb (1193, 2017-06-26)
lib\vcloud\walker\resource.rb (429, 2017-06-26)
lib\vcloud\walker\resource (0, 2017-06-26)
lib\vcloud\walker\resource\catalog.rb (624, 2017-06-26)
lib\vcloud\walker\resource\catalog_item.rb (659, 2017-06-26)
lib\vcloud\walker\resource\collection.rb (225, 2017-06-26)
lib\vcloud\walker\resource\entity.rb (615, 2017-06-26)
** (1964, 2017-06-26)
lib\vcloud\walker\resource\network.rb (959, 2017-06-26)
lib\vcloud\walker\resource\organization.rb (1324, 2017-06-26)
lib\vcloud\walker\resource\vapp.rb (2018, 2017-06-26)
lib\vcloud\walker\resource\vdc.rb (786, 2017-06-26)
lib\vcloud\walker\resource\vm.rb (3398, 2017-06-26)
lib\vcloud\walker\vcloud_session.rb (153, 2017-06-26)
lib\vcloud\walker\version.rb (62, 2017-06-26)
... ...
# VCloud Walker
Vcloud-walker is a command line tool, to describe different VMware vCloud
Director 5.1 entities. It uses Fog under the hood.
## Installation
Add this line to your application's Gemfile:
gem 'vcloud-walker'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vcloud-walker
## Usage
To find usage, run `vcloud-walk`.
You can perform following operations with walker.
#### Walk vdcs:
vcloud-walk vdcs
describes all vdcs within given organization. This includes vapp, vm and network
information.
#### Walk catalogs:
vcloud-walk catalogs
describes all catalogs and catalog items within given organization.
#### Walk organization networks:
vcloud-walk networks
describes all organization networks.
#### Walk edgegateways:
vcloud-walk edgegateways
describes all edgegateway for given organization. Each edgegateway includes
configuration for firewall, load balancer and nat services.
#### Walk entire organization:
vcloud-walk organization
describes the entire organization, which includes edgegateway, catalogs,
networks and vdcs within an organization.
## Credentials
Please see the [vcloud-tools usage documentation](http://gds-operations.github.io/vcloud-tools/usage/).
### Output
Walker can output data in JSON or YAML format. The default output format is JSON.
You can use command line option ```--yaml``` for yaml output.
Find sample json output in docs/examples directory.
## The vCloud API
vCloud Tools currently use version 5.1 of the [vCloud API](http://pubs.vmware.com/vcd-51/index.jsp?topic=%2Fcom.vmware.vcloud.api.doc_51%2FGUID-F4BF9D5D-EF66-4D36-A6EB-2086703F6E37.html). Version 5.5 may work but is not currently supported. You should be able to access the 5.1 API in a 5.5 environment, and this *is* currently supported.
The default version is defined in [Fog](https://github.com/fog/fog/blob/244a049918604eadbcebd3a8eaaf433424fe4617/lib/fog/vcloud_director/compute.rb#L32).
If you want to be sure you are pinning to 5.1, or use 5.5, you can set the API version to use in your fog file, e.g.
`vcloud_director_api_version: 5.1`
## Debugging
`export EXCON_DEBUG=true` - this will print out the API requests and responses.
`export DEBUG=true` - this will show you the stack trace when there is an exception instead of just the message.
## Testing
Run the default suite of tests (e.g. lint, unit, features):
bundle exec rake
There are also integration tests. These are slower and require a real environment.
See the [vCloud Tools website](http://gds-operations.github.io/vcloud-tools/testing/) for details of how to set up and run the integration tests.
## Contributing
Please see [CONTRIBUTING.md](/CONTRIBUTING.md).
近期下载者:
相关文件:
收藏者: