⚙️API Integration
...
Dispositifs
Objets
4 min
{ "name" "get objects", "method" "get", "url" "https //api fsflt net/panel/device/objects/list", "description" "gets the list of objects in a profile of a given device", "tab" "examples", "examples" { "languages" \[ { "id" "3bxr84mfldpv29ul s4bw", "language" "curl", "code" "curl location request get 'https //api fsflt net/panel/device/objects/list' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"device id\\" \\"string\\",\\"customer code\\" \\"number\\",\\"profile code\\" \\"number\\"}'", "customlabel" "" }, { "id" "ffxuiq0hgszx1ytq3fe3j", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api fsflt net/panel/device/objects/list',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"profile code\\" \\"number\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "bimchtts5sbobyzq3yims", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"profile code\\" \\"number\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/device/objects/list\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "tuqikjrxneft0b5f078b ", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/device/objects/list\\"\n\npayload = json dumps({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"profile code\\" \\"number\\"\n})\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", "customlabel" "" }, { "id" "jkfhogdhk6sv0tqz1nnss", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/device/objects/list\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"profile code\\" \\"number\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "3bxr84mfldpv29ul s4bw" }, "results" { "languages" \[ { "id" "4qwqdwr2ubpxsv9ckgurd", "language" "200", "customlabel" "", "code" "{\n \\"code\\" 200,\n \\"content\\" {\n \\"profile code\\" 1,\n \\"ips\\" \[\n {\n \\"ip\\" \\"1 2 3 4\\",\n \\"disabled\\" false\n },\n {\n \\"ip\\" \\"1 2 3 5\\",\n \\"disabled\\" false\n },\n {\n \\"ip\\" \\"1 2 3 6\\",\n \\"disabled\\" false\n },\n {\n \\"ip\\" \\"ffff\ ffff\ ffff\ ffff\ ffff\ ffff\ ffff\ ffff\\",\n \\"disabled\\" false\n }\n ],\n \\"users\\" \[\n {\n \\"username\\" \\"testuser\\",\n \\"name\\" \\"jhon\\",\n \\"surname\\" \\"smith\\",\n \\"disabled\\" false\n }\n ],\n \\"groups\\" \[\n {\n \\"name\\" \\"administrators\\",\n \\"disabled\\" false\n }\n ]\n }\n}" }, { "id" "87vqrnspwq8gmgrlrwgzx", "language" "412", "code" "{\n \\"code\\" => 412\n \\"content\\" => \\"unauthorized the device id provided is not associated with this customer \\"\n}", "customlabel" "" }, { "id" " aq4px3sz2xshegjwdoss", "language" "409", "code" "{\n \\"code\\" => 409\n \\"content\\" => \\"unauthorized the profile code provided is not associated with this customer \\"\n}", "customlabel" "" } ], "selectedlanguageid" "4qwqdwr2ubpxsv9ckgurd" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "your api key", "children" \[] } ], "bodydataparameters" \[ { "name" "device id", "kind" "required", "type" "string", "description" "the id of the device", "children" \[] }, { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer, ex 1234" }, { "name" "profile code", "kind" "optional", "type" "number", "description" "number of the profile, ex 1", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "add ip address", "method" "post", "url" "https //api fsflt net/panel/device/objects/ip/add", "description" "add a new ip address in a profile for a specific device", "tab" "examples", "examples" { "languages" \[ { "id" "nuwmx37x92qrpbqomcszm", "language" "curl", "code" "curl location request post 'https //api fsflt net/panel/objects/ip/add' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"device id\\" \\"string\\",\\"customer code\\" \\"number\\",\\"ip\\" \\"string\\",\\"profile code\\" \\"number\\"}'", "customlabel" "" }, { "id" "8htfdpehoip6whe fojgi", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/panel/objects/ip/add',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "e3kbc3vjsjcizrziovcpi", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/objects/ip/add\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "onf0bs5u9nsobv6zepx5u", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/objects/ip/add\\"\n\npayload = json dumps({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "d1 he9mtuhcp2ecwva02n", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/objects/ip/add\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "nuwmx37x92qrpbqomcszm" }, "results" { "languages" \[ { "id" "h9xa32cnfmhdrxt51kd8c", "language" "200", "customlabel" "", "code" "{\n \\"code\\" 200,\n \\"content\\" \\"ip inserted successfully \\"\n}" }, { "id" "kziefqy8k rcdyo8je1vo", "language" "412", "customlabel" "", "code" "{\n \\"code\\" => 412\n \\"content\\" => \\"unauthorized the device id provided is not associated with this customer \\"\n}" }, { "id" "vqs7csqz5bf4vbdn9wunw", "language" "403", "code" "{\n \\"code\\" => 403\n \\"content\\" => \\"the cloudbox provided cannot handle ipv6s please upgrade the cloudbox with a version greater than 1 0 5\\"\n}", "customlabel" "" }, { "id" "utqhlh3oijgyo6e0t7qmn", "language" "406", "code" "{\n \\"code\\" => 406\n \\"content\\" => \\"error could not add the requested ip address \\"\n}", "customlabel" "" }, { "id" "bqoss84yku6jrfzc7stzw", "language" "409", "code" "{\n \\"code\\" => 409\n \\"content\\" => \\"unauthorized the profile code provided is not associated with this customer \\"\n}", "customlabel" "" } ], "selectedlanguageid" "bqoss84yku6jrfzc7stzw" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "your api key", "children" \[] } ], "bodydataparameters" \[ { "name" "device id", "kind" "required", "type" "string", "description" "device id ex 123 2", "children" \[] }, { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer" }, { "name" "ip", "kind" "required", "type" "string", "description" "ipv4 / ipv6", "children" \[] }, { "name" "profile code", "kind" "optional", "type" "number", "description" "profile number ex 1", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "add range ip", "method" "post", "url" "https //api fsflt net/panel/device/objects/rangeip/add", "description" "add a new range of ip addresses in a profile for a specific device", "tab" "examples", "examples" { "languages" \[ { "id" "tbjpxnfz1dczlpubltcu ", "language" "curl", "code" "curl location request post 'https //api fsflt net/panel/objects/rangeip/add' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"device id\\" \\"string\\",\\"customer code\\" \\"number\\",\\"ip start\\" \\"string\\",\\"ip end\\" \\"string\\",\\"profile code\\" \\"number\\"}'", "customlabel" "" }, { "id" "0m3znhle4m7zsoz8zhv9a", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/panel/objects/rangeip/add',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "vk9 wmszgkzcsyhw6ifmz", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/objects/rangeip/add\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "k9twpyauichqzt1wsh2kz", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/objects/rangeip/add\\"\n\npayload = json dumps({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "i duoqk0ycts8kat3lste", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/objects/rangeip/add\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "tbjpxnfz1dczlpubltcu " }, "results" { "languages" \[ { "id" "h9xa32cnfmhdrxt51kd8c", "language" "200", "customlabel" "", "code" "{\n \\"code\\" 200,\n \\"content\\" \\"ip inserted successfully \\"\n}" }, { "id" "kziefqy8k rcdyo8je1vo", "language" "412", "customlabel" "", "code" "{\n \\"code\\" => 412\n \\"content\\" => \\"unauthorized the device id provided is not associated with this customer \\"\n}" }, { "id" "vqs7csqz5bf4vbdn9wunw", "language" "403", "code" "{\n \\"code\\" => 403\n \\"content\\" => \\"range ip not valid please provide a valid ip range \\"\n}", "customlabel" "" }, { "id" "utqhlh3oijgyo6e0t7qmn", "language" "406", "code" "{\n \\"code\\" => 406\n \\"content\\" => \\"the supplied ip range exceeds the limits\\"\n}", "customlabel" "" }, { "id" "ojtrar65qllcwji6thrbt", "language" "409", "code" "{\n \\"code\\" => 409\n \\"content\\" => \\"unauthorized the profile code provided is not associated with this customer \\"\n}", "customlabel" "" } ], "selectedlanguageid" "kziefqy8k rcdyo8je1vo" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "your api key", "children" \[] } ], "bodydataparameters" \[ { "name" "device id", "kind" "required", "type" "string", "description" "device id ex 123 2", "children" \[] }, { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer" }, { "name" "ip start", "kind" "required", "type" "string", "description" "ipv4 only", "children" \[] }, { "name" "ip end", "kind" "required", "type" "string", "description" "ipv4 only", "children" \[] }, { "name" "profile code", "kind" "optional", "type" "number", "description" "profile number ex 1", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "add cidr", "method" "post", "url" "https //api fsflt net/panel/device/objects/cidr/add", "description" "add cidr in a profile for a specific device", "tab" "examples", "examples" { "languages" \[ { "id" "ngvrdzvlcatmu2 7jhhyd", "language" "curl", "code" "curl location request post 'https //api fsflt net/panel/objects/cidr/add' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"device id\\" \\"string\\",\\"customer code\\" \\"number\\",\\"cidr\\" \\"string\\",\\"profile code\\" \\"number\\"}'", "customlabel" "" }, { "id" "v4kwhvmotsqynmfjwf9un", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/panel/objects/cidr/add',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "epzu7izwqg 5o5p3 b7m", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/objects/cidr/add\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "xhk7uai0kvj2 c64l7wfz", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/objects/cidr/add\\"\n\npayload = json dumps({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "mvcrhbbxjknhjjkt ehlu", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/objects/cidr/add\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "ngvrdzvlcatmu2 7jhhyd" }, "results" { "languages" \[ { "id" "h9xa32cnfmhdrxt51kd8c", "language" "200", "customlabel" "", "code" "{\n \\"code\\" => 403\n \\"content\\" => \\"the cloudbox provided cannot handle cidrs \\"\n}" }, { "id" "ojtrar65qllcwji6thrbt", "language" "409", "code" "{\n \\"code\\" => 409\n \\"content\\" => \\"unauthorized the profile code provided is not associated with this customer \\"\n}", "customlabel" "" }, { "id" "kziefqy8k rcdyo8je1vo", "language" "412", "customlabel" "", "code" "{\n \\"code\\" => 412\n \\"content\\" => \\"unauthorized the device id provided is not associated with this customer \\"\n}" }, { "id" "vqs7csqz5bf4vbdn9wunw", "language" "403", "code" "{\n \\"code\\" => 403\n \\"content\\" => \\"the cloudbox provided cannot handle cidrs \\"\n}", "customlabel" "" }, { "id" "1wlai87yuex6ol7tc5byj", "language" "406", "code" "{\n \\"code\\" => 406\n \\"content\\" => \\"error could not add the requested cidr address \\"\n}", "customlabel" "" } ], "selectedlanguageid" "1wlai87yuex6ol7tc5byj" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "your api key", "children" \[] } ], "bodydataparameters" \[ { "name" "device id", "kind" "required", "type" "string", "description" "device id ex 123 2", "children" \[] }, { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer" }, { "name" "cidr", "kind" "required", "type" "string", "description" "ipv4 / ipv6 cidr, ex 192 168 1 0/24", "children" \[] }, { "name" "profile code", "kind" "optional", "type" "number", "description" "profile number ", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "remove ip address", "method" "post", "url" "https //api fsflt net/panel/device/objects/ip/remove", "description" "remove ip address from profile for a specific device", "tab" "examples", "examples" { "languages" \[ { "id" "qsrlhcrsqfz gcg56dmbp", "language" "curl", "code" "curl location request post 'https //api fsflt net/panel/objects/ip/remove' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"device id\\" \\"string\\",\\"customer code\\" \\"number\\",\\"ip\\" \\"string\\"}'", "customlabel" "" }, { "id" "hg8c rt8rgosdsfv8g54i", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/panel/objects/ip/remove',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "zq ejav kel9pms6zoeka", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/objects/ip/remove\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "4kghh6xhilu4 vjedmjzi", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/objects/ip/remove\\"\n\npayload = json dumps({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "iy9sb3i6 yoxtthln6qb ", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/objects/ip/remove\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "qsrlhcrsqfz gcg56dmbp" }, "results" { "languages" \[ { "id" "h9xa32cnfmhdrxt51kd8c", "language" "200", "customlabel" "", "code" "{\n \\"code\\" 200,\n \\"content\\" \\"ip removed successfully \\"\n}" }, { "id" "kziefqy8k rcdyo8je1vo", "language" "412", "customlabel" "", "code" "{\n \\"code\\" => 412\n \\"content\\" => \\"unauthorized the device id provided is not associated with this customer \\"\n}" }, { "id" "utqhlh3oijgyo6e0t7qmn", "language" "406", "code" "{\n \\"code\\" => 406\n \\"content\\" => \\"ip given not found \\"\n}", "customlabel" "" } ], "selectedlanguageid" "utqhlh3oijgyo6e0t7qmn" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "your api key", "children" \[] } ], "bodydataparameters" \[ { "name" "device id", "kind" "required", "type" "string", "description" "device id ex 123 2", "children" \[] }, { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer" }, { "name" "ip", "kind" "required", "type" "string", "description" "ipv4 / ipv6", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "remove range ip", "method" "post", "url" "https //api fsflt net/panel/device/objects/rangeip/remove", "description" "removes a range of ip addresses in a profile for a specific device", "tab" "examples", "examples" { "languages" \[ { "id" "v mxgjd8g5 wfsz6d1yqp", "language" "curl", "code" "curl location request post 'https //api fsflt net/panel/objects/rangeip/remove' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"device id\\" \\"string\\",\\"customer code\\" \\"number\\",\\"ip start\\" \\"string\\",\\"ip end\\" \\"string\\"}'", "customlabel" "" }, { "id" "08l4rpxmxgkpwfhpm0mtr", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/panel/objects/rangeip/remove',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "9dmfuldh 7skqwt9k8swr", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/objects/rangeip/remove\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "tfb8wl3htkbdzj8kpmdb ", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/objects/rangeip/remove\\"\n\npayload = json dumps({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "rlcjsxrkotj6iinm1d8ff", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/objects/rangeip/remove\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"ip start\\" \\"string\\",\n \\"ip end\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "v mxgjd8g5 wfsz6d1yqp" }, "results" { "languages" \[ { "id" "h9xa32cnfmhdrxt51kd8c", "language" "200", "customlabel" "", "code" "{\n \\"code\\" 200,\n \\"content\\" \\"range ip removed successfully \\"\n}" }, { "id" "kziefqy8k rcdyo8je1vo", "language" "412", "customlabel" "", "code" "{\n \\"code\\" => 412\n \\"content\\" => \\"unauthorized the device id provided is not associated with this customer \\"\n}" }, { "id" "utqhlh3oijgyo6e0t7qmn", "language" "406", "code" "{\n \\"code\\" => 406\n \\"content\\" => \\"range ip given not found \\"\n}", "customlabel" "" } ], "selectedlanguageid" "h9xa32cnfmhdrxt51kd8c" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "your api key", "children" \[] } ], "bodydataparameters" \[ { "name" "device id", "kind" "required", "type" "string", "description" "device id ex 123 2", "children" \[] }, { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer" }, { "name" "ip start", "kind" "required", "type" "string", "description" "ipv4 only", "children" \[] }, { "name" "ip end", "kind" "required", "type" "string", "description" "ipv4 only", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "remove cidr", "method" "post", "url" "https //api fsflt net/panel/device/objects/cidr/remove", "description" "removes cidr in a profile for a specific device", "tab" "examples", "examples" { "languages" \[ { "id" "zgkriojktvpc1gng6ef2 ", "language" "curl", "code" "curl location request post 'https //api fsflt net/panel/objects/cidr/remove' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"device id\\" \\"string\\",\\"customer code\\" \\"number\\",\\"cidr\\" \\"string\\",\\"profile code\\" \\"number\\"}'", "customlabel" "" }, { "id" "582wwoezvfzxehpeqas9k", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/panel/objects/cidr/remove',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "uxym d7y1cwkbik6pwscn", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/objects/cidr/remove\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "4nvkhpfoxf3nl5imjkwcl", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/objects/cidr/remove\\"\n\npayload = json dumps({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "rpp9sqzd ixzd7b9 xpmr", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/objects/cidr/remove\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"device id\\" \\"string\\",\n \\"customer code\\" \\"number\\",\n \\"cidr\\" \\"string\\",\n \\"profile code\\" \\"number\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "zgkriojktvpc1gng6ef2 " }, "results" { "languages" \[ { "id" "h9xa32cnfmhdrxt51kd8c", "language" "200", "customlabel" "", "code" "{\n \\"code\\" => 403\n \\"content\\" => \\"cidr removed successfully \\"\n}" }, { "id" "kziefqy8k rcdyo8je1vo", "language" "412", "customlabel" "", "code" "{\n \\"code\\" => 412\n \\"content\\" => \\"unauthorized the device id provided is not associated with this customer \\"\n}" }, { "id" "1wlai87yuex6ol7tc5byj", "language" "406", "code" "{\n \\"code\\" => 406\n \\"content\\" => \\"cidr given not found \\"\n}", "customlabel" "" } ], "selectedlanguageid" "h9xa32cnfmhdrxt51kd8c" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "your api key", "children" \[] } ], "bodydataparameters" \[ { "name" "device id", "kind" "required", "type" "string", "description" "device id ex 123 2", "children" \[] }, { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer" }, { "name" "cidr", "kind" "required", "type" "string", "description" "ipv4 / ipv6 cidr, ex 192 168 1 0/24", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }