Bulk-replace all port mappings for this CVM. Writes to DB and applies to VMM.
cURL
curl --request PUT \ --url https://cloud-api.phala.com/api/v1/cvms/{cvm_id}/ports \ --header 'Content-Type: application/json' \ --data ' { "ports": [ { "vm_port": 32768, "protocol": "tcp" } ] } '
[ { "id": "<string>", "host_port": 123, "vm_port": 123, "protocol": "<string>", "host_address": "<string>" } ]
Bulk-replace all port mappings for a CVM.
Show child attributes
Updated port mappings
A hashed identifier that maps to an internal database ID
^pm_.+
"pm_0123abcd"
Was this page helpful?