Skip to Content
Servers

Get commands to be executed on the given server

GET
/servers/{server_id}/commands

Path Parameters

server_id*integer

The ID of the server.

Range1 <= value

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
connect_command*string

The Shell Script command to be executed in an existing Linux server in order to connect it to the devopness

Example Request
curl -X GET 'https://api.devopness.com/servers/123/commands' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response
{  "connect_command": "echo '# devopness:' | ..."}