Skip to content
Console
Menu

Alerts and status pages

App store purchases

Credits

Knowledge

KV

Notifications

Organizations

Storage

Workflows

API reference

Getting Started

Authentication

KV Store

On this page

sylphx money usage_meters

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

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

#get

Gets a usage meter.

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

CLI

Shell
sylphx money usage-meters get orgs/acme/projects/shop/envs/production/usage_meters/usage-meter

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

#list

Lists usage meters.

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-meters list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_meters · 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.

#update

Creates or updates a usage meter. The unit cannot change once it has recorded usage.

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

CLI

Shell
sylphx money usage-meters update orgs/acme/projects/shop/envs/production/usage_meters/usage-meter --unit …

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_meters/usage-meter · 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.
--unitstringThe unit of one quantity, for example token. It cannot change once the meter has recorded usage. Required.
--display-namestringA name for people.
--reservation-optionalboolWhether usage may be recorded without a reservation.
--activeboolA retired meter (false) refuses new usage; its history stays.