Pulling Information from IIS

142 views
Skip to first unread message

Pete Leese

unread,
Jul 17, 2018, 8:31:42 AM7/17/18
to golang-nuts
Hi everyone,

First post here, so go easy on me :)

I'm working on a project that requires to pull information from IIS.

With powershell this is easy with Get-WebApplication

This lists all web applications, Associated Application Pools and Physical Path.

I am really only interested in the "Name" element really as its the Virtual Directory structure I need specifically to progress.

So, my question is, can I get this info using GoLang - ideally don't want to shell off to PowerShell to get this and keep it native to Golang

Thanks in advance :)

Pete


jake...@gmail.com

unread,
Jul 17, 2018, 12:14:08 PM7/17/18
to golang-nuts
Perhaps someone else know of some magic, or IIS golang library.
If it is possible to achieve what you need using .NET libraries, the you could tap into those using cgo. I'm not familiar enough with "Get-WebApplication" to know if that is possible, Just a thought.

Tamás Gulácsi

unread,
Jul 17, 2018, 4:36:58 PM7/17/18
to golang-nuts

ph...@harris-family.info

unread,
Jul 18, 2018, 4:05:58 AM7/18/18
to golang-nuts
Not being a MS or IIS dev myself, I did a quick search and it seems that the iis webadministration objects also have a REST interface:


Maybe that will help?
Reply all
Reply to author
Forward
0 new messages