---
title: Delete Device Group Ip Pattern
slug: kronpam-api-collection-350/delete-device-group-ip-pattern
docTags: 
createdAt: 2024-07-22T09:58:47.221Z
---

{
  "id": "TVSsfOWMChA6Sbt6VSuI2",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "{{url}}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern",
    "name": "",
    "description": "<p>This method deletes Ip Pattern of the device group.\nMandatory field:\n\"deviceGroupId\"</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Host",
          "description": "",
          "default": " localhost",
          "value": " localhost",
          "type": "string"
        },
        {
          "name": "User-Agent",
          "description": "",
          "default": " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0",
          "value": " Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0",
          "type": "string"
        },
        {
          "name": "Accept",
          "description": "",
          "default": " application/json, text/plain, */*",
          "value": " application/json, text/plain, */*",
          "type": "string"
        },
        {
          "name": "Accept-Language",
          "description": "",
          "default": " en-US,en;q=0.5",
          "value": " en-US,en;q=0.5",
          "type": "string"
        },
        {
          "name": "Accept-Encoding",
          "description": "",
          "default": " gzip, deflate",
          "value": " gzip, deflate",
          "type": "string"
        },
        {
          "name": "Referer",
          "description": "",
          "default": " http://localhost",
          "value": " http://localhost",
          "type": "string"
        },
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "type": "string"
        },
        {
          "name": "Connection",
          "description": "",
          "default": " keep-alive",
          "value": " keep-alive",
          "type": "string"
        },
        {
          "name": "Pragma",
          "description": "",
          "default": " no-cache",
          "value": " no-cache",
          "type": "string"
        },
        {
          "name": "Cache-Control",
          "description": "",
          "default": " no-cache",
          "value": " no-cache",
          "type": "string"
        },
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{\n        \"dbId\": 118263,\n        \"deviceGroupId\": \"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\",\n        \"interfaceName\": null,\n        \"action\": \"ALLOW\",\n        \"ipPattern\": \"^10\\\\.20\\\\.40\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\"\n    }",
          "value": "{\n        \"dbId\": 118263,\n        \"deviceGroupId\": \"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\",\n        \"interfaceName\": null,\n        \"action\": \"ALLOW\",\n        \"ipPattern\": \"^10\\\\.20\\\\.40\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\"\n    }",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "deleteDeviceGroupIpPattern",
        "jsonExample": "Success"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "axodaAELP6aYYCD353y51",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern \\\n     --header 'accept: application/json, text/plain, */*' \\\n     --header 'content-type: application/json' \\\n     --header 'host: localhost' \\\n     --header 'user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0' \\\n     --header 'accept-language: en-US,en;q=0.5' \\\n     --header 'accept-encoding: gzip, deflate' \\\n     --header 'referer: http://localhost' \\\n     --header 'connection: keep-alive' \\\n     --header 'pragma: no-cache' \\\n     --header 'cache-control: no-cache' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n        \\\"dbId\\\": 118263,\\n        \\\"deviceGroupId\\\": \\\"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\\\",\\n        \\\"interfaceName\\\": null,\\n        \\\"action\\\": \\\"ALLOW\\\",\\n        \\\"ipPattern\\\": \\\"^10\\\\\\\\.20\\\\\\\\.40\\\\\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\\\"\\n    }\"'"
        },
        {
          "id": "xCuayftC5BAvmmTHCXBLz",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \" application/json, text/plain, */*\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"host\", \" localhost\");\nmyHeaders.append(\"user-agent\", \" Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0\");\nmyHeaders.append(\"accept-language\", \" en-US,en;q=0.5\");\nmyHeaders.append(\"accept-encoding\", \" gzip, deflate\");\nmyHeaders.append(\"referer\", \" http://localhost\");\nmyHeaders.append(\"connection\", \" keep-alive\");\nmyHeaders.append(\"pragma\", \" no-cache\");\nmyHeaders.append(\"cache-control\", \" no-cache\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar raw = JSON.stringify(\"{\\n        \\\"dbId\\\": 118263,\\n        \\\"deviceGroupId\\\": \\\"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\\\",\\n        \\\"interfaceName\\\": null,\\n        \\\"action\\\": \\\"ALLOW\\\",\\n        \\\"ipPattern\\\": \\\"^10\\\\\\\\.20\\\\\\\\.40\\\\\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\\\"\\n    }\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "HCtrtLPQ5yrzMrI_VtwJt",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \" application/json, text/plain, */*\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"host\"] = \" localhost\"\nrequest[\"user-agent\"] = \" Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0\"\nrequest[\"accept-language\"] = \" en-US,en;q=0.5\"\nrequest[\"accept-encoding\"] = \" gzip, deflate\"\nrequest[\"referer\"] = \" http://localhost\"\nrequest[\"connection\"] = \" keep-alive\"\nrequest[\"pragma\"] = \" no-cache\"\nrequest[\"cache-control\"] = \" no-cache\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\n        \\\"dbId\\\": 118263,\\n        \\\"deviceGroupId\\\": \\\"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\\\",\\n        \\\"interfaceName\\\": null,\\n        \\\"action\\\": \\\"ALLOW\\\",\\n        \\\"ipPattern\\\": \\\"^10\\\\\\\\.20\\\\\\\\.40\\\\\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\\\"\\n    }\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "5RZjZU-ziHcBVHHc5Fvxm",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/discovery/deleteDeviceGroupIpPattern\"\n\npayload = json.dumps(\"{\\n        \\\"dbId\\\": 118263,\\n        \\\"deviceGroupId\\\": \\\"d8a5810e-f17e-43f4-8036-86a10c5e2ba0\\\",\\n        \\\"interfaceName\\\": null,\\n        \\\"action\\\": \\\"ALLOW\\\",\\n        \\\"ipPattern\\\": \\\"^10\\\\\\\\.20\\\\\\\\.40\\\\\\\\.(1([0-9][0-8])|2([0-4][0-8]|5[0-5]))$\\\"\\n    }\")\nheaders = {\n   'accept': ' application/json, text/plain, */*',\n   'content-type': 'application/json',\n   'host': ' localhost',\n   'user-agent': ' Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0',\n   'accept-language': ' en-US,en;q=0.5',\n   'accept-encoding': ' gzip, deflate',\n   'referer': ' http://localhost',\n   'connection': ' keep-alive',\n   'pragma': ' no-cache',\n   'cache-control': ' no-cache',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "axodaAELP6aYYCD353y51"
    },
    "results": {
      "languages": [
        {
          "id": "0bADi7wxUn-XwQUMPjXbA",
          "language": "200",
          "code": "Success"
        }
      ],
      "selectedLanguageId": "0bADi7wxUn-XwQUMPjXbA"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}