doc-exports/docs/css/umn/css_02_0043.html
Zheng, Xiu 5b5876528a CSS UMN 22.5.1 Version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2023-03-29 17:17:49 +00:00

24 lines
5.3 KiB
HTML

<a name="css_02_0043"></a><a name="css_02_0043"></a>
<h1 class="topictitle1">How Do I Query Snapshot Information?</h1>
<div id="body0000001338543977"><div class="section" id="css_02_0043__section8666191115530"><h4 class="sectiontitle">Prerequisites</h4><p id="css_02_0043__p1157111517531">The snapshot function has been enabled for the cluster and snapshot information has been configured.</p>
</div>
<div class="section" id="css_02_0043__section3107954195113"><h4 class="sectiontitle">Querying a Snapshot</h4><ol id="css_02_0043__ol69821221152"><li id="css_02_0043__li199830215518">Log in to the CSS management console, and click <span class="parmname" id="css_02_0043__parmname1784410532431"><b>Clusters</b></span> in the navigation pane. On the displayed <strong id="css_02_0043__b96663367455">Clusters</strong> page, locate the target cluster and click <span class="parmname" id="css_02_0043__parmname2084545312436"><b>Access Kibana</b></span> in the <span class="parmname" id="css_02_0043__parmname184555304310"><b>Operation</b></span> column.</li><li id="css_02_0043__li758054815814">In the left navigation pane of the Kibana page, click <strong id="css_02_0043__b142952554611">Dev Tools</strong>. Click <span class="uicontrol" id="css_02_0043__uicontrol13017259467"><b>Get to work</b></span> to switch to the <strong id="css_02_0043__b8301125164617">Console</strong> page.<p id="css_02_0043__p989243172120">Enter the code as required in the left pane, click <span><img id="css_02_0043__image13304331151619" src="en-us_image_0000001477137550.png"></span> to execute the command, and view the result in the right pane. </p>
</li><li id="css_02_0043__li9108154822118">Run the <b><span class="cmdname" id="css_02_0043__cmdname1434053419234">GET _snapshot/_all</span></b> command to query information about all repositories.<div class="fignone" id="css_02_0043__fig05201745153620"><span class="figcap"><b>Figure 1 </b>Querying information about all repositories</span><br><span><img id="css_02_0043__image56531322153619" src="en-us_image_0000001527937349.png"></span></div>
<ul id="css_02_0043__ul1473615586318"><li id="css_02_0043__li157361158203111"><strong id="css_02_0043__b1376312411304">bucket</strong>: OBS bucket name</li><li id="css_02_0043__li16482153711325"><strong id="css_02_0043__b155601199302">base_path</strong>: Path. It consists of a fixed prefix and a cluster name.</li><li id="css_02_0043__li12238132033315"><strong id="css_02_0043__b67261016183016">endpoint</strong>: OBS domain name</li><li id="css_02_0043__li1920072517372"><strong id="css_02_0043__b133791983018">region</strong>: your region</li></ul>
</li><li id="css_02_0043__li15581746142313">Query snapshot information.<ol type="a" id="css_02_0043__ol13158756174119"><li id="css_02_0043__li135185394113">Run the <strong id="css_02_0043__b12821426193015">GET _snapshot/repo_auto/_all</strong> command to query the list of all the snapshots in the current repository.<div class="fignone" id="css_02_0043__fig923324512212"><span class="figcap"><b>Figure 2 </b>Snapshot information</span><br><span><img id="css_02_0043__image85173343221" src="en-us_image_0000001476817922.png"></span></div>
<ul id="css_02_0043__ul1694581112316"><li id="css_02_0043__li10945611162317"><strong id="css_02_0043__b820610307305">snapshot</strong>: snapshot name</li><li id="css_02_0043__li9918112411264"><strong id="css_02_0043__b19796532143013">state</strong>: snapshot status</li><li id="css_02_0043__li633204215268"><strong id="css_02_0043__b11596736163014">start_time</strong>, <strong id="css_02_0043__b17596936163020">start_time_in_millis</strong>, <strong id="css_02_0043__b759673613306">end_time</strong>, and <strong id="css_02_0043__b1459613663016">end_time_in_millis</strong>: snapshot time</li><li id="css_02_0043__li428216517272"><strong id="css_02_0043__b11178143513011">shards</strong>: the number of shards. <strong id="css_02_0043__b762711389304">total</strong> indicates the total number of shards. <strong id="css_02_0043__b12605241123015">failed</strong> indicates the number of failures. <strong id="css_02_0043__b1669817715312">successful</strong> indicates the number of successes.</li></ul>
</li><li id="css_02_0043__li6968031174211">Run the <b><span class="cmdname" id="css_02_0043__cmdname1711019613411">GET _snapshot/repo_auto/$snapshot-xxx</span></b> command to query information about a specified snapshot.<ul id="css_02_0043__ul3135115417473"><li id="css_02_0043__li31358547478">Replace <strong id="css_02_0043__b4435122315">$snapshot-xxx</strong> with the actual snapshot name.</li><li id="css_02_0043__li11621125664713"><strong id="css_02_0043__b10497192383110">repo_auto</strong> is followed by a snapshot name or wildcard characters.</li></ul>
</li></ol>
</li><li id="css_02_0043__li1114351113910">(Optional) Delete information about a specified snapshot.<p id="css_02_0043__p5691181318493"><a name="css_02_0043__li1114351113910"></a><a name="li1114351113910"></a>To delete a specific snapshot, run the <b><span class="cmdname" id="css_02_0043__cmdname16821526503">DELETE _snapshot/ repo_auto/$snapshot-xxx</span></b> command.</p>
<p id="css_02_0043__p18668765509">Replace <strong id="css_02_0043__b1562616346317">$snapshot-xxx</strong> with the actual snapshot name.</p>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0055.html">Functions</a></div>
</div>
</div>