Skip to main content

customers

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

Overview

Namecustomers
TypeResource
Idgoogle.prod_tt_sasportal.customers

Fields

NameDatatypeDescription
namestringOutput only. Resource name of the customer.
displayNamestringRequired. Name of the organization that the customer entity represents.
sasUserIdsarrayUser IDs used by the devices belonging to this customer.

Methods

NameAccessible byRequired ParamsDescription
customers_getSELECTcustomersIdReturns a requested customer.
customers_listSELECTReturns a list of requested customers.
customers_patchUPDATEcustomersIdUpdates an existing customer.
customers_migrate_organizationEXECMigrates a SAS organization to the cloud. This will create GCP projects for each deployment and associate them. The SAS Organization is linked to the gcp project that called the command. go/sas-legacy-customer-migration
customers_provision_deploymentEXECCreates a new SAS deployment through the GCP workflow. Creates a SAS organization if an organization match is not found.
customers_setup_sas_analyticsEXECSetups the a GCP Project to receive SAS Analytics messages via GCP Pub/Sub with a subscription to BigQuery. All the Pub/Sub topics and BigQuery tables are created automatically as part of this service.

SELECT examples

Returns a list of requested customers.

SELECT
name,
displayName,
sasUserIds
FROM google.prod_tt_sasportal.customers
;

UPDATE example

Updates a customers resource.

/*+ update */
UPDATE google.prod_tt_sasportal.customers
SET
name = '{{ name }}',
sasUserIds = '{{ sasUserIds }}',
displayName = '{{ displayName }}'
WHERE
customersId = '{{ customersId }}';