---
title: Get Policy Group without Policy Keys by Policy Group DBID
slug: kron-pam-api-collection-3-7-0/get-policy-group-without-policy-keys-by-policy-group-dbid
docTags: 
createdAt: 2025-05-08T12:58:23.101Z
---

{
  "id": "oJjMo55MLNXnBAcRpIJi-",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/aioc-rest-web/rest/policy/getPolicyGroupByDbidWithoutPolicyKeys/POLICYGROUPDBID",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This API retrieves policy groups without including their policy keys using the provided policy group dbId in the request URL.</p>\n<ul>\n<li><strong>policy group dbId</strong>: The dbId of the policy group to be listed without policy keys.</li>\n</ul>\n<p>The response includes the policy groups corresponding to the specified dbId, excluding the policy keys.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "List Policy Group without Policy Keys by Policy Group DBID",
        "jsonExample": "[\n    {\n        \"dbId\": 376256,\n        \"name\": \"PG_linux\",\n        \"description\": null,\n        \"policies\": [],\n        \"policyKeys\": [],\n        \"httpPolicies\": [],\n        \"maskingPolicies\": [],\n        \"timeRestrictions\": [],\n        \"realms\": [\n            376291\n        ],\n        \"sendEmail\": false,\n        \"sendSnmp\": false,\n        \"action\": \"GENERATE_ERROR\",\n        \"confirmationText\": null,\n        \"operationMode\": \"OPERATION\",\n        \"userCreate\": \"admin\",\n        \"userUpdate\": null,\n        \"creationDate\": 1581605384541,\n        \"lastUpdate\": null\n    }\n]"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "LSWPmj677cx1ZPPVuv2Zy",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/policy/getPolicyGroupByDbidWithoutPolicyKeys/POLICYGROUPDBID \\\n     --header 'accept: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}'"
        },
        {
          "id": "Z5CN_NUVD8QqNTIUw4Ekm",
          "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/policy/getPolicyGroupByDbidWithoutPolicyKeys/POLICYGROUPDBID\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "vbMjY-Xz9iT4JP-FL7mtY",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/policy/getPolicyGroupByDbidWithoutPolicyKeys/POLICYGROUPDBID\")\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": "r5_XLUHFtHfBxzWIorKLG",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/policy/getPolicyGroupByDbidWithoutPolicyKeys/POLICYGROUPDBID\"\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": "LSWPmj677cx1ZPPVuv2Zy"
    },
    "results": {
      "languages": [
        {
          "id": "PinVcnPGjJx_TMWYoL1qE",
          "language": "200",
          "code": "[\n    {\n        \"dbId\": 376256,\n        \"name\": \"PG_linux\",\n        \"description\": null,\n        \"policies\": [],\n        \"policyKeys\": [],\n        \"httpPolicies\": [],\n        \"maskingPolicies\": [],\n        \"timeRestrictions\": [],\n        \"realms\": [\n            376291\n        ],\n        \"sendEmail\": false,\n        \"sendSnmp\": false,\n        \"action\": \"GENERATE_ERROR\",\n        \"confirmationText\": null,\n        \"operationMode\": \"OPERATION\",\n        \"userCreate\": \"admin\",\n        \"userUpdate\": null,\n        \"creationDate\": 1581605384541,\n        \"lastUpdate\": null\n    }\n]"
        }
      ],
      "selectedLanguageId": "PinVcnPGjJx_TMWYoL1qE"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}