blockchain_nodes
Creates, updates, deletes, gets or lists a blockchain_nodes resource.
Overview
| Name | blockchain_nodes |
| Type | Resource |
| Id | google.blockchainnodeengine.blockchain_nodes |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The fully qualified name of the blockchain node. e.g. projects/my-project/locations/us-central1/blockchainNodes/my-node. |
blockchainType | string | Immutable. The blockchain type of the node. (BLOCKCHAIN_TYPE_UNSPECIFIED, ETHEREUM) |
connectionInfo | object | Output only. The connection information used to interact with a blockchain node. (id: ConnectionInfo) |
createTime | string (google-datetime) | Output only. The timestamp at which the blockchain node was first created. |
ethereumDetails | object | Ethereum-specific blockchain node details. (id: EthereumDetails) |
labels | object | User-provided key-value pairs. |
privateServiceConnectEnabled | boolean | Optional. When true, the node is only accessible via Private Service Connect; no public endpoints are exposed. Otherwise, the node is only accessible via public endpoints. Warning: These nodes are deprecated, please use public endpoints instead. |
state | string | Output only. A status representing the state of the node. (STATE_UNSPECIFIED, CREATING, DELETING, RUNNING, ERROR, UPDATING, REPAIRING, RECONCILING, SYNCING) |
updateTime | string (google-datetime) | Output only. The timestamp at which the blockchain node was last updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The fully qualified name of the blockchain node. e.g. projects/my-project/locations/us-central1/blockchainNodes/my-node. |
blockchainType | string | Immutable. The blockchain type of the node. (BLOCKCHAIN_TYPE_UNSPECIFIED, ETHEREUM) |
connectionInfo | object | Output only. The connection information used to interact with a blockchain node. (id: ConnectionInfo) |
createTime | string (google-datetime) | Output only. The timestamp at which the blockchain node was first created. |
ethereumDetails | object | Ethereum-specific blockchain node details. (id: EthereumDetails) |
labels | object | User-provided key-value pairs. |
privateServiceConnectEnabled | boolean | Optional. When true, the node is only accessible via Private Service Connect; no public endpoints are exposed. Otherwise, the node is only accessible via public endpoints. Warning: These nodes are deprecated, please use public endpoints instead. |
state | string | Output only. A status representing the state of the node. (STATE_UNSPECIFIED, CREATING, DELETING, RUNNING, ERROR, UPDATING, REPAIRING, RECONCILING, SYNCING) |
updateTime | string (google-datetime) | Output only. The timestamp at which the blockchain node was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, blockchainNodesId | Gets details of a single blockchain node. | |
list | select | projectsId, locationsId | orderBy, pageSize, pageToken, filter | Lists blockchain nodes in a given project and location. |
create | insert | projectsId, locationsId | requestId, blockchainNodeId | Creates a new blockchain node in a given project and location. |
patch | update | projectsId, locationsId, blockchainNodesId | updateMask, requestId | Updates the parameters of a single blockchain node. |
delete | delete | projectsId, locationsId, blockchainNodesId | requestId | Deletes a single blockchain node. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
blockchainNodesId | string | |
locationsId | string | |
projectsId | string | |
blockchainNodeId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get
- list
Gets details of a single blockchain node.
SELECT
name,
blockchainType,
connectionInfo,
createTime,
ethereumDetails,
labels,
privateServiceConnectEnabled,
state,
updateTime
FROM google.blockchainnodeengine.blockchain_nodes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND blockchainNodesId = '{{ blockchainNodesId }}' -- required
;
Lists blockchain nodes in a given project and location.
SELECT
name,
blockchainType,
connectionInfo,
createTime,
ethereumDetails,
labels,
privateServiceConnectEnabled,
state,
updateTime
FROM google.blockchainnodeengine.blockchain_nodes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND orderBy = '{{ orderBy }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
;
INSERT examples
- create
- Manifest
Creates a new blockchain node in a given project and location.
INSERT INTO google.blockchainnodeengine.blockchain_nodes (
data__labels,
data__ethereumDetails,
data__privateServiceConnectEnabled,
data__blockchainType,
projectsId,
locationsId,
requestId,
blockchainNodeId
)
SELECT
'{{ labels }}',
'{{ ethereumDetails }}',
{{ privateServiceConnectEnabled }},
'{{ blockchainType }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}',
'{{ blockchainNodeId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: blockchain_nodes
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the blockchain_nodes resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the blockchain_nodes resource.
- name: labels
value: "{{ labels }}"
description: |
User-provided key-value pairs.
- name: ethereumDetails
description: |
Ethereum-specific blockchain node details.
value:
consensusClient: "{{ consensusClient }}"
network: "{{ network }}"
apiEnableDebug: {{ apiEnableDebug }}
executionClient: "{{ executionClient }}"
apiEnableAdmin: {{ apiEnableAdmin }}
additionalEndpoints:
executionClientPrometheusMetricsApiEndpoint: "{{ executionClientPrometheusMetricsApiEndpoint }}"
beaconPrometheusMetricsApiEndpoint: "{{ beaconPrometheusMetricsApiEndpoint }}"
beaconApiEndpoint: "{{ beaconApiEndpoint }}"
validatorConfig:
mevRelayUrls:
- "{{ mevRelayUrls }}"
managedValidatorClient: {{ managedValidatorClient }}
beaconFeeRecipient: "{{ beaconFeeRecipient }}"
gethDetails:
garbageCollectionMode: "{{ garbageCollectionMode }}"
nodeType: "{{ nodeType }}"
- name: privateServiceConnectEnabled
value: {{ privateServiceConnectEnabled }}
description: |
Optional. When true, the node is only accessible via Private Service Connect; no public endpoints are exposed. Otherwise, the node is only accessible via public endpoints. Warning: These nodes are deprecated, please use public endpoints instead.
- name: blockchainType
value: "{{ blockchainType }}"
description: |
Immutable. The blockchain type of the node.
valid_values: ['BLOCKCHAIN_TYPE_UNSPECIFIED', 'ETHEREUM']
- name: requestId
value: "{{ requestId }}"
- name: blockchainNodeId
value: "{{ blockchainNodeId }}"
UPDATE examples
- patch
Updates the parameters of a single blockchain node.
UPDATE google.blockchainnodeengine.blockchain_nodes
SET
data__labels = '{{ labels }}',
data__ethereumDetails = '{{ ethereumDetails }}',
data__privateServiceConnectEnabled = {{ privateServiceConnectEnabled }},
data__blockchainType = '{{ blockchainType }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND blockchainNodesId = '{{ blockchainNodesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE examples
- delete
Deletes a single blockchain node.
DELETE FROM google.blockchainnodeengine.blockchain_nodes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND blockchainNodesId = '{{ blockchainNodesId }}' --required
AND requestId = '{{ requestId }}'
;