Skip to Content
Xeonr Developer Docs
API Specification

Managed names

For another Xeonr product acting in a team: names, domains, pinned ports and agent credentials it creates and manages there, their transfer, and the reconcile calls its service account makes.

postCreate Agent Credential

Mints a credential that can open the agent session for this one name and nothing else, and returns its secret once in `secret`. It is a Xeonr Auth API key (`xk_…`) owned by the reservation, so it dies with it. An agent presents it as `Authorization: Bearer xk_…` on the agent WebSocket, exactly where a CLI token goes. Registered with it, the tunnel always serves this name, with this name's policy and capture mode: the name, team, protocol and policy the agent sends are ignored or must match. It is refused on every control-plane method. Delegated tokens only, for names the calling product manages. The person needs the editor role. **Required scopes:** `burrow:managed:edit`

postCreate Managed Domain

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`

postCreate 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`

postCreate Managed Reservation

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`

postDelete Managed Domain

Removes a domain the calling product manages, and its route. Delegated tokens only. The person needs the editor role. **Required scopes:** `burrow:managed:edit`

postDelete Managed Port Lease

Returns a managed name's pinned port to the pool and closes any tunnel serving it. The name stays; its next agent session leases an ordinary, expiring port as a CLI's does. Idempotent: a name holding no port succeeds. Delegated tokens only. The person needs the editor role. **Required scopes:** `burrow:managed:edit`

postDelete Managed Reservation

Releases a name the calling product manages, with its custom domains and their routes, and revokes its agent credentials. A tunnel serving it is closed. The name goes back to the pool. Delegated tokens only, confined to names the calling product manages. The person needs the editor role. **Required scopes:** `burrow:managed:edit`

postGet Managed Reservation

Returns one name the calling product manages in the team, with its custom domains. A name the product does not manage — another product's, or the team's own — is `not_found`, as is one a team admin has deleted. Delegated tokens only. The person needs to be a member of the team. **Required scopes:** `burrow:managed:read`

postGet Managed Reservation Transfer

Returns how many bytes one name the calling product manages carried over a window, in total and as a zero-filled series of buckets, exactly as TrafficService.GetTransfer counts them for a tunnel. The window never starts before the name was reserved, so a label used by an earlier tunnel does not lend this one its history. Delegated tokens only, confined to names the calling product manages. The person needs to be a member of the team. **Required scopes:** `burrow:managed:read`

postList Agent Credentials

Lists the agent credentials of a name the calling product manages, newest first, paged with an opaque cursor. Revoked ones are left out unless `include_revoked` is set. Secrets are never returned. Delegated tokens only. The person needs to be a member of the team. **Required scopes:** `burrow:managed:read`

postList Managed Reservations

Lists the names the calling product manages, in one team or in every team, for reconciling the product's own records against Burrow's. A name a team admin deleted is simply absent. The product's service account only, with nobody signed in. **Required scopes:** `burrow:managed:reconcile`

postRelease Managed Reservation

Releases one name the calling product manages, as DeleteManagedReservation does, for cleaning up a name the product no longer has a record of. Idempotent: a name already gone succeeds. The product's service account only, with nobody signed in. **Required scopes:** `burrow:managed:reconcile`

postRevoke Agent Credential

Revokes one agent credential of a name the calling product manages. A session it already opened is closed, and its reconnect is refused; a session another credential opened on the same name is left up. Delegated tokens only. The person needs the editor role. **Required scopes:** `burrow:managed:edit`

postTeardown Managed Reservations

Releases every name the calling product manages in one team, with their domains and agent credentials: what a product does when the team turns it off. The team's own names, and other products', are untouched. Idempotent. The product's service account only, with nobody signed in. **Required scopes:** `burrow:managed:reconcile`

postUpdate Managed Reservation

Writes the fields named in `update_mask` — any of `policy`, `capture_mode`, `retention_days`, `target_port` — and nothing else. Takes effect for an agent on its next connection. Delegated tokens only, confined to names the calling product manages. The person needs the editor role. **Required scopes:** `burrow:managed:edit`

postVerify Managed Domain

Checks the TXT record of a domain the calling product manages and, on success, creates its route and starts certificate issuance. `failed_precondition` while the record is absent or wrong; call again after DNS has propagated. Delegated tokens only. The person needs the editor role. **Required scopes:** `burrow:managed:edit`