-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing api for managing Github Enterprise Server #3415
Comments
Specifically, I believe this issue refers to the following endpoints: $ rg /manage/
openapi_operations.yaml
1013: - name: DELETE /manage/v1/access/ssh
1017: - name: GET /manage/v1/access/ssh
1021: - name: POST /manage/v1/access/ssh
1025: - name: GET /manage/v1/checks/system-requirements
1029: - name: GET /manage/v1/cluster/status
1033: - name: GET /manage/v1/config/apply
1037: - name: POST /manage/v1/config/apply
1041: - name: GET /manage/v1/config/apply/events
1045: - name: POST /manage/v1/config/init
1049: - name: GET /manage/v1/config/license
1053: - name: PUT /manage/v1/config/license
1057: - name: GET /manage/v1/config/license/check
1061: - name: GET /manage/v1/config/nodes
1065: - name: GET /manage/v1/config/settings
1069: - name: PUT /manage/v1/config/settings
1073: - name: GET /manage/v1/maintenance
1077: - name: POST /manage/v1/maintenance
1081: - name: GET /manage/v1/replication/status
1085: - name: GET /manage/v1/version |
This would be a great PR for any new contributor to this repo or a new Go developer. Feel free to volunteer for any issue and the issue can be assigned to you so that others don't attempt to duplicate the work. Please check out our CONTRIBUTING.md guide to get started. (In particular, please remember to Thank you! |
Yes, correct, thats a full list of the endpoints |
Opened the PR. |
In GHES version 3.15 they added a new API for managing GHES servers. Release notes can be found here:
https://docs.github.com/en/[email protected]/admin/release-notes#3.15.0-retired
Searching repository i could not find any mention of this API
https://docs.github.com/en/[email protected]/rest/enterprise-admin/manage-ghes?apiVersion=2022-11-28#about-the-manage-github-enterprise-server-api
Why is this required
We have a small exporter for prometheus running on GHES node to expose metrics about services, and alert us for possible failures or errors.
With new API:
https://docs.github.com/en/[email protected]/rest/enterprise-admin/manage-ghes?apiVersion=2022-11-28#get-the-status-of-services-running-on-all-cluster-nodes
we can run this off host, which will also make upgrades easier, since we don't need to copy binary and do firewall/systemd changes for it.
The text was updated successfully, but these errors were encountered: