Create Managed Port Lease
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 A Xeonr Auth access token whose audience is this API, or a team API
key (xk_…), presented as Authorization: Bearer ….
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
length <= 128Reservation is the managed TCP or UDP name the port is pinned to, by id or name.
1 <= length <= 128Response 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"
}Create Managed Domain POST
Registers a hostname against a name the calling product manages and returns the TXT and CNAME records to add. Nothing is served until VerifyManagedDomain succeeds. The domain is managed by the same product. Delegated tokens only. The person needs the editor role: proof of control is the TXT record, and the domain can only point at the product's own name. **Required scopes:** `burrow:managed:edit`
Create Managed Reservation POST
Reserves a hostname label in the team, managed by the calling product, and optionally registers a custom domain against it in the same call. Labels are globally unique and lower-cased on the way in; a taken name is `already_exists`. Not counted against the team's reserved-name quota. Capture mode defaults to full, as everywhere else; a product that should not keep bodies sets `metadata` or `off` here. Delegated tokens only, from a product Burrow knows. The person needs the editor role in the team. **Required scopes:** `burrow:managed:edit`