Menghentikan eksekusi yang sedang berlangsung dalam suatu flow.
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 workflow yang akan dihentikan. Anda dapat memanggil operasi ListFlows untuk mendapatkan nilai parameter ini. |
flow |
| ExecutionName |
string |
Yes |
Nama eksekusi yang akan dihentikan. Anda dapat memanggil operasi ListExecutions untuk mendapatkan nilai parameter ini. |
exec |
| Cause |
string |
No |
Alasan menghentikan eksekusi. Nilainya harus terdiri dari 1 hingga 4.096 karakter. |
for test |
| Error |
string |
No |
Kode kesalahan untuk menghentikan eksekusi. Kode kesalahan harus terdiri dari 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 saat eksekusi dihentikan. |
2019-01-01T01:01:01.001Z |
| RequestId |
string |
ID permintaan. |
testRequestId |
| StartedTime |
string |
Waktu saat eksekusi dimulai. |
2019-01-01T01:01:01.001Z |
| FlowDefinition |
string |
Definisi flow. |
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 flow. |
flow |
| Name |
string |
Nama eksekusi. |
exec |
| Input |
string |
Input eksekusi, dalam format JSON. |
{"key":"value"} |
| RoleArn |
string |
Nama Sumber Daya Alibaba Cloud (ARN) dari role yang mengeksekusi flow tersebut. Jika RoleArn dalam definisi flow diubah selama eksekusi flow, sistem akan mencatat dan mengembalikan snapshot RoleArn aslinya. 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.