Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 759 Bytes

README.rst

File metadata and controls

34 lines (20 loc) · 759 Bytes

K2 Cloud API Client

Simple command-line utility for sending custom requests to K2 Cloud platform.

This is the bash version of c2-ec2 client.

Prerequisites

Download K2 cloud api credentials - doc.

Populate c2rc.sh with appropriate values.

Evaluate script: source <path_to_c2rc.sh>.

Usage

Common request syntax:

$ ./c2-ec2.sh <action> <arg1> <value1> <arg2> <value2>

Example

Send simple request:

$ ./c2-ec2.sh RunInstances ImageId cmi-078880A0 Description "Test instance" \
InstanceType m1.small MaxCount 1 MinCount 1 SecurityGroup.1 test