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
@@ -67,7 +67,7 @@ Besides creating your Elastic Metal servers from the graphical [Scaleway console
67
67
68
68
You will receive a JSON-formatted list of all operating systems available, and their associated ID. Take note of the ID of the image you want to install:
69
69
70
-
```
70
+
```json
71
71
{
72
72
"total_count": 8,
73
73
"os": [
@@ -88,7 +88,7 @@ Besides creating your Elastic Metal servers from the graphical [Scaleway console
88
88
4. Create the Elastic Metal server from the API using cURL and the `POST` command on the endpoint `/baremetal/v1/zones/fr-par-2/servers`:
89
89
90
90
The syntax to [create the server](https://www.scaleway.com/en/developers/api/elastic-metal/#path-servers-create-an-elastic-metal-server) is as follows:
91
-
```
91
+
```json
92
92
{
93
93
"offer_id": "<OFFER_ID>",
94
94
"project_id": "$SCW_SECRET_KEY",
@@ -109,14 +109,28 @@ Besides creating your Elastic Metal servers from the graphical [Scaleway console
109
109
110
110
In the following example, we create a server running on Ubuntu 20.04 LTS:
111
111
112
-
```
113
-
curl -X POST -H "X-Auth-Token: $SCW_KEY" -H "Content-Type: application/json" -d "{ \"offer_id\": \"7fde3890-9787-488c-ac89-c4e00a4e5f83\", \"project_id\": \"$SCW_PROJECT\", \"name\": \"my-bmaas\", \"description\": \"my server running on ubuntu\", \"tags\": [
Again, the API returns a JSON output informing you about the server creation:
118
132
119
-
```
133
+
```json
120
134
{
121
135
"id": "<SERVER_ID>",
122
136
"organization_id": "<ORGANIZATION_ID>",
@@ -146,7 +160,7 @@ Besides creating your Elastic Metal servers from the graphical [Scaleway console
146
160
}
147
161
```
148
162
5. The server is being delivered to your account and is automatically being installed on the operating system chosen. You can retrieve the status of the installation using the following API call:
0 commit comments