Dimensions and Segments API Example

A complete, runnable script that creates a Tenant dimension and segments from an input CSV file.

Pelanor Dimensions let you create business‑aligned views of your cloud‑cost data—​for example, Tenant / Customer, Business Unit, or Feature. Each dimension contains multiple Segments, which define individual values and their selection rules.

For details on how Dimensions and Segments work in the Pelanor platform, see the Dimensions guide.

When to use the Dimensions & Segments API

  • Dynamically update segments from an external data source (e.g., sync tenant lists from your CRM).
  • Consume dimension metadata elsewhere (e.g., export dimensions and their selection criteria to CSV).