---
title: "POST /ec2deepinspectionstatus/member/batch/update"
method: POST
path: "/ec2deepinspectionstatus/member/batch/update"
---

# POST /ec2deepinspectionstatus/member/batch/update

`POST /ec2deepinspectionstatus/member/batch/update`

Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.

## Request body

- object
  - `accountIds` MemberAccountEc2DeepInspectionStatus[], required — The unique identifiers for the Amazon Web Services accounts to change Amazon Inspector deep inspection status for.
    - `accountId` string, required — The unique identifier for the Amazon Web Services account of the organization member.
    - `activateDeepInspection` boolean, required — Whether Amazon Inspector deep inspection is active in the account. If <code>TRUE</code> Amazon Inspector deep inspection is active, if <code>FALSE</code> it is not active.

## Response `200`

Success

- BatchUpdateMemberEc2DeepInspectionStatusResponse
  - `accountIds` MemberAccountEc2DeepInspectionStatusState[] — An array of objects that provide details for each of the accounts that Amazon Inspector deep inspection status was successfully changed for.
    - `accountId` string, required — The unique identifier for the Amazon Web Services account of the organization member
    - `status` 'ACTIVATED' | 'DEACTIVATED' | 'PENDING' | 'FAILED' — The state of Amazon Inspector deep inspection in the member account.
    - `errorMessage` string — The error message explaining why the account failed to activate Amazon Inspector deep inspection.
  - `failedAccountIds` FailedMemberAccountEc2DeepInspectionStatusState[] — An array of objects that provide details for each of the accounts that Amazon Inspector deep inspection status could not be successfully changed for.
    - `accountId` string, required — The unique identifier for the Amazon Web Services account of the organization member that failed to activate Amazon Inspector deep inspection.
    - `ec2ScanStatus` 'ENABLING' | 'ENABLED' | 'DISABLING' | 'DISABLED' | 'SUSPENDING' | 'SUSPENDED' — The status of EC2 scanning in the account that failed to activate Amazon Inspector deep inspection.
    - `errorMessage` string — The error message explaining why the account failed to activate Amazon Inspector deep inspection.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ThrottlingException
- `483` — InternalServerException

---

[API](https://skmtc.net/aws/apis/inspector2.md) · [All operations](https://skmtc.net/aws/apis/inspector2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/inspector2/versions/c51110c7cd43/schema)
