API Documentation
...
Model Scanner
<GET> Supply chain get policy
1 min
the supply chain get policy api allows users to fetch the currently configured security policies for a specified repository type this includes policies related to scan format suppression, file format suppression, vulnerability types, and tool strictness levels { "name" "get policy", "method" "get", "url" "https //api aws boschaishield com/prod/api/ais/v1 5/developer/get policy", "description" "this api fetches the configured policy ", "tab" "examples", "examples" { "languages" \[ { "id" "vvyrl lmbxhzl6cfcelkp", "language" "python", "code" "import requests\n\nurl = \\"https //api aws boschaishield com/prod/api/ais/v1 5/developer/get policy\\"\n\npayload = {}\nheaders = {\n 'x api key' 'string',\n 'org id' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "vg0uyn2ahycnjeuwa9po1", "language" "curl", "code" "curl location 'https //api aws boschaishield com/prod/api/ais/v1 5/developer/get policy' \\\\\n header 'x api key string' \\\\\n header 'org id string'", "customlabel" "" }, { "id" "tlrurddout3pxqkhz4w o", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api aws boschaishield com/prod/api/ais/v1 5/developer/get policy',\n 'headers' {\n 'x api key' 'string',\n 'org id' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "v2f3tpnbcifhppgotx0nb", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"x api key\\", \\"string\\");\nmyheaders append(\\"org id\\", \\"string\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api aws boschaishield com/prod/api/ais/v1 5/developer/get policy\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "uuoag6uioutxw8awsrvrr", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api aws boschaishield com/prod/api/ais/v1 5/developer/get policy\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"x api key\\"] = \\"string\\"\nrequest\[\\"org id\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "vvyrl lmbxhzl6cfcelkp" }, "results" { "languages" \[ { "id" "n1fpc35szxbcewxck2psw", "language" "200", "customlabel" "", "code" "//200 policy response as json" }, { "id" "horypjvdzsbrzlir1dshs", "language" "401", "code" "// 401 unauthorized returns an error message if the provided api key or org id is invalid or expired ", "customlabel" "" }, { "id" "idvosm2klznuhseonktcg", "language" "400", "customlabel" "", "code" "// 400 bad request error returns an error message if the application cannot or will not process the request due to something that is perceived to be a client error (for example, malformed request syntax, invalid request message framing, etc )" }, { "id" "fxgzoafylqrrate0xu1u7", "language" "412", "code" "// 412 precondition failed returns an error message if access to the target resource has been denied (for example if any of the parameter value is incorrect or license has expired)", "customlabel" "" } ], "selectedlanguageid" "n1fpc35szxbcewxck2psw" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "x api key", "kind" "required", "type" "string", "description" "enter your api key", "" "required" }, { "name" "org id", "kind" "required", "type" "string", "description" "enter your organization id", "" "enter your organization id" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" true }