Skip to main content

suspensions

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

Overview

Namesuspensions
TypeResource
Idgoogle.integrations.suspensions

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringResource name for suspensions suspension/{suspension_id}
approvalConfigobjectControls the notifications and approval permissions for this suspension. (id: GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig)
auditobjectMetadata pertaining to the resolution of this suspension. (id: GoogleCloudIntegrationsV1alphaSuspensionAudit)
createTimestring (google-datetime)Output only. Auto-generated.
eventExecutionInfoIdstringRequired. ID of the associated execution.
integrationstringRequired. The name of the originating integration.
lastModifyTimestring (google-datetime)Output only. Auto-generated.
statestringRequired. State of this suspension, indicating what action a resolver has taken.
suspensionConfigobjectControls the notifications and resolver permissions for this suspension. (id: EnterpriseCrmEventbusProtoSuspensionConfig)
taskIdstringRequired. Task id of the associated SuspensionTask.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_products_integrations_executions_suspensions_listselectprojectsId, locationsId, productsId, integrationsId, executionsIdpageSize, pageToken, filter, orderBy* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.
projects_locations_integrations_executions_suspensions_listselectprojectsId, locationsId, integrationsId, executionsIdpageSize, pageToken, filter, orderBy* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.
projects_locations_products_integrations_executions_suspensions_resolveexecprojectsId, locationsId, productsId, integrationsId, executionsId, suspensionsId* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.
projects_locations_products_integrations_executions_suspensions_liftexecprojectsId, locationsId, productsId, integrationsId, executionsId, suspensionsId* Lifts suspension for the Suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.
projects_locations_integrations_executions_suspensions_resolveexecprojectsId, locationsId, integrationsId, executionsId, suspensionsId* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.
projects_locations_integrations_executions_suspensions_liftexecprojectsId, locationsId, integrationsId, executionsId, suspensionsId* Lifts suspension for the Suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
executionsIdstring
integrationsIdstring
locationsIdstring
productsIdstring
projectsIdstring
suspensionsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

  • Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.
SELECT
name,
approvalConfig,
audit,
createTime,
eventExecutionInfoId,
integration,
lastModifyTime,
state,
suspensionConfig,
taskId
FROM google.integrations.suspensions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND productsId = '{{ productsId }}' -- required
AND integrationsId = '{{ integrationsId }}' -- required
AND executionsId = '{{ executionsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';

Lifecycle Methods

  • Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.
EXEC google.integrations.suspensions.projects_locations_products_integrations_executions_suspensions_resolve 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@productsId='{{ productsId }}' --required,
@integrationsId='{{ integrationsId }}' --required,
@executionsId='{{ executionsId }}' --required,
@suspensionsId='{{ suspensionsId }}' --required
@@json=
'{
"suspension": "{{ suspension }}"
}';