Skip to content
Console
Menu

Generated Assets

Workflows

Getting Started

Authentication

KV Store

On this page

sylphx money usage_tiers

Every sylphx money usage_tiers command: its argument, its flags and a run line.

The usage_tiers commands of Sylphx Money, as the CLI spells them: the same calls as the usage_tiers API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#list

Lists usage tiers.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx money usage-tiers list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_tiers · scope billing:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter, for example subject = "…".

#update

Creates or updates a usage tier.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx money usage-tiers update orgs/acme/projects/shop/envs/production/usage_tiers/usage-tier --rank 1 --threshold-minor …

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_tiers/usage-tier · scope billing:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--rankintOrder of tiers; 0 is the base tier. Required.
--daily-limit-minorstringDaily exposure limit in minor units, a decimal string; empty for none.
--monthly-limit-minorstringMonthly exposure limit in minor units, a decimal string; empty for none.
--threshold-minorstringThe amount an invoice would make due at which a threshold invoice is cut. Required.
--requires-paid-invoicesintPaid invoices needed to reach this tier.
--requires-paid-minorstringPaid total, minor units, needed to reach this tier.