This file is part of anc-api-tools.

anc-api-tools is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

anc-api-tools is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with anc-api-tools.  If not, see <http://www.gnu.org/licenses/>.

Atlantic.Net API Tools Readme

More information regarding Atlantic.Net's API and API tools can be found by visiting:
http://developer.atlantic.net/

Setting needed variables:

export ANC_HOME=/path/to/where/you/extracted/anc-api-tools/
export ANC_ACCESS_KEY_ID=/path/to/your/access_key_id/file
export ANC_PRIVATE_KEY=/path/to/your/private_key/file

General Usage:

anc-<function-name> parameter1=value1 parameter2=value2 parameter3=value3 ...

...where <funciton-name> is one of the functions listed below.

Available Functions:
anc-describe-image Format
anc-describe-instance Format InstanceId
anc-describe-plan Format
anc-list-instances Format
anc-reboot-instance Format InstanceId RebootType
anc-run-instance Format instancetype imageid servername server_qty
anc-terminate-instance Format InstanceId_1 InstanceId_2 InstanceId_N...

Available Parameters and Values:
Format=[rest|json] - output format in either REST or JSON
InstanceId=[Server ID] - The InstanceId is the Server ID number obtained from the Manage Your Cloud Server web page.
RebootType=[soft|hard] - soft sends an ACPI event to server for a graceful shut down. hard immediately powers server off.
imageid=[Image ID] - An imageid taken from the anc-describe-image function or 'all' to utilize all available images.
instancetype=[Plan] - Determines the plan. Either XXS, XS, S, M, L, XL, or XXL.
plan_name=[Plan] - Determines the plan. Either XXS, XS, S, M, L, XL, XXL, or all.
servername=[your-server-name] - A string of text that will describe your server and also sets the host name of your server.
server_qty=[amount] - The amount of servers requested to be provisioned.

Examples:
anc-describe-image Format=rest imageid=ubuntu-9.10_32bit
anc-describe-instance Format=rest InstanceId=3488
anc-describe-plan Format=json plan_name=XXL
anc-list-instances Format=json
anc-reboot-instance Format=rest InstanceId=688 RebootType=soft
anc-run-instance Format=rest instancetype=XXS imageid=ubuntu-9.10_32bit servername=test-server server_qty=2
anc-terminate-instance Format=rest InstanceId_1=3499 InstanceId_2=3500
