TCP mappings

Create a TCP port forward

post/spaces/{spaceId}/cubes/{cubeId}/tcp-mappings

Request

  • Base URL: https://krova.cloud/api/v1
  • URL: https://krova.cloud/api/v1/spaces/{spaceId}/cubes/{cubeId}/tcp-mappings
  • Auth: API key in header X-API-KEY

Path parameters

spaceIdstring required
cubeIdstring required

Headers

Idempotency-Keystring

Optional unique key (max 255 chars). Replays return the original response and add header Idempotency-Replayed: true. Scoped per space; expires after 24h.

Request body

cubePortinteger required
labelstring

Optional human label for the mapping.

whitelistedIpsstring[]

IPs/CIDRs allowed to reach the published port. Omit or send an empty array to leave the port open to the internet.

whitelistIpsstring[]

DEPRECATED alias for whitelistedIps, accepted for backwards compatibility. whitelistedIps wins if both are sent. Use whitelistedIps in new code.

udpEnabledboolean

Also forward UDP on this port. Defaults to true. Always false for the platform SSH mapping. The allowlist, if you send one, applies to both protocols.

Response

Mapping created

Changes

No recorded changes to this operation across all 1 revision of this API.