diff --git a/README.md b/README.md index 780be7c..e4c6618 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ client = Client(token="{YOUR_API_TOKEN}") # Please paste your API token here # Create a server named my-server response = client.servers.create( name="my-server", - server_type=ServerType(name="cx11"), + server_type=ServerType(name="cx22"), image=Image(name="ubuntu-22.04"), ) server = response.server diff --git a/examples/create_server.py b/examples/create_server.py index ce832d7..81266ca 100644 --- a/examples/create_server.py +++ b/examples/create_server.py @@ -15,8 +15,8 @@ response = client.servers.create( name="my-server", - server_type=ServerType(name="cx11"), - image=Image(name="ubuntu-20.04"), + server_type=ServerType(name="cx22"), + image=Image(name="ubuntu-24.04"), ) server = response.server print(server) diff --git a/examples/get_server_metrics.py b/examples/get_server_metrics.py index cf91eae..16b961c 100644 --- a/examples/get_server_metrics.py +++ b/examples/get_server_metrics.py @@ -19,8 +19,8 @@ if server is None: response = client.servers.create( name="my-server", - server_type=ServerType("cx11"), - image=Image(name="ubuntu-22.04"), + server_type=ServerType(name="cx22"), + image=Image(name="ubuntu-24.04"), ) server = response.server diff --git a/examples/usage_oop.py b/examples/usage_oop.py index 0a867cf..8749da4 100644 --- a/examples/usage_oop.py +++ b/examples/usage_oop.py @@ -17,11 +17,11 @@ # Create 2 servers # Create 2 servers response1 = client.servers.create( - "Server1", server_type=ServerType(name="cx11"), image=Image(id=4711) + "Server1", server_type=ServerType(name="cx22"), image=Image(id=4711) ) response2 = client.servers.create( - "Server2", server_type=ServerType(name="cx11"), image=Image(id=4711) + "Server2", server_type=ServerType(name="cx22"), image=Image(id=4711) ) # Get all servers server1 = response1.server diff --git a/examples/usage_procedurale.py b/examples/usage_procedurale.py index 8e901e6..228f682 100644 --- a/examples/usage_procedurale.py +++ b/examples/usage_procedurale.py @@ -17,11 +17,11 @@ # Create 2 servers response1 = client.servers.create( - name="Server1", server_type=ServerType(name="cx11"), image=Image(id=4711) + name="Server1", server_type=ServerType(name="cx22"), image=Image(id=4711) ) response2 = client.servers.create( - "Server2", server_type=ServerType(name="cx11"), image=Image(id=4711) + "Server2", server_type=ServerType(name="cx22"), image=Image(id=4711) ) server1 = response1.server @@ -64,7 +64,7 @@ # Create one more server and attach 2 volumes to it client.servers.create( "Server3", - server_type=ServerType(name="cx11"), + server_type=ServerType(name="cx22"), image=Image(id=4711), volumes=[Volume(id=221), Volume(id=222)], )