Skip to main content
GET
/
api
/
v1
/
cvms
/
{cvm_id}
/
ports
Get port mappings
curl --request GET \
  --url https://cloud-api.phala.com/api/v1/cvms/{cvm_id}/ports
[
  {
    "id": "<string>",
    "host_port": 123,
    "vm_port": 123,
    "protocol": "<string>",
    "host_address": "<string>"
  }
]

Path Parameters

cvm_id
string
required

Response

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