0.1.0 • Published 6 years ago

scaleway-promised v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

Simple Promise based access to Scaleway API.

Based on scaleway by Manfred Touron.

Available API functions

  • ps: list servers
  • server_getById: needs ps to have been executed just before
  • server_create(data): creates a server with data as per below:
{
    organization: '12345678-1234-1234-1234-012345678901',
    name: 'server_name',
    image: 'image_id',
    commercial_type: 'VC1S || any availabale types -> see Scaleway CLI doc'
}
  • server_start(id, timeout)
  • server_stop(id, timeout)
  • server_remove(id)
  • server_inspect(id)
  • server_wait(id, state, timeout): wait for server to be in a specific state
  • image_inspect(id)
  • image_list()
  • image_getByName(name)

TODO

  • implement all missing functions