Skip to main content

nodes

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

Overview

Namenodes
TypeResource
Idgoogle.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.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.sasportal.nodes (
nodesId,
sasUserIds,
displayName,
name
)
SELECT
'{{ nodesId }}',
'{{ sasUserIds }}',
'{{ displayName }}',
'{{ name }}'
;

UPDATE example

Updates a nodes resource.

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

DELETE example

Deletes the specified nodes resource.

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