Cloud
Get AWS Lambda function detail
get/cloud/aws/lambda/{project}/{region}/{name}
Request
- Base URL/v1 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared. Required headers: X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectstring required
Project name
regionstring required
Region name
namestring required
Function name
Headers
X-Auth-Tokenstring required
Response
Success
Example response
{
"function_name": "nvnodejs",
"region": "us-west-1",
"report": [
{
"function_id": "arn:aws:lambda:us-west-1:831010404316:function:nvnodejs",
"version": "1",
"scan_result": {
"scan_brief": {
"status": "scheduled",
"result": "success",
"scanned_timestamp": 1516561253,
"scanned_at": "2018-01-21T19:00:53Z",
"base_os": "ubuntu:16.04",
"scanner_version": "1.011",
"cvedb_create_time": "2018-06-20T19:00:53Z"
},
"scan_report": {
"vulnerabilities": [
{
"name": "CVE-2015-8356",
"score": 7.2,
"severity": "High",
"description": "The setup_env function in group.c in sshd in OpenSSH allows local users to gain privileges.",
"package_name": "openssh",
"package_version": "7.2_p2-r0",
"fixed_version": "1:7.2p2-3",
"link": "https://security-tracker.debian.org/tracker/CVE-2015-8356",
"score_v3": 7.3,
"published_timestamp": 1516561260,
"last_modified_timestamp": 1516561253,
"in_base_image": true
}
],
"modules": [
{
"name": "scanner",
"version": "1.011",
"source": "github"
}
],
"checks": [
{
"catalog": "docker",
"level": "INFO",
"test_number": "1",
"profile": "Level 1",
"scored": true,
"automated": true,
"description": "General Configuration",
"message": [
"Host Configuration"
],
"group": "nv.calico"
}
]
}
},
"allowed_resources": {
"key": "AWSLambdaFullAccess",
"value": {
"aws_attached_policy": true,
"policy_permission_level": "High",
"allowed_detail": {
"key": "cloudformation",
"value": [
{
"permission_level": "Low",
"resource": "DescribeChangeSet"
}
]
}
}
},
"req_resources": {
"value": {
"aws_attached_policy": true,
"policy_permission_level": "High",
"allowed_detail": {
"key": "cloudformation",
"value": [
{
"permission_level": "Low",
"resource": "DescribeChangeSet"
}
]
}
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.