Skip to content

Releases: UpCloudLtd/upcloud-python-api

v0.4.2

22 Feb 04:22
Compare
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
Compare
Choose a tag to compare

CI fixes
Small bug fix

v0.3.9

16 Nov 15:09
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

v.0.3.3

08 Feb 12:20
Compare
Choose a tag to compare

Allow setting timeout via

manager = upcloud_api.CloudManager('username', 'password', timeout)

or

manager.timeout = timeout (although this should probably be avoided)

where timeout is an integer (seconds) or None (forever) or anything accepted by requests library as described here

v.0.3.2

30 Nov 07:47
Compare
Choose a tag to compare

Small update, adds functionality to manage preconfigured servers ("fixed plan", see upcloud.com/pricing/)

  • plan attribute for Server
  • Server.save() works even if the instance has not been populated from API

v0.3.1

20 Jul 12:36
Compare
Choose a tag to compare

Small update introducing Tags

  • Tag class and TagManager mixin for CloudManager
  • see upcloud_api/cloud_manager/tag_mixin.py and upcloud_api/tag.py