Creates a workflow to backfill data.
Operation description
For more information about data backfill, see Backfill data.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dataworks:* | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProjectEnv | string | Yes | The environment of the workspace. Valid values: PROD and DEV. The value PROD indicates the production environment, and the value DEV indicates the development environment. | PROD |
StartBizDate | string | Yes | The data timestamp at which data starts to be backfilled. Specify the value in the yyyy-MM-dd 00:00:00 format. | 2020-05-20 00:00:00 |
Name | string | Yes | The name of the workflow. | xm_test |
RootNodeId | long | Yes | The ID of the node for which data is first backfilled. You can call the ListNodes operation to obtain the node ID. | 1234 |
ExcludeNodeIds | string | No | The IDs of the nodes for which no data needs to be backfilled. The system generates dry-run instances for all these nodes. After these dry-run instances are scheduled, the statuses of these instances are directly set to successful, but the script is not run. | 1234,123465 |
BizBeginTime | string | No | The time when the node starts to run. This parameter is required only for auto triggered nodes that are scheduled by hour. Specify the value in the HH:mm:ss format. Valid values: 00:00:00 to 23:59:59. | 00:00:00 |
BizEndTime | string | No | The time when the node stops running. This parameter is required only for auto triggered nodes that are scheduled by hour. Specify the value in the HH:mm:ss format. Valid values: 00:00:00 to 23:59:59. | 01:00:00 |
Parallelism | boolean | Yes | Specifies whether data can be backfilled for multiple nodes at the same time. | false |
EndBizDate | string | Yes | The data timestamp at which data is no longer backfilled. Specify the value in the yyyy-MM-dd 00:00:00 format. | 2020-05-21 00:00:00 |
NodeParams | string | No | The parameters that need to be configured for the node. Set this parameter to a JSON string. The key indicates the ID of the node, and the value indicates the actual values of the parameters. | {74324:"a=123 b=456"} |
IncludeNodeIds | string | Yes | The ID of the node for which you want to backfill data. If you want to backfill data for multiple nodes, separate the IDs of the nodes with commas (,). You can call the ListNodes operation to obtain the node ID. | 74324,74325 |
StartFutureInstanceImmediately | boolean | No | Specifies whether to immediately run an instance that is scheduled to run in the future. If you set this parameter to true, the instance that is scheduled to run in the future is run immediately. Otherwise, the instance is run as scheduled. | false |
ConcurrentRuns | integer | No | The number of nodes that can run in parallel. Valid values: 2 to 10. | 5 |
AlertType | string | No | The alert type. Valid values:
| FAILURE |
AlertNoticeType | string | No | The alert notification method. Valid values:
| SMS |
Response parameters
Examples
Sample success responses
JSON
format
{
"HttpStatusCode": 200,
"RequestId": ">E6F0DBDD-5AD****",
"ErrorMessage": "The connection does not exist.",
"Success": true,
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Data": [
111
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|