blockchain_nodes
Creates, updates, deletes, gets or lists a blockchain_nodes
resource.
Overview
Name | blockchain_nodes |
Type | Resource |
Id | google.blockchainnodeengine.blockchain_nodes |
Fields
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. |
connectionInfo | object | The connection information through which to interact with a blockchain node. |
createTime | string | Output only. The timestamp at which the blockchain node was first created. |
ethereumDetails | object | Ethereum-specific blockchain node details. |
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: 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. |
state | string | Output only. A status representing the state of the node. |
updateTime | string | Output only. The timestamp at which the blockchain node was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | blockchainNodesId, locationsId, projectsId | Gets details of a single blockchain node. |
list | SELECT | locationsId, projectsId | Lists blockchain nodes in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new blockchain node in a given project and location. |
delete | DELETE | blockchainNodesId, locationsId, projectsId | Deletes a single blockchain node. |
patch | UPDATE | blockchainNodesId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.blockchainnodeengine.blockchain_nodes (
locationsId,
projectsId,
ethereumDetails,
labels,
blockchainType,
privateServiceConnectEnabled
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ ethereumDetails }}',
'{{ labels }}',
'{{ blockchainType }}',
{{ privateServiceConnectEnabled }}
;
- name: your_resource_model_name
props:
- name: ethereumDetails
value:
- name: gethDetails
value:
- name: garbageCollectionMode
value: string
- name: network
value: string
- name: nodeType
value: string
- name: executionClient
value: string
- name: consensusClient
value: string
- name: apiEnableAdmin
value: boolean
- name: apiEnableDebug
value: boolean
- name: additionalEndpoints
value:
- name: beaconApiEndpoint
value: string
- name: beaconPrometheusMetricsApiEndpoint
value: string
- name: executionClientPrometheusMetricsApiEndpoint
value: string
- name: validatorConfig
value:
- name: mevRelayUrls
value:
- string
- name: managedValidatorClient
value: boolean
- name: beaconFeeRecipient
value: string
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: blockchainType
value: string
- name: connectionInfo
value:
- name: endpointInfo
value:
- name: jsonRpcApiEndpoint
value: string
- name: websocketsApiEndpoint
value: string
- name: serviceAttachment
value: string
- name: state
value: string
- name: privateServiceConnectEnabled
value: boolean
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 }}';