权限和角色

本页介绍了使用和配置区块链节点引擎所需的权限和角色。

区块链节点本身会公开一个 API 端点。Google 并未定义此 API,但它是我们运行的第三方软件的一部分。您可以在 Ethereum 的 JSON-RPC 服务器中查看此示例。您需要 API 密钥才能访问此端点。API 密钥在 Google Cloud中进行管理,因此使用使用 IAM 进行访问权限控制中定义的权限。这些权限已添加到“管理员”角色中。

角色

本部分列出了 Blockchain Node Engine 服务提供的所有精选角色。

查看者

授予对所有 Blockchain Node Engine 资源的读取权限。适用于使用但不管理节点的工程师。API 密钥应由管理员提供。查看者无权直接查找 API 密钥。

Blockchain Node Engine 操作

  • blockchainnodeengine.googleapis.com/blockchainNodes.get
  • blockchainnodeengine.googleapis.com/blockchainNodes.list
  • blockchainnodeengine.googleapis.com/locations.get
  • blockchainnodeengine.googleapis.com/locations.list
  • blockchainnodeengine.googleapis.com/operations.get
  • blockchainnodeengine.googleapis.com/operations.list

检索项目信息

  • cloudresourcemanager.googleapis.com/projects.get
  • cloudresourcemanager.googleapis.com/projects.list

返回 API 信息

  • serviceusage.googleapis.com/services.get

管理员

授予对所有 Blockchain Node Engine 资源的完整访问权限。适用于区块链节点管理员。

管理员拥有 blockchainnodeengine.googleapis.com/viewer 的所有权限,此外还拥有以下权限:

API 密钥管理

  • apikeys.googleapis.com/keys.update
  • apikeys.googleapis.com/keys.create
  • apikeys.googleapis.com/keys.delete
  • apikeys.googleapis.com/keys.get
  • apikeys.googleapis.com/keys.getKeyString
  • apikeys.googleapis.com/keys.list
  • apikeys.googleapis.com/keys.undelete

Blockchain Node Engine 操作

  • blockchainnodeengine.googleapis.com/blockchainNodes.create
  • blockchainnodeengine.googleapis.com/blockchainNodes.delete
  • blockchainnodeengine.googleapis.com/operations.cancel
  • blockchainnodeengine.googleapis.com/operations.delete

启用 API

  • serviceusage.googleapis.com/services.enable

另请参阅