iR Engine API
pods
/pods
1 min
code examples curl location globoff '/pods?filter={%22id%22%3a%22string%22%2c%22label%22%3a%22string%22%2c%22pods%22%3a\[%22string%22%2c%22string%22%2c%22string%3cdate time%3e%22%2c\[%22string%22%2c0%2c%22string%3crunning%20%7c%20terminated%20%7c%20waiting%20%7c%20undefined%3e%22%2cfalse%2cfalse%2c%22string%22]]}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("/pods?filter={\\"id\\" \\"string\\",\\"label\\" \\"string\\",\\"pods\\" \[\\"string\\",\\"string\\",\\"string\<date time>\\",\[\\"string\\",0,\\"string\<running | terminated | waiting | undefined>\\",false,false,\\"string\\"]]}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/pods?filter={\\"id\\" \\"string\\",\\"label\\" \\"string\\",\\"pods\\" \[\\"string\\",\\"string\\",\\"string\<date time>\\",\[\\"string\\",0,\\"string\<running | terminated | waiting | undefined>\\",false,false,\\"string\\"]]}") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "/pods?filter={\\"id\\" \\"string\\",\\"label\\" \\"string\\",\\"pods\\" \[\\"string\\",\\"string\\",\\"string\<date time>\\",\[\\"string\\",0,\\"string\<running | terminated | waiting | undefined>\\",false,false,\\"string\\"]]}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // success \[ { "id" "", "label" "", "pods" \[ { "name" "", "status" "", "age" "", "containers" \[ { "name" "", "restarts" 0, "status" "", "ready" false, "started" false, "image" "" } ], "type" "", "locationslug" "", "instanceid" "", "currentusers" 0 } ] } ]// not authenticated // general error