Skip to main content

project_duo_workflow_workflows

Gets or lists a project_duo_workflow_workflows resource.

Overview​

Nameproject_duo_workflow_workflows
TypeResource
Idgitlab.duo.project_duo_workflow_workflows

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the session.
namestringName or title of the object.
namespace_idstringID of the namespace.
project_idstringID of the project.
user_idstringID of the user.
status_namestringStatus name of the session.
agent_privileges_namesarray
all_executor_logs_urlsarray
allow_agent_to_request_userbooleanAllow the agent to request user input.
archivedbooleanArchived due to retention policy.
created_atstringTimestamp of when the session was created.
environmentstringEnvironment, like IDE or web. (CHAT_PARTIAL, CHAT, AMBIENT)
goalstringGoal of the session.
human_statusstringHuman-readable status of the session.
incremental_checkpoints_enabledbooleanIndicates incremental checkpoints were enabled for the session at creation.
last_executor_logs_urlstringURL to the latest executor logs of the workflow.
mcp_enabledbooleanHas MCP been enabled for the namespace.
namespaceobjectNamespace identity (id, full_path, name)
pre_approved_agent_privileges_namesarray
projectobjectProject identity (id, full_path, name)
resource_iidintegerIID of the associated resource (issue or merge request).
resource_web_urlstringWeb URL of the associated resource (issue or merge request).
stalledbooleanWorkflow got created but has no checkpoints.
statusstringStatus of the session. (CREATED, RUNNING, PAUSED, INPUT_REQUIRED, PLAN_APPROVAL_REQUIRED, TOOL_CALL_APPROVAL_REQUIRED, STOPPED, FAILED, FINISHED)
status_groupstringStatus group of the flow session. (ACTIVE, PAUSED, AWAITING_INPUT, COMPLETED, FAILED, CANCELED)
summarystringSummary of the session.
titlestringTitle of the session.
tool_call_approvalsstringTools approval per session policy.
updated_atstringTimestamp of when the session was last updated.
userobjectUserCore identity (id, username, name)
web_urlstringURL of the object.
workflow_definitionstringGitLab Duo Agent Platform flow type based on its capabilities.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfull_path, hostenvironment, project_path, search, sort, status_group, type, updated_after, workflow_idGitLab Duo Agent Platform flows for a project, for all users (remote flows only). Generated from the GitLab GraphQL schema field Project.duoWorkflowWorkflows (connection of DuoWorkflow nodes).

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
full_pathstringFull path of the project, for example gitlab-org/gitlab
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)
environmentstringEnvironment, for example, IDE or web.
project_pathstringFull path of the project that contains the flows.
sortstringSort flows by the criteria.
status_groupstringStatus group to filter flow sessions by.
typestringType of flow to filter by (for example, software_development or foundational_chat_agents).
updated_afterstringFilters flows updated after a given date.
workflow_idstringFlow ID to filter by.

SELECT examples​

GitLab Duo Agent Platform flows for a project, for all users (remote flows only). Generated from the GitLab GraphQL schema field Project.duoWorkflowWorkflows (connection of DuoWorkflow nodes).

SELECT
id,
name,
namespace_id,
project_id,
user_id,
status_name,
agent_privileges_names,
all_executor_logs_urls,
allow_agent_to_request_user,
archived,
created_at,
environment,
goal,
human_status,
incremental_checkpoints_enabled,
last_executor_logs_url,
mcp_enabled,
namespace,
pre_approved_agent_privileges_names,
project,
resource_iid,
resource_web_url,
stalled,
status,
status_group,
summary,
title,
tool_call_approvals,
updated_at,
user,
web_url,
workflow_definition
FROM gitlab.duo.project_duo_workflow_workflows
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND environment = '{{ environment }}'
AND project_path = '{{ project_path }}'
AND search = '{{ search }}'
AND sort = '{{ sort }}'
AND status_group = '{{ status_group }}'
AND type = '{{ type }}'
AND updated_after = '{{ updated_after }}'
AND workflow_id = '{{ workflow_id }}'
;