{"id":26187983,"url":"https://github.com/michaelcade/veeam-inventory-api","last_synced_at":"2025-08-08T10:33:12.387Z","repository":{"id":271434281,"uuid":"913446227","full_name":"MichaelCade/veeam-inventory-api","owner":"MichaelCade","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-19T14:53:53.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T10:53:58.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MichaelCade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-07T17:42:24.000Z","updated_at":"2025-01-19T14:53:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"88f6cb75-5916-4c60-b5bf-3f059ce384a6","html_url":"https://github.com/MichaelCade/veeam-inventory-api","commit_stats":null,"previous_names":["michaelcade/veeam-inventory-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MichaelCade/veeam-inventory-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Fveeam-inventory-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Fveeam-inventory-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Fveeam-inventory-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Fveeam-inventory-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelCade","download_url":"https://codeload.github.com/MichaelCade/veeam-inventory-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Fveeam-inventory-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269408876,"owners_count":24412133,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-03-11T23:54:06.567Z","updated_at":"2025-08-08T10:33:12.380Z","avatar_url":"https://github.com/MichaelCade.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# veeam-inventory-api\n\nI started this testing to hopefully use this either as a standalone tool or in another project of mine. \n\nThis will require a Veeam Backup \u0026 Replication Build Version: 12.2.0.334 (tested version) with API enabled and service running. \n\nYou can run and build this using Golang locally \n\nWhen you first run you can either define some environment variables or it will prompt you for details when ran \n\n## Setting Environment Variables \n\nLinux \n```\nexport VBR_SERVER_URL=\"https://\u003cVBR_Server\u003e:9419/api/v1\"\nexport VBR_USERNAME=\"your_username\"\nexport VBR_PASSWORD=\"your_password\"\n```\nWindows Command Line \n```\nset VBR_SERVER_URL=https://\u003cVBR_Server\u003e:9419\nset VBR_USERNAME=your_username\nset VBR_PASSWORD=your_password\n```\n\nWindows PowerShell \n```\n$env:VBR_SERVER_URL=\"https://\u003cVBR_Server\u003e:9419\"\n$env:VBR_USERNAME=\"your_username\"\n$env:VBR_PASSWORD=\"your_password\"\n```\n\n## Troubleshooting access to Veeam API \n\nI am in a test environment so you will see in my curl commands `-k` is used. \n\nGet access token with \n\n```\ncurl -k -X 'POST' \\\n  'https://192.168.169.185:9419/api/oauth2/token' \\\n  -H 'accept: application/json' \\\n  -H 'x-api-version: 1.1-rev2' \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -d 'grant_type=password\u0026username=Administrator\u0026password=Passw0rd999!\u0026refresh_token=\u0026code=\u0026use_short_term_refresh=\u0026vbr_token=' \\\n  | jq -r '.access_token'\n```\n\nBy then taking the access_token output from the above command you can add this to the Bearer\n\n```\ncurl -k -X 'GET' \\\n  'https://192.168.169.185:9419/api/v1/jobs' \\\n  -H 'accept: application/json' \\\n  -H 'x-api-version: 1.1-rev2' \\\n  -H 'Authorization: Bearer \u003cPASTE ABOVE OUTPUT\u003e'\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcade%2Fveeam-inventory-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelcade%2Fveeam-inventory-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcade%2Fveeam-inventory-api/lists"}