Ad Widget

Collapse

service.getsla replace serviceid with hostname....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bostonmacosx
    Junior Member
    • Mar 2013
    • 11

    #1

    service.getsla replace serviceid with hostname....

    the below works ok but I'm looking how to get the hostnames/realnames back from the API and not just a serviceID.
    If that is not possible any ideas on how to achieve this are appreciated.

    Code:
    $content4 = '{
    	"jsonrpc":"2.0",
    	"method":"service.getsla",
    	"params":{
    		"output":["host"],
    		"intervals":
    		[
    		{"from": "'.$fromtime.'","to":"'.$now.'"}
    		] 
    	},
    	"auth":"2ec8d1a216a4b2e2beed891650b5b966",
    	"id":"2"
    }';
Working...