

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

# 查看注册记录
<a name="registry-reviewing-records"></a>

**迁移现已开放**  
 Amazon 代理注册表已在新`agent-registry`命名空间下启动。2026 年 10 月 30 日将停止对公共预览版`bedrock-agentcore`命名空间的支持。有关迁移说明，请参阅[注册表迁移综合指南](registry-faq.md)。

## 概述
<a name="registry-reviewing-overview"></a>

作为策展人，您可以根据组织的安全性、合规性和元数据质量标准审查处于 “待批准” 状态的记录。

## 查看待处理记录
<a name="registry-reviewing-view-pending"></a>

作为策展人，您可以从注册表详细信息页面、 Amazon CLI 或 Amazon SDK 中找到等待审核的记录。

### 控制台
<a name="registry-reviewing-view-pending-console"></a>

**Example**  

1. 打开[Amazon 代理注册表控制台](https://console.amazonaws.cn/agent-registry/home?region=us-east-1#)。

1. 在导航窗格中，选择**注册表**，然后选择要查看的注册表。

1. 在 “**注册记录**” 部分中，**待批准**状态摘要计数器显示有多少记录正在等待审核。

1. 按**状态**筛选记录表，以仅显示处于 “**待审批**” 状态的记录。

1. 选择记录的名称以打开其详情页面并查看其内容。

1. 在[Bedrock-AgentCore 控制台](https://console.amazonaws.cn/bedrock-agentcore/home?region=us-east-1#)中打开 “ Amazon 代理注册表” 页面。

1. 在导航窗格中，选择**注册表**，然后选择要查看的注册表。

1. 在 “**注册记录**” 部分中，**待批准**状态摘要计数器显示有多少记录正在等待审核。

1. 按**状态**筛选记录表，以仅显示处于 “**待审批**” 状态的记录。

1. 选择记录的名称以打开其详情页面并查看其内容。

### Amazon CLI
<a name="registry-reviewing-view-pending-cli"></a>

**Example**  

```
aws agent-registry-control list-registry-records \
  --registry-id "<registryId>" \
  --filters '[{"name": "status", "values": ["PENDING_APPROVAL"]}]' \
  --region us-east-1
```

```
aws bedrock-agentcore-control list-registry-records \
  --registry-id "<registryId>" \
  --status PENDING_APPROVAL \
  --region us-east-1
```

### Amazon SDK
<a name="registry-reviewing-view-pending-sdk"></a>

**Example**  

```
import boto3

client = boto3.client('agent-registry-control')

response = client.list_registry_records(
    registryId='<registryId>',
    filters=[{'name': 'status', 'values': ['PENDING_APPROVAL']}]
)
for record in response['registryRecords']:
    print(f"{record['displayName']} ({record['name']}) - {record['recordType']}")
```

```
import boto3

client = boto3.client('bedrock-agentcore-control')

response = client.list_registry_records(
    registryId='<registryId>',
    status='PENDING_APPROVAL'
)
for record in response['registryRecords']:
    print(f"{record['name']} - {record['descriptorType']}")
```

## 批准记录
<a name="registry-reviewing-approve"></a>

### 控制台
<a name="registry-reviewing-approve-console"></a>

1. 打开记录详情页面，查看处于 “**待审批**” 状态的记录。

1. 选择**更新状态**下拉列表，然后选择**批准**。

1. 在**更新状态**对话框中，输入状态更改**的原因**。

1. 选择**更新**。

### Amazon CLI
<a name="registry-reviewing-approve-cli"></a>

**Example**  

```
aws agent-registry-control update-registry-record-status \
  --registry-id "<registryId>" \
  --record-id "<recordId>" \
  --status APPROVED \
  --status-reason "Reviewed and approved" \
  --region us-east-1
```

```
aws bedrock-agentcore-control update-registry-record-status \
  --registry-id "<registryId>" \
  --record-id "<recordId>" \
  --status APPROVED \
  --status-reason "Reviewed and approved" \
  --region us-east-1
```

### Amazon SDK
<a name="registry-reviewing-approve-sdk"></a>

**Example**  

```
import boto3

client = boto3.client('agent-registry-control')

response = client.update_registry_record_status(
    registryId='<registryId>',
    recordId='<recordId>',
    status='APPROVED',
    statusReason='Reviewed and approved'
)
print(f"Status: {response['status']}")  # APPROVED
print(f"StatusReason: {response['statusReason']}")
```

```
import boto3

client = boto3.client('bedrock-agentcore-control')

response = client.update_registry_record_status(
    registryId='<registryId>',
    recordId='<recordId>',
    status='APPROVED',
    statusReason='Reviewed and approved'
)
print(f"Status: {response['status']}")  # APPROVED
print(f"StatusReason: {response['statusReason']}")
```

## 拒绝记录
<a name="registry-reviewing-reject"></a>

### 控制台
<a name="registry-reviewing-reject-console"></a>

1. 打开记录详情页面，查看处于 “**待审批**” 状态的记录。

1. 选择**更新状态**下拉列表，然后选择**拒绝**。

1. 在 “**更新状态**” 对话框中，输入拒绝**原因**。

1. 选择**更新**。

### Amazon CLI
<a name="registry-reviewing-reject-cli"></a>

**Example**  

```
aws agent-registry-control update-registry-record-status \
  --registry-id "<registryId>" \
  --record-id "<recordId>" \
  --status REJECTED \
  --status-reason "Missing tool input schemas" \
  --region us-east-1
```

```
aws bedrock-agentcore-control update-registry-record-status \
  --registry-id "<registryId>" \
  --record-id "<recordId>" \
  --status REJECTED \
  --status-reason "Missing tool input schemas" \
  --region us-east-1
```

### Amazon SDK
<a name="registry-reviewing-reject-sdk"></a>

**Example**  

```
import boto3

client = boto3.client('agent-registry-control')

response = client.update_registry_record_status(
    registryId='<registryId>',
    recordId='<recordId>',
    status='REJECTED',
    statusReason='Missing tool input schemas'
)
print(f"Status: {response['status']}")  # REJECTED
print(f"StatusReason: {response['statusReason']}")
```

```
import boto3

client = boto3.client('bedrock-agentcore-control')

response = client.update_registry_record_status(
    registryId='<registryId>',
    recordId='<recordId>',
    status='REJECTED',
    statusReason='Missing tool input schemas'
)
print(f"Status: {response['status']}")  # REJECTED
print(f"StatusReason: {response['statusReason']}")
```

**注意**  
出版商可以编辑并重新提交，或者策展人可以直接批准被拒绝的记录。