{"id":19225502,"url":"https://github.com/luzilla/acronis-s3-usage","last_synced_at":"2026-03-27T04:51:03.867Z","repository":{"id":226965928,"uuid":"452746349","full_name":"Luzilla/acronis-s3-usage","owner":"Luzilla","description":"Some code to pull S3 storage usage by tenant (ACI) and user (ACI/VHI).","archived":false,"fork":false,"pushed_at":"2025-04-15T13:31:56.000Z","size":204,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T14:29:36.861Z","etag":null,"topics":["acronis","acronis-cyber-cloud","acronis-cyber-infrastructure","acronis-cyber-platform","ostor","s3","vhi","virtuozzo"],"latest_commit_sha":null,"homepage":"https://godocs.io/github.com/Luzilla/acronis-s3-usage","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Luzilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-27T15:54:26.000Z","updated_at":"2025-04-15T13:31:59.000Z","dependencies_parsed_at":"2024-04-15T17:01:06.726Z","dependency_job_id":"e51c9122-1d96-4e38-8130-df8757f456cb","html_url":"https://github.com/Luzilla/acronis-s3-usage","commit_stats":null,"previous_names":["luzilla/acronis-s3-usage"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzilla%2Facronis-s3-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzilla%2Facronis-s3-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzilla%2Facronis-s3-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzilla%2Facronis-s3-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luzilla","download_url":"https://codeload.github.com/Luzilla/acronis-s3-usage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249980357,"owners_count":21355413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acronis","acronis-cyber-cloud","acronis-cyber-infrastructure","acronis-cyber-platform","ostor","s3","vhi","virtuozzo"],"created_at":"2024-11-09T15:15:20.864Z","updated_at":"2026-03-27T04:51:03.818Z","avatar_url":"https://github.com/Luzilla.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# acronis-s3-usage\n\nThis project started as a playground to explore certain APIs provided by ACI (or VHI) to extract usage for the object storage provided. It now hosts a libraries to interact with ACI (specifically) and Ostor APIs (for Acronis and Virtuozzo Object Storage).\n\n## library\n\nSee the [`pkg`](./pkg/) directory for the Golang libraries (or SDKs, if you will) for `acronis` (ACI) and the the Acronis/Virtuozzo Ostor API.\n\n## toys\n\nThis repository includes ready code that allows you to run code examples against your Acronis or Virtuozzo setups.\n\nEach tool will take arguments for the user/password of required tokens/credentials, but also supports environment variables (see [`.envrc-dist`](./.envrc-dist))\n\nThe command line tools (along with the source code), are also available as [release downloads](https://github.com/Luzilla/acronis-s3-usage/releases).\n\n### pull overall usage (ACI)\n\nA command line tool to pull S3 storage usage by tenant from Acronis Cyber Infrastructure (ACI).\n\n```sh\n$ go run ./cmd/tenant-usage/main.go\nGot a token: ABC***\nGot tenant id: abc-abc-abc-abc-abc\n\nCyber Infrastructure (Type: hci)\nhci_s3_storage -- 11070.81 GB\n\nCyber Infrastructure (Type: hci)\nhci_s3_storage -- 4619.61 GB\n```\n\n### extract usage for buckets (ACI \u0026amp; VHI)\n\nA command line tool to interact with the Ostor APIs — it allows user management, bucket management and extracting statistics (e.g. number of GET, HEAD, POST and PUT requests and storage used).\n\n```sh\n❯ go run ./cmd/ostor/main.go --help\nNAME:\n   a program to interact with the s3 management APIs in ACI and VHI - A new cli application\n\nUSAGE:\n   a program to interact with the s3 management APIs in ACI and VHI [global options] command [command options] \n\nVERSION:\n   dev (none, date: unknown)\n\nCOMMANDS:\n   buckets, b  list buckets\n   stats, s    list stats\n   users, u    list users\n   help, h     Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --s3-endpoint value        [$S3_ENDPOINT]\n   --s3-system-key-id value   [$S3_SYSTEM_KEY_ID]\n   --s3-system-secret value   [$S3_SYSTEM_SECRET_KEY]\n   --help, -h                show help\n   --version, -v             print the version\n```\n\n## adopters\n\n- [Planetary Quantum GmbH](https://www.planetary-quantum.com/)\n\n## contributions\n\nIf you end up using this, feel free to let me know by adding yourself to the adopers. All contributions (documentation, bug fixes, feature suggestions) are welcome.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluzilla%2Facronis-s3-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluzilla%2Facronis-s3-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluzilla%2Facronis-s3-usage/lists"}