Skip to main content

customer_nodes

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

Overview

Namecustomer_nodes
TypeResource
Idgoogle.prod_tt_sasportal.customer_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
customers_nodes_listSELECTcustomersIdLists nodes.
customers_nodes_nodes_listSELECTcustomersId, nodesIdLists nodes.
customers_nodes_createINSERTcustomersIdCreates a new node.
customers_nodes_nodes_createINSERTcustomersId, nodesIdCreates a new node.
customers_nodes_deleteDELETEcustomersId, nodesIdDeletes a node.

SELECT examples

Lists nodes.

SELECT
name,
displayName,
sasUserIds
FROM google.prod_tt_sasportal.customer_nodes
WHERE customersId = '{{ customersId }}';

INSERT example

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

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

DELETE example

Deletes the specified customer_nodes resource.

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