v1

latestOpenAPI 3.1.02026-07-26102158206.8 KB
CVMs
cvms-network-config

Set port mappings

Bulk-replace all port mappings for this CVM. Writes to DB and applies to VMM.

put/api/v1/cvms/{cvm_id}/ports

Path parameters

cvm_idstring required

Request body

Response

Updated port mappings

idstring hashid required

A hashed identifier that maps to an internal database ID

host_portinteger required
vm_portinteger required
protocolstring required
host_addressstring required

Example response

[
  {
    "id": "pm_0123abcd"
  }
]