Skip to content

Releases: UpCloudLtd/upcloud-python-api

v0.4.6

28 Aug 10:51

Choose a tag to compare

  • Support for new templates: CentOS 8.0 and Ubuntu 20.04
  • Removed obsolete templates
  • Added US-NYC1 zone constant

v0.4.5

03 Dec 07:56

Choose a tag to compare

Template updates.

v0.4.3

03 Dec 11:38
4e87329

Choose a tag to compare

Python 3.3 deprecated
Zone San Jose added
Template Ubuntu 18.04 added

v0.4.2

22 Feb 04:22

Choose a tag to compare

Added missing zones and missing templates.

Also removed old template windows 2008, which is not supported any more.

v0.4.1

02 Feb 11:47

Choose a tag to compare

CI fixes
Small bug fix

v0.3.9

16 Nov 15:09

Choose a tag to compare

Note: 0.3.8 was never released at pip / github releases.

manager.create_server(
    Server(
        core_number=2,
        memory_amount=1024,
        hostname='my.example.com',
        zone=ZONE.Frankfurt,
        storage_devices=[
            Storage(uuid=UUID, size=10),  # we also support Storage(storage=UUID, size=10)
        ],
    )
)

v0.3.7

04 Aug 12:16

Choose a tag to compare

  • support for Server.user_data
  • improve Server.stop_and_destroy
    • automatically populates server data from api unless sync=False param is given
    • wraps stop and destroy operations in an error handling loop that tries the operations several times in case of API errors related to the resource being in "maintenance" state (servers sometimes go to "maintenance" state when destroying several servers in a row)

v0.3.6

18 Jul 16:30

Choose a tag to compare

  • remove future dependency
  • loosely declare dependencies (six and requests) with >=
  • improve Server.stop_and_destroy to be more stable
  • add Circle-CI integration tests (more work needed though)
  • add flake8 and improve code style

v0.3.5

01 Jul 09:25

Choose a tag to compare

Bugfix: allow new Firewall attributes, add comment attribute default

The above fix is necessary for upcloud's firewall ansible module to work.

v.0.3.4

21 Jun 09:25

Choose a tag to compare

Support avoid_host and login_user features of UpCloud's Servers API.

from upcloud_api.server import Server, login_user_block

Server.avoid_host = <host_id>
Server.login_user = login_user_block(username : String, ssh_keys : List[String], create_password : Bool)

Note: username is optional (defaults to root in API)

Improve Server.get_public_ip(self, addr_family='IPv4', strict=False)

ec16d0c