All Products
Search
Document Center

DataWorks:GetWorkflowDefinition

Last Updated:Dec 10, 2024

Queries the information about a workflow.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdstringNo

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
IdstringYes

The ID of the workflow.

860438872620113XXXX

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

F2BDD628-8A21-5BD1-B930-1A2D5989XXXX
WorkflowDefinitionobject

The information about the workflow.

Idstring

The ID of the workflow.

463497880880954XXXX
ProjectIdstring

The ID of the workspace to which the workflow belongs.

307XXX
Namestring

The name of the workflow.

Ownerstring

The owner of the workflow.

110755000425XXXX
CreateTimelong

The time when the workflow was created. This value is a UNIX timestamp.

1708481905000
ModifyTimelong

The time when the workflow was last modified. This value is a UNIX timestamp.

1708481905000
Specstring

The FlowSpec field information about the workflow. For more information, see FlowSpec .

Examples

Sample success responses

JSONformat

{
  "RequestId": "F2BDD628-8A21-5BD1-B930-1A2D5989XXXX",
  "WorkflowDefinition": {
    "Id": "463497880880954XXXX",
    "ProjectId": "307XXX",
    "Name": "",
    "Owner": "110755000425XXXX",
    "CreateTime": 1708481905000,
    "ModifyTime": 1708481905000,
    "Spec": ""
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history