

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 組織アカウントを Detective メンバーアカウントとして関連付け解除する
<a name="accounts-orgs-members-disassociate"></a>

組織動作グラフ内の組織アカウントからのデータの取り込みを停止するには、そのアカウントと組織動作グラフの関連付けを解除します。そのアカウントの既存のデータは動作グラフに残ります。

組織メンバーアカウントの関連付けを解除すると、そのアカウントのステータスは**メンバーではない**に変わります。Detective は、そのアカウントから動作グラフにデータを取り込まなくなりました。このアカウントの既存のデータは動作グラフに残り、アカウントはリストに残ります。

------
#### [ Console ]

**[アカウント管理]** ページで、メンバーアカウントとして組織アカウントの関連付けを解除できます。メンバーアカウントとしての組織アカウントの関連付けを解除するには (コンソール)

1. [https://console.aws.amazon.com/detective/](https://console.aws.amazon.com/detective/) で Amazon Detective コンソールを開きます。

1. Detective のナビゲーションペインで、[**Account management**] (アカウント管理) を選択します。

1. 有効アカウントのリストを表示するには、**[有効]** を選択します。

1. 関連付けを解除するには、各アカウントのチェックボックスをオンにします。

1. **[アクション]** を選択します。次に、**[アカウントを無効化]** を選択します。

   関連付けを解除したアカウントのアカウントステータスが **[メンバーではありません]** に変わります。

------
#### [ Detective API/AWS CLI ]

リクエストで使用する動作グラフの ARN を取得するには、[https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html) オペレーションを使用します。

**組織アカウントと組織動作グラフの関連付けを解除するには**
+ **Detective API**: [https://docs.aws.amazon.com/detective/latest/APIReference/API_DeleteMembers.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_DeleteMembers.html) オペレーションを使用します。グラフ ARN と、関連付けを解除するメンバーアカウントのアカウント識別子のリストを指定します。
+ **AWS CLI:** コマンドラインで [https://docs.aws.amazon.com/cli/latest/reference/detective/delete-members.html](https://docs.aws.amazon.com/cli/latest/reference/detective/delete-members.html) コマンドを実行します。

  ```
  aws detective delete-members --account-ids {{<account ID list>}} --graph-arn {{<behavior graph ARN>}}
  ```

  **例**

  ```
  aws detective delete-members --account-ids 444455556666 123456789012 --graph-arn arn:aws:detective:us-east-1:111122223333:graph:123412341234
  ```

------