Skip to main content

executions

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

Overview

Nameexecutions
TypeResource
Idgoogle.workloadmanager.executions

Fields

NameDatatypeDescription
namestringThe name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}
endTimestringOutput only. [Output only] End time stamp
evaluationIdstringOutput only. [Output only] Evaluation ID
externalDataSourcesarrayOptional. External data sources
inventoryTimestringOutput only. [Output only] Inventory time stamp
labelsobjectLabels as key value pairs
runTypestringtype represent whether the execution executed directly by user or scheduled according evaluation.schedule field.
startTimestringOutput only. [Output only] Start time stamp
statestringOutput only. [Output only] State

Methods

NameAccessible byRequired ParamsDescription
getSELECTevaluationsId, executionsId, locationsId, projectsIdGets details of a single Execution.
listSELECTevaluationsId, locationsId, projectsIdLists Executions in a given project and location.
deleteDELETEevaluationsId, executionsId, locationsId, projectsIdDeletes a single Execution.
runEXECevaluationsId, locationsId, projectsIdCreates a new Execution in a given project and location.

SELECT examples

Lists Executions in a given project and location.

SELECT
name,
endTime,
evaluationId,
externalDataSources,
inventoryTime,
labels,
runType,
startTime,
state
FROM google.workloadmanager.executions
WHERE evaluationsId = '{{ evaluationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified executions resource.

/*+ delete */
DELETE FROM google.workloadmanager.executions
WHERE evaluationsId = '{{ evaluationsId }}'
AND executionsId = '{{ executionsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';