Retrieve a version of a given workflow.
Specific version of a workflow
The response for a failed request.
from cognite.client.data_classes import WorkflowVersionId res = client.workflows.versions.retrieve(WorkflowVersionId("my_workflow", "v1")) res = client.workflows.versions.retrieve( [WorkflowVersionId("my_workflow", "v1"), WorkflowVersionId("other", "v3.2")], ignore_unknown_ids=True, ) res = client.workflows.versions.retrieve([("my_workflow", "v1"), ("other", "v3.2")]) res = client.workflows.versions.retrieve("my_workflow", "v1")
{- "workflowExternalId": "string",
- "version": "string",
- "workflowDefinition": {
- "hash": "string",
- "description": "string",
- "tasks": [
- {
- "externalId": "string",
- "type": "function",
- "name": "string",
- "description": "string",
- "parameters": {
- "function": {
- "externalId": "my.known.id",
- "data": {
- "key1": "value1",
- "key2": "value2"
}
}, - "isAsyncComplete": false
}, - "retries": 3,
- "timeout": 3600,
- "onFailure": "abortWorkflow",
- "dependsOn": [
- {
- "externalId": "my.known.id"
}
]
}
]
}, - "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000
}