项目作者: ButrintKomoni

项目描述 :
DigitalOcean API Controller
高级语言: Python
项目地址: git://github.com/ButrintKomoni/digidroplet-controller.git
创建时间: 2020-02-13T16:14:16Z
项目社区:https://github.com/ButrintKomoni/digidroplet-controller

开源协议:

下载


digidroplet-controller

DigitalOcean API Controller

Installing dependencies

You can install the required dependecies using pip

  1. pip3 install -r requirements.txt

Configuration

Put the API key created from DigitalOcean to the token param on the conf.cfg file

  1. [auth]
  2. token = 79tiw3gimvg9t9sspe2pj9vd74dxk9lspoftwhct0m7uk4yzqa6r447smrid9lsp

Usage

Get the current status of the droplets running using the —status argument

  1. 17:31:06 butrint@void.local droplet-api master python3 digidroplet.py --status
  2. DROPLET: void.international, STATUS:ACTIVE, IP:x.x.x.x, REGION: NYC1, DIST: debian-x64

TODO

Create the

  1. - shutdown function
  2. - add ssh keys function
  3. - add domain to network function
  4. - restart function
  5. - drop
  6. - run the droplet function