Skip to main content

customer_nodes

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

Overview

Namecustomer_nodes
TypeResource
Idgoogle.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.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.sasportal.customer_nodes (
customersId,
sasUserIds,
displayName,
name
)
SELECT
'{{ customersId }}',
'{{ sasUserIds }}',
'{{ displayName }}',
'{{ name }}'
;

DELETE example

Deletes the specified customer_nodes resource.

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