Queries the information about a workflow.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
No |
The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID. You must configure this parameter to specify the DataWorks workspace to which the API operation is applied. |
10000 |
| Id |
integer |
Yes |
The ID of the workflow. |
860438872620**** |
| IncludeScriptContent |
boolean |
No |
Specifies whether the query result includes the script content of internal nodes in the workflow definition. For nodes with large content, this may cause high network transmission latency. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F2BDD628-8A21-5BD1-B930-1A2D5989XXXX |
| WorkflowDefinition |
object |
The information about the workflow. |
|
| ProjectId |
integer |
The ID of the workspace to which the workflow belongs. |
307XXX |
| Name |
string |
The name of the workflow. |
OpenAPI test workflow Demo |
| Owner |
string |
The owner of the workflow. |
110755000425XXXX |
| CreateTime |
integer |
The time when the workflow was created. This value is a UNIX timestamp. |
1708481905000 |
| ModifyTime |
integer |
The time when the workflow was last modified. This value is a UNIX timestamp. |
1708481905000 |
| Spec |
string |
The FlowSpec field information about the workflow. For more information, see FlowSpec. |
{ "metadata": { "tenantId": "52425742456XXXX", "projectId": "307XXXX", "uuid": "463497880880954XXXX" }, "kind": "CycleWorkflow", "version": "1.1.0", "spec": { "name": "OpenAPI_Test_Workflow_Demo", "id": "463497880880954XXXX", "type": "CycleWorkflow", "owner": "110755000425XXXX", "workflows": [ { "script": { "path": "XX/OpenAPI_Test/Workflow_Test/OpenAPI_Test_Workflow_Demo", "runtime": { "command": "WORKFLOW" }, "id": "698002781368644XXXX" }, "id": "463497880880954XXXX", "trigger": { "type": "Scheduler", "id": "652567824470354XXXX", "cron": "00 02 00 * * ?", "startTime": "1970-01-01 00:00:00", "endTime": "9999-01-01 00:00:00", "timezone": "Asia/Shanghai", "delaySeconds": 0 }, "strategy": { "timeout": 0, "instanceMode": "T+1", "rerunMode": "Allowed", "rerunTimes": 3, "rerunInterval": 180000, "failureStrategy": "Break" }, "name": "OpenAPI_Test_Workflow_Demo", "owner": "110755000425XXXX", "metadata": { "owner": "110755000425XXXX", "ownerName": "XXXX@test.XXXX.com", "tenantId": "52425742456XXXX", "project": { "mode": "STANDARD", "projectId": "307303", "projectIdentifier": "lwttest_standard", "projectName": "XXXX", "projectOwnerId": "110755000425XXXX", "simple": false, "tenantId": "52425742456XXXX" }, "projectId": "307XXXX" }, "inputs": {}, "outputs": { "nodeOutputs": [ { "data": "463497880880954XXXX", "artifactType": "NodeOutput", "refTableName": "OpenAPI_Test_Workflow_Demo", "isDefault": true } ] }, "nodes": [], "dependencies": [] } ] } } |
| WorkflowId |
integer |
The ID of the workflow on the scheduling side after publishing. |
700006657495 |
| Id |
integer |
The ID of the workflow. |
463497880880954XXXX |
Examples
Success response
JSON format
{
"RequestId": "F2BDD628-8A21-5BD1-B930-1A2D5989XXXX",
"WorkflowDefinition": {
"ProjectId": 0,
"Name": "OpenAPI test workflow Demo",
"Owner": "110755000425XXXX",
"CreateTime": 1708481905000,
"ModifyTime": 1708481905000,
"Spec": "{\n \"metadata\": {\n \"tenantId\": \"52425742456XXXX\",\n \"projectId\": \"307XXXX\",\n \"uuid\": \"463497880880954XXXX\"\n },\n \"kind\": \"CycleWorkflow\",\n \"version\": \"1.1.0\",\n \"spec\": {\n \"name\": \"OpenAPI_Test_Workflow_Demo\",\n \"id\": \"463497880880954XXXX\",\n \"type\": \"CycleWorkflow\",\n \"owner\": \"110755000425XXXX\",\n \"workflows\": [\n {\n \"script\": {\n \"path\": \"XX/OpenAPI_Test/Workflow_Test/OpenAPI_Test_Workflow_Demo\",\n \"runtime\": {\n \"command\": \"WORKFLOW\"\n },\n \"id\": \"698002781368644XXXX\"\n },\n \"id\": \"463497880880954XXXX\",\n \"trigger\": {\n \"type\": \"Scheduler\",\n \"id\": \"652567824470354XXXX\",\n \"cron\": \"00 02 00 * * ?\",\n \"startTime\": \"1970-01-01 00:00:00\",\n \"endTime\": \"9999-01-01 00:00:00\",\n \"timezone\": \"Asia/Shanghai\",\n \"delaySeconds\": 0\n },\n \"strategy\": {\n \"timeout\": 0,\n \"instanceMode\": \"T+1\",\n \"rerunMode\": \"Allowed\",\n \"rerunTimes\": 3,\n \"rerunInterval\": 180000,\n \"failureStrategy\": \"Break\"\n },\n \"name\": \"OpenAPI_Test_Workflow_Demo\",\n \"owner\": \"110755000425XXXX\",\n \"metadata\": {\n \"owner\": \"110755000425XXXX\",\n \"ownerName\": \"XXXX@test.XXXX.com\",\n \"tenantId\": \"52425742456XXXX\",\n \"project\": {\n \"mode\": \"STANDARD\",\n \"projectId\": \"307303\",\n \"projectIdentifier\": \"lwttest_standard\",\n \"projectName\": \"XXXX\",\n \"projectOwnerId\": \"110755000425XXXX\",\n \"simple\": false,\n \"tenantId\": \"52425742456XXXX\"\n },\n \"projectId\": \"307XXXX\"\n },\n \"inputs\": {},\n \"outputs\": {\n \"nodeOutputs\": [\n {\n \"data\": \"463497880880954XXXX\",\n \"artifactType\": \"NodeOutput\",\n \"refTableName\": \"OpenAPI_Test_Workflow_Demo\",\n \"isDefault\": true\n }\n ]\n },\n \"nodes\": [],\n \"dependencies\": []\n }\n ]\n }\n}",
"WorkflowId": 700006657495,
"Id": 0
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.