Skip to Content
Xeonr Developer Docs

EnsureReservation

POST
/xeonr.burrow.v1.ManagedProvisioningService/EnsureReservation

EnsureReservation creates or returns the immutable identity of one product-owned allocation. Retries with the same request_id and body are idempotent; reuse with a different body is rejected.

Authorization

BearerAuth
AuthorizationBearer <token>

A Xeonr Auth access token whose audience is this API, or a team API key (xk_…), presented as Authorization: Bearer ….

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

teamUrn?string
Length1 <= length <= 128
externalId?string
Length1 <= length <= 192
requestId?string
Length1 <= length <= 128
namespaceRef?string
Length1 <= length <= 192
bindingRevision?|
Formatint64
Range0 < value
name?string
Length1 <= length <= 63
protocol?string

Protocol is exactly "tcp" or "udp". No implicit HTTP fallback.

Value in"tcp" | "udp"
targetPort?integer
Range0 < value <= 65535
policy?string
Lengthlength <= 16384
captureMode?string

CaptureMode decides how much of a request through a tunnel is kept in the history.

Value in"CAPTURE_MODE_UNSPECIFIED" | "CAPTURE_MODE_FULL" | "CAPTURE_MODE_METADATA" | "CAPTURE_MODE_OFF"
retentionDays?integer
Rangevalue <= 365
operationUrn?string
Lengthlength <= 192
transportGroupId?string
Lengthlength <= 192
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://burrow.prod.wtf/xeonr.burrow.v1.ManagedProvisioningService/EnsureReservation" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "reservation": {
    "id": "5b2d7c1e-9a4f-4e3b-8c6d-2f1a0b9e7d34",
    "name": "checkout",
    "team": "urn:xeonr:auth:team:0f3c9a2e-8f1b-4c2d-9e6a-1b2c3d4e5f60",
    "createdBy": "urn:xeonr:auth:uid:user:3",
    "protocol": "PROTOCOL_HTTP",
    "targetPort": "3000",
    "tcpPort": "20431",
    "policy": "{\"routes\":[{\"match\":\"POST /webhooks/*\",\"allow\":[{\"kind\":\"public\"}]},{\"match\":\"/*\",\"allow\":[{\"kind\":\"team\"}]}]}",
    "retentionDays": "30",
    "captureMode": "CAPTURE_MODE_FULL",
    "createdAt": "2026-09-14T11:02:00Z",
    "updatedAt": "2026-10-22T09:30:00Z",
    "managedBy": "hacloud"
  },
  "revision": 0,
  "created": true
}