Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow CLI to display objectstore stats #357

Closed
kaihoffman opened this issue Jan 3, 2024 · 0 comments
Closed

Allow CLI to display objectstore stats #357

kaihoffman opened this issue Jan 3, 2024 · 0 comments

Comments

@kaihoffman
Copy link
Member

The Civo API allows for objectstore-specific stats to display remaining capacity and number of objects:

curl -H "Authorization: bearer <your-api-key>" <a target="_blank" data-stringify-link="https://api.civo.com/v2/objectstores/" delay="150" data-sk="tooltip_parent" href="https://api.civo.com/v2/objectstores/" rel="noopener noreferrer">https://api.civo.com/v2/objectstores/</a><your-objectstore-id>/stats?region=<region-name>
Response will be something like this
{
  "size_kb_utilised": 27449274,
  "max_size_kb": 500000000,
  "num_objects": 2408
}

This is not available on the CLI from what I can see? Would be great to either have as civo objecstore stats <NAME> or as part of the civo objectstore show <NAME> output.

alejandrojnm added a commit that referenced this issue Jan 4, 2024
…nd objectstore_show.go close Allow CLI to display objectstore stats #357

Signed-off-by: Alejandro J. Nuñez Madrazo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants