executions
Creates, updates, deletes, gets or lists an executions resource.
Overview
| Name | executions |
| Type | Resource |
| Id | google.aiplatform.executions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The resource name of the Execution. |
createTime | string (google-datetime) | Output only. Timestamp when this Execution was created. |
description | string | Description of the Execution |
displayName | string | User provided display name of the Execution. May be up to 128 Unicode characters. |
etag | string | An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | The labels with user-defined metadata to organize your Executions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Execution (System labels are excluded). |
metadata | object | Properties of the Execution. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB. |
schemaTitle | string | The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. |
schemaVersion | string | The version of the schema in schema_title to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. |
state | string | The state of this Execution. This is a property of the Execution, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines) and the system does not prescribe or check the validity of state transitions. (STATE_UNSPECIFIED, NEW, RUNNING, COMPLETE, FAILED, CACHED, CANCELLED) |
updateTime | string (google-datetime) | Output only. Timestamp when this Execution was last updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The resource name of the Execution. |
createTime | string (google-datetime) | Output only. Timestamp when this Execution was created. |
description | string | Description of the Execution |
displayName | string | User provided display name of the Execution. May be up to 128 Unicode characters. |
etag | string | An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | The labels with user-defined metadata to organize your Executions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Execution (System labels are excluded). |
metadata | object | Properties of the Execution. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB. |
schemaTitle | string | The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. |
schemaVersion | string | The version of the schema in schema_title to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. |
state | string | The state of this Execution. This is a property of the Execution, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines) and the system does not prescribe or check the validity of state transitions. (STATE_UNSPECIFIED, NEW, RUNNING, COMPLETE, FAILED, CACHED, CANCELLED) |
updateTime | string (google-datetime) | Output only. Timestamp when this Execution was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, metadataStoresId, executionsId | Retrieves a specific Execution. | |
list | select | projectsId, locationsId, metadataStoresId | filter, pageToken, orderBy, pageSize | Lists Executions in the MetadataStore. |
create | insert | projectsId, locationsId, metadataStoresId | executionId | Creates an Execution associated with a MetadataStore. |
patch | update | projectsId, locationsId, metadataStoresId, executionsId | allowMissing, updateMask | Updates a stored Execution. |
delete | delete | projectsId, locationsId, metadataStoresId, executionsId | etag | Deletes an Execution. |
purge | exec | projectsId, locationsId, metadataStoresId | Purges Executions. | |
add_execution_events | exec | projectsId, locationsId, metadataStoresId, executionsId | Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped. |
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.
| Name | Datatype | Description |
|---|---|---|
executionsId | string | |
locationsId | string | |
metadataStoresId | string | |
projectsId | string | |
allowMissing | boolean | |
etag | string | |
executionId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get
- list
Retrieves a specific Execution.
SELECT
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime
FROM google.aiplatform.executions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND metadataStoresId = '{{ metadataStoresId }}' -- required
AND executionsId = '{{ executionsId }}' -- required
;
Lists Executions in the MetadataStore.
SELECT
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime
FROM google.aiplatform.executions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND metadataStoresId = '{{ metadataStoresId }}' -- required
AND filter = '{{ filter }}'
AND pageToken = '{{ pageToken }}'
AND orderBy = '{{ orderBy }}'
AND pageSize = '{{ pageSize }}'
;
INSERT examples
- create
- Manifest
Creates an Execution associated with a MetadataStore.
INSERT INTO google.aiplatform.executions (
data__description,
data__state,
data__metadata,
data__labels,
data__schemaVersion,
data__schemaTitle,
data__displayName,
data__etag,
projectsId,
locationsId,
metadataStoresId,
executionId
)
SELECT
'{{ description }}',
'{{ state }}',
'{{ metadata }}',
'{{ labels }}',
'{{ schemaVersion }}',
'{{ schemaTitle }}',
'{{ displayName }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ metadataStoresId }}',
'{{ executionId }}'
RETURNING
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime
;
# Description fields are for documentation purposes
- name: executions
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the executions resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the executions resource.
- name: metadataStoresId
value: "{{ metadataStoresId }}"
description: Required parameter for the executions resource.
- name: description
value: "{{ description }}"
description: |
Description of the Execution
- name: state
value: "{{ state }}"
description: |
The state of this Execution. This is a property of the Execution, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines) and the system does not prescribe or check the validity of state transitions.
valid_values: ['STATE_UNSPECIFIED', 'NEW', 'RUNNING', 'COMPLETE', 'FAILED', 'CACHED', 'CANCELLED']
- name: metadata
value: "{{ metadata }}"
description: |
Properties of the Execution. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
- name: labels
value: "{{ labels }}"
description: |
The labels with user-defined metadata to organize your Executions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Execution (System labels are excluded).
- name: schemaVersion
value: "{{ schemaVersion }}"
description: |
The version of the schema in `schema_title` to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
- name: schemaTitle
value: "{{ schemaTitle }}"
description: |
The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
- name: displayName
value: "{{ displayName }}"
description: |
User provided display name of the Execution. May be up to 128 Unicode characters.
- name: etag
value: "{{ etag }}"
description: |
An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
- name: executionId
value: "{{ executionId }}"
UPDATE examples
- patch
Updates a stored Execution.
UPDATE google.aiplatform.executions
SET
data__description = '{{ description }}',
data__state = '{{ state }}',
data__metadata = '{{ metadata }}',
data__labels = '{{ labels }}',
data__schemaVersion = '{{ schemaVersion }}',
data__schemaTitle = '{{ schemaTitle }}',
data__displayName = '{{ displayName }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND metadataStoresId = '{{ metadataStoresId }}' --required
AND executionsId = '{{ executionsId }}' --required
AND allowMissing = {{ allowMissing}}
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
displayName,
etag,
labels,
metadata,
schemaTitle,
schemaVersion,
state,
updateTime;
DELETE examples
- delete
Deletes an Execution.
DELETE FROM google.aiplatform.executions
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND metadataStoresId = '{{ metadataStoresId }}' --required
AND executionsId = '{{ executionsId }}' --required
AND etag = '{{ etag }}'
;
Lifecycle Methods
- purge
- add_execution_events
Purges Executions.
EXEC google.aiplatform.executions.purge
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@metadataStoresId='{{ metadataStoresId }}' --required
@@json=
'{
"filter": "{{ filter }}",
"force": {{ force }}
}'
;
Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.
EXEC google.aiplatform.executions.add_execution_events
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@metadataStoresId='{{ metadataStoresId }}' --required,
@executionsId='{{ executionsId }}' --required
@@json=
'{
"events": "{{ events }}"
}'
;