Skip to main content

nodes

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

Overview

Namenodes
TypeResource
Idgoogle.prod_tt_sasportal.nodes

Fields

NameDatatypeDescription
namestringOutput only. Resource name.
displayNamestringThe node's display name.
sasUserIdsarrayUser ids used by the devices belonging to this node.

Methods

NameAccessible byRequired ParamsDescription
nodes_nodes_listSELECTnodesIdLists nodes.
nodes_nodes_nodes_listSELECTnodesId, nodesId1Lists nodes.
nodes_nodes_createINSERTnodesIdCreates a new node.
nodes_nodes_nodes_createINSERTnodesId, nodesId1Creates a new node.
nodes_nodes_deleteDELETEnodesId, nodesId1Deletes a node.
customers_nodes_patchUPDATEcustomersId, nodesIdUpdates an existing node.
nodes_nodes_patchUPDATEnodesId, nodesId1Updates an existing node.
customers_nodes_moveEXECcustomersId, nodesIdMoves a node under another node or customer.
nodes_nodes_moveEXECnodesId, nodesId1Moves a node under another node or customer.

SELECT examples

Lists nodes.

SELECT
name,
displayName,
sasUserIds
FROM google.prod_tt_sasportal.nodes
WHERE nodesId = '{{ nodesId }}';

INSERT example

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

/*+ create */
INSERT INTO google.prod_tt_sasportal.nodes (
nodesId,
sasUserIds,
name,
displayName
)
SELECT
'{{ nodesId }}',
'{{ sasUserIds }}',
'{{ name }}',
'{{ displayName }}'
;

UPDATE example

Updates a nodes resource.

/*+ update */
UPDATE google.prod_tt_sasportal.nodes
SET
sasUserIds = '{{ sasUserIds }}',
name = '{{ name }}',
displayName = '{{ displayName }}'
WHERE
nodesId = '{{ nodesId }}'
AND nodesId1 = '{{ nodesId1 }}';

DELETE example

Deletes the specified nodes resource.

/*+ delete */
DELETE FROM google.prod_tt_sasportal.nodes
WHERE nodesId = '{{ nodesId }}'
AND nodesId1 = '{{ nodesId1 }}';