{
  "info": {
    "_postman_id": "a568ade1-8541-4711-8bc8-cbdfef02ffc4",
    "name": "Inspector2 Accountpermissions Codesnippet API",
    "description": "Amazon Inspector is a vulnerability discovery service that automates continuous scanning for security vulnerabilities within your Amazon EC2 and Amazon ECR environments.\n\nContact Support:\n Name: Mike Ralphson\n Email: mike.ralphson@gmail.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T10:28:03.000Z",
    "updatedAt": "2026-07-28T10:28:03.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-a568ade1-8541-4711-8bc8-cbdfef02ffc4"
  },
  "item": [
    {
      "name": "codesnippet",
      "item": [
        {
          "name": "batchget",
          "item": [
            {
              "name": "Amazon Inspector Batch Get Code Snippet",
              "id": "4e8fb0e8-40cf-45f8-a627-1ab18b8f6b7a",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-Amz-Content-Sha256",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Date",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Algorithm",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Credential",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Security-Token",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Signature",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-SignedHeaders",
                    "value": "<string>"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"findingArns\": [\n    \"arn::inspector2:hn-whzm-7:225276210584:finding/86aa9e87d945814c816921d4dcd9c6e7\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/codesnippet/batchget",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "codesnippet",
                    "batchget"
                  ]
                },
                "description": "Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in."
              },
              "response": [
                {
                  "id": "a1ab479d-5b89-4ba4-bd44-44f70661ba23",
                  "name": "Success",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "X-Amz-Content-Sha256",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Date",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Algorithm",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Credential",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Security-Token",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Signature",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-SignedHeaders",
                        "value": "<string>"
                      },
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authorization",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"findingArns\": [\n    \"arn::inspector2:hn-whzm-7:225276210584:finding/86aa9e87d945814c816921d4dcd9c6e7\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/codesnippet/batchget",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codesnippet",
                        "batchget"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"codeSnippetResults\": [\n    {\n      \"codeSnippet\": [\n        {\n          \"content\": \"<string>\",\n          \"lineNumber\": \"<integer>\"\n        }\n      ],\n      \"endLine\": \"<integer>\",\n      \"findingArn\": \"arn:awsfewrJzrRP:inspector2:vh-gov-a-8:517290267202:finding/dec615c322c684b9724fe9b73be6133f\",\n      \"startLine\": \"<integer>\",\n      \"suggestedFixes\": [\n        {\n          \"code\": \"<string>\",\n          \"description\": \"<string>\"\n        }\n      ]\n    },\n    {\n      \"codeSnippet\": [\n        {\n          \"content\": \"<string>\",\n          \"lineNumber\": \"<integer>\"\n        }\n      ],\n      \"endLine\": \"<integer>\",\n      \"findingArn\": \"arn:awsxLVqIG:inspector2:je-zapkjmbkrso-9:477299332685:finding/9b3f6f670098e4318346447246bb7092\",\n      \"startLine\": \"<integer>\",\n      \"suggestedFixes\": [\n        {\n          \"code\": \"<string>\",\n          \"description\": \"<string>\"\n        }\n      ]\n    }\n  ],\n  \"errors\": [\n    {\n      \"errorCode\": \"INTERNAL_ERROR\",\n      \"errorMessage\": \"<string>\",\n      \"findingArn\": \"arn:awsqnm:inspector2:mi-gov-yfd-5:651051826468:finding/7501e8fe46d24b36e8f1c403a75126cc\"\n    },\n    {\n      \"errorCode\": \"CODE_SNIPPET_NOT_FOUND\",\n      \"errorMessage\": \"<string>\",\n      \"findingArn\": \"arn:aws-JzNV:inspector2:lo-gov-a-1:614713327523:finding/e23b9a4741bb867a8aa4c898052cdc31\"\n    }\n  ]\n}",
                  "createdAt": "2026-07-28T10:28:04.000Z",
                  "updatedAt": "2026-07-28T10:28:04.000Z",
                  "uid": "35240-a1ab479d-5b89-4ba4-bd44-44f70661ba23"
                },
                {
                  "id": "abac91f4-7cc6-4b47-ba60-a6a0c1e715d2",
                  "name": "ValidationException",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "X-Amz-Content-Sha256",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Date",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Algorithm",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Credential",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Security-Token",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Signature",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-SignedHeaders",
                        "value": "<string>"
                      },
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authorization",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"findingArns\": [\n    \"arn::inspector2:hn-whzm-7:225276210584:finding/86aa9e87d945814c816921d4dcd9c6e7\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/codesnippet/batchget",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codesnippet",
                        "batchget"
                      ]
                    }
                  },
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{}",
                  "createdAt": "2026-07-28T10:28:04.000Z",
                  "updatedAt": "2026-07-28T10:28:04.000Z",
                  "uid": "35240-abac91f4-7cc6-4b47-ba60-a6a0c1e715d2"
                },
                {
                  "id": "8fe90c7e-5a93-4586-8124-e216346f16e8",
                  "name": "AccessDeniedException",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "X-Amz-Content-Sha256",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Date",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Algorithm",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Credential",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Security-Token",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Signature",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-SignedHeaders",
                        "value": "<string>"
                      },
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authorization",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"findingArns\": [\n    \"arn::inspector2:hn-whzm-7:225276210584:finding/86aa9e87d945814c816921d4dcd9c6e7\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/codesnippet/batchget",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codesnippet",
                        "batchget"
                      ]
                    }
                  },
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{}",
                  "createdAt": "2026-07-28T10:28:04.000Z",
                  "updatedAt": "2026-07-28T10:28:04.000Z",
                  "uid": "35240-8fe90c7e-5a93-4586-8124-e216346f16e8"
                },
                {
                  "id": "bd5a08cd-22a7-4195-9505-5d3134def17b",
                  "name": "ThrottlingException",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "X-Amz-Content-Sha256",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Date",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Algorithm",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Credential",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Security-Token",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Signature",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-SignedHeaders",
                        "value": "<string>"
                      },
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authorization",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"findingArns\": [\n    \"arn::inspector2:hn-whzm-7:225276210584:finding/86aa9e87d945814c816921d4dcd9c6e7\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/codesnippet/batchget",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codesnippet",
                        "batchget"
                      ]
                    }
                  },
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{}",
                  "createdAt": "2026-07-28T10:28:04.000Z",
                  "updatedAt": "2026-07-28T10:28:04.000Z",
                  "uid": "35240-bd5a08cd-22a7-4195-9505-5d3134def17b"
                },
                {
                  "id": "c1f7c198-cb04-4be7-98c5-c64332cd3c37",
                  "name": "InternalServerException",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "X-Amz-Content-Sha256",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Date",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Algorithm",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Credential",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Security-Token",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-Signature",
                        "value": "<string>"
                      },
                      {
                        "key": "X-Amz-SignedHeaders",
                        "value": "<string>"
                      },
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Authorization",
                        "value": "<API Key>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"findingArns\": [\n    \"arn::inspector2:hn-whzm-7:225276210584:finding/86aa9e87d945814c816921d4dcd9c6e7\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/codesnippet/batchget",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codesnippet",
                        "batchget"
                      ]
                    }
                  },
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{}",
                  "createdAt": "2026-07-28T10:28:04.000Z",
                  "updatedAt": "2026-07-28T10:28:04.000Z",
                  "uid": "35240-c1f7c198-cb04-4be7-98c5-c64332cd3c37"
                }
              ],
              "createdAt": "2026-07-28T10:28:04.000Z",
              "updatedAt": "2026-07-28T10:28:04.000Z",
              "uid": "35240-4e8fb0e8-40cf-45f8-a627-1ab18b8f6b7a"
            }
          ],
          "id": "3452b8f1-4a94-4272-a8d7-6a068ac4b47d",
          "createdAt": "2026-07-28T10:28:04.000Z",
          "updatedAt": "2026-07-28T10:28:04.000Z",
          "uid": "35240-3452b8f1-4a94-4272-a8d7-6a068ac4b47d"
        }
      ],
      "id": "19d6cfed-bca6-4e60-b9b3-a781ee2a7079",
      "createdAt": "2026-07-28T10:28:04.000Z",
      "updatedAt": "2026-07-28T10:28:04.000Z",
      "uid": "35240-19d6cfed-bca6-4e60-b9b3-a781ee2a7079"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "Authorization",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "region",
      "value": "us-east-1"
    },
    {
      "key": "baseUrl",
      "value": "http://inspector2.{{region}}.amazonaws.com"
    }
  ]
}