Mengkueri semua konfigurasi pemanggilan asinkron fungsi dalam layanan. Jika jumlah konfigurasi melebihi nilai parameter limit, parameter nextToken akan dikembalikan. Anda dapat menggunakan parameter nextToken untuk mengkueri halaman hasil berikutnya.
Deskripsi operasi
配置中的 StatefulAsyncInvocation 即为异步任务的配置项。当 StatefulAsyncInvocation 取值为 true 时,代表您已开启异步任务。该配置所对应应函数的所有的异步调用将变为异步任务模式。
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListFunctionAsyncInvokeConfigs |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/services/{serviceName}/functions/{functionName}/async-invoke-configs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
Nama layanan. |
demo-service |
| functionName |
string |
Yes |
Nama fungsi. |
helloworld |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| limit |
integer |
No |
Jumlah maksimum resource yang akan dikembalikan. Nilai default: 20. Nilai tidak boleh melebihi 100. Jumlah konfigurasi yang dikembalikan kurang dari atau sama dengan jumlah yang ditentukan. |
20 |
| nextToken |
string |
No |
Token yang diperlukan untuk mendapatkan hasil lainnya. Jika jumlah resource melebihi batas, parameter nextToken akan dikembalikan. Anda dapat menyertakan parameter ini dalam panggilan berikutnya untuk mendapatkan hasil lainnya. Anda tidak perlu menyediakan parameter ini pada panggilan pertama. |
8bj81uI8n**** |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Code-Checksum |
string |
No |
Nilai CRC-64 paket kode fungsi. Nilai ini digunakan untuk memeriksa integritas data. Nilai dihitung secara otomatis oleh alat. |
1506052139770049xxxx |
| X-Fc-Log-Type |
string |
No |
Metode yang digunakan untuk mengembalikan log. Nilai valid:
|
Tail |
| X-Fc-Invocation-Type |
string |
No |
Metode pemanggilan. Nilai valid:
|
Async |
| X-Fc-Date |
string |
No |
Pengatur waktu saat Function Compute dipanggil. Formatnya adalah EEE,d MMM yyyy HH:mm:ss GMT. |
Sat, 14 Jul 2017 07:02:38 GMT |
| X-Fc-Trace-Id |
string |
No |
ID jejak permintaan pemanggilan Function Compute. |
asdf**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data struct returned. |
||
| configs |
array<object> |
The list of asynchronous invocation configurations. |
|
|
object |
The asynchronous invocation configurations. |
||
| createdTime |
string |
The time when the asynchronous invocation configuration was created. |
2020-09-10T02:45:02Z |
| destinationConfig |
DestinationConfig |
The configuration struct of the destination for asynchronous invocations. If you did not configure this parameter, this parameter is null. |
{"onSuccess": null,"onFailure": {"destination": "acs:mns:cn-shanghai:123:/queues/xxx/messages"}} |
| function |
string |
The function name. |
helloworld |
| lastModifiedTime |
string |
The time when the configuration was last modified. |
2020-09-10T02:45:02Z |
| maxAsyncEventAgeInSeconds |
integer |
The maximum validity period of a message. If you have not configured this parameter, this parameter is null. |
300 |
| maxAsyncRetryAttempts |
integer |
The maximum number of retries allowed after an asynchronous invocation fails. If you have not configured this parameter, this parameter is null. |
3 |
| qualifier |
string |
The version or alias of the service. |
test |
| service |
string |
The service name. |
demo-service |
| statefulInvocation |
boolean |
Specifies whether to enable the asynchronous task feature. Valid values:
If you have not configured this parameter, this parameter is null. |
true |
| nextToken |
string |
The token used to obtain more results. |
caeba0be03****f84eb48b699f0a4883 |
Contoh
Respons sukses
JSONformat
{
"configs": [
{
"createdTime": "2020-09-10T02:45:02Z",
"destinationConfig": {
"onSuccess": {
"destination": "acs:fc:cn-shanghai:xxx:services/s1/functions/f1"
},
"onFailure": {
"destination": "acs:fc:cn-shanghai:xxx:services/s1/functions/f1"
}
},
"function": "helloworld",
"lastModifiedTime": "2020-09-10T02:45:02Z",
"maxAsyncEventAgeInSeconds": 300,
"maxAsyncRetryAttempts": 3,
"qualifier": "test",
"service": "demo-service",
"statefulInvocation": true
}
],
"nextToken": "caeba0be03****f84eb48b699f0a4883"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.