Creates a node and returns the node ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:CreateSchedulerxJobCreate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| Namespace |
string |
Yes |
The namespace ID. You can obtain the namespace ID on the Namespace page in the console. |
adcfc35d-e2fe-4fe9-bbaa-20e90ffc**** |
| NamespaceSource |
string |
No |
This parameter is required only for special third-party users. |
schedulerx |
| GroupId |
string |
Yes |
The application ID. You can obtain the application ID on the Application Management page in the console. |
testSchedulerx.defaultGroup |
| JobType |
string |
Yes |
The node type. The following node types are supported:
Valid values:
|
java |
| Name |
string |
Yes |
The node name. |
helloworld |
| Description |
string |
No |
The node description. |
Test |
| ExecuteMode |
string |
Yes |
The node execution mode. The following execution modes are supported:
Valid values:
|
standalone |
| ClassName |
string |
No |
The full path of the node interface class. This field is required only when you select the Java node type. Specify the full path. |
com.alibaba.schedulerx.test.helloworld |
| Content |
string |
No |
|
echo 'hello' |
| Parameters |
string |
No |
The user-defined parameters that can be obtained at runtime. |
test |
| MaxConcurrency |
integer |
No |
The maximum number of concurrently running instances. Default value: 1. This means that if the previous trigger has not finished running, the next trigger is not performed even if the scheduled time arrives. |
1 |
| MaxAttempt |
integer |
No |
The maximum number of retries on failure. Set this parameter based on your business requirements. Default value: 0. |
0 |
| AttemptInterval |
integer |
No |
The retry interval on failure. Unit: seconds. Default value: 30. |
30 |
| PageSize |
integer |
No |
The advanced configuration for parallel grid nodes. The number of subtasks pulled in a single request. Default value: 100. |
100 |
| ConsumerSize |
integer |
No |
The advanced configuration for parallel grid nodes. The number of threads triggered for a single execution on a single machine. Default value: 5. |
5 |
| QueueSize |
integer |
No |
The advanced configuration for parallel grid nodes. The maximum cache size of the subtask queue. Default value: 10000. |
10000 |
| DispatcherSize |
integer |
No |
The advanced configuration for parallel grid nodes. The number of subtask dispatch threads. Default value: 5. |
5 |
| TimeType |
integer |
Yes |
The time type. The following time types are supported:
Valid values:
|
1 |
| TimeExpression |
string |
No |
The time expression. Set the time expression based on the selected time type.
|
0 0/10 * * * ? |
| Calendar |
string |
No |
The custom calendar. This parameter is available for the cron time type. |
|
| DataOffset |
integer |
No |
The time offset. Unit: seconds. This parameter is available for the cron time type. |
2400 |
| Timezone |
string |
No |
The time zone. |
GMT+8 |
| TimeoutEnable |
boolean |
No |
Specifies whether to enable the timeout alert. Valid values:
Valid values:
|
false |
| Timeout |
integer |
No |
The timeout threshold. Unit: seconds. Default value: 7200. |
7200 |
| TimeoutKillEnable |
boolean |
No |
Specifies whether to enable timeout termination. Valid values:
Valid values:
|
false |
| FailEnable |
boolean |
No |
Specifies whether to enable the failure alert. Valid values:
Valid values:
|
false |
| FailTimes |
integer |
No |
The number of consecutive failures before an alert is triggered. |
2 |
| MissWorkerEnable |
boolean |
No |
Specifies whether to enable the no-available-machine alert. Valid values:
|
false |
| SuccessNoticeEnable |
boolean |
No |
Specifies whether to enable the success notification. |
false |
| SendChannel |
string |
No |
The alert notification channel.
Valid values:
|
sms |
| TaskMaxAttempt |
integer |
No |
The advanced configuration for parallel grid nodes. The number of retries for a failed subtask. Default value: 0. |
0 |
| TaskAttemptInterval |
integer |
No |
The advanced configuration for parallel grid nodes. The retry interval for a failed subtask. Default value: 0. |
0 |
| ContactInfo |
array<object> |
No |
The node contact information. Important This field is deprecated. |
1 |
|
object |
No |
The node contact information. |
||
| UserPhone |
string |
No |
The mobile phone number of the alert recipient. |
1381111**** |
| UserName |
string |
No |
The name of the alert contact. |
John Smith |
| UserMail |
string |
No |
The email address of the alert contact. |
test***@***.com |
| Ding |
string |
No |
The webhook URL of the DingTalk chatbot for the alert contact's DingTalk group. References: DingTalk development documentation. |
https://oapi.dingtalk.com/robot/send?access_token=********** |
| Status |
integer |
No |
The node status. Valid values: 0: disabled. 1: enabled. Default value: 1 (enabled). |
1 |
| XAttrs |
string |
No |
If the node type is k8s, configure this parameter. Job task: {"resource":"job"} Shell task: {"image":"busybox","resource":"shell"} |
{"resource":"job"} |
| Priority |
integer |
No |
The node priority. Valid values:
|
5 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The response code. |
200 |
| Message |
string |
The additional information. |
message |
| RequestId |
string |
The request ID. |
39090022-1F3B-4797-8518-6B61095F1AF0 |
| Success |
boolean |
Indicates whether the node was created successfully. Valid values:
|
true |
| Data |
object |
The node details. |
|
| JobId |
integer |
The node ID. |
92583 |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "message",
"RequestId": "39090022-1F3B-4797-8518-6B61095F1AF0",
"Success": true,
"Data": {
"JobId": 92583
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.