---
title: List Device Group By Parent Group Name
slug: kron-pam-api-collection-381-patch3/list-device-group-by-parent-group-name
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "oI1JLLmbYUoxlYeQNcK2p",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupsByParentGroupName/{{parentGroupName}}",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>The <strong>getDeviceGroupByParentGroupName</strong> method lists device groups that are associated with a specific parent group name in the KRON PAM system.</p>\n<h4>Usage:</h4>\n<ul>\n<li>Add the parent group name to the <code>PARENTGROUPNAME</code> field in the request URL.</li>\n</ul>\n<p>This method is utilized to retrieve all device groups linked to a particular parent group, allowing for better organization and management within the system.</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": "parentGroupName",
          "description": "",
          "default": "parentGroupName",
          "value": "parentGroupName",
          "type": "string"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "getDeviceGroupByParentGroupName",
        "jsonExample": "[\n    {\n        \"dbId\": 826831,\n        \"id\": \"c85a9949-4ab4-459e-972b-2475385ee2a5\",\n        \"name\": \"testDG_child\",\n        \"description\": null,\n        \"parentGroupId\": \"1c2b4ba5-4ec9-4920-ac67-2de4229b2b72\",\n        \"ifaceOperationCheck\": false,\n        \"timeTolerance\": null,\n        \"realms\": [],\n        \"deviceIds\": [],\n        \"properties\": {},\n        \"children\": null,\n        \"devices\": null,\n        \"rootGroupId\": null,\n        \"globalUsername\": null,\n        \"globalPassword\": null,\n        \"showInDeviceTree\": true,\n        \"useAsRoleGroup\": true,\n        \"discoverySources\": null,\n        \"readOnly\": false\n    }\n]"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "Kc2zJXkGzVhGWe0hp0S8W",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/discovery/getDeviceGroupsByParentGroupName/{{parentGroupName}} \\\n     --header 'accept: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}'"
        },
        {
          "id": "UTGNR2Q9FvAWQhsNPgx9Z",
          "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/getDeviceGroupsByParentGroupName/{{parentGroupName}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "LbbdGdeG1sbz6eq6Avrhn",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupsByParentGroupName/{{parentGroupName}}\")\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": "xyGZhQAKPueYdBmBAIypc",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupsByParentGroupName/{{parentGroupName}}\"\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": "Kc2zJXkGzVhGWe0hp0S8W"
    },
    "results": {
      "languages": [
        {
          "id": "xvIcaOn8YhnadT0W4sSlB",
          "language": "200",
          "code": "[\n    {\n        \"dbId\": 826831,\n        \"id\": \"c85a9949-4ab4-459e-972b-2475385ee2a5\",\n        \"name\": \"testDG_child\",\n        \"description\": null,\n        \"parentGroupId\": \"1c2b4ba5-4ec9-4920-ac67-2de4229b2b72\",\n        \"ifaceOperationCheck\": false,\n        \"timeTolerance\": null,\n        \"realms\": [],\n        \"deviceIds\": [],\n        \"properties\": {},\n        \"children\": null,\n        \"devices\": null,\n        \"rootGroupId\": null,\n        \"globalUsername\": null,\n        \"globalPassword\": null,\n        \"showInDeviceTree\": true,\n        \"useAsRoleGroup\": true,\n        \"discoverySources\": null,\n        \"readOnly\": false\n    }\n]"
        }
      ],
      "selectedLanguageId": "xvIcaOn8YhnadT0W4sSlB"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}