Creates a custom job for an environment.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| AliyunLang |
string |
No |
The language. Valid values: zh and en. Default value: zh. Valid values:
|
zh |
| EnvironmentId |
string |
Yes |
The ID of the environment instance. |
env-xxxxxx |
| CustomJobName |
string |
Yes |
The name of the custom job. |
customJob1 |
| ConfigYaml |
string |
Yes |
The YAML configuration string of the custom job. |
参见补充说明。 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
4C518054-852F-4023-ABC1-4AF95FF7**** |
| Code |
integer |
The HTTP status code. 200 indicates success. Other codes indicate failure. |
200 |
| Data |
string |
The name of the created custom job, or exception information. |
cutomJob1 |
| Message |
string |
The response message. |
success |
Examples
Success response
JSON format
{
"RequestId": "4C518054-852F-4023-ABC1-4AF95FF7****",
"Code": 200,
"Data": "cutomJob1",
"Message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.