---
title: Get Device List of Request
slug: kron-pam-api-collection-381-patch3/get-device-list-of-request
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "aMX7nQFTnwafTcB3B2pCa",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/aioc-rest-web/rest/rap/getDeviceListOfRequest/{{requestId}}",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<ul>\n<li>\n<p><strong>URL Parameter:</strong></p>\n<ul>\n<li><strong>requestId</strong> - The unique identifier for the request.</li>\n</ul>\n</li>\n<li>\n<p><strong>Response:</strong></p>\n<ul>\n<li>\n<p>A list of device objects is returned. Each object contains:</p>\n<ul>\n<li>\n<p><strong>id</strong> - Unique device identifier.</p>\n</li>\n<li>\n<p><strong>name</strong> - The name of the device.</p>\n</li>\n<li>\n<p><strong>managementIp</strong> - The target IP address.</p>\n</li>\n<li>\n<p><strong>accessProtocol</strong> - The protocol used to access the device (e.g., RDP).</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
    "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"
        },
        {
          "name": "requestId",
          "description": "",
          "default": "requestId",
          "value": "requestId",
          "type": "string"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Get Device List of Request",
        "jsonExample": "[\n    {\n        \"id\": \"dbcd3354-5fde-4de9-8305-f3ebde5cda29\",\n        \"name\": \"10.20.42.55-LDAP\",\n        \"managementIp\": \"10.20.42.55\",\n        \"accessProtocol\": \"RDP\"\n    },\n    {\n        \"id\": \"74ad4307-02a6-4643-ac85-c809c69a27bb\",\n        \"name\": \"10.20.41.49\",\n        \"managementIp\": \"10.20.41.49\",\n        \"accessProtocol\": \"RDP\"\n    }\n]"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "I05rwCJxhNLt7OIFYm_BO",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/rap/getDeviceListOfRequest/{{requestId}} \\\n     --header 'accept: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}'"
        },
        {
          "id": "ZFISw38vdgu144lb85DDO",
          "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/rap/getDeviceListOfRequest/{{requestId}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "6b0mck4Xx4qilujspatEn",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/rap/getDeviceListOfRequest/{{requestId}}\")\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": "XYzG6Em-BXDG4mFF35CFX",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/rap/getDeviceListOfRequest/{{requestId}}\"\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": "I05rwCJxhNLt7OIFYm_BO"
    },
    "results": {
      "languages": [
        {
          "id": "lkT4U093pctbm7Gxfysyg",
          "language": "200",
          "code": "[\n    {\n        \"id\": \"dbcd3354-5fde-4de9-8305-f3ebde5cda29\",\n        \"name\": \"10.20.42.55-LDAP\",\n        \"managementIp\": \"10.20.42.55\",\n        \"accessProtocol\": \"RDP\"\n    },\n    {\n        \"id\": \"74ad4307-02a6-4643-ac85-c809c69a27bb\",\n        \"name\": \"10.20.41.49\",\n        \"managementIp\": \"10.20.41.49\",\n        \"accessProtocol\": \"RDP\"\n    }\n]"
        }
      ],
      "selectedLanguageId": "lkT4U093pctbm7Gxfysyg"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}