{"id":18131659,"url":"https://github.com/mrtc0/wazuh","last_synced_at":"2025-04-15T23:05:27.604Z","repository":{"id":46242673,"uuid":"164249955","full_name":"mrtc0/wazuh","owner":"mrtc0","description":"Wazuh REST API in Go","archived":false,"fork":false,"pushed_at":"2023-12-15T14:38:02.000Z","size":52,"stargazers_count":16,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T23:05:00.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/mrtc0/wazuh","language":"Go","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/mrtc0.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":"2019-01-05T20:46:35.000Z","updated_at":"2024-05-21T16:04:02.000Z","dependencies_parsed_at":"2024-06-19T17:38:42.095Z","dependency_job_id":"aed0e8b3-6650-4f56-b323-a3c1a5809fde","html_url":"https://github.com/mrtc0/wazuh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fwazuh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fwazuh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fwazuh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fwazuh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtc0","download_url":"https://codeload.github.com/mrtc0/wazuh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167447,"owners_count":21223506,"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":[],"created_at":"2024-11-01T12:08:33.122Z","updated_at":"2025-04-15T23:05:27.570Z","avatar_url":"https://github.com/mrtc0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wazuh API in Go \n\n[![Build Status](https://travis-ci.org/mrtc0/wazuh.svg?branch=master)](https://travis-ci.org/mrtc0/wazuh)\n\n---\n\nWazuh REST API library\n\nhttps://documentation.wazuh.com/current/user-manual/api/reference.html\n\n## Install\n\n```powershell\n$ go get -u github.com/mrtc0/wazuh\n```\n\n## Usage\n\n```golang\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/mrtc0/wazuh\"\n)\n\nfunc main() {\n\tflag.Parse()\n\targs := flag.Args()\n\n\tendpoint := args[0]\n\tuser := args[1]\n\tpass := args[2]\n\n\tclient, err := wazuh.New(endpoint, wazuh.WithBasicAuth(user, pass))\n\n\tagents, err := client.GetAllAgents()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\tos.Exit(1)\n\t}\n\tfmt.Printf(\"%-20v%-20v\\n\", \"ID\", \"NAME\")\n\tfor _, agent := range *agents {\n\t\tif agent.Status == \"Active\" {\n\t\t\tfmt.Printf(\"%-20v%-20v\\n\", agent.ID, agent.Name)\n\t\t}\n\t}\n}\n```\n\n[see example](./example)\n\n## Contributing\n\nYou are more than welcome to contribute to this project.  \nFork and make a Pull Request, or create an Issue if you see any problem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtc0%2Fwazuh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtc0%2Fwazuh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtc0%2Fwazuh/lists"}