Adding a host

POST /api/v1/host/add

      PARAMS
    token: user token,
    hostname: string,
    ip: sting,
    ssh_port: integer,
    user: string,
    (password: string)*optional

      RETURN
    hostname: string,
    ip: sting,
    ssh_port: integer,
    user: string,
    dist: string OS name,
    dist_ver: float OS version,
    arch: string architecture,
    pkg_manager: string,
    svc_manager: string,
    monit_password: string

Getting host details

GET /api/v1/host/:host

      PARAMS
    token: user token

      RETURN
    {
        hostname: string,
        ip: sting,
        ssh_port: integer,
        user: string,
        dist: string OS name,
        dist_ver: float OS version,
        arch: string architecture,
        pkg_manager: string,
        svc_manager: string,
        monit_password: string,
        vars:    {
                name: string var name,
                value: string var value
            }
    }

Updating host details

POST /api/v1/host/:host

      PARAMS
    token: user token,
    hostname: string new hostname,
    ip: sting new ip,
    ssh_port: integer new ssh_port,

      RETURN
    success: boolean value

Removing a host

DELETE /api/v1/host/:host

      PARAMS
    token: user token,
    revoke: boolean value (default: false)

      RETURN
    success: boolean value

Adding variables to a host

POST /api/v1/host/:host/var/add

      PARAMS
    token: user token,
    name: string new var name,
    value: sting new var value,

      RETURN
    success: boolean value

Remove variables from a host

DELETE /api/v1/host/:host/var/:name

      PARAMS
    “token”: user token

      RETURN
    success: boolean value