1
0
forked from docs/doc-exports
doc-exports/docs/css/api-ref/css_03_0136.html
Zheng, Xiu 99a2d77599 css api 23.5.1 20240520
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2024-06-07 17:47:08 +00:00

139 lines
9.6 KiB
HTML

<a name="css_03_0136"></a><a name="css_03_0136"></a>
<h1 class="topictitle1">Obtaining SMN Topics Available for Intelligent O&amp;M Alarms</h1>
<div id="body0000001667597900"><div class="section" id="css_03_0136__section379318479516"><h4 class="sectiontitle">Function</h4><p id="css_03_0136__p579320471516">This API is used to obtain SMN topics available for intelligent O&amp;M alarms.</p>
</div>
<div class="section" id="css_03_0136__section879410471258"><h4 class="sectiontitle">URI</h4><p id="css_03_0136__p679413471752">GET /v1.0/{project_id}/domains/{domain_id}/ai-ops/smn-topics</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0136__table9795134714515" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0136__row177948471354"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0136__p197951747554">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0136__p137966472512">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0136__p13796347252">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0136__p1079634716511">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0136__row197951247959"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0136__p137962478514">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0136__p1779712471354">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0136__p77975471851">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0136__p187991473516">Project ID. For details about how to obtain a project ID, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
<tr id="css_03_0136__row979510471518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0136__p1280094714510">domain_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0136__p7800194710514">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0136__p128001847357">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0136__p180018471358">ID of the cluster to be queried</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0136__section148021047058"><h4 class="sectiontitle">Request Parameters</h4><p id="css_03_0136__p16803847652">None</p>
</div>
<div class="section" id="css_03_0136__section17803144717516"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0136__p580324717514"><strong id="css_03_0136__b168213422423812">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0136__response_ListSmnTopicsResponseBody" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameter</caption><thead align="left"><tr id="css_03_0136__row15804847551"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="css_03_0136__p148051347956">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="css_03_0136__p1380512475511">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="css_03_0136__p980513471257">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0136__row1980416471452"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="css_03_0136__p12806134712510">topicsName</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="css_03_0136__p158061647056">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="css_03_0136__p1780664712511">SMN topic name list</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0136__section188060471854"><h4 class="sectiontitle">Request Example</h4><p id="css_03_0136__p680620471659">Obtain the intelligent O&amp;M task list and details.</p>
<pre class="screen" id="css_03_0136__screen108071047156">GET /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/4f3deec3-efa8-4598-bf91-560aad1377a3/ai-ops</pre>
</div>
<div class="section" id="css_03_0136__section88071247654"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0136__p28076471519"><strong id="css_03_0136__b104811322023812">Status code: 200</strong></p>
<p id="css_03_0136__p188071247457">Request sent.</p>
<pre class="screen" id="css_03_0136__screen98081447454">{
"aiops_list" : [ {
"id" : "7381a80b-68cb-4b9e-8226-37d686b18b1d",
"name" : "aiops-test",
"desc" : "",
"status" : 200,
"summary" : {
"high" : 1,
"medium" : 0,
"suggestion" : 1
},
"create_time" : 1687944156750,
"smn_status" : "not_open",
"smn_fail_reason" : null,
"task_risks" : [ {
"riskType" : "Check whether the cluster has snapshot backup failures or no snapshot backup records in the last seven days.",
"level" : "suggestion",
"desc" : "The cluster has no snapshot backup records in the last seven days.",
"suggestion" : "You are advised to enable the cluster snapshot function and ensure that snapshots generated in the last seven days are successfully backed up. If snapshot creation fails, click the cluster name, and check the failure details on the <strong id="css_03_0136__b210189114882218">Cluster Snapshots</strong> and <strong id="css_03_0136__b24494679782218">Logs</strong> pages."
}, {
"riskType" : "Check the number of nodes in the cluster and the number of AZs to evaluate the high availability of the distributed Elasticsearch cluster."
"level" : "high",
"desc" : "The current cluster has one or two nodes. If a node is faulty, the entire cluster may become unavailable. The service availability risk is high."
"suggestion" : "You are advised to change the cluster to a multi-AZ cluster. Procedure: On the CSS cluster console, choose <strong id="css_03_0136__b12109325871">Clusters</strong> &gt; <strong id="css_03_0136__b911132514710">Elasticsearch</strong>. In the <strong id="css_03_0136__b181112025271">Operation</strong> column of a cluster, choose <strong id="css_03_0136__b611222515716">More</strong> &gt; <strong id="css_03_0136__b12112625578">Modify Configuration</strong>. Click the <strong id="css_03_0136__b1711352518717">Change AZ</strong> tab and add AZs. Click the <strong id="css_03_0136__b1411315251374">Scale Cluster</strong> tab and change the number of nodes.
} ]
} ],
"total_size" : 1
}</pre>
</div>
<div class="section" id="css_03_0136__section181234714511"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0136__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0136__row1381244714511"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="css_03_0136__p198135471555">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="css_03_0136__p1581384718515">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0136__row881314478510"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0136__p2081411470515">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0136__p1681420471051">Request sent.</p>
</td>
</tr>
<tr id="css_03_0136__row1481316471510"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0136__p1081416475518">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0136__p58142472515">Invalid request.</p>
<p id="css_03_0136__p198143470518">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0136__row138138471152"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0136__p3815124713512">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0136__p1581554713514">The request cannot be processed due to a conflict.</p>
<p id="css_03_0136__p1481515475519">This status code indicates that the resource that the client attempts to create already exists, or the request fails to be processed because of the update of the conflict request.</p>
</td>
</tr>
<tr id="css_03_0136__row481310471455"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0136__p208151247756">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0136__p108154472514">The server does not meet one of the requirements that the requester puts on the request.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0136__section208156471752"><h4 class="sectiontitle">Error Codes</h4><p id="css_03_0136__p281624719511">For details, see <a href="css_03_0076.html">Error Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0132.html">Intelligent O&amp;M</a></div>
</div>
</div>