{
  "info": {
    "_postman_id": "c8ac563d-1c63-4892-a7d0-f6e5ce66ab4f",
    "name": "Inspector2 Accountpermissions Scanning 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:43.000Z",
    "updatedAt": "2026-07-28T10:28:43.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-c8ac563d-1c63-4892-a7d0-f6e5ce66ab4f"
  },
  "item": [
    {
      "name": "enable",
      "item": [
        {
          "name": "Enable Amazon Inspector scanning",
          "id": "a07d16e2-481b-4210-ade4-4174501b2b16",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"resourceTypes\": [\n    \"LAMBDA_CODE\",\n    \"LAMBDA_CODE\"\n  ],\n  \"accountIds\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/enable",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "enable"
              ]
            },
            "description": "Enables Amazon Inspector scanning for one or more resource types in one or more accounts."
          },
          "response": [
            {
              "id": "374941ba-e9c4-493a-ae1e-4d0b3299c202",
              "name": "Scanning enabled successfully",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"resourceTypes\": [\n    \"LAMBDA_CODE\",\n    \"LAMBDA_CODE\"\n  ],\n  \"accountIds\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/enable",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "enable"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T10:28:43.000Z",
              "updatedAt": "2026-07-28T10:28:43.000Z",
              "uid": "35240-374941ba-e9c4-493a-ae1e-4d0b3299c202"
            },
            {
              "id": "6ee796fc-e053-44f4-9fae-882c95df7f28",
              "name": "Bad request",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"resourceTypes\": [\n    \"LAMBDA_CODE\",\n    \"LAMBDA_CODE\"\n  ],\n  \"accountIds\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/enable",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "enable"
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T10:28:43.000Z",
              "updatedAt": "2026-07-28T10:28:43.000Z",
              "uid": "35240-6ee796fc-e053-44f4-9fae-882c95df7f28"
            },
            {
              "id": "0b706f75-3377-4e40-83c1-bea400ed849d",
              "name": "Access denied",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"resourceTypes\": [\n    \"LAMBDA_CODE\",\n    \"LAMBDA_CODE\"\n  ],\n  \"accountIds\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/enable",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "enable"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T10:28:43.000Z",
              "updatedAt": "2026-07-28T10:28:43.000Z",
              "uid": "35240-0b706f75-3377-4e40-83c1-bea400ed849d"
            }
          ],
          "createdAt": "2026-07-28T10:28:43.000Z",
          "updatedAt": "2026-07-28T10:28:43.000Z",
          "uid": "35240-a07d16e2-481b-4210-ade4-4174501b2b16"
        }
      ],
      "id": "9ca611e8-66f8-48e6-b10c-59d9dcd6b1e8",
      "createdAt": "2026-07-28T10:28:43.000Z",
      "updatedAt": "2026-07-28T10:28:43.000Z",
      "uid": "35240-9ca611e8-66f8-48e6-b10c-59d9dcd6b1e8"
    },
    {
      "name": "disable",
      "item": [
        {
          "name": "Disable Amazon Inspector scanning",
          "id": "1000fba2-1a90-4693-9408-7469b7db21bf",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/disable",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "disable"
              ]
            },
            "description": "Disables Amazon Inspector scanning for one or more resource types in one or more accounts."
          },
          "response": [
            {
              "id": "9be43511-86f7-4c9c-83e7-dc956b630335",
              "name": "Scanning disabled successfully",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/disable",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "disable"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T10:28:43.000Z",
              "updatedAt": "2026-07-28T10:28:43.000Z",
              "uid": "35240-9be43511-86f7-4c9c-83e7-dc956b630335"
            }
          ],
          "createdAt": "2026-07-28T10:28:43.000Z",
          "updatedAt": "2026-07-28T10:28:43.000Z",
          "uid": "35240-1000fba2-1a90-4693-9408-7469b7db21bf"
        }
      ],
      "id": "157b04af-74c9-4e4e-875b-a3f2a52a6d26",
      "createdAt": "2026-07-28T10:28:43.000Z",
      "updatedAt": "2026-07-28T10:28:43.000Z",
      "uid": "35240-157b04af-74c9-4e4e-875b-a3f2a52a6d26"
    }
  ],
  "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"
    }
  ]
}