GetInstance

Updated at:

Retrieves the details of an instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

integer

Yes

The ID of the instance. You can call the ListInstances operation to obtain the ID.

1234

ProjectEnv

string

Yes

The environment of the workspace, including PROD (production environment) and DEV (development environment).

Valid values:

  • PROD :

    Production environment.

  • DEV :

    Development environment.

PROD

Response elements

Element

Type

Description

Example

object

The response entity.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

E6F0DBDD-5AD****

ErrorMessage

string

The error message returned when the instance fails to be scheduled.

test

Success

boolean

Indicates whether the call was successful.

true

ErrorCode

string

The error code.

0

Data

object

The details of the instance.

Status

string

The status of the instance. Valid values:

  • NOT_RUN(1): Not run.

  • WAIT_TIME(2): Waiting for the scheduled time.

  • WAIT_RESOURCE(3): Waiting for resources. The node has been delivered to the execution engine and is waiting in the queue for scheduling.

  • RUNNING(4): Running.

  • CHECKING(7): Checking. The execution is complete, and the node is delivered to Data Quality for data verification.

  • CHECKING_CONDITION(8): Checking conditions. The execution is complete, and branch conditions are being verified.

  • WAIT_TRIGGER(9): Waiting to be triggered. A trigger node changes to this status after the waiting time elapses.

  • FAILURE(5): Failed.

  • SUCCESS(6): Successful.

NOT_RUN

CycTime

integer

The scheduled time of the instance.

The value is a 13-digit timestamp, such as 1590422400000.

1590422400000

BeginRunningTime

integer

The time when the instance started to run.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

FinishTime

integer

The time when the instance finished running.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

CreateTime

integer

The time when the instance was created.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

DagId

integer

The ID of the workflow.

338450167

Priority

integer

The running priority of the instance. Valid values: 1, 3, 5, 7, and 8. A larger value indicates a higher priority. Default value: 1.

1

TaskType

string

The scheduling type of the instance. Valid values:

  • NORMAL(0): Normal scheduling node. The node is scheduled on a daily basis.

  • MANUAL(1): Manual node. The node is not scheduled on a daily basis.

  • PAUSE(2): Frozen node. The node is scheduled on a daily basis, but its status is directly set to failed when the scheduling is triggered.

  • SKIP(3): Dry-run node. The node is scheduled on a daily basis, but its status is directly set to successful when the scheduling is triggered.

  • SKIP_UNCHOOSE(4): Unselected node in a temporary workflow. This type of node exists only in temporary workflows, and its status is directly set to successful when the scheduling is triggered.

  • SKIP_CYCLE(5): Weekly or monthly node that has not reached its running cycle. The node is scheduled on a daily basis, but its status is directly set to successful when the scheduling is triggered.

  • CONDITION_UNCHOOSE(6): Unselected downstream node. An upstream instance contains a branch (IF) node, but this downstream node is not selected by the branch node. Its status is directly set to dry-run.

  • REALTIME_DEPRECATED(7): Deprecated real-time generated periodic instance. The status of this type of node is directly set to successful.

NORMAL(0)

ParamValues

string

The parameter information.

bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif

Connection

string

The connection string.

odps_source

BaselineId

integer

The baseline ID.

123123

DqcType

integer

The Data Quality (DQC) type. Valid values:

  • 0: Associated with DQC.

  • 1: Not associated with DQC.

1

DagType

string

The type of the workflow. Valid values:

  • DAILY(0): Daily scheduling workflow.

  • MANUAL(1): Manual node workflow.

  • SMOKE_TEST(2): Smoke test workflow.

  • SUPPLY_DATA(3): Data backfill workflow.

  • MANUAL_FLOW(4): Manually run DataFlow or PAI workflow, such as running a workflow in the IDE.

  • BUSINESS_PROCESS_DAG(5): Manual workflow.

DAILY

BusinessId

integer

The workflow ID.

123

TaskRerunTime

integer

The number of times the instance can still be rerun. The value can be empty or an integer greater than or equal to 0.

  • If the value is empty, the automatic rerun count is not configured for the node corresponding to the instance.

  • If the value is 0, the instance cannot be rerun.

  • If the value is an integer greater than 0 (assumed as n), the instance can be rerun n times. For example, if the value is 1, the remaining rerun count is 1. If the value is 2, the remaining rerun count is 2, and so on. The initial value is the automatic rerun count defined for the corresponding node plus 1.

0

PeriodNumber

integer

The period number, which indicates the cycle sequence of the node instance on the current day.

1

ModifyTime

integer

The last modification time of the instance.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

Repeatability

boolean

Indicates whether the instance can be repeatedly executed.

true

RepeatInterval

integer

The rescheduling interval after a scheduling node fails to run, in milliseconds.

60000

InstanceId

integer

The ID of the instance.

11713307578

BeginWaitResTime

integer

The time when the instance started to wait for resources.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

RelatedFlowId

integer

The ID of the associated workflow.

123123

Bizdate

integer

The business date. Typically, this is the day before the node runs.

The value is a 13-digit timestamp, such as 1590336000000.

1590336000000

NodeName

string

The name of the node.

kzh

BeginWaitTimeTime

integer

The time when the instance started to wait for scheduling.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

DqcDescription

string

The DQC partitioning rule string.

[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\u003d$[yyyy-mm-dd-1]"}]

NodeId

integer

The ID of the node.

33115

CreateUser

string

The creator of the instance.

111

Owner

string

The owner of the instance.

111

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "E6F0DBDD-5AD****",
  "ErrorMessage": "test",
  "Success": true,
  "ErrorCode": "0",
  "Data": {
    "Status": "NOT_RUN",
    "CycTime": 1590422400000,
    "BeginRunningTime": 1590416703313,
    "FinishTime": 1590416703313,
    "CreateTime": 1590416703313,
    "DagId": 338450167,
    "Priority": 1,
    "TaskType": "NORMAL(0)",
    "ParamValues": "bizdate=$bizdate tbods=$tbods tbdw=$tbdw tbpmic=$tbpmic tbpidx=$tbpidx tbptcif=$tbptcif",
    "Connection": "odps_source",
    "BaselineId": 123123,
    "DqcType": 1,
    "DagType": "DAILY",
    "BusinessId": 123,
    "TaskRerunTime": 0,
    "PeriodNumber": 1,
    "ModifyTime": 1590416703313,
    "Repeatability": true,
    "RepeatInterval": 60000,
    "InstanceId": 11713307578,
    "BeginWaitResTime": 1590416703313,
    "RelatedFlowId": 123123,
    "Bizdate": 1590336000000,
    "NodeName": "kzh",
    "BeginWaitTimeTime": 1590416703313,
    "DqcDescription": "[{\"projectName\":\"ztjy_dim\",\"tableName\":\"dim_user_agent_manage_area_a\",\"partition\":\"ds\\u003d$[yyyy-mm-dd-1]\"}]",
    "NodeId": 33115,
    "CreateUser": "111",
    "Owner": "111"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.