Skip to content

ezgh obs browser-apps tokens create

Create a client token for a browser app.

Updated View as Markdown
ezgh obs browser-apps tokens create --application a (--environment e | --dataset d) --origin o… [--name n] [--tunnel-address cidr]… [limit flags] [flags]

Create a client token: a publishable, ingest-only credential your web pages send RUM data with. It sends one application’s data to one dataset: --environment names it (and creates the dataset if the project has none for it), or --dataset gives it by ID, slug, environment or name. Browsers may send only from the --origin values (1 to 50): exact origins such as https://shop.example.com, https://*.example.com for its subdomains, or http://localhost:\* for development. --tunnel-address names the CIDRs of a first-party proxy that forwards for the browsers (up to 20).

Limits default to 500 requests/s, 50 MiB/s, 20 GiB a day and 6,000 errors a minute (errors past that are dropped before they’re billed). A project has up to 50 client tokens (the quota obs.clientTokens.perProject).

Part of ezgh obs browser-apps tokens.

Examples

ezgh obs browser-apps tokens create --application storefront --environment production \
  --origin https://shop.example.com --origin 'https://*.example.com'

Flags

Flag Type Default Description
--application string the browser app’s name: 1 to 63 of a-z, 0-9, ‘.’, ‘_’ and ‘-’ (required)
--bytes-per-day string request bytes a UTC day: bytes, or KiB, MiB or GiB (default 20GiB)
--bytes-per-second string request bytes a second: bytes, or KiB, MiB or GiB (default 50MiB)
--dataset string the dataset its data goes to: ID, slug, environment or name
--environment string the environment its data goes to (its dataset is created if needed)
--errors-per-minute string errors a minute; more are dropped before they’re billed (default 6000)
--name string a display name (default: <application> <environment>)
--origin string, repeatable an origin browsers may send from (repeatable, 1 to 50)
--requests-per-second string requests a second (default 500)
--tunnel-address string, repeatable a CIDR a first-party tunnel sends from (repeatable, up to 20)

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close