Skip to Content
Xeonr Developer Docs
API SpecificationManaged names

Create Managed Port Lease

POST
/xeonr.burrow.v1.ManagedReservationService/CreateManagedPortLease

Takes a port from Burrow's shared TCP/UDP pool and pins it to a TCP or UDP name the calling product manages, for as long as the name exists: the stable (host, port, protocol) a workload is given, which survives the workload's restarts and its agent's reconnects. An agent serving the name — with the name's agent credential — is always given this port. The lease records the product as managed_by.

Idempotent: a name that already holds a port answers with that port. failed_precondition for an HTTP name, resource_exhausted when every port in the pool is held.

The port goes back to the pool when the name is released, by the product or by a team admin, or with DeleteManagedPortLease.

Delegated tokens only. The person needs the editor role.

Required scopes: burrow:managed:edit

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

team?string
Lengthlength <= 128
reservation?string

Reservation is the managed TCP or UDP name the port is pinned to, by id or name.

Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://burrow.prod.wtf/xeonr.burrow.v1.ManagedReservationService/CreateManagedPortLease" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "lease": "map[managedBy:hacloud name:ha-7f3c2a pinned:true port:20017 subject:urn:xeonr:auth:uid:user:3 target:udp:8123 team:urn:xeonr:auth:team:0f3c9a2e-8f1b-4c2d-9e6a-1b2c3d4e5f60]",
  "url": "udp://udp.brw.xnr.app:20017"
}