Skip to main content
PUT
Set port mappings

Path Parameters

cvm_id
string
required

Body

application/json

Bulk-replace all port mappings for a CVM.

ports
PortMappingEntry · object[]
required

Response

Updated port mappings

id
string<hashid>
required

A hashed identifier that maps to an internal database ID

Pattern: ^pm_.+
Example:

"pm_0123abcd"

host_port
integer
required
vm_port
integer
required
protocol
string
required
host_address
string
required