Skip to content

docs(influxdb3-cloud): add API reference spec scoped to CLI feature set#7552

Open
jstirnaman wants to merge 7 commits into
masterfrom
jts/influxdb3-cloud-api-spec
Open

docs(influxdb3-cloud): add API reference spec scoped to CLI feature set#7552
jstirnaman wants to merge 7 commits into
masterfrom
jts/influxdb3-cloud-api-spec

Conversation

@jstirnaman

@jstirnaman jstirnaman commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What changed

Adds an InfluxDB 3 Cloud OpenAPI spec and wires it into the API docs build
pipeline so the reference renders under /influxdb3/cloud/api/.

New files under api-docs/influxdb3/cloud/:

  • influxdb3-cloud-openapi.yaml — the spec (self-contained)
  • tags.yml, .config.yml, content/{info,servers,page}.yml — overlays/config

Pipeline registration:

  • post-process-specs.ts — add influxdb3/cloud to PRODUCT_DIRS
  • generate-openapi-articles.ts — add the influxdb3_cloud product config

Why

InfluxDB 3 Cloud needs an API reference. We can't derive it from source code
yet, so the spec is derived from the InfluxDB 3 Enterprise spec (Cloud is hosted
Enterprise) and limited to the same feature set as the influxdb3 CLI reference
documented for Cloud in this branch. It is maintained manually for now.

Impact

Endpoints included (mapped to CLI commands):

CLI command Endpoint
write POST /api/v3/write_lp
query (SQL/InfluxQL) GET/POST /api/v3/query_sql, /api/v3/query_influxql
create/delete/show database POST/DELETE/GET /api/v3/configure/database
create/delete table POST/DELETE /api/v3/configure/table
create token --admin POST /api/v3/configure/token/named_admin
create token --permission POST /api/v3/enterprise/configure/token
delete token DELETE /api/v3/configure/token
(instance reachability) GET /health, GET /ping

Deliberately omitted: server-management and node-level endpoints (InfluxData
runs the server), plus backup/restore, users/roles, processing engine, caches,
and export — none are in the Cloud CLI feature set.

Derivation notes:

  • Only components referenced by the kept operations are included.
  • Token operations are normalized to a single Token tag; Authentication is a
    trait tag; the Enterprise-only Enterprise tag is dropped.
  • Inherited Enterprise doc links are rewritten to the /influxdb/version/
    placeholder so the pipeline maps them to /influxdb3/cloud/.

Known follow-up: two inherited links point to Cloud pages that don't exist yet
(/influxdb3/cloud/reference/syntax/line-protocol/ and
/influxdb3/cloud/performance-preview/). These are content gaps, not build
blockers.

Verification

  • npx @redocly/cli lint — passes ("API description is valid").
  • sh api-docs/generate-api-docs.sh — generates the Cloud tag/article data and
    content pages; all products process successfully.
  • npx hugo — builds; the /influxdb3/cloud/api/ section renders with tags
    Write data, Query data, Database, Table, Auth token, Server information, and
    the Authentication + Quick start trait pages. No Enterprise branding or
    spec-derived Enterprise links leak into the rendered Cloud pages.

PR preview URLs

  • /influxdb3/cloud/api/

Derive an InfluxDB 3 Cloud OpenAPI spec from the Enterprise spec, limited to
the endpoints that back the influxdb3 CLI reference documented for Cloud:

- Write data (POST /api/v3/write_lp)
- Query data, SQL and InfluxQL (GET|POST /api/v3/query_sql, /api/v3/query_influxql)
- Databases (GET|POST|DELETE /api/v3/configure/database)
- Tables (POST|DELETE /api/v3/configure/table)
- Tokens: named admin (POST /api/v3/configure/token/named_admin),
  resource/permission (POST /api/v3/enterprise/configure/token),
  delete (DELETE /api/v3/configure/token)
- Server information (GET /health, GET /ping)

The spec is self-contained: only components referenced by these operations are
included. Token operations are normalized to a single Token tag, and inherited
Enterprise doc links are rewritten to the /influxdb/version/ placeholder so the
pipeline maps them to /influxdb3/cloud/. Server-management and node-level
endpoints are omitted because InfluxData runs the server.

Register the product in the api-docs build pipeline (post-process-specs and
generate-openapi-articles) so it renders under /influxdb3/cloud/api/.

Cannot yet derive from source; the spec is maintained manually for now.
@jstirnaman
jstirnaman requested a review from a team as a code owner July 22, 2026 15:37
@jstirnaman
jstirnaman requested review from sanderson and removed request for a team July 22, 2026 15:37
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

📦 PR Preview — Preview Bot

Status Details
Result ✅ DEPLOYED (full site)
Preview View preview
Build time 87s
Last updated 2026-07-23 23:55:53 UTC
Changed pages (2)

Preview auto-deploys on push. Will be cleaned up when PR closes.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://influxdata.github.io/docs-v2/pr-preview/pr-7552/

Built to branch gh-pages at 2026-07-22 17:25 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@jstirnaman
jstirnaman requested a review from ritwika314 July 22, 2026 16:26
@jstirnaman

Copy link
Copy Markdown
Contributor Author

@ritwika314 I still need to clean up some links, remove Performance Preview mentions, and add some reference pages (line protocol).

- Add /influxdb3/cloud/reference/syntax/line-protocol/ thin stub sourcing the
  shared v3-line-protocol.md page (resolves an inherited spec link).
- Correct the API spec for InfluxDB 3 Cloud, which runs InfluxDB 3.10 with
  PachaTree: drop the Enterprise 'performance upgrade preview' framing, the
  --use-pacha-tree flag, and Parquet references. Present column families as a
  standard PachaTree feature. Rename remaining 'InfluxDB 3 Enterprise' prose to
  'InfluxDB 3 Cloud'.
@github-actions

Copy link
Copy Markdown
Contributor

Vale Style Check Results

Metric Count
Errors 0
Warnings 0

Check passed

@github-actions github-actions Bot added the product:v3-distributed InfluxDB 3 Cloud Serverless, Cloud Dedicated, Clustered label Jul 22, 2026
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

🔗 Link Check Results — Link Check Bot

All links are valid

Metric Value
Files Checked 1
Total Links 156
Errors 0
Warnings 1
Success Rate 98.07692%
⚠️ 1 warning(s) (do not fail CI)
Source File URL Issue
content/influxdb3/cloud/reference/syntax/line-protocol/_index.md https://support.influxdata.com/ Network error: SSL certificate not trusted. Use --insecure if site is trusted (e…

Full details: workflow run summary and artifact. Last updated: 2026-07-23 23:51:56 UTC

Reword the resource (fine-grained permissions) token note in the Cloud and
Enterprise specs. Resource tokens are an Enterprise-tier capability, so state
that they are available in InfluxDB 3 Enterprise and InfluxDB 3 Cloud and not in
InfluxDB 3 Core, instead of naming only one edition.
Clarify that not every spec comes from influxdata/openapi. The InfluxDB 3 Core
and Enterprise v3 specs come from the docs-tooling pipeline (getswagger.sh points
at TO_BE_DECIDED), the InfluxDB 3 Cloud v3 spec is maintained by hand in this
repo, and the v1 specs are only post-processed here. Add a 'Spec sources by
product' table to the README and a pointer in the agent instructions so durable
spec fixes land at the right source instead of being overwritten on the next
fetch/port.
@jstirnaman

jstirnaman commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@ritwika314 I still need to clean up some links, remove Performance Preview mentions, and add some reference pages (line protocol).

@jstirnaman jstirnaman assigned ritwika314 and unassigned jstirnaman Jul 22, 2026
@jstirnaman jstirnaman added product:v3-cloud InfluxDB 3 Cloud (hosted Enterprise) and removed product:v3-distributed InfluxDB 3 Cloud Serverless, Cloud Dedicated, Clustered labels Jul 22, 2026
@github-actions github-actions Bot added the product:v3-distributed InfluxDB 3 Cloud Serverless, Cloud Dedicated, Clustered label Jul 22, 2026
@jstirnaman jstirnaman added the waiting:product Waiting for product/PM decision label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:v3-cloud InfluxDB 3 Cloud (hosted Enterprise) product:v3-distributed InfluxDB 3 Cloud Serverless, Cloud Dedicated, Clustered waiting:product Waiting for product/PM decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants