{"id":23165940,"url":"https://github.com/ndejong/digitalocean-api-query","last_synced_at":"2025-04-04T21:28:09.604Z","repository":{"id":143026031,"uuid":"125146576","full_name":"ndejong/digitalocean-api-query","owner":"ndejong","description":"Command line tool for easily making API calls to Digital Ocean to inspect the state of components","archived":false,"fork":false,"pushed_at":"2022-02-25T02:42:57.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T06:14:12.458Z","etag":null,"topics":["devops","digitalocean"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ndejong.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}},"created_at":"2018-03-14T02:56:20.000Z","updated_at":"2022-03-28T07:13:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0f72ea2-fc6a-4ece-a46e-ed2465524ac2","html_url":"https://github.com/ndejong/digitalocean-api-query","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fdigitalocean-api-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fdigitalocean-api-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fdigitalocean-api-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndejong%2Fdigitalocean-api-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndejong","download_url":"https://codeload.github.com/ndejong/digitalocean-api-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247251450,"owners_count":20908506,"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":["devops","digitalocean"],"created_at":"2024-12-18T01:30:42.281Z","updated_at":"2025-04-04T21:28:09.578Z","avatar_url":"https://github.com/ndejong.png","language":"Shell","readme":"# digitalocean-api-query\n\nAn all-bash (+ curl) command line tool for easily making API calls to Digital \nOcean to inspect the state of components.\n\nSupports the following Digital Ocean (v2) API calls for query\n * [account](https://developers.digitalocean.com/documentation/v2/#account)\n * [account/keys](https://developers.digitalocean.com/documentation/v2/#ssh-keys)\n * [actions](https://developers.digitalocean.com/documentation/v2/#actions)\n * [certificates](https://developers.digitalocean.com/documentation/v2/#certificates)\n * [domains](https://developers.digitalocean.com/documentation/v2/#domains)\n * [droplets](https://developers.digitalocean.com/documentation/v2/#droplets)\n * [firewalls](https://developers.digitalocean.com/documentation/v2/#firewalls)\n * [floating_ips](https://developers.digitalocean.com/documentation/v2/#floating-ips)\n * [images](https://developers.digitalocean.com/documentation/v2/#images)\n * [load_balancers](https://developers.digitalocean.com/documentation/v2/#load-balancers)\n * [regions](https://developers.digitalocean.com/documentation/v2/#regions)\n * [sizes](https://developers.digitalocean.com/documentation/v2/#sizes)\n * [tags](https://developers.digitalocean.com/documentation/v2/#tags)\n * [volumes](https://developers.digitalocean.com/documentation/v2/#block-storage)\n\n## Set your environment variable before use\nSet either `DO_TOKEN` or `TF_VAR_do_token` to your Digital Ocean API key value\nbefore using `digitalocean-api-query` since requests all require authentication.\nThe `TF_VAR_do_token` environment variable is designed to be handy if you are \nalso using Terraform among your toolset.\n\nFor example:\n```bash\n $ export DO_TOKEN=122e68eac3d39a245df747f2d2a2c9c5f4c97c84e3f1463c625492cce1e622cd\n```\n\n## Example requests\n\nobtain droplet data using 'jq' to pretty-print the response data\n```bash\n $ digitalocean-api-query droplets | jq .\n```\n\nobtain a list of droplet.id using 'jq' to filter the response data\n```bash\n $ digitalocean-api-query droplets | jq .droplets[].id\n```\n\nobtain a list of volume.id slugs using 'jq' to filter the response data\n```bash\n $ digitalocean-api-query volumes | jq .volumes[].id\n```\n\nobtain a list of region slugs using 'jq' to filter the response data\n```bash\n $ digitalocean-api-query regions | jq .regions[].slug\n```\n\n## Install\n\ndigitalocean-api-query is a straight-forward bash script so you can simply \ndownload directly and place somewhere useful to you - the sha256sum value is \navailable to confirm integrity, use it.\n\n## Authors\nThis code is managed by [Verb Networks](https://github.com/verbnetworks).\n\n## License\nApache 2 Licensed. See LICENSE file for full details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndejong%2Fdigitalocean-api-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndejong%2Fdigitalocean-api-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndejong%2Fdigitalocean-api-query/lists"}