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
Please note that the server might not be stopped/started/restarted immediately when the API responds. The `.populate()` method updates the object's fields from the API and is thus useful for checking `server.state`.
25
25
26
26
```
27
-
Server states:
27
+
Server states:
28
28
"started","stopped" -- server is shut down or running
29
29
"maintenance" -- when shutting down or (re)starting
30
30
"error" -- erronous state in UpCloud's backend
@@ -50,10 +50,10 @@ Creation of servers in the API is handled by the CloudManager. It accepts a Serv
50
50
```python
51
51
52
52
server = Server(
53
-
core_number=1,
54
-
memory_amount=512,
55
-
hostname="web1.example.com",
56
-
zone=ZONE.London,
53
+
core_number=1,
54
+
memory_amount=512,
55
+
hostname="web1.example.com",
56
+
zone=ZONE.London,
57
57
storage_devices= [
58
58
Storage(os="Ubuntu 14.04", size=10),
59
59
Storage(size=10, tier="hdd")
@@ -66,11 +66,11 @@ manager.create_server( server )
66
66
Currently available Storage operating systems are the following UpCloud public templates:
67
67
68
68
```python
69
-
#upcloud/tools.py
69
+
#upcloud_api/tools.py
70
70
71
71
Operating Systems:
72
-
"CentOS 6.5", "CentOS 7.0",
73
-
"Debian 7.8", "Ubuntu 12.04", "Ubuntu 14.04",
72
+
"CentOS 6.5", "CentOS 7.0",
73
+
"Debian 7.8", "Ubuntu 12.04", "Ubuntu 14.04",
74
74
"Windows 2003", "Windows 2008", "Windows 2012"
75
75
76
76
```
@@ -93,11 +93,11 @@ server.save()
93
93
94
94
```
95
95
96
-
The following fields of Server instance may be updated, all other fields are read-only. Trying to assign values to other fields leads to an error.
97
-
96
+
The following fields of Server instance may be updated, all other fields are read-only. Trying to assign values to other fields leads to an error.
Only the size and title of a storage can be updated. Please note that size can not be reduced and that OS level actions are required to account for the increased size.
66
+
Only the size and title of a storage can be updated. Please note that size can not be reduced and that OS level actions are required to account for the increased size.
67
67
68
68
```python
69
69
@@ -80,4 +80,4 @@ Warning: data loss is permanent.
0 commit comments