Name: flocker-rest-client
Owner: endlessm
Description: Flocker REST API Client in pure Python3 with no external dependencies
Created: 2016-08-22 14:18:24.0
Updated: 2016-08-22 14:18:25.0
Pushed: 2016-12-23 22:41:43.0
Size: 5
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Flexible Flocker REST API Client in pure Python3 with no external dependencies. The whole script runs from CLI and dynamically handles parameter parsing so that it can easily be modified and extended
CERT_DIR=. ./flocker_api.py create_volume --profile gold foo 5 some-uuid
CERT_DIR=. ./flocker_api.py list_volumes
CERT_DIR=. ./flocker_api.py delete_volume f400108c-2ae5-42fc-822e-f41b0680d0fd
Function:
_method
create_volume(self, name, size_in_gb, primary_id, profile = None):
tes a volume by attaching it to the specified node of the given size.
ile may be provided to specify IOPS.
turns into:
RT_DIR=. ./flocker_api.py -h
e: flocker_api.py [-h]
...
create_volume Creates a volume by attaching it to the specified node
of the given size. Profile may be provided to specify
IOPS. . See "create_volume -help" for more options
and
RT_DIR=. ./flocker_api.py create_volume
e: flocker_api.py create_volume [-h] [--profile PROFILE]
name size_in_gb primary_id
ker_api.py create_volume: error: the following arguments are required: name, size_in_gb, primary_id
LGPLv2