Obtaining Test Events
Function
This API is used to obtain the test events of a function.
URI
GET /v2/{project_id}/fgs/functions/{function_urn}/events
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| function_urn | Yes | String | Function URN. |
| project_id | Yes | String | Tenant's project ID. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| count | Integer | Total number of test events. |
| events | Array of Event objects | Test event list. |
| next_marker | Long | Next read location. |
Example Requests
GET https://{functiongraph_endpoint}/v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/functions/urn:fss:cn-north-4:35f6ceaa17ca4c239538265a0f823423:function:Acception:testnodejs12:latest/events Example Responses
Status code: 200
ok
{
"count" : 1,
"events" : [ {
"id" : "3b659dc0-12fc-40dc-aa05-a321d9424cb3",
"name" : "event-k9r3",
"last_modified" : 1597374286
} ],
"next_marker" : 2
} Status Codes
| Status Code | Description |
|---|---|
| 200 | ok |
Error Codes
See Error Codes.
Last Article: Updating a Dependency
Next Article: Creating a Test Event
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.