Skip to content

primecloud-controller-org/pcc-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcc-cli

Description

Command line interface for PrimeCloud Controller.

Requirement

pcc-cli works on Python 2.6, 2.7, 3.4 or 3.5.

In addition, need argparse library too.

Support PCC version

PrimeCloud Controller pcc-cli
2.8.0 1.2.0
2.7.0 1.1.0
2.6.0 1.0.0

Usage

$ 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]

Example

ListFarm API

Command

$ pcc list-farm

Output

{
    "Farms": {
        "Farm": {
            "Comment": "Example farm",
            "DomainName": "example.dev.primecloud-controller.org",
            "FarmName": "example",
            "FarmNo": "1"
        }
    },
    "SUCCESS": "true"
}

ListInstance API

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"
}

License

pcc-cli is released under version 2.0 of Apache License.

http://www.apache.org/licenses/LICENSE-2.0

About

Command line interface for PrimeCloud Controller.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages