{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phala/json-schema/phala-port-mapping-response-schema.json",
  "title": "PortMappingResponse",
  "description": "Port mapping with server-assigned ID.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phala-cvms-network-config-api-openapi.yml#/components/schemas/PortMappingResponse",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^pm_.+",
      "format": "hashid",
      "title": "HashedId[cvm_port_mappings]",
      "description": "A hashed identifier that maps to an internal database ID"
    },
    "host_port": {
      "type": "integer",
      "title": "Host Port"
    },
    "vm_port": {
      "type": "integer",
      "title": "Vm Port"
    },
    "protocol": {
      "type": "string",
      "title": "Protocol"
    },
    "host_address": {
      "type": "string",
      "title": "Host Address"
    }
  },
  "type": "object",
  "required": [
    "id",
    "host_port",
    "vm_port",
    "protocol",
    "host_address"
  ]
}