Updated on 2025-03-31 GMT+08:00
Getting Started
Application Scenario
You can create a custom event source based on service requirements.
For details on how to call APIs, see Calling APIs.
Prerequisites
- IAM endpoint obtained from Regions and Endpoints.
- EG endpoint obtained from Regions and Endpoints.
Creating an Event Source
- Create a custom channel by calling the event channel creation API.
POST https://{endpoint}/v1/{project_id}/channels { "name" : "channel", "description" : "first channel" }
- name: custom channel name.
- description: description of a custom channel.
- Create a custom event source by calling the event source creation API.
POST https://{endpoint}/v1/{project_id}/sources { "name" : "first-source", "description" : "first event source", "channal_id" : "bd14144e-8f3c-43d6-bdfd-bf09b52c2b96" }
- name: custom event source name.
- description: description of a custom event source.
- channal_id: Obtain the channel ID from the response of 1.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot