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

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.
connectionInfoobjectThe connection information through which to interact with a blockchain node.
createTimestringOutput only. The timestamp at which the blockchain node was first created.
ethereumDetailsobjectEthereum-specific blockchain node details.
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: Private Service Connect enabled nodes may require a manual migration effort to remain compatible with future versions of the product. If this feature is enabled, you will be notified of these changes along with any required action to avoid disruption. See https://cloud.google.com/vpc/docs/private-service-connect.
statestringOutput only. A status representing the state of the node.
updateTimestringOutput only. The timestamp at which the blockchain node was last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTblockchainNodesId, locationsId, projectsIdGets details of a single blockchain node.
listSELECTlocationsId, projectsIdLists blockchain nodes in a given project and location.
createINSERTlocationsId, projectsIdCreates a new blockchain node in a given project and location.
deleteDELETEblockchainNodesId, locationsId, projectsIdDeletes a single blockchain node.
patchUPDATEblockchainNodesId, locationsId, projectsIdUpdates the parameters of a single blockchain node.

SELECT examples

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 locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new blockchain_nodes resource.

/*+ create */
INSERT INTO google.blockchainnodeengine.blockchain_nodes (
locationsId,
projectsId,
ethereumDetails,
labels,
blockchainType,
privateServiceConnectEnabled
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ ethereumDetails }}',
'{{ labels }}',
'{{ blockchainType }}',
{{ privateServiceConnectEnabled }}
;

UPDATE example

Updates a blockchain_nodes resource.

/*+ update */
UPDATE google.blockchainnodeengine.blockchain_nodes
SET
ethereumDetails = '{{ ethereumDetails }}',
labels = '{{ labels }}',
blockchainType = '{{ blockchainType }}',
privateServiceConnectEnabled = true|false
WHERE
blockchainNodesId = '{{ blockchainNodesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified blockchain_nodes resource.

/*+ delete */
DELETE FROM google.blockchainnodeengine.blockchain_nodes
WHERE blockchainNodesId = '{{ blockchainNodesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';