Command line interface for PrimeCloud Controller.
pcc-cli works on Python 2.6, 2.7, 3.4 or 3.5.
In addition, need argparse library too.
| PrimeCloud Controller | pcc-cli |
|---|---|
| 2.8.0 | 1.2.0 |
| 2.7.0 | 1.1.0 |
| 2.6.0 | 1.0.0 |
$ pcc [command] [options] --url https://hostname/auto-web/ --access-id XXXXXXXXXX --access-key YYYYYYYYYY
or
$ export PCC_URL=https://hostname/auto-web/
$ export PCC_ACCESS_ID=XXXXXXXXXX
$ export PCC_ACCESS_KEY=YYYYYYYYYY
$ pcc [command] [options]
Command
$ pcc list-farm
Output
{
"Farms": {
"Farm": {
"Comment": "Example farm",
"DomainName": "example.dev.primecloud-controller.org",
"FarmName": "example",
"FarmNo": "1"
}
},
"SUCCESS": "true"
}
Command
$ pcc list-instance --farm-no 1
Output
{
"Instances": {
"Instance": {
"Status": "STOPPED",
"InstanceNo": "1",
"Fqdn": "server1.example.dev.primecloud-controller.org",
"PrivateIp": "",
"PublicIp": "",
"InstanceName": "server1"
}
},
"SUCCESS": "true"
}
pcc-cli is released under version 2.0 of Apache License.