{"type":"api","title":"Fetch Script Job Info","meta":{"id":"/apps/pubhub/media/orbital-api/eae5ef1abc124f2d904b17b1697b2df180e92067/6031b5a0-67fa-3480-bf75-857e24b55963","info":{"description":"Documentation of the Orbital API\n\nTo authenticate:\n\n\nFollow steps 1 through 3 from the SecureX Authorization section of this article to generate a SecureX Token.\nhttps://developer.cisco.com/docs/secure-endpoint/#!authentication\n\n\nclick \"Authorize\" button\nIn \"Value\" - enter token from above, prefixed with \"Bearer \" (no quotes)\nClick \"Authorize\", followed by \"Close\"\n\nNow the \"Try it out\" button can work","title":"Orbital API","version":"0.0.1"},"security":[{"AuthorizationHeader":[]}],"openapi":"3.0.3","servers":[{"description":"North America","url":"https://enterprise.orbital.amp.cisco.com/v0"},{"description":"Asia, Pacific, Japan, and China","url":"https://apjc.orbital.amp.cisco.com/v0"},{"description":"Europe","url":"https://eu.orbital.amp.cisco.com/v0"}],"securitySchemes":{"AuthorizationHeader":{"description":"Ex: Bearer \\\u003ctoken\\\u003e","in":"header","name":"authorization","type":"apiKey"}}},"spec":{"description":"Fetch Script Job Info","operationId":"idOfScriptJobInfo","parameters":[{"description":"Job ID of script job","in":"path","name":"jobid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"disabled":{"example":false,"type":"boolean"},"done_count":{"example":5,"format":"int64","type":"integer"},"id":{"example":"123","type":"string"},"is_active":{"example":true,"type":"boolean"},"name":{"example":"example script","type":"string"},"organization":{"example":"11111111-1111-1111-1111-111111111111","type":"string"},"script_info":{"properties":{"args":{"description":"the arguments that can be passed to the script","items":{"properties":{"argtype":{"example":"ORBITAL_BASIC_STRING","type":"string"},"description":{"example":"name of person","type":"string"},"name":{"example":"name","type":"string"},"value":{"example":"bob","type":"string"}},"type":"object","$$ref":"#/components/schemas/ScriptArg"},"type":"array"},"content":{"example":"cHJpbnQoImhlbGxvIHdvcmxkIik=","type":"string"},"stock":{"example":"stock_id","type":"string"}},"type":"object","$$ref":"#/components/schemas/ScriptInfo"},"submitted":{"description":"the time the result was submitted to orbital","format":"date-time","type":"string"}},"type":"object","$$ref":"#/components/schemas/ScriptJobInfo"}}},"description":"Script Job Info.","$$ref":"#/components/responses/ScriptJobInfo"},"400":{"content":{"application/json":{"schema":{"properties":{"errors":{"example":["could not fetch script from db"],"items":{"type":"string"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/ErrorMsg400ScriptJobGet"}}},"description":"Script Job Error 400 Get Response","$$ref":"#/components/responses/ErrorMsg400ScriptJobGet"},"401":{"content":{"application/json":{"schema":{"properties":{"errors":{"example":["authentication required"],"items":{"type":"string"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/ErrorMsg401MissingToken"}}},"description":"Script Error 401 Response","$$ref":"#/components/responses/ErrorMsg401"},"403":{"content":{"application/json":{"schema":{"properties":{"errors":{"example":["access to this feature is not permitted"],"items":{"type":"string"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/ErrorMsg403Forbidden"}}},"description":"Script Error 403 Response","$$ref":"#/components/responses/ErrorMsg403Forbid"}},"summary":"Fetch Script Job Info","tags":["Scripts"],"__originalOperationId":"idOfScriptJobInfo","security":[{"AuthorizationHeader":[]}],"method":"get","path":"/script/{jobid}"}}