Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

List the plans

Returns the plans an organisation may choose, in the order they are offered, with the plan it is on. The plan it is on is in the list even when it is not offered to everyone.

GET/_luna/orgs/{org}/plans
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Scopes:billing:read
Path parameters
orgstringrequired

The organisation, by its slug.

Responses
200

The plans.

currentstringrequired

The name of the plan the organisation is on.

billingstringrequired

stripe when the cluster bills through Stripe, off when it does not bill.

unitsobjectrequired

What each meter's billed unit is called, by meter.

plansPlanItem[]required

The plans, in the order they are offered.

Show properties
Array of PlanItem
namestringrequired

The plan's name, which is how you choose it.

titlestringrequired

What the plan is called. Its name when it has no title.

descriptionstring
highlightsstring[]

Short lines that say what the plan gives.

publicbooleanrequired

Whether every organisation may choose the plan. A plan that is not public is one the operator gives an organisation.

orderinteger<int64>required

Where the plan comes among the plans offered, the lowest first.

ratesobjectrequired

The price of each meter in US dollars per billed unit, by meter.

includedobjectrequired

How many billed units of each meter a month includes at no charge, by meter.

quotasQuotasrequired

The limits a plan sets for an organisation.

Show properties
requestsPerSecondnumber<double> | null

The requests a second the organisation's tenants take together.

default: null
databaseBytesinteger<int64> | null

The size of the organisation's databases together, in bytes.

min 0 · default: null
blobBytesinteger<int64> | null

The size of the files its lunas store together, in bytes.

min 0 · default: null
egressBytesPerMonthinteger<int64> | null

The bytes its tenants send out in a calendar month.

min 0 · default: null
ingressBytesPerMonthinteger<int64> | null

The bytes its tenants take in over a calendar month.

min 0 · default: null
activeLunasinteger<int64> | null

The lunas awake at once.

min 0 · default: null
sandboxesinteger<int64> | null

The sandboxes running at once.

min 0 · default: null
totalCpuTotalLimit | null
default: null
Show properties
One of:
TotalLimit
One of:
number
number
string
string
null
null
totalMemoryMibTotalLimit | null
default: null
Show properties
One of:
TotalLimit
TotalLimit
null
null
lunaMemoryMibinteger<int64> | null

The most memory any one luna may declare or use, in MiB (limits.memory).

min 0 · default: null
lunaCpunumber<double> | null

The most cores any one luna may declare or use (limits.cpu).

default: null
lunaDefaultMemoryMibinteger<int64> | null

The memory a luna has when it declares none, in MiB.

min 0 · default: null
lunaDefaultCpunumber<double> | null

The cores a luna has when it declares none.

default: null
lunaReserveboolean | null

Whether lunas may reserve their limits (limits.reserve). When it is not set, they may not.

default: null
historyDaysinteger<int32> | null

How many days back lunas can be restored or forked. An environment keeps this many days unless it asks for fewer.

min 0 · default: null
monthlyCreditUsdnumber<double>required

The credit the plan gives each calendar month, in US dollars. Usage beyond the included amounts comes out of it first. What is left at the end of the month does not carry over.

monthlyFeeUsdnumber<double>required

What the plan costs each month, in US dollars.

effectiveFromMsinteger<int64>required

When this version of the plan took effect, in milliseconds since the Unix epoch.

min 0
workerEgressEgressModerequired

The outbound connections code in workers may open.

Allowed:nonetrustedopen
sandboxEgressEgressModerequired

The outbound connections sandboxes may open.

Allowed:nonetrustedopen
sandboxPublicPortsbooleanrequired

Whether sandboxes' declared ports may be given a public address.

default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://luna.example.com/_luna/orgs/string/plans' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "current": "string",
  "billing": "string",
  "units": {
    "property1": "string",
    "property2": "string"
  },
  "plans": [
    {
      "name": "string",
      "title": "string",
      "description": "string",
      "highlights": [
        "string"
      ],
      "public": true,
      "order": 0,
      "rates": {
        "property1": 0.1,
        "property2": 0.1
      },
      "included": {
        "property1": 0.1,
        "property2": 0.1
      },
      "quotas": {
        "requestsPerSecond": null,
        "databaseBytes": null,
        "blobBytes": null,
        "egressBytesPerMonth": null,
        "ingressBytesPerMonth": null,
        "activeLunas": null,
        "sandboxes": null,
        "totalCpu": null,
        "totalMemoryMib": null,
        "lunaMemoryMib": null,
        "lunaCpu": null,
        "lunaDefaultMemoryMib": null,
        "lunaDefaultCpu": null,
        "lunaReserve": null,
        "historyDays": null
      },
      "monthlyCreditUsd": 0.1,
      "monthlyFeeUsd": 0.1,
      "effectiveFromMs": 0,
      "workerEgress": "none",
      "sandboxEgress": "none",
      "sandboxPublicPorts": true
    }
  ]
}

Was this page helpful?