forked from docs/doc-exports
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
111 lines
8.1 KiB
HTML
111 lines
8.1 KiB
HTML
<a name="lts_02_0007"></a><a name="lts_02_0007"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Log Stream</h1>
|
|
<div id="body44214517"><div class="section" id="lts_02_0007__section15294573"><h4 class="sectiontitle">Function</h4><p class="msonormal" id="lts_02_0007__p24606130">This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.</p>
|
|
</div>
|
|
<div class="section" id="lts_02_0007__section3433433"><h4 class="sectiontitle">URI</h4><ul id="lts_02_0007__ul165395536212"><li id="lts_02_0007__li5269929173052">URI format<p id="lts_02_0007__p156121313133"><a name="lts_02_0007__li5269929173052"></a><a name="li5269929173052"></a>POST /v2.0/{project_id}/log-groups/{group_id}/log-topics</p>
|
|
</li></ul>
|
|
<ul id="lts_02_0007__ul0109191102213"><li class="msonormal" id="lts_02_0007__li21091415229">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_02_0007__table7695029" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="lts_02_0007__row45779900"><th align="left" class="cellrowborder" valign="top" width="20.202020202020204%" id="mcps1.3.2.3.1.1.2.5.1.1"><p id="lts_02_0007__p17184445"><strong id="lts_02_0007__b10725142516429">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.171717171717173%" id="mcps1.3.2.3.1.1.2.5.1.2"><p id="lts_02_0007__p49762843"><strong id="lts_02_0007__b27837266429">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.161616161616163%" id="mcps1.3.2.3.1.1.2.5.1.3"><p id="lts_02_0007__p4258493"><strong id="lts_02_0007__b5744132774212">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46.46464646464647%" id="mcps1.3.2.3.1.1.2.5.1.4"><p id="lts_02_0007__p9393676"><strong id="lts_02_0007__b1260018287429">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_02_0007__row22690287"><td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="lts_02_0007__p25973967">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.171717171717173%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="lts_02_0007__p23516563">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.161616161616163%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="lts_02_0007__p25793444">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.46464646464647%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="lts_02_0007__p8894185">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_02_0007__row12938802"><td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="lts_02_0007__p41410081">group_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.171717171717173%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="lts_02_0007__p65882297">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.161616161616163%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="lts_02_0007__p34865825">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.46464646464647%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="lts_02_0007__p5559553">ID of a created log group</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="lts_02_0007__section30900897"><h4 class="sectiontitle">Request</h4><ul id="lts_02_0007__ul47670658"><li id="lts_02_0007__li26382742">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_02_0007__table36118091" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="lts_02_0007__row15629542"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="lts_02_0007__p58033394"><strong id="lts_02_0007__b172971544164215">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="lts_02_0007__p3084470"><strong id="lts_02_0007__b5113445204213">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="lts_02_0007__p48515547"><strong id="lts_02_0007__b3117164694218">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="lts_02_0007__p37445257"><strong id="lts_02_0007__b1680247144218">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_02_0007__row13166951"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="lts_02_0007__p59890077">log_topic_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="lts_02_0007__p19258068">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="lts_02_0007__p16399667">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="lts_02_0007__p53304675">Log stream name.</p>
|
|
<p id="lts_02_0007__ae7552ec5f29b4af9b0ceb23ca7befc5a">The configuration rules are as follows:</p>
|
|
<ul id="lts_02_0007__ul16409171764511"><li id="lts_02_0007__li11409121764510">Must be a string of 1 to 64 characters.</li><li id="lts_02_0007__li154098174455">Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. The name cannot start or end with a period.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="lts_02_0007__ul9980033"><li id="lts_02_0007__li22711436">Example request<pre class="screen" id="lts_02_0007__screen3076333">POST
|
|
/v2.0/{project_id}/log-groups/{group_id}/log-topics
|
|
{
|
|
"log_topic_name":"testTopic01"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="lts_02_0007__section9672624"><h4 class="sectiontitle">Response</h4><ul id="lts_02_0007__ul47856381"><li id="lts_02_0007__li28054246">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_02_0007__table51161625" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameter description</caption><thead align="left"><tr id="lts_02_0007__row50747809"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="lts_02_0007__p16931828"><strong id="lts_02_0007__b20337741439">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="lts_02_0007__p29300865"><strong id="lts_02_0007__b13520165194317">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.519999999999996%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="lts_02_0007__p24559854"><strong id="lts_02_0007__b952510604318">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_02_0007__row43191139"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="lts_02_0007__p8821385">log_topic_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="lts_02_0007__p43443591">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.519999999999996%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="lts_02_0007__p29270022">ID of a log stream</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="lts_02_0007__ul22061614"><li id="lts_02_0007__li64336800">Example response<pre class="screen" id="lts_02_0007__screen42160294">{
|
|
"log_topic_id":"a25d64c8-3028-11e9-9660-286ed488ce71"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="lts_02_0007__section19944758"><h4 class="sectiontitle">Returned Value</h4><ul id="lts_02_0007__ul59540630"><li id="lts_02_0007__li66103627">Normal<p id="lts_02_0007__p624873812616"><a name="lts_02_0007__li66103627"></a><a name="li66103627"></a>201</p>
|
|
</li><li id="lts_02_0007__li44860134">Abnormal<p id="lts_02_0007__p8911139194318"><a name="lts_02_0007__li44860134"></a><a name="li44860134"></a>For details about status code, see <a href="lts_02_0020.html">Status Code</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_02_0006.html">Log Stream Management (Old Version)</a></div>
|
|
</div>
|
|
</div>
|
|
|