You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OOP-based api client for [UpCloud's API](https://developers.upcloud.com/1.3/). Features most of the API's functionality and some convenience functions that combine several API endpoints and logic.
5
9
6
10
Please test all of your use cases thoroughly before actual production use. Using a separate UpCloud account for testing / developing the client is recommended.
7
11
8
12
## Installation
9
13
10
-
```
14
+
```bash
11
15
pip install upcloud-api
12
16
```
13
17
14
18
Alternatively, if you want the newest master or a devel branch - clone the project and run:
15
-
```
19
+
20
+
```bash
16
21
python setup.py install
17
22
```
18
23
19
-
### Supported Python
24
+
### Supported Python in API v2.0.0
25
+
26
+
- Python 3.6
27
+
- Python 3.7
28
+
- Python 3.8
29
+
- Python 3.9
30
+
- PyPy3
31
+
32
+
**We don't recommend using Python 2:**
33
+
34
+
- Python 2.7 is supported in API < v2.0.0
20
35
21
-
* Python 3.6
22
-
* Python 3.7
23
-
* Python 3.8
24
-
* Python 3.9
25
-
* PyPy3
36
+
## Changelog
26
37
27
-
**Changelog:**
28
-
* See the [Releases page](https://github.com/UpCloudLtd/upcloud-python-api/releases)
38
+
- See the [Releases page](https://github.com/UpCloudLtd/upcloud-python-api/releases)
29
39
30
-
## Examples
40
+
## Usage
31
41
32
42
Note that the API finishes the request before the server is shutdown. Poll the server details to monitor server status.
33
43
You must take this into account in your automations.
@@ -56,9 +66,10 @@ cluster = {
56
66
hostname='web1.example.com',
57
67
zone='uk-lon1', # All available zones with ids can be retrieved by using manager.get_zones()
58
68
storage_devices=[
59
-
# OS: 01000000-0000-4000-8000-000030060200, all available os templates can be retrieved by calling manager.get_templates()
69
+
# OS: 01000000-0000-4000-8000-000030200200, all available os templates can be retrieved by calling manager.get_templates()
70
+
# Note: the storage os template uuid:s will change when OS is updated. So check that the UUID is correct
60
71
# default tier: maxIOPS, the 100k IOPS storage backend
0 commit comments