API Documentation
...
Model Scanner
<POST> Generate Model ID
1 min
the generate model id api is used to create a unique model id and generate a presigned url for uploading a file the model id acts as an identifier for the supply chain analysis when r epo type is set to "file" { "name" "generate model id", "method" "post", "url" "https //api aws boschaishield com/prod/api/ais/v1 5/generate model id", "description" "this api generates a unique model id and provides a presigned url for uploading a model file, which is required for supply chain analysis when repo type=\\"file\\" ", "tab" "examples", "examples" { "languages" \[ { "id" "frgapb2ad4 u5wqru ras", "language" "python", "code" "import requests\n\nurl = \\"https //api aws boschaishield com/prod/api/ais/v1 5/generate model id\\"\n\npayload = {}\nheaders = {\n 'x api key' 'string',\n 'org id' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "hwvu0icwyys9t1z8wwabj", "language" "curl", "code" "curl location request post 'https //api aws boschaishield com/prod/api/ais/v1 5/generate model id' \\\\\n header 'x api key string' \\\\\n header 'org id string'", "customlabel" "" }, { "id" "cgj5 5ddtbzwdaujtn5a9", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api aws boschaishield com/prod/api/ais/v1 5/generate model id',\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" "zp0khmgw1w3fwteqb2fgn", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"x api key\\", \\"string\\");\nmyheaders append(\\"org id\\", \\"string\\");\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api aws boschaishield com/prod/api/ais/v1 5/generate model id\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "vj8db tfeqazwm4gtamg", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api aws boschaishield com/prod/api/ais/v1 5/generate model id\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"x api key\\"] = \\"string\\"\nrequest\[\\"org id\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "frgapb2ad4 u5wqru ras" }, "results" { "languages" \[ { "id" "n1fpc35szxbcewxck2psw", "language" "200", "customlabel" "", "code" "{\n \\"api version\\" \\"1 5\\",\n \\"artifact path\\" {\n \\"fields\\" {\n \\"key\\" \\"xxxxx\\",\n \\"policy\\" \\"xxxxx\\",\n \\"x amz algorithm\\" \\"xxxxx\\",\n \\"x amz credential\\" \\"xxxxx\\",\n \\"x amz date\\" \\"xxxxx\\",\n \\"x amz signature\\" \\"xxxxx\\"\n },\n \\"url\\" \\"xxxxx\\"\n },\n \\"model id\\" \\"xxxxx\\"\n}" }, { "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", "" "enter your api key" }, { "name" "org id", "kind" "required", "type" "string", "description" "enter your organization id", "" "enter your organization id" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" }, "hastryitout" true }