Example 3: Creating a Log Stream
Scenario
This section describes how to create a log stream in a specified log group.
Other Involved APIs
None
Creating a Log Stream
- URI format
POST /v2/{project_id}/groups/{log_group_id}/streams
- Example Request
POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams
Obtain the value of {endpoint} from Endpoints.
Body:
{ "log_stream_name": "lts-stream-02kh" }
- Example Response
{ "log_stream_id" : "string" }
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