Querying the Information About a Trigger
Function
This API is used to query the information about a trigger.
URI
GET /v2/{project_id}/fgs/triggers/{function_urn}/{trigger_type_code}/{trigger_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. |
|
function_urn |
Yes |
String |
Function URN. |
|
trigger_type_code |
Yes |
String |
Trigger type. Enumeration values:
|
|
trigger_id |
Yes |
String |
Trigger ID. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
trigger_id |
String |
Trigger ID. |
|
trigger_type_code |
String |
Trigger type. Enumeration values:
|
|
trigger_status |
String |
Trigger status. ACTIVE: The trigger is enabled. DISABLE: The trigger is disabled. Enumeration values:
|
|
event_data |
Object |
Trigger source event. |
|
last_updated_time |
String |
Latest update time. |
|
created_time |
String |
Time when the trigger is created. |
Example Requests
GET https://{functiongraph_endpoint}/v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/triggers/urn:fss:xxxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test:latest/TIMER/9a14fae1-78cf-4185-ac7a-429eb6dc41fb
Example Responses
Status code: 200
OK
{
"trigger_id" : "9a14fae1-78cf-4185-ac7a-429eb6dc41fb",
"trigger_type_code" : "TIMER",
"trigger_status" : "ACTIVE",
"event_data" : {
"name" : "Timer-cpg3",
"schedule" : "3m",
"schedule_type" : "Rate"
},
"last_updated_time" : "2019-10-29T17:15:53+08:00",
"created_time" : "2019-10-29T17:15:53+08:00"
}
Status code: 400
Bad Request
{
"error_code" : "FS.0019",
"error_msg" : "Not found the function"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
Error Codes
See Error Codes.
Last Article: Deleting a Trigger
Next Article: Function Data Zone API
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.