角色与权限

本页面列出了 Agent Registry 的 IAM 角色和权限。

向管理或查看注册表中代理、MCP 服务器、工具、独立技能、端点和绑定的用户或群组授予适当的 Agent Registry IAM 角色。如需授予角色,您可以使用 Google Cloud 控制台中的“IAM”页面或 Google Cloud CLI。如需查看详细说明,请参阅管理对项目、文件夹和组织的访问权限。

Agent Registry 角色

下表介绍了 Agent Registry 的 IAM 角色及其典型职责:

角色

说明

用途

Agent Registry API Admin (roles/agentregistry.admin)

对所有 Agent Registry 资源(包括代理、MCP 服务器、工具、端点、独立技能、技能修订版本、绑定和技能 IAM 政策)的完整访问权限。

  • 注册和管理代理、MCP 服务器、工具和端点。
  • 创建、更新和删除独立技能和技能修订版本。
  • 创建和管理绑定以及技能 IAM 政策。

Agent Registry API Editor (roles/agentregistry.editor)

拥有对 Agent Registry 资源的编辑权限,包括智能体、MCP 服务器、工具、端点、独立技能和技能修订版本。

  • 注册和管理代理和 MCP 服务器。
  • 更新了工具定义和端点。
  • 创建、更新和删除独立技能和技能修订版本。

Agent Registry API Viewer (roles/agentregistry.viewer)

拥有只读权限,可查看和搜索代理、MCP 服务器、工具、独立技能、技能修订版本、发布者、端点和绑定。

  • 发现可用的代理、MCP 服务器和工具。
  • 查看 A2A 技能、独立技能、技能修订版本、发布者、端点和集成绑定。

Agent Registry User (roles/agentregistry.user)

拥有对代理注册表资源的只读权限,以及创建、更新和删除独立技能和技能修订版本的权限。

  • 创建、更新和删除独立技能和技能修订版本,而无需对代理、MCP 服务器或端点拥有编辑访问权限。
  • 保留技能修订版本的版本控制,并集中管理技能的有效状态。

Agent Registry 权限

下表列出了每个 Agent Registry IAM 角色拥有的权限:

(roles/agentregistry.admin)

拥有对 Agent Registry API 资源的完整访问权限。

agentregistry.*

  • agentregistry.agents.get
  • agentregistry.agents.list
  • agentregistry.agents.search
  • agentregistry.bindings.create
  • agentregistry.bindings.delete
  • agentregistry.bindings.fetchAvailable
  • agentregistry.bindings.get
  • agentregistry.bindings.list
  • agentregistry.bindings.update
  • agentregistry.endpoints.get
  • agentregistry.endpoints.list
  • agentregistry.locations.get
  • agentregistry.locations.list
  • agentregistry.mcpServers.get
  • agentregistry.mcpServers.list
  • agentregistry.mcpServers.search
  • agentregistry.operations.cancel
  • agentregistry.operations.delete
  • agentregistry.operations.get
  • agentregistry.operations.list
  • agentregistry.publishers.get
  • agentregistry.publishers.list
  • agentregistry.services.create
  • agentregistry.services.delete
  • agentregistry.services.get
  • agentregistry.services.list
  • agentregistry.services.update
  • agentregistry.skillRevisions.create
  • agentregistry.skillRevisions.delete
  • agentregistry.skillRevisions.get
  • agentregistry.skillRevisions.list
  • agentregistry.skills.create
  • agentregistry.skills.delete
  • agentregistry.skills.get
  • agentregistry.skills.getIamPolicy
  • agentregistry.skills.list
  • agentregistry.skills.search
  • agentregistry.skills.setIamPolicy
  • agentregistry.skills.update

(roles/agentregistry.editor)

拥有对 Agent Registry API 资源的编辑权限。

agentregistry.agents.*

  • agentregistry.agents.get
  • agentregistry.agents.list
  • agentregistry.agents.search

agentregistry.bindings.fetchAvailable

agentregistry.bindings.get

agentregistry.bindings.list

agentregistry.endpoints.*

  • agentregistry.endpoints.get
  • agentregistry.endpoints.list

agentregistry.locations.*

  • agentregistry.locations.get
  • agentregistry.locations.list

agentregistry.mcpServers.*

  • agentregistry.mcpServers.get
  • agentregistry.mcpServers.list
  • agentregistry.mcpServers.search

agentregistry.operations.*

  • agentregistry.operations.cancel
  • agentregistry.operations.delete
  • agentregistry.operations.get
  • agentregistry.operations.list

agentregistry.publishers.*

  • agentregistry.publishers.get
  • agentregistry.publishers.list

agentregistry.services.*

  • agentregistry.services.create
  • agentregistry.services.delete
  • agentregistry.services.get
  • agentregistry.services.list
  • agentregistry.services.update

agentregistry.skillRevisions.*

  • agentregistry.skillRevisions.create
  • agentregistry.skillRevisions.delete
  • agentregistry.skillRevisions.get
  • agentregistry.skillRevisions.list

agentregistry.skills.create

agentregistry.skills.delete

agentregistry.skills.get

agentregistry.skills.list

agentregistry.skills.search

agentregistry.skills.update

(roles/agentregistry.viewer)

拥有对 Agent Registry API 资源的只读权限。

agentregistry.agents.*

  • agentregistry.agents.get
  • agentregistry.agents.list
  • agentregistry.agents.search

agentregistry.bindings.fetchAvailable

agentregistry.bindings.get

agentregistry.bindings.list

agentregistry.endpoints.*

  • agentregistry.endpoints.get
  • agentregistry.endpoints.list

agentregistry.locations.*

  • agentregistry.locations.get
  • agentregistry.locations.list

agentregistry.mcpServers.*

  • agentregistry.mcpServers.get
  • agentregistry.mcpServers.list
  • agentregistry.mcpServers.search

agentregistry.operations.get

agentregistry.operations.list

agentregistry.publishers.*

  • agentregistry.publishers.get
  • agentregistry.publishers.list

agentregistry.services.get

agentregistry.services.list

agentregistry.skillRevisions.get

agentregistry.skillRevisions.list

agentregistry.skills.get

agentregistry.skills.list

agentregistry.skills.search

(roles/agentregistry.user)

创建、更新和删除技能和技能修订版本。

agentregistry.agents.*

  • agentregistry.agents.get
  • agentregistry.agents.list
  • agentregistry.agents.search

agentregistry.bindings.fetchAvailable

agentregistry.bindings.get

agentregistry.bindings.list

agentregistry.endpoints.*

  • agentregistry.endpoints.get
  • agentregistry.endpoints.list

agentregistry.locations.*

  • agentregistry.locations.get
  • agentregistry.locations.list

agentregistry.mcpServers.*

  • agentregistry.mcpServers.get
  • agentregistry.mcpServers.list
  • agentregistry.mcpServers.search

agentregistry.operations.get

agentregistry.operations.list

agentregistry.publishers.*

  • agentregistry.publishers.get
  • agentregistry.publishers.list

agentregistry.services.get

agentregistry.services.list

agentregistry.skillRevisions.*

  • agentregistry.skillRevisions.create
  • agentregistry.skillRevisions.delete
  • agentregistry.skillRevisions.get
  • agentregistry.skillRevisions.list

agentregistry.skills.create

agentregistry.skills.delete

agentregistry.skills.get

agentregistry.skills.list

agentregistry.skills.search

agentregistry.skills.update

如需详细了解 IAM 权限,请参阅找到合适的预定义角色和 IAM 角色和权限索引。

针对已注册资源的访问权限控制

Agent Registry 角色用于控制哪些人可以管理和发现注册表中的资源。如需控制哪些代理可以通过 Agent Gateway 与已注册的服务、端点和 MCP 服务器通信,您可以使用 Identity-Aware Proxy 出站流量政策:

如需详细了解如何配置 IAP 出站政策,请参阅配置 IAM 代理政策。