

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 检查 EKS 运行时监控配置状态
<a name="checking-eks-runtime-monitoring-enable-status"></a>

使用以下 APIs 或 AWS CLI 命令检查 EKS 运行时监控的现有配置状态。

**检查您账户中现有的 EKS 运行时监控配置状态**
+ 运行[GetDetector](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_GetDetector.html)以检查您自己账户的配置状态。
+ 您也可以使用 AWS CLI来运行以下命令：

  ```
  aws guardduty get-detector --detector-id 12abc34d567e8fa901bc2d34e56789f0 --region us-east-1
  ```

  请务必替换您 AWS 账户 和当前地区的探测器 ID。要查找您的账户和当前区域的，请查看[https://console.aws.amazon.com/guardduty/](https://console.aws.amazon.com/guardduty/)控制台中的 **“设置**” 页面，或者运行 [https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html)API。`detectorId`

**检查您组织的现有 EKS 运行时监控配置状态（仅限作为委托 GuardDuty 管理员帐户）**
+ 运行[DescribeOrganizationConfiguration](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DescribeOrganizationConfiguration.html)以检查您的组织的配置状态。

  您也可以使用 AWS CLI来运行以下命令：

  ```
  aws guardduty describe-organization-configuration --detector-id 12abc34d567e8fa901bc2d34e56789f0 --region us-east-1
  ```

  请务必将探测器 ID 替换为您委派的 GuardDuty 管理员账户的探测器 ID，将区域替换为您当前的区域。要查找您的账户和当前区域的，请查看[https://console.aws.amazon.com/guardduty/](https://console.aws.amazon.com/guardduty/)控制台中的 **“设置**” 页面，或者运行 [https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html)API。`detectorId`