Skip to main content

blockchain_nodes

Creates, updates, deletes, gets or lists a blockchain_nodes resource.

Overview

Nameblockchain_nodes
TypeResource
Idgoogle.blockchainnodeengine.blockchain_nodes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The fully qualified name of the blockchain node. e.g. projects/my-project/locations/us-central1/blockchainNodes/my-node.
blockchainTypestringImmutable. The blockchain type of the node.
connectionInfoobjectOutput only. The connection information used to interact with a blockchain node. (id: ConnectionInfo)
createTimestring (google-datetime)Output only. The timestamp at which the blockchain node was first created.
ethereumDetailsobjectEthereum-specific blockchain node details. (id: EthereumDetails)
labelsobjectUser-provided key-value pairs.
privateServiceConnectEnabledbooleanOptional. 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.
statestringOutput only. A status representing the state of the node.
updateTimestring (google-datetime)Output only. The timestamp at which the blockchain node was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, blockchainNodesIdGets details of a single blockchain node.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists blockchain nodes in a given project and location.
createinsertprojectsId, locationsIdblockchainNodeId, requestIdCreates a new blockchain node in a given project and location.
patchupdateprojectsId, locationsId, blockchainNodesIdupdateMask, requestIdUpdates the parameters of a single blockchain node.
deletedeleteprojectsId, locationsId, blockchainNodesIdrequestIdDeletes 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.

NameDatatypeDescription
blockchainNodesIdstring
locationsIdstring
projectsIdstring
blockchainNodeIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

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;

INSERT examples

Creates a new blockchain node in a given project and location.

INSERT INTO google.blockchainnodeengine.blockchain_nodes (
data__ethereumDetails,
data__labels,
data__blockchainType,
data__privateServiceConnectEnabled,
projectsId,
locationsId,
blockchainNodeId,
requestId
)
SELECT
'{{ ethereumDetails }}',
'{{ labels }}',
'{{ blockchainType }}',
{{ privateServiceConnectEnabled }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ blockchainNodeId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single blockchain node.

UPDATE google.blockchainnodeengine.blockchain_nodes
SET
data__ethereumDetails = '{{ ethereumDetails }}',
data__labels = '{{ labels }}',
data__blockchainType = '{{ blockchainType }}',
data__privateServiceConnectEnabled = {{ privateServiceConnectEnabled }}
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

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 }}';