Skip to Content
Servers

Update an existing server

PUT
/servers/{server_id}

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

Request Body

A JSON object containing the resource data

application/json
  1. body
id*integer

The unique ID of the given Server.

ip_address?string

Public ipv4 address for server access.

ssh_port?integer

The network port to which the SSH daemon is listening to SSH connections on the server. Must be between 22 and 65535.

max_parallel_actions?integer

Maximum number of actions that can run in parallel on this server. 0 means no limit of simultaneous actions. 1 means just a single action will be started at a time to run on this server. Must be between 0 and 10.

credential_id?string

The ID of the cloud credential.

Response Body

No Content

Example Request
curl -X PUT 'https://api.devopness.com/servers/123' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "id": 1}'
Example Response
Empty