Starting/Stopping an Event Stream
Function
This API is used to start or stop an event stream.
URI
POST /v1/{project_id}/eventstreamings/operate/{eventstreaming_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant resource space ID. |
eventstreaming_id |
Yes |
String |
Event stream ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
operation |
No |
String |
Operation type. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
X-Request-Id |
String |
This field is the request ID number for task tracking. Format is request_uuid-timestamp-hostname. |
Parameter |
Type |
Description |
---|---|---|
eventStreamingID |
String |
Event stream ID. |
Example Requests
Stop the event stream whose ID is 123.
POST https://{eg_endpoint}/v1/{project_id}/eventstreamings/operate/123 { "operation" : "PAUSE" }
Example Responses
Status code: 200
Operation successful.
{ "eventStreamingID" : "23709d68-54d5-423b-a6be-03302e893152" }
Status Codes
Status Code |
Description |
---|---|
200 |
Operation successful. |
Error Codes
See Error Codes.
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot