---
title: List Device Group By Dbid Without Devices
slug: single-connect-api-3-2-0/list-device-group-by-dbid-without-devices
description: Learn how to make a GET request to a desired URL endpoint effortlessly with this comprehensive code example using cURL. Enhance your understanding of sending and accepting JSON data by examining the included headers. Boost your programming skills today!
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "c1WMfKT7ZQANU3oCzNNFb",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/DgDbID",
    "method": "GET",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "Content-Type",
          "type": "string",
          "example": "application/json",
          "description": ""
        },
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "getDeviceGroupByDbidWithoutDevices",
        "jsonExample": "{\n    \"dbId\": 107395,\n    \"id\": \"8851fead-2b5e-4769-b847-fc8a898999a0\",\n    \"name\": \"SSH\",\n    \"description\": null,\n    \"parentGroupId\": null,\n    \"ifaceOperationCheck\": false,\n    \"timeTolerance\": null,\n    \"realms\": [\n        107888\n    ],\n    \"deviceIds\": [\n        137963\n    ],\n    \"properties\": {\n        \"globalUsername\": \"root\",\n        \"globalPassword\": \"8k646jpc0XKY+gdetfj3jw==\"\n    },\n    \"children\": [],\n    \"devices\": null,\n    \"rootGroupId\": null,\n    \"globalUsername\": \"root\",\n    \"globalPassword\": \"8k646jpc0XKY+gdetfj3jw==\",\n    \"showInDeviceTree\": true,\n    \"useAsRoleGroup\": true,\n    \"discoverySources\": null,\n    \"readOnly\": false\n}"
      }
    ],
    "contentType": "application/json",
    "description": "This method lists Device group detail.\n\nEnter the DbID of chosen device group to \"DgDbID\" field in get url.",
    "examples": {
      "languages": [
        {
          "id": "rE6nNKaZ0y7blkKDy4xL5",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/DgDbID \\\n     --header 'accept: application/json'"
        },
        {
          "id": "WRzYFZDV5njsv-gdYFAoB",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/DgDbID\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "PvGv2wdBpKIJ_nJSKwfnz",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/DgDbID\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "YwEURapGzS_wmMPw0aHu6",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/discovery/getDeviceGroupByDbidWithoutDevices/DgDbID\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "rE6nNKaZ0y7blkKDy4xL5"
    },
    "results": {
      "languages": [
        {
          "id": "rWtlP5BqLlRNbIZC8MsKH",
          "language": "200",
          "code": "{\n    \"dbId\": 107395,\n    \"id\": \"8851fead-2b5e-4769-b847-fc8a898999a0\",\n    \"name\": \"SSH\",\n    \"description\": null,\n    \"parentGroupId\": null,\n    \"ifaceOperationCheck\": false,\n    \"timeTolerance\": null,\n    \"realms\": [\n        107888\n    ],\n    \"deviceIds\": [\n        137963\n    ],\n    \"properties\": {\n        \"globalUsername\": \"root\",\n        \"globalPassword\": \"8k646jpc0XKY+gdetfj3jw==\"\n    },\n    \"children\": [],\n    \"devices\": null,\n    \"rootGroupId\": null,\n    \"globalUsername\": \"root\",\n    \"globalPassword\": \"8k646jpc0XKY+gdetfj3jw==\",\n    \"showInDeviceTree\": true,\n    \"useAsRoleGroup\": true,\n    \"discoverySources\": null,\n    \"readOnly\": false\n}"
        }
      ],
      "selectedLanguageId": "rWtlP5BqLlRNbIZC8MsKH"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}