Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jirihnidek/rhsm-next
New rhsm service providing new RHSM2 D-Bus API
https://github.com/jirihnidek/rhsm-next
Last synced: about 8 hours ago
JSON representation
New rhsm service providing new RHSM2 D-Bus API
- Host: GitHub
- URL: https://github.com/jirihnidek/rhsm-next
- Owner: jirihnidek
- License: gpl-3.0
- Created: 2023-09-18T11:52:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T09:35:00.000Z (12 days ago)
- Last Synced: 2024-11-04T10:29:41.681Z (12 days ago)
- Language: Go
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Red Hat Subscription Management Service 2.0
===========================================The Red Hat Subscription Management Service provides D-Bus API. It is implemented
in Go.## Build instruction
```
go build
```## Testing rhsm-next
Start `rhsm-next` using in Terminal #1:
```
sudo -u rhsm2 ./rhsm-next
```Then you can call methods for each interface in Terminal #2
### com.redhat.RHSM2.Consumer
```
busctl --system call com.redhat.RHSM2 /com/redhat/RHSM2/Consumer \
com.redhat.RHSM2.Consumer GetOrg s "en_US.utf-8"
``````
busctl --system call com.redhat.RHSM2 /com/redhat/RHSM2/Consumer \
com.redhat.RHSM2.Consumer GetUuid s "en_US.utf-8"
```### com.redhat.RHSM2.Register
```
busctl --system call com.redhat.RHSM2 /com/redhat/RHSM2/Register \
com.redhat.RHSM2.Register GetOrgs sss "admin" "admin" ""
``````
busctl --system call com.redhat.RHSM2 /com/redhat/RHSM2/Register \
com.redhat.RHSM2.Register RegisterWithUsername sssa{ss}s "donaldduck" "admin" "admin" 0 ""
``````
busctl --system call com.redhat.RHSM2 /com/redhat/RHSM2/Register \
com.redhat.RHSM2.Register RegisterWithActivationKey sasa{ss}s "donaldduck" 1 "awesome_os_pool" 0 ""
```