{"id":25932147,"url":"https://github.com/lucthienphong1120/uptime-api","last_synced_at":"2025-06-24T04:36:13.287Z","repository":{"id":280414343,"uuid":"941911570","full_name":"lucthienphong1120/uptime-api","owner":"lucthienphong1120","description":"Uptime Kuma RestAPI management script","archived":false,"fork":false,"pushed_at":"2025-03-21T09:44:40.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-19T02:44:43.844Z","etag":null,"topics":["python3","rest-api","uptime-kuma","uptime-kuma-api","uptime-monitor","uptime-sla"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucthienphong1120.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":"2025-03-03T09:05:34.000Z","updated_at":"2025-03-21T09:45:53.000Z","dependencies_parsed_at":"2025-03-03T10:24:37.176Z","dependency_job_id":"62538caf-f2a5-4b54-9e55-09919ae9c58c","html_url":"https://github.com/lucthienphong1120/uptime-api","commit_stats":null,"previous_names":["lucthienphong1120/uptime-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucthienphong1120/uptime-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucthienphong1120%2Fuptime-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucthienphong1120%2Fuptime-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucthienphong1120%2Fuptime-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucthienphong1120%2Fuptime-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucthienphong1120","download_url":"https://codeload.github.com/lucthienphong1120/uptime-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucthienphong1120%2Fuptime-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261605240,"owners_count":23183787,"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":["python3","rest-api","uptime-kuma","uptime-kuma-api","uptime-monitor","uptime-sla"],"created_at":"2025-03-04T00:16:13.369Z","updated_at":"2025-06-24T04:36:13.278Z","avatar_url":"https://github.com/lucthienphong1120.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uptime-API\n\nRef: [lucasheld/uptime-kuma-api:latest](https://uptime-kuma-api.readthedocs.io/en/latest/index.html)\n\n## Install\n\n```sh\npip3 install -r requirements.txt\n```\n\n## Getting Started\n\nSample example about the configuration file from `server1` and import to `server2`\n\n```sh\n# first login to get token file\npython3 api.py -u 192.168.0.100 -a auth_server1.txt\npython3 api.py -u 192.168.0.200 -a auth_server2.txt\n```\n\n```sh\n# export notify, tags and monitor files\npython3 api.py -u 192.168.0.100 -eA\n```\n\n```sh\n# import notify, tags and monitor files\npython3 api.py -u 192.168.0.200 -iA\n```\n\n## Usage\n\n```sh\n# python3 api.py --help\nusage: api.py [-h] -u HOST [-p PORT] [-a AUTH] [-t TOKEN] [-eA] [-iA] [-eM EXPORT_MONITOR] [-iM IMPORT_MONITOR]\n              [-eT EXPORT_TAGS] [-iT IMPORT_TAGS] [-eN EXPORT_NOTIFY] [-iN IMPORT_NOTIFY] [-l] [-d] [-k]\n\nScript IaC Cấu hình Uptime Kuma sử dụng RestAPI\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -u HOST, --host HOST  IP của Host Uptime Kuma (VD: 127.0.0.1)\n  -p PORT, --port PORT  Chỉ định Port của Uptime Kuma (Default: 3001)\n  -a AUTH, --auth AUTH  Đường dẫn đến file xác thực username:password (Default: auth.txt)\n  -t TOKEN, --token TOKEN\n                        Chỉ định file chứa token (Default: token_ip.txt)\n  -eA, --export-all     Xuất toàn bộ Monitor/Notify/Tags ra filename mặc định\n  -iA, --import-all     Nhập toàn bộ Monitor/Notify/Tags từ filename mặc định\n  -eM EXPORT_MONITOR, --export-monitor EXPORT_MONITOR\n                        Xuất danh sách Monitor ra file JSON (VD: monitors.json)\n  -iM IMPORT_MONITOR, --import-monitor IMPORT_MONITOR\n                        Nhập danh sách Monitor từ file JSON (VD: monitors.json)\n  -eT EXPORT_TAGS, --export-tags EXPORT_TAGS\n                        Xuất danh sách Tags ra file JSON (VD: tags.json)\n  -iT IMPORT_TAGS, --import-tags IMPORT_TAGS\n                        Nhập danh sách Tags từ file JSON (VD: tags.json)\n  -eN EXPORT_NOTIFY, --export-notify EXPORT_NOTIFY\n                        Xuất danh sách Notify ra file JSON (VD: notify.json)\n  -iN IMPORT_NOTIFY, --import-notify IMPORT_NOTIFY\n                        Nhập danh sách Notify từ file JSON (VD: notify.json)\n  -l, --list            Liệt kê danh sách Monitor\n  -d, --delete          Xóa tất cả các Monitor\n  -k, --clean-up        Dọn dẹp dữ liệu (events, heartbeats, stats)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucthienphong1120%2Fuptime-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucthienphong1120%2Fuptime-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucthienphong1120%2Fuptime-api/lists"}