---
title: List Device Group With Secrets Revealed
slug: kron-pam-api-collection-381-patch3/list-device-group-with-secrets-revealed
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "3ZhEOqif5Fr6860vhAg1E",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/{{dbId}}",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This method retrieves device group information, including revealed secret keys.</p>\n<p><strong>Request Example:</strong></p>\n<pre><code>GET /aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/{dbId}\n\n</code></pre>\n<p>Replace <code>{dbId}</code> with the actual <code>dbId</code> of the device group.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "type": "string"
        },
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        },
        {
          "name": "dbId",
          "description": "",
          "default": "dbId",
          "value": "dbId",
          "type": "string"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "getDeviceGroupWithSecretsRevealed",
        "jsonExample": "{\n    \"dbId\": 303880,\n    \"id\": \"7dad2aa5-414a-4b20-86c0-346876ea88b5\",\n    \"name\": \"SSH DG2\",\n    \"description\": null,\n    \"parentGroupId\": null,\n    \"ifaceOperationCheck\": false,\n    \"timeTolerance\": null,\n    \"realms\": [\n        304366,\n        3478516\n    ],\n    \"deviceIds\": [],\n    \"properties\": {\n        \"globalUsername\": \"root\",\n        \"globalSecretKey\": \"test\",\n        \"globalPassword\": \"123\"\n    },\n    \"children\": [],\n    \"devices\": null,\n    \"rootGroupId\": null,\n    \"globalUsername\": \"root\",\n    \"globalPassword\": \"123\",\n    \"showInDeviceTree\": true,\n    \"useAsRoleGroup\": true,\n    \"discoverySources\": null,\n    \"readOnly\": false\n}"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "u6AXk0DzntAozW94rJ5QI",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/{{dbId}} \\\n     --header 'accept: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}'"
        },
        {
          "id": "M13k2UAZx1F3YWni7Zqxf",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/{{dbId}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Xdg4L36Uq1EWP9xKlK6LT",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/{{dbId}}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "3msXDxX2m5pR9Xyo__CWc",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupWithSecretsRevealed/{{dbId}}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "u6AXk0DzntAozW94rJ5QI"
    },
    "results": {
      "languages": [
        {
          "id": "qgQeaGWlLp4fkHvMDZ5YV",
          "language": "200",
          "code": "{\n    \"dbId\": 303880,\n    \"id\": \"7dad2aa5-414a-4b20-86c0-346876ea88b5\",\n    \"name\": \"SSH DG2\",\n    \"description\": null,\n    \"parentGroupId\": null,\n    \"ifaceOperationCheck\": false,\n    \"timeTolerance\": null,\n    \"realms\": [\n        304366,\n        3478516\n    ],\n    \"deviceIds\": [],\n    \"properties\": {\n        \"globalUsername\": \"root\",\n        \"globalSecretKey\": \"test\",\n        \"globalPassword\": \"123\"\n    },\n    \"children\": [],\n    \"devices\": null,\n    \"rootGroupId\": null,\n    \"globalUsername\": \"root\",\n    \"globalPassword\": \"123\",\n    \"showInDeviceTree\": true,\n    \"useAsRoleGroup\": true,\n    \"discoverySources\": null,\n    \"readOnly\": false\n}"
        }
      ],
      "selectedLanguageId": "qgQeaGWlLp4fkHvMDZ5YV"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}