A bash client for OVH API
 
 
Go to file
Antoine Leveugle 928178c732 Update README.md 2014-04-17 21:28:03 +02:00
.gitignore first commit 2014-04-17 19:53:28 +02:00
Makefile first commit 2014-04-17 19:53:28 +02:00
README.md Update README.md 2014-04-17 21:28:03 +02:00
ovhApiBashClient.sh improve help 2014-04-17 20:13:01 +02:00

README.md

ovhApiBashClient

A bash client for OVH API (https://api.ovh.com/)

Initialize

In order to create a new OVH API application, run:

    ./ovhApiBashClient.sh --initApp

Usage

To make a basic call on GET /me just run:

    ./ovhApiBashClient.sh

To retrieve your domain list, run:

    ./ovhApiBashClient.sh --url "/domain"

To activate the monitoring on your dedicated server, run:

    ./ovhApiBashClient.sh --method PUT --url "/dedicated/server/ns00000.ovh.net" --data '{"monitoring": true}'

Options

Possible arguments are:

    --url <url>         : the API URL to call, for example /domains (default is /me)
    --method <method>   : the HTTP method to use, for example POST (default is GET)
    --data <JSON data>  : the data body to send with the request
    --init              : to initialize the consumer key
    --initApp           : to initialize the API application