You need to enable JavaScript to run this app.
Volcano Engine Function as a Service

Volcano Engine Function as a Service

Copy page
Download PDF
Kafka trigger
GetKafkaTrigger
Copy page
Download PDF
GetKafkaTrigger
Obtain detailed information about Kafka Trigger.​
Request description​
  • Request method: POST​
  • Request address: http://open.volcengineapi.com/?Action=GetKafkaTrigger&Version=2024-06-06​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Ruquest parameter​
​
Parameter​
Type​
Required or Not​
Sample value​
Description​
Action​
String​
Yes​
GetKafkaTrigger​
Interface name. The current API is called GetKafkaTrigger.​
Version​
String​
Yes​
2024-06-06​
Interface version. The current version of the API is 2024-06-06.​
Id​
String​
Yes​
nw******​
Kafka Trigger ID. You can call the ListTriggers interface to obtain the Trigger ID.​
FunctionId​
String​
Yes​
wrw******​
Function ID. You can call the ListFunctions interface to obtain Function ID (Items.Id).​
​
Sample request​
​
POST http://open.volcengineapi.com/?Action=GetKafkaTrigger&Version=2024-06-06 HTTP/1.1​
Content-Type: application/json​
{​
"Id": "nw******",​
"FunctionId": "wrw******"​
}​
​
Response parameter​
​
Parameter​
Type​
Sample value​
Description​
FunctionId​
String​
wrw******​
Function ID.​
Name​
String​
reviews-consumer​
Kafka Trigger name.​
Description​
String​
Example Kafka Trigger​
Kafka Trigger description.​
Enabled​
Boolean​
true​
Whether to enable Kafka Trigger. Parameter value description:​
  • true: Enable​
  • false: Turn off​
MqInstanceId​
String​
kafka-cnngl4if******​
Message queue Kafka instance ID.​
TopicName​
String​
reviews-topic​
Topic name of the message queue Kafka instance.​
StartingPosition​
String​
Latest​
Start consuming the location of the message in the Topic. Parameter value description:​
  • Latest: Only consume messages generated after subscribing to the Topic.​
  • Earliest: Start consuming from the first message produced in the Topic.​
MaximumRetryAttempts​
Integer​
100​
The maximum number of retries when a function runs incorrectly.​
Id​
String​
18lt****​
Kafka Trigger ID.​
ConsumerGroup​
String​
reviews-topic_18lt****​
The consumer group of message queue Kafka instance.​
Status​
String​
pending​
Kafka Trigger status. Parameter value description:​
  • ready: Running​
  • failed: Failed​
  • pending: Starting​
CreationTime​
String​
2025-02-03 06:47:41.423691239 +0000 UTC​
The creation time for the Kafka Trigger. UTC + 0 time in standard RFC 3339 format.​
LastUpdateTime​
String​
2025-02-03 06:47:41.423691239 +0000 UTC​
The latest update time of Kafka Trigger. UTC + 0 time in standard RFC3339 format.​
BatchSize​
Integer​
10​
The number of messages per batch consumed by the Trigger in bulk.​
BatchFlushDurationMilliseconds​
Integer​
1,000​
Maximum waiting time for bulk consumption by Trigger. The unit is millisecond.​
​
Sample response​
​
HTTP/1.1 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "GetKafkaTrigger",​
"Version": "2024-06-06",​
"Service": "vefaas",​
"Region": "cn-Beijing"​
},​
"Result": {​
"FunctionId": "wrw ******",​
"Name": "reviews-consumer",​
"Description": "Sample kafka Trigger",​
"Enabled": true,​
"MqInstanceId": "kafka-cnngl4if******",​
"TopicName": "reviews-topic",​
"StartingPosition": "Latest",​
"MaximumRetryAttempts": 100,​
"Id": "18lt ****",​
"ConsumerGroup": "reviews- topic_18lt ****",​
"Status": "pending",​
"CreationTime": "2025-02-03 06:47:41.423691239 + 0000 UTC",​
"LastUpdateTime": "2025-02-03 06:47:41.423691239 + 0000 UTC"​
}​
}​
​
Error code​
The current interface temporarily has no independent error code. If the interface calls back abnormally, you can refer to the Public error code to troubleshoot.​
Last updated: 2025.06.30 11:37:45