The Fogbow CLI is a command line interface for the Fogbow Resource Allocation Service (RAS), the Membership Service (MS) and the Federated Network Service. Through the Fogbow CLI, users are able to get information about federation members, create, retrieve and delete compute instances, private and federated networks, storage volumes, etc.
apt-get install maven
apt-get install openjdk-8-jdk
Download it from our repository and then install it with maven.
wget https://github.com/fogbow/fogbow-cli.git
Now, install it with Maven:
cd fogbow-cli
mvn install -Dmaven.test.skip=true
You can use the executable located in the bin
folder to use Fogbow-CLI:
./bin/fogbow-cli [command] [command options]
Obs.: You will notice that most commands specify a --url
option. This is the URL where the service you are trying to reach is deployed.
Create a new user token.
Note: to pass the credentials it is necessary the use of dynamic parameters; follow the example with the OpenStack credentials:
--create (required)
--url (required)
Dynamic parameters (Syntax: -Dkey=value):
-Dprojectname= (required): dynamic parameter
-Dpassword= (required): dynamic parameter
-Dusername= (required): dynamic parameter
-Ddomain= (required): dynamic parameter
Get the ids of all federation members.
--get-all (required)
--url (required)
--get-all (required)
--url (required)
--url (required)
--get (required)
--member-id (required)
Get detailed information about a single image.
--get (required)
--url (required)
--system-user-token (required)
--member-id (required)
--id (required)
Get ids of all images.
--get-all (required)
--url (required)
--system-user-token (required)
--member-id (required)
--create
--system-user-token or --system-user-token-path (required)
--url
--provider
--volumeId
--computeId
--device
--delete
--url (required)
--system-user-token or --system-user-token-path (required)
--id
Get informationabout a specific instance.
--get (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--id
Get status for all instances orders associated to a particular user's token.
--get-all (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--create
--system-user-token or --system-user-token-path (required)
--url
--provider
--public-key
--image-id
--vcpu
--memory
--disk
--fednet-id
--delete
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get-all (required)
--url (required)
--system-user-token (required)
--get-all (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--get-allocation (required)
--member-id (required)
--cloud-name (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--get-quota (required)
--member-id (required)
--cloud-name (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--create
--system-user-token or --system-user-token-path
--url
--cidrNotation
--name
--allowed-members
--delete
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get-all (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--create
--system-user-token or --system-user-token-path
--url
--provider
--gateway
--cidr
--allocationMode
--delete
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get-all (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--create
--system-user-token or --system-user-token-path
--url
--provider
--volume-size
--name
--delete
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--id
--get-all (required)
--url (required)
--system-user-token or --system-user-token-path (required)
--create
--url (required)
--system-user-token or --system-user-token-path (required)
--provider
--compute-id (required)
--name
--delete
--url (required)
--system-user-token or --system-user-token-path (required)
--id (required)
--get
--url (required)
--id (required)
--system-user-token or --system-user-token-path (required)
--get-all
--url (required)
--system-user-token or --system-user-token-path (required)
--create
--public-ip-id or --network-id (required)
--direction
--portFrom
--portTo
--cidr
--etherType
--protocol
--delete
--id