Skip to main content
Known Participant
April 21, 2016
Question

How to make an admin HTTP API call for a specific vhost ?

  • April 21, 2016
  • 0 replies
  • 256 views

Hello,

I've read the documentation for the Admin API and although the 'vhost=vhost.com' parameter works fine for methods such as restartVHost, stopVHost, etc, I can't use this parameter with other methods such as getLiveStreams. Querying fmsadmin using the vhost URL and admin user credentials works, but I can't find a way to query the same info using the server hostname. e.g.

This works:
http://vhost.com:1111/admin/getLiveStreams?auser=admin&apswd=pass

This does not:

http://serverhostname.com:1111/admin/getLiveStreams?auser=admin&apswd=pass&vhost=vhost.com

Tried other possibilities as well..

http://serverhostname.com:1111/admin/getLiveStreams?auser=admin&apswd=pass&vhost=_defaultRoot_/vhost.com

http://serverhostname.com:1111/admin/getLiveStreams?auser=_defaultRoot_/admin&apswd=pass&vhost=vhost.com

http://serverhostname.com:1111/admin/getLiveStreams?auser=admin&apswd=pass&scope=_defeaultRoot_/vhost.com

Unfortunately we can not query fmsadmin using the vhost url, so how can we retrieve this info using the server hostname and the admin user/pass? Shouldn't this be possible?

    This topic has been closed for replies.