forked from docs/doc-exports
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: liusiying77 <liusiying@huawei.com> Co-committed-by: liusiying77 <liusiying@huawei.com>
114 lines
10 KiB
HTML
114 lines
10 KiB
HTML
<a name="lts_02_0008"></a><a name="lts_02_0008"></a>
|
|
|
|
<h1 class="topictitle1">Querying a Log Stream</h1>
|
|
<div id="body8662426"><div class="section" id="lts_02_0008__en-us_topic_0169936637_section13262100202410"><h4 class="sectiontitle">Function</h4><p id="lts_02_0008__en-us_topic_0169936637_p105491350202715">This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.</p>
|
|
</div>
|
|
<div class="section" id="lts_02_0008__en-us_topic_0169936637_section31681806"><h4 class="sectiontitle">URI</h4><ul id="lts_02_0008__en-us_topic_0169936637_ul165395536212"><li id="lts_02_0008__en-us_topic_0169936637_li5269929173052">URI format<p id="lts_02_0008__en-us_topic_0169936637_p51001235194218"><a name="lts_02_0008__en-us_topic_0169936637_li5269929173052"></a><a name="en-us_topic_0169936637_li5269929173052"></a>GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}</p>
|
|
</li></ul>
|
|
<ul id="lts_02_0008__en-us_topic_0169936637_ul0109191102213"><li class="msonormal" id="lts_02_0008__en-us_topic_0169936637_li21091415229">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_02_0008__en-us_topic_0169936637_table805068" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="lts_02_0008__en-us_topic_0169936637_row57933110"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.1"><p id="lts_02_0008__en-us_topic_0169936637_p39489582428"><strong id="lts_02_0008__en-us_topic_0169936637_b12403115915814">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.2"><p id="lts_02_0008__en-us_topic_0169936637_p394816582427"><strong id="lts_02_0008__en-us_topic_0169936637_b204011214911">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.3"><p id="lts_02_0008__en-us_topic_0169936637_p1494835804214"><strong id="lts_02_0008__en-us_topic_0169936637_b1037483398">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.2.5.1.4"><p id="lts_02_0008__en-us_topic_0169936637_p5948158184213"><strong id="lts_02_0008__en-us_topic_0169936637_b12371341915">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_02_0008__en-us_topic_0169936637_row19139995"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="lts_02_0008__en-us_topic_0169936637_p12949115814421">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="lts_02_0008__en-us_topic_0169936637_p2949195894219">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="lts_02_0008__en-us_topic_0169936637_p294911584424">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="lts_02_0008__en-us_topic_0169936637_p129498583422">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_02_0008__en-us_topic_0169936637_row8975271"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="lts_02_0008__en-us_topic_0169936637_p1294955816424">group_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="lts_02_0008__en-us_topic_0169936637_p1794916588423">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="lts_02_0008__en-us_topic_0169936637_p1394955813422">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="lts_02_0008__en-us_topic_0169936637_p4949155824210">Log group ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_02_0008__en-us_topic_0169936637_row19973124944214"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="lts_02_0008__en-us_topic_0169936637_p1949458144212">topic_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="lts_02_0008__en-us_topic_0169936637_p20949125820420">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="lts_02_0008__en-us_topic_0169936637_p159491458124217">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="lts_02_0008__en-us_topic_0169936637_p1394955864216">ID of a log stream</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="lts_02_0008__en-us_topic_0169936637_section16700806"><h4 class="sectiontitle">Request</h4><ul id="lts_02_0008__en-us_topic_0169936637_ul39745794"><li id="lts_02_0008__en-us_topic_0169936637_li22167833">Request parameters<p id="lts_02_0008__en-us_topic_0169936637_p65292777"><a name="lts_02_0008__en-us_topic_0169936637_li22167833"></a><a name="en-us_topic_0169936637_li22167833"></a>None</p>
|
|
</li><li id="lts_02_0008__en-us_topic_0169936637_li50764081">Example request<pre class="screen" id="lts_02_0008__en-us_topic_0169936637_screen54223547">GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="lts_02_0008__en-us_topic_0169936637_section16089528"><h4 class="sectiontitle">Response</h4><ul id="lts_02_0008__en-us_topic_0169936637_ul30031202"><li id="lts_02_0008__en-us_topic_0169936637_li1845369">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_02_0008__en-us_topic_0169936637_table894955330" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="lts_02_0008__en-us_topic_0169936637_row396125513310"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.2.1.1.2.5.1.1"><p id="lts_02_0008__en-us_topic_0169936637_p10735906504"><strong id="lts_02_0008__en-us_topic_0169936637_b1689691817108">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.2.1.1.2.5.1.2"><p id="lts_02_0008__en-us_topic_0169936637_p107353013504"><strong id="lts_02_0008__en-us_topic_0169936637_b1724720217107">Sub-Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.2.1.1.2.5.1.3"><p id="lts_02_0008__en-us_topic_0169936637_p273530165013"><strong id="lts_02_0008__en-us_topic_0169936637_b12145023131013">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.2.1.1.2.5.1.4"><p id="lts_02_0008__en-us_topic_0169936637_p137351504505"><strong id="lts_02_0008__en-us_topic_0169936637_b313592471017">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_02_0008__en-us_topic_0169936637_row4961055739"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="lts_02_0008__en-us_topic_0169936637_p165468114508">log_topic_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="lts_02_0008__en-us_topic_0169936637_p19546911175015">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="lts_02_0008__en-us_topic_0169936637_p55461211165011">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="lts_02_0008__en-us_topic_0169936637_p15546171114507">Log stream name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_02_0008__en-us_topic_0169936637_row1296185518312"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="lts_02_0008__en-us_topic_0169936637_p454691175011">creation_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="lts_02_0008__en-us_topic_0169936637_p454611125019">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="lts_02_0008__en-us_topic_0169936637_p0546171111508">Int64</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="lts_02_0008__en-us_topic_0169936637_p155465118505">Log group creation time</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_02_0008__en-us_topic_0169936637_row669372916492"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="lts_02_0008__en-us_topic_0169936637_p054681125013">index_enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="lts_02_0008__en-us_topic_0169936637_p125461811185017">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="lts_02_0008__en-us_topic_0169936637_p454611117504">Bool</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="lts_02_0008__en-us_topic_0169936637_p5546181175014">Search switch</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="lts_02_0008__en-us_topic_0169936637_li15257210">Example response<pre class="screen" id="lts_02_0008__en-us_topic_0169936637_screen24255300">{
|
|
"log_topic_name": "lts-topic-jgpv",
|
|
"creation_time": 1550803822973,
|
|
"index_enabled": true
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="lts_02_0008__en-us_topic_0169936637_section10588031"><h4 class="sectiontitle">Returned Value</h4><ul id="lts_02_0008__en-us_topic_0169936637_ul49543907"><li id="lts_02_0008__en-us_topic_0169936637_li43241981">Normal<p id="lts_02_0008__en-us_topic_0169936637_p9107452449"><a name="lts_02_0008__en-us_topic_0169936637_li43241981"></a><a name="en-us_topic_0169936637_li43241981"></a>200</p>
|
|
</li><li id="lts_02_0008__en-us_topic_0169936637_li44860134">Abnormal<p id="lts_02_0008__en-us_topic_0169936637_p8911139194318"><a name="lts_02_0008__en-us_topic_0169936637_li44860134"></a><a name="en-us_topic_0169936637_li44860134"></a>For details, see <a href="lts_api_0020.html">Status Codes</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>
|
|
|