Obtaining the Asynchronous Invocation Configurations of All Versions of a Function
Function
This API is used to obtain the asynchronous invocation configurations of all versions of a function.
URI
GET /v2/{project_id}/fgs/functions/{function_urn}/async-invoke-configs
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. Minimum: 1 Maximum: 32 |
|
function_urn |
Yes |
String |
Function URN. Minimum: 1 Maximum: 269 |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
marker |
No |
String |
Final record queried last time. Default: 0 Minimum: 1 Maximum: 64 |
|
limit |
No |
String |
Number of records displayed per page.
Default: 10 Minimum: 1 Maximum: 64 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
async_invoke_configs |
Array of FunctionAsyncInvokeConfigResp objects |
Asynchronous invocation configuration list. |
|
count |
Long |
Total number of asynchronous invocation configurations in the list. Minimum: 0 |
|
page_info |
PageInfo object |
Asynchronous invocation target. |
|
Parameter |
Type |
Description |
|---|---|---|
|
func_urn |
String |
Function URN. Minimum: 1 Maximum: 269 |
|
max_async_event_age_in_seconds |
Integer |
Maximum validity period of a message. Value range: 60s to 86,400s. |
|
max_async_retry_attempts |
Integer |
Maximum number of retry attempts to be made if an asynchronous invocation failure occurs. Default value: 3. Value range: 0–8. |
|
destination_config |
FuncAsyncDestinationConfig object |
Asynchronous invocation target. |
|
created_time |
String |
Time when the asynchronous invocation configuration was created. |
|
last_modified |
String |
Time when the asynchronous invocation configuration was modified. |
|
Parameter |
Type |
Description |
|---|---|---|
|
on_success |
FuncDestinationConfig object |
Target to be invoked when a function is successfully executed. |
|
on_failure |
FuncDestinationConfig object |
Target to be invoked when a function fails to be executed due to a system error or an internal error. |
|
Parameter |
Type |
Description |
|---|---|---|
|
destination |
String |
Target service type.
Enumeration values:
|
|
param |
String |
Parameters (in JSON format) corresponding to the target service.
|
Example Requests
Obtain the asynchronous invocation configurations of all versions of a function.
GET https://{functiongraph_endpoint}/v2/{project_id}/fgs/functions/{function_urn}/async-invoke-configs?marker=0&limit=10
Example Responses
Status code: 200
Ok
{
"async_invoke_configs" : [ {
"func_urn" : "urn:fss:cn-north-7:5691ba790e2b46ceb38316xxxxxxxxxx:function:default:test_async:latest",
"max_async_event_age_in_seconds" : 60,
"max_async_retry_attempts" : 1,
"destination_config" : {
"on_success" : {
"destination" : "FunctionGraph",
"param" : "{\"func_urn\":\"urn:fss:cn-north-7:5691ba790e2b46ceb38316xxxxxxxxxx:function:default:testPython:latest\"}"
},
"on_failure" : {
"destination" : "FunctionGraph",
"param" : "{\"func_urn\":\"urn:fss:cn-north-7:5691ba790e2b46ceb38316xxxxxxxxxx:function:default:testPython:latest\"}"
}
},
"created_time" : "2021-03-04T14:50:02+08:00",
"last_modified" : "2021-03-04T14:50:02+08:00"
} ],
"count" : 2,
"page_info" : {
"next_marker" : 2,
"previous_marker" : 0,
"current_count" : 2
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Ok |
|
400 |
Bad Request |
|
404 |
Not Found |
Error Codes
See Error Codes.
Last Article: Deleting the Asynchronous Invocation Configuration of a Function Version
Next Article: Deleting All Triggers of a Function
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.