Skip to content

Commit b92dc3d

Browse files
committed
1 parent 2a32706 commit b92dc3d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ client = Client(token="{YOUR_API_TOKEN}") # Please paste your API token here
3232
# Create a server named my-server
3333
response = client.servers.create(
3434
name="my-server",
35-
server_type=ServerType(name="cx11"),
35+
server_type=ServerType(name="cx22"),
3636
image=Image(name="ubuntu-22.04"),
3737
)
3838
server = response.server

examples/create_server.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
response = client.servers.create(
1717
name="my-server",
18-
server_type=ServerType(name="cx11"),
19-
image=Image(name="ubuntu-20.04"),
18+
server_type=ServerType(name="cx22"),
19+
image=Image(name="ubuntu-24.04"),
2020
)
2121
server = response.server
2222
print(server)

examples/get_server_metrics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
if server is None:
2020
response = client.servers.create(
2121
name="my-server",
22-
server_type=ServerType("cx11"),
23-
image=Image(name="ubuntu-22.04"),
22+
server_type=ServerType(name="cx22"),
23+
image=Image(name="ubuntu-24.04"),
2424
)
2525
server = response.server
2626

examples/usage_oop.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
# Create 2 servers
1818
# Create 2 servers
1919
response1 = client.servers.create(
20-
"Server1", server_type=ServerType(name="cx11"), image=Image(id=4711)
20+
"Server1", server_type=ServerType(name="cx22"), image=Image(id=4711)
2121
)
2222

2323
response2 = client.servers.create(
24-
"Server2", server_type=ServerType(name="cx11"), image=Image(id=4711)
24+
"Server2", server_type=ServerType(name="cx22"), image=Image(id=4711)
2525
)
2626
# Get all servers
2727
server1 = response1.server

examples/usage_procedurale.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
# Create 2 servers
1919
response1 = client.servers.create(
20-
name="Server1", server_type=ServerType(name="cx11"), image=Image(id=4711)
20+
name="Server1", server_type=ServerType(name="cx22"), image=Image(id=4711)
2121
)
2222

2323
response2 = client.servers.create(
24-
"Server2", server_type=ServerType(name="cx11"), image=Image(id=4711)
24+
"Server2", server_type=ServerType(name="cx22"), image=Image(id=4711)
2525
)
2626

2727
server1 = response1.server
@@ -64,7 +64,7 @@
6464
# Create one more server and attach 2 volumes to it
6565
client.servers.create(
6666
"Server3",
67-
server_type=ServerType(name="cx11"),
67+
server_type=ServerType(name="cx22"),
6868
image=Image(id=4711),
6969
volumes=[Volume(id=221), Volume(id=222)],
7070
)

0 commit comments

Comments
 (0)