https://github.com/dadav/redhat-subscription-exporter
https://github.com/dadav/redhat-subscription-exporter
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dadav/redhat-subscription-exporter
- Owner: dadav
- Created: 2025-09-15T19:30:31.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-15T19:34:07.000Z (9 months ago)
- Last Synced: 2025-09-15T21:25:12.958Z (9 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Usage
Get your token from [here](https://access.redhat.com/management/api) and export it as `RH_OFFLINE_TOKEN`.
Then run this binary with these options:
- `-export ` to save the subscriptions in a json file
- `-import-url ` to load the subscriptions from a remote json file
- `-import-username ` to use basic auth for `-import-url`
- `-import-password ` to use basic auth for `-import-url`
## Overwrites
You can also overwrite other settings with these vars:
- `RH_TOKEN_URL`: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token"
- `RH_API_URL`: https://api.access.redhat.com/management/v1/subscriptions
- `RH_FETCH_INTERVAL`: 30
You can overwrite the commandline flags with these vars:
- `RH_EXPORT_FILE` overwrites `-export`
- `RH_IMPORT_URL` overwrites `-import-url`
- `RH_IMPORT_USERNAME` overwrites `-import-username`
- `RH_IMPORT_PASSWORD` overwrites `-import-password`