Menghentikan eksekusi yang sedang berlangsung dalam suatu alur.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fnf:StopExecution |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FlowName |
string |
Yes |
Nama alur kerja yang akan dihentikan. Anda dapat memanggil operasi ListFlows untuk memperoleh nilai parameter ini. |
flow |
| ExecutionName |
string |
Yes |
Nama eksekusi yang akan dihentikan. Anda dapat memanggil operasi ListExecutions untuk memperoleh nilai parameter ini. |
exec |
| Cause |
string |
No |
Alasan untuk menghentikan eksekusi. Nilai harus memiliki panjang 1 hingga 4.096 karakter. |
for test |
| Error |
string |
No |
Kode kesalahan untuk menghentikan eksekusi. Kode kesalahan harus memiliki panjang 1 hingga 128 karakter. |
nill |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| Status |
string |
Status eksekusi. Nilai yang valid:
|
Running |
| StoppedTime |
string |
Waktu ketika eksekusi dihentikan. |
2019-01-01T01:01:01.001Z |
| RequestId |
string |
ID permintaan. |
testRequestId |
| StartedTime |
string |
Waktu ketika eksekusi dimulai. |
2019-01-01T01:01:01.001Z |
| FlowDefinition |
string |
Definisi alur. |
version: v1.0\ntype: flow\nname: test\nsteps:\n - type: pass\n name: mypass |
| Output |
string |
Hasil eksekusi, dalam format JSON. |
{"key":"value"} |
| FlowName |
string |
Nama alur. |
flow |
| Name |
string |
Nama eksekusi. |
exec |
| Input |
string |
Input eksekusi, dalam format JSON. |
{"key":"value"} |
| RoleArn |
string |
Alibaba Cloud Resource Name (ARN) dari peran yang mengeksekusi alur. Jika RoleArn dalam definisi alur diubah selama eksekusi alur, sistem mencatat dan mengembalikan snapshot dari RoleArn awal. Catatan
Jika Anda tidak menentukan parameter RoleArn dalam parameter permintaan, parameter respons tidak akan berisi parameter RoleArn. |
acs:ram:${region}:${accountID}:${role} |
Contoh
Respons sukses
JSONformat
{
"Status": "Running",
"StoppedTime": "2019-01-01T01:01:01.001Z",
"RequestId": "testRequestId",
"StartedTime": "2019-01-01T01:01:01.001Z",
"FlowDefinition": "version: v1.0\\ntype: flow\\nname: test\\nsteps:\\n - type: pass\\n name: mypass",
"Output": "{\"key\":\"value\"}",
"FlowName": "flow",
"Name": "exec",
"Input": "{\"key\":\"value\"}",
"RoleArn": "acs:ram:${region}:${accountID}:${role}"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ActionNotSupported | The requested API operation '%s' is incorrect. Please check. | |
| 400 | APIVersionNotSupported | The requested API version '%s' is not supported yet. Please check. | |
| 400 | EntityTooLarge | The payload size exceeds maximum allowed size (%s bytes). | |
| 400 | ExecutionAlreadyCompleted | Execution '%s' for flow '%s' has already completed. | |
| 400 | InvalidArgument | Parameter error. | |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | |
| 500 | InternalServerError | An internal error has occurred. Please retry. | |
| 403 | AccessDenied | The resources doesn't belong to you. | |
| 403 | InvalidAccessKeyID | The AccessKey ID %s is invalid. | |
| 403 | RequestTimeTooSkewed | The difference between the request time %s and the current time %s is too large. | |
| 403 | SignatureNotMatch | The request signature we calculated does not match the signature you provided. Check your access key and signing method. | |
| 404 | ExecutionNotExists | Execution %s for flow %s does not exist. | |
| 404 | FlowNotExists | Flow %s does not exist. | |
| 415 | UnsupportedMediaType | The content type must be "application/json". | |
| 429 | ResourceThrottled | The request is throttled. Please try again later. | |
| 409 | ConcurrentUpdateError | Update conflict, please retry. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.