ccin2p3 / go-freeipa

A generated golang client for the FreeIPA API.
Other
7 stars 15 forks source link

get hosts #4

Open nzubarev122 opened 2 years ago

nzubarev122 commented 2 years ago

Hello

how can i request to upload hosts in json format? Please set an example

example via ipa : ipa host_show

riton commented 2 years ago

Hi @nzubarev122

After reading your question 3 times, I'm still not sure to understand what you're asking... the ipa host_show part of your message still confuses me.

Can you detail what you're trying to do ? and what you're expecting from this library ?

Regards

nzubarev122 commented 2 years ago

Sorry for my English. I need to get a list of all hosts that are in freeipa. please give me an example of how to get it .

a similar output through the ipa command looks something like ipa host_show

Sorry for my English. I need to get a list of all hosts that are in freeipa. please give me an example of how to get it .

a similar output through the ipa command looks something like ipa host_show

riton commented 2 years ago

The newly added examples/list_hosts/main.go file should help you.

I let you close this issue if you have everything you need to work with this library.

Regards