Skip to main content
PATCH
/
vm
/
{vm_id}
Update VM configuration
curl --request PATCH \
  --url https://api.cloud.onidel.com/vm/{vm_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "team_id": "96616865-475e-4191-aba5-f89f0a4b71fe",
  "os_id": 2,
  "enable_ipv6": false,
  "name": "new-service-name",
  "firewall_group_id": "e4d3c2b1-5678-9abc-def0-fedcba098765",
  "disable_firewall": false
}
'

Authorizations

Authorization
string
header
required

Provide the value as: Token <your-api-token>

Path Parameters

vm_id
string<uuid>
required

Service UUID that need to be considered for filter

Body

application/json
team_id
string<uuid>

Team ID that need to be considered for filter. Default team will be used if not provided.

Example:

"96616865-475e-4191-aba5-f89f0a4b71fe"

os_id
integer<int64>

OS Template to reinstall

Example:

2

enable_ipv6
boolean<boolean>

Enable or disable IPv6

Example:

false

name
string<string>

Change service name

Example:

"new-service-name"

firewall_group_id
string<uuid>

Firewall group UUID to attach to the VM

Example:

"e4d3c2b1-5678-9abc-def0-fedcba098765"

disable_firewall
boolean

Set to true to detach the firewall group from the VM

Example:

false

Response

Successful operation