KRON PAM API Collection v3.7.0
Device Management
List Device Group With Secrets Revealed
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/discovery/getdevicegroupwithsecretsrevealed/dbid' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x xsrf token {{csrftoken}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x xsrf token", "{{csrftoken}}"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("{{url}}/aioc rest web/rest/discovery/getdevicegroupwithsecretsrevealed/dbid", 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("{{url}}/aioc rest web/rest/discovery/getdevicegroupwithsecretsrevealed/dbid") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x xsrf token"] = "{{csrftoken}}" response = http request(request) puts response read body import requests import json url = "{{url}}/aioc rest web/rest/discovery/getdevicegroupwithsecretsrevealed/dbid" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x xsrf token' '{{csrftoken}}' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses { "dbid" 303880, "id" "7dad2aa5 414a 4b20 86c0 346876ea88b5", "name" "ssh dg2", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 304366, 3478516 ], "deviceids" \[], "properties" { "globalusername" "root", "globalsecretkey" "test", "globalpassword" "123" }, "children" \[], "devices" null, "rootgroupid" null, "globalusername" "root", "globalpassword" "123", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }