Releases: UpCloudLtd/upcloud-python-api
Releases · UpCloudLtd/upcloud-python-api
v0.4.2
v0.4.1
v0.3.9
Note: 0.3.8 was never released at pip / github releases.
- numerous improvements from the
0.4.0
branch #29 - support for creating a server from template
https://www.upcloud.com/api/8-servers/#creating-from-a-template
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
- 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)
- automatically populates server data from api unless
v0.3.6
v0.3.5
v.0.3.4
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
)