TypeScript SDK

Regions

List the regions sandboxes can run in.

tek.region lists the regions available for sandboxes. It is top-level and ignores the client's org/project scope.

const regions = await tek.region.list();
// [{ id: 'fr-par-1', code: 'fr-par-1', name: 'Paris', country: 'fr',
//    access_endpoint: 'https://fr-par-1.access.sandbox.tektona.app' }]

A region ID has the format <country>-<city>-<n>: an ISO 3166-1 alpha-2 country code, the IATA code of the city or metropolitan area, and a number. An installation has one region today.

access_endpoint is the URL of the region for API traffic to sandboxes. It serves the files and git API. sandbox.files and sandbox.git use it for you.