Skip to main content

contact_centers

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

Overview

Namecontact_centers
TypeResource
Idgoogle.contactcenteraiplatform.contact_centers

Fields

NameDatatypeDescription
namestringname of resource
adminUserobjectMessage storing info about the first admin user. Next ID: 3
ccaipManagedUsersbooleanOptional. Whether to enable users to be created in the CCAIP-instance concurrently to having users in Cloud identity
createTimestringOutput only. [Output only] Create time stamp
criticalobjectInstances in this Channel will receive updates after all instances in Normal were updated. They also will only be updated outside of their peak hours.
customerDomainPrefixstringRequired. Immutable. At least 2 and max 16 char long, must conform to RFC 1035.
displayNamestringRequired. A user friendly name for the ContactCenter.
earlyobjectLINT.IfChange First Channel to receive the updates. Meant to dev/test instances
instanceConfigobjectMessage storing the instance configuration.
kmsKeystringImmutable. The KMS key name to encrypt the user input (ContactCenter).
labelsobjectLabels as key value pairs
normalobjectInstances in this Channel will receive updates after all instances in Early were updated + 2 days.
privateAccessobjectDefines ingress and egress private traffic settings for CCAIP instances.
privateComponentsarrayOutput only. TODO(b/283407860) Deprecate this field.
samlParamsobjectMessage storing SAML params to enable Google as IDP.
statestringOutput only. The state of this contact center.
updateTimestringOutput only. [Output only] Update time stamp
urisobjectMessage storing the URIs of the ContactCenter.
userEmailstringOptional. Email address of the first admin user.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcontactCentersId, locationsId, projectsIdGets details of a single ContactCenter.
listSELECTlocationsId, projectsIdLists ContactCenters in a given project and location.
createINSERTlocationsId, projectsIdCreates a new ContactCenter in a given project and location.
deleteDELETEcontactCentersId, locationsId, projectsIdDeletes a single ContactCenter.
patchUPDATEcontactCentersId, locationsId, projectsIdUpdates the parameters of a single ContactCenter.

SELECT examples

Lists ContactCenters in a given project and location.

SELECT
name,
adminUser,
ccaipManagedUsers,
createTime,
critical,
customerDomainPrefix,
displayName,
early,
instanceConfig,
kmsKey,
labels,
normal,
privateAccess,
privateComponents,
samlParams,
state,
updateTime,
uris,
userEmail
FROM google.contactcenteraiplatform.contact_centers
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.contactcenteraiplatform.contact_centers (
locationsId,
projectsId,
name,
labels,
customerDomainPrefix,
displayName,
instanceConfig,
samlParams,
userEmail,
ccaipManagedUsers,
adminUser,
kmsKey,
privateAccess,
early,
normal,
critical
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ customerDomainPrefix }}',
'{{ displayName }}',
'{{ instanceConfig }}',
'{{ samlParams }}',
'{{ userEmail }}',
{{ ccaipManagedUsers }},
'{{ adminUser }}',
'{{ kmsKey }}',
'{{ privateAccess }}',
'{{ early }}',
'{{ normal }}',
'{{ critical }}'
;

UPDATE example

Updates a contact_centers resource.

/*+ update */
UPDATE google.contactcenteraiplatform.contact_centers
SET
name = '{{ name }}',
labels = '{{ labels }}',
customerDomainPrefix = '{{ customerDomainPrefix }}',
displayName = '{{ displayName }}',
instanceConfig = '{{ instanceConfig }}',
samlParams = '{{ samlParams }}',
userEmail = '{{ userEmail }}',
ccaipManagedUsers = true|false,
adminUser = '{{ adminUser }}',
kmsKey = '{{ kmsKey }}',
privateAccess = '{{ privateAccess }}',
early = '{{ early }}',
normal = '{{ normal }}',
critical = '{{ critical }}'
WHERE
contactCentersId = '{{ contactCentersId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified contact_centers resource.

/*+ delete */
DELETE FROM google.contactcenteraiplatform.contact_centers
WHERE contactCentersId = '{{ contactCentersId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';