This page describes the permissions and roles that are required to use and
configure Blockchain Node Engine.

The blockchain nodes themselves expose an API endpoint. Google does not define
this API, but is part of the third party software we run. You can see an example
of this at
[Ethereum's JSON-RPC Server](https://geth.ethereum.org/docs/rpc/server). This
endpoint requires an API
key to access. API keys are managed in Google Cloud, and as such use the
permissions defined on [Access control with IAM](https://docs.cloud.google.com/api-keys/docs/access-control).
These permissions have been added to the admin role.

## Roles

This section lists all curated roles provided by Blockchain Node Engine service.


### Viewer

Grants read access to all Blockchain Node Engine resources. Intended for
engineers who use but do not manage nodes. API keys are expected to be provided
from an admin. The viewer does not have direct access to look up
API keys.

[Blockchain Node Engine actions](https://docs.cloud.google.com/blockchain-node-engine/docs/reference/rest):

- `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`

[Retrieve project information](https://docs.cloud.google.com/resource-manager/reference/rest):

- `cloudresourcemanager.googleapis.com/projects.get`
- `cloudresourcemanager.googleapis.com/projects.list`

[Return APIs information](https://docs.cloud.google.com/service-usage/docs/reference/rest):

- `serviceusage.googleapis.com/services.get`

### Admin

Grants full access to all Blockchain Node Engine resources. Intended for
blockchain node administrators.

Administrators have all permissions available to
`blockchainnodeengine.googleapis.com/viewer` plus:

<br />

[API keys management](https://docs.cloud.google.com/api-keys/docs/reference/rest):

- `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 actions](https://docs.cloud.google.com/blockchain-node-engine/docs/reference/rest):

- `blockchainnodeengine.googleapis.com/blockchainNodes.create`
- `blockchainnodeengine.googleapis.com/blockchainNodes.delete`
- `blockchainnodeengine.googleapis.com/operations.cancel`
- `blockchainnodeengine.googleapis.com/operations.delete`

[Enable APIs](https://docs.cloud.google.com/service-usage/docs/reference/rest):

- `serviceusage.googleapis.com/services.enable`

## See also

- [Access control with IAM - API keys](https://docs.cloud.google.com/api-keys/docs/access-control)
- [Access Control with IAM - Service usage](https://docs.cloud.google.com/iam/docs/roles-permissions/serviceusage)
- [IAM basic and predefined roles reference](https://docs.cloud.google.com/iam/docs/understanding-roles)
- [IAM permissions reference](https://docs.cloud.google.com/iam/docs/permissions-reference)
- [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access)
- [Roles and permissions](https://docs.cloud.google.com/iam/docs/roles-overview)