Adopt a server (WIPE-gated)
const url = 'https://example.com/api/v1/teams/example/connections/example/adopted-servers/';const options = { method: 'POST', headers: {cookie: 'sessionid=<sessionid>', 'Content-Type': 'application/json'}, body: '{"spec":{"serverID":1,"serverType":"example","location":"example","architecture":"amd64","serverKind":"cloud"},"acknowledge":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/teams/example/connections/example/adopted-servers/ \ --header 'Content-Type: application/json' \ --cookie sessionid=<sessionid> \ --data '{ "spec": { "serverID": 1, "serverType": "example", "location": "example", "architecture": "amd64", "serverKind": "cloud" }, "acknowledge": { "additionalProperty": "example" } }'/api/v1/teams/{team}/connections/{ref}/adopted-servers (docs/58 §3.8). DELETE deregisters;
the grandfathered box is never deleted (P8).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”POST body to adopt a server (docs/58 §5.6c) — the typed WIPE ack is required (the OS is rebuilt, destroying data).
object
object
amd64- amd64arm64- arm64
object
POST body to adopt a server (docs/58 §5.6c) — the typed WIPE ack is required (the OS is rebuilt, destroying data).
object
object
amd64- amd64arm64- arm64
object
POST body to adopt a server (docs/58 §5.6c) — the typed WIPE ack is required (the OS is rebuilt, destroying data).
object
object
amd64- amd64arm64- arm64
object
Responses
Section titled “ Responses ”An AdoptedServer resource (docs/58 §3.8).
object
object
object
object
Example generated
{ "apiVersion": "example", "kind": "example", "metadata": { "additionalProperty": "example" }, "spec": { "additionalProperty": "example" }, "status": { "additionalProperty": "example" }}RFC 7807 problem document
RFC 7807 application/problem+json — every non-2xx response (docs/58 §5.10).
object
Stable machine code clients switch on
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "instance": "example", "operationId": "example"}RFC 7807 problem document
RFC 7807 application/problem+json — every non-2xx response (docs/58 §5.10).
object
Stable machine code clients switch on
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "instance": "example", "operationId": "example"}