

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

# 查看配置记录器
<a name="configuration-recorder-view"></a>

您可以使用 AWS Config 控制台或 AWS CLI 来查看有关配置记录器的详细信息。

------
#### [ To view your configuration recorders (Console) ]

1. 登录到，AWS 管理控制台然后通过以下网址打开 AWS Config 控制台：[https://console.aws.amazon.com/config/home](https://console.aws.amazon.com/config/home)。

1. 在导航窗格中，选择**设置**。

1. 对于客户管理的配置记录器，您可以在**客户管理的记录器**选项卡上查看详细信息。

1. 对于服务相关配置记录器，在**服务相关记录器**选项卡上选择服务相关配置记录器，然后选择**查看**。

------
#### [ To view your configuration recorders (CLI) ]

使用 [https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-configuration-recorders.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-configuration-recorders.html) 命令查看有关配置记录器的详细信息：

```
$ aws configservice describe-configuration-recorders
{
    "ConfigurationRecorders": [
        {
            "roleARN": "arn:aws:iam::012345678912:role/myConfigRole",
            "name": "default"
        }
    ]
}
```

使用 [https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-configuration-recorder-status.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-configuration-recorder-status.html) 命令查找配置记录器的当前状态：

```
$ aws configservice describe-configuration-recorder-status
{
    "ConfigurationRecordersStatus": [
        {
            "name": "default",
            "lastStatus": "SUCCESS",
            "lastStopTime": 1414511624.914,
            "lastStartTime": 1414708460.276,
            "recording": true,
            "lastStatusChangeTime": 1414816537.148,
            "lastErrorMessage": "NA",
            "lastErrorCode": "400"
        }
    ]
}
```

对于这两个命令，您可以使用 `arn` 和 `configuration-recorder-names` 字段来指定配置记录器列表。对于服务相关配置记录器，您可以使用 `service-principal` 字段来指定配置记录器。

如果未指定配置记录器，则此命令将返回与该账户关联的所有配置记录器的详细信息。

------