Help Center/ FunctionGraph/ API Reference/ APIs/ Function Triggers/ Obtaining the Trigger Type List
Updated on 2026-10-27 GMT+08:00

Obtaining the Trigger Type List

Function

This API is used to obtain the trigger type list.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

GET /v2/{project_id}/fgs/triggertypes

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Parameter description:

Project ID. For details, see Obtaining a Project ID.

Constraints

N/A

Value range:

32 characters, including letters and digits.

Default value:

N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Parameter description:

User token.

The token can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token.

Constraints

N/A

Value range:

N/A

Default value:

N/A

Content-Type

No

String

Parameter description:

The request body type or format.

Constraints

N/A

Value range:

Only application/json is supported.

Default value:

application/json

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

[items]

Array of strings

Definition

Trigger type list.

Range

N/A

Status code: 401

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 403

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Obtaining the trigger type list

GET /v2/{project_id}/fgs/triggertypes

Example Responses

Status code: 200

[ "KAFKA", "CTS", "LTS", "DEDICATEDGATEWAY", "TIMER", "RABBITMQ", "SMN" ]

Status Codes

Status Code

Description

200

ok

401

Unauthorized.

403

Forbidden.

500

Internal server error.

Error Codes

See Error Codes.