Skip to main content

Tenants page

The Tenants page lists every workspace signed up to Spanway Cloud, with its plan and status. The operator of a Spanway Cloud deployment uses it to suspend a tenant so its traffic is refused, reinstate it, or move it to another plan. Open it at /ui/cloud-tenants. In the left nav it sits in the Settings group, inside the Settings item, as Tenants. The nav item is shown to the Admin and Admin Viewer roles (proxyAdminTierRoles, which covers proxy_admin and proxy_admin_viewer). The page checks the role again, so anyone else who opens the URL sees "Tenants is only available to admin users."

The page needs the license feature cloud (shown as "Spanway Cloud"). Without it the page shows "Cloud tenants needs a Spanway Enterprise license", names the missing feature and links to Get a trial license. The proxy enforces the same feature on its tenant routes, and it answers them only when Spanway Cloud is turned on in general_settings. If the Admin UI cannot read the license at all, it fails closed and shows "Cloud tenants is hidden until the license can be checked" with a hint to check that GET /health/license answers.

The page opens with a short description. When you cannot change anything it adds "You can view tenants, but only a proxy admin can change them."

A real-world scenario​

The operator of a Spanway Cloud deployment gets a report that one tenant is sending abusive traffic. They find the tenant on the Tenants page, suspend it with a reason so every request from it is refused, and reinstate it a day later when the tenant has fixed the problem.

Steps​

  1. Open Settings, then Tenants in the left nav, or go to /ui/cloud-tenants.

  2. Set All statuses to Active, find the tenant, and click View details to check its plan, organization and Stripe ids. The list comes from:

    curl "http://localhost:4000/cloud/tenants?status=active" -H "Authorization: Bearer $SPANWAY_MASTER_KEY"
  3. Click Suspend, type the reason, and confirm with Suspend.

    curl -X POST http://localhost:4000/cloud/tenants/$TENANT_ID/suspend \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{"reason": "Abusive traffic reported on 2026-11-21"}'
  4. When the issue is fixed, open the tenant again, click Reinstate and confirm.

    curl -X POST http://localhost:4000/cloud/tenants/$TENANT_ID/reinstate \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{"note": "Fixed by the tenant"}'

Expected result​

A toast reads "Tenant suspended" with the company name and the status badge turns Suspended. The tenant's keys are refused at auth until the reinstatement, after which the badge is Active again.

Billing safety notice​

Under the page description a line or a notice says whether Spanway Cloud can charge for usage right now, read from GET /cloud/billing/status. It helps an operator spot a billing mistake before tenants or the books do.

  • Billing checks pass: usage is charged at 1.15 times the provider price and overage is billed at one cent per unit. Everything is right, nothing to do.
  • Tenant requests are being refused (red). The Cloud settings in general_settings.cloud do not validate, so every tenant request answers 503 cloud_billing_unavailable instead of being served for free. The notice names the setting to fix, for example usage_price_per_usd: Value error, must be a multiplier from 1.0 to 3.0 .... Fix it in the config and the notice clears.
  • Overage billing is paused. Requests keep working and credits are still used, but usage over a plan's budget is held back from Stripe because overage_price_id is not set, the Stripe price does not charge exactly one cent per unit, or Stripe could not be asked. Fix the price or the setting, and the held overage is sent by the next daily settlement.

Admin viewers see the notice too. It changes nothing, see Billing safety.

Tenants list​

The list is newest first, 25 rows per page. Filters and paging are applied by the proxy and kept in the URL.

ControlTypeWhat it does
All statusesFilterNarrows the list to Pending verification, Active, Suspended or Cancelled tenants.
All plansFilterNarrows the list to Free, Pro or Enterprise tenants.
Clear allButtonRemoves every active filter. Each filter also shows as a chip you can remove on its own.
RefreshIcon buttonLoads the list again.
ColumnsMenuShows or hides table columns.
ColumnMeaning
TenantThe company name, with the signup email under it.
PlanFree, Pro or Enterprise.
StatusA badge (see the table below).
Trial endsAlways empty today, because no plan starts a trial yet.
CreatedWhen the tenant signed up.
ActionsA menu with View details, and for proxy admins also Change plan and Suspend (or Reinstate for a suspended tenant).
BadgeMeaning
Pending verification (amber)The tenant signed up but has not verified its email yet.
Active (green)The tenant is served.
Suspended (red)Every request from the tenant is refused.
Cancelled (grey)The workspace was closed.

Tenant details panel​

View details opens a side panel titled with the company name and status badge, with the signup email under it. It lists Plan, Plan since, Data region (where the workspace is stored, United States (N. Virginia) or European Union (Frankfurt), chosen at signup and fixed, see Data regions), Trial ends (always empty until trials exist), Verified, Created, Updated, Tenant ID, Organization, Stripe customer, Stripe subscription and, for a suspended tenant, the Suspended reason. Proxy admins also see Change plan and Suspend (or Reinstate) in the panel footer, which open the same confirmations as the row menu.

Suspend, reinstate and change plan confirmations​

Each action asks for confirmation in a dialog that repeats the tenant's company, email, plan and status. Cancel closes the dialog, and the confirm button is disabled until the required input is given.

ActionInputWhat happens
SuspendReason, a required text area with the placeholder "Why this tenant is being suspended""Suspend this tenant?" Every request from the tenant is refused until it is reinstated. The reason is recorded and shown to the tenant. The proxy suspends only an active tenant.
Reinstatenone"Reinstate this tenant?" Requests from the tenant are accepted again and its status returns to active. The proxy refuses to reinstate a tenant that a sanctions decision blocked or restricted.
Change planNew plan, a dropdown that starts on the current plan. Confirm stays disabled until you pick a different one"Change this tenant's plan?" The new plan's quotas apply immediately. Billing is not changed here, so adjust the Stripe subscription separately. The proxy refuses a tenant that is still pending verification.

The confirm button reads Suspending..., Reinstating... or Changing... while the request runs. A toast confirms "Tenant suspended", "Tenant reinstated" or "Plan changed" with the company name. When the proxy refuses, the reason is shown in the dialog under "Could not suspend the tenant", "Could not reinstate the tenant" or "Could not change the plan".

Empty, error and disabled states​

While the license is checked the page shows a loading state. "No tenants yet." appears when there is no tenant or none matches the filters. On a gateway where Spanway Cloud is not turned on, the page shows "Spanway Cloud is not available on this deployment." instead of the list. Other load errors show "Couldn't load tenants" followed by the reason and "This is not an empty list. Check your connection and permissions, then retry." Retry loads the list again. Check the proxy logs if it keeps failing.

Differences by role and license​

Only the Admin and Admin Viewer roles see the nav item and the list. A proxy admin (proxy_admin) can change plans, suspend and reinstate. Other admin roles see the list and the details panel only. The proxy enforces the split, so every change needs a proxy admin or a custom role that grants the write. The proxy also leaves the saved card and auto top-up fields out of a tenant for anyone other than a proxy admin. An Admin Viewer (proxy_admin_viewer) has the session role Admin Viewer, so the change actions are hidden for them.

The page is locked without the cloud license feature, and the data loads only when the session belongs to a licensed gateway.

Errors​

What you seeWhat it meansFix
"Cloud tenants needs a Spanway Enterprise license"The license lacks cloud.Add the feature.
"Tenants is only available to admin users."The session is not a proxy admin or admin viewer.Sign in as an admin.
"Could not suspend the tenant" with tenant is <status>, only active tenants suspendThe tenant is not active.Nothing to do for a tenant already suspended or cancelled.
"Could not reinstate the tenant" with ... by a sanctions decision and cannot be reinstatedA sanctions decision blocked or restricted the tenant.Handle it on the Sanctions tab of the Compliance page with counsel.
"Could not change the plan" with tenant is pending verification, change its plan once it is verifiedThe tenant has not verified its email.Wait for verification.
404 on every requestCloud is not enabled on this gateway.Set general_settings.cloud.enabled: true.
"Tenant requests are being refused"The cloud block is invalid and tenants get 503 cloud_billing_unavailable.Fix the setting the notice names.
"Overage billing is paused"Overage is held back from Stripe.Set overage_price_id to a one cent per unit, flat, USD price.

See Spanway Cloud for how signup, plans, quotas and suspension work, and Sanctions screening on Spanway Cloud and license issuance for why a tenant may be locked by a sanctions decision.