forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
258 lines
23 KiB
HTML
258 lines
23 KiB
HTML
<a name="swr_02_0055"></a><a name="swr_02_0055"></a>
|
|
|
|
<h1 class="topictitle1">Querying Details About an Image Retention Policy</h1>
|
|
<div id="body8662426"><div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section1564144616584"><h4 class="sectiontitle">Description</h4><p id="swr_02_0055__en-us_topic_0000001231113979_p46421146135810">Query details about an image retention policy.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section1764212462586"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0055__en-us_topic_0000001231113979_p364313467589">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section36442461583"><h4 class="sectiontitle">URI</h4><p id="swr_02_0055__en-us_topic_0000001231113979_p764414675817">GET /v2/manage/namespaces/{namespace}/repos/{repository}/retentions/{retention_id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0055__en-us_topic_0000001231113979_table11646154610582" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="swr_02_0055__en-us_topic_0000001231113979_row66451846125811"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0055__en-us_topic_0000001231113979_p10647184665812">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="swr_02_0055__en-us_topic_0000001231113979_p12648194614588">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="swr_02_0055__en-us_topic_0000001231113979_p1664884655818">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="swr_02_0055__en-us_topic_0000001231113979_p1164910469589">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0055__en-us_topic_0000001231113979_row26458461586"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1264994665812">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p5649194695811">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p18650174613581">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0055__en-us_topic_0000001231113979_p7650846115811">Organization name. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row17645164635811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p19651146165810">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1465118466588">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p66521746115814">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1833713588245">Image repository name. Enter 1 to 128 characters. It must start and end with a lowercase letter or digit. Only lowercase letters, digits, periods (.), slashes (/), underscores (_), and hyphens (-) are allowed. Periods, slashes, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. Replace a slash (/) with a dollar sign ($) before you send the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row15645546155817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p10653174665817">retention_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1065314467582">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1765411468589">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0055__en-us_topic_0000001231113979_p0654746105816">Image retention policy ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section96551646115817"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0055__en-us_topic_0000001231113979_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0055__en-us_topic_0000001231113979_row065554605814"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="swr_02_0055__en-us_topic_0000001231113979_p1265754635815">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="swr_02_0055__en-us_topic_0000001231113979_p176571746195814">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="swr_02_0055__en-us_topic_0000001231113979_p6658164615585">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="swr_02_0055__en-us_topic_0000001231113979_p46581464581">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0055__en-us_topic_0000001231113979_row1065518467585"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p465914645814">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1065917469584">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p126601346105816">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0055__en-us_topic_0000001231113979_p666011469589">Message body type (format). The value can be <strong id="swr_02_0055__en-us_topic_0000001231113979_b295912557215">application/json</strong> or <strong id="swr_02_0055__en-us_topic_0000001231113979_b19592555213">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0055__en-us_topic_0000001231113979_p15661846105812">Default value: <strong id="swr_02_0055__en-us_topic_0000001231113979_b14935135715218">application/json</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row1655114655815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p066134614582">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p966111469584">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p12662204665818">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0055__en-us_topic_0000001231113979_p0662146115817">User token.</p>
|
|
<p id="swr_02_0055__en-us_topic_0000001231113979_p2663446175811">The token can be obtained by calling the IAM API used to obtain a user token. The value of <strong id="swr_02_0055__en-us_topic_0000001231113979_b64758367911932">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section14664194620587"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0055__en-us_topic_0000001231113979_p36641946145810"><strong id="swr_02_0055__en-us_topic_0000001231113979_b551625421111044">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0055__en-us_topic_0000001231113979_response_Retention" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="swr_02_0055__en-us_topic_0000001231113979_row1665154612586"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="swr_02_0055__en-us_topic_0000001231113979_p06679461587">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="swr_02_0055__en-us_topic_0000001231113979_p18667546195815">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="swr_02_0055__en-us_topic_0000001231113979_p8668946135810">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0055__en-us_topic_0000001231113979_row0665164605810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p116682046195814">algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p566964615819">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p14669114675810">Retention policy matching rule. The value is <strong id="swr_02_0055__en-us_topic_0000001231113979_b902319288104155">or</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row18665114613583"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p186697460588">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p196701746115816">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p76707464587">ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row19665164620589"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1067164695817">rules</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p6671154615811">Array of <a href="#swr_02_0055__en-us_topic_0000001231113979_response_Rule">Rule</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p267284616581">Image retention policy.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row1866524655816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p186721746105814">scope</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1767211466588">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p136731846145818">Reserved field.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0055__en-us_topic_0000001231113979_response_Rule"></a><a name="en-us_topic_0000001231113979_response_Rule"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0055__en-us_topic_0000001231113979_response_Rule" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Rule</caption><thead align="left"><tr id="swr_02_0055__en-us_topic_0000001231113979_row16730468585"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="swr_02_0055__en-us_topic_0000001231113979_p367474665810">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="swr_02_0055__en-us_topic_0000001231113979_p9675144695812">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="swr_02_0055__en-us_topic_0000001231113979_p7675164616587">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0055__en-us_topic_0000001231113979_row867311467581"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1267574615817">template</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p2676946105820">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p96761446125813">Retention policy type. The value can be <strong id="swr_02_0055__en-us_topic_0000001231113979_b1396759614115159">date_rule</strong> and <strong id="swr_02_0055__en-us_topic_0000001231113979_b255789428115159">tag_rule</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row1467314635815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p12677124645815">params</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1567774675818">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p10677194625810">If <strong id="swr_02_0055__en-us_topic_0000001231113979_b111057808213354">template</strong> is set to <strong id="swr_02_0055__en-us_topic_0000001231113979_b36244181713354">date_rule</strong>, set <strong id="swr_02_0055__en-us_topic_0000001231113979_b106078680813354">params</strong> to <strong id="swr_02_0055__en-us_topic_0000001231113979_b44549138813354">{"days": "xxx"}</strong>. If <strong id="swr_02_0055__en-us_topic_0000001231113979_b122369415613354">template</strong> is set to <strong id="swr_02_0055__en-us_topic_0000001231113979_b24839851113354">tag_rule</strong>, set <strong id="swr_02_0055__en-us_topic_0000001231113979_b167001513213354">params</strong> to <strong id="swr_02_0055__en-us_topic_0000001231113979_b34746472913354">{"num": "xxx"}</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row967394615815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1467824655815">tag_selectors</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p967919464585">Array of <a href="#swr_02_0055__en-us_topic_0000001231113979_response_TagSelector">TagSelector</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p196793469581">Exception images.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0055__en-us_topic_0000001231113979_response_TagSelector"></a><a name="en-us_topic_0000001231113979_response_TagSelector"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0055__en-us_topic_0000001231113979_response_TagSelector" frame="border" border="1" rules="all"><caption><b>Table 5 </b>TagSelector</caption><thead align="left"><tr id="swr_02_0055__en-us_topic_0000001231113979_row146803466583"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="swr_02_0055__en-us_topic_0000001231113979_p3681124625811">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="swr_02_0055__en-us_topic_0000001231113979_p1868217468589">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="swr_02_0055__en-us_topic_0000001231113979_p18682144617584">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0055__en-us_topic_0000001231113979_row19680546205812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p11683114635813">kind</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1168316468585">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p17684646185818">Matching rule. The value can be <strong id="swr_02_0055__en-us_topic_0000001231113979_b81207809731636">label</strong> or <strong id="swr_02_0055__en-us_topic_0000001231113979_b149870836431636">regexp</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row196801746135816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p106841446185815">pattern</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p768584616587">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="swr_02_0055__en-us_topic_0000001231113979_p18685546185814">If <strong id="swr_02_0055__en-us_topic_0000001231113979_b106247508231729">kind</strong> is set to <strong id="swr_02_0055__en-us_topic_0000001231113979_b91935475731729">label</strong>, set this parameter to the image tag. If <strong id="swr_02_0055__en-us_topic_0000001231113979_b31091027031729">kind</strong> is set to <strong id="swr_02_0055__en-us_topic_0000001231113979_b164040700231729">regexp</strong>, set this parameter to a regular expression.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section1685124655812"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0055__en-us_topic_0000001231113979_screen17686204620583">GET https://{endpoint}/v2/manage/namespaces/{namespace}/repos/{repository}/retentions/{retention_id}</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section068774612586"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0055__en-us_topic_0000001231113979_p068712462587"><strong id="swr_02_0055__en-us_topic_0000001231113979_b1200020433111044">Status code: 200</strong></p>
|
|
<p id="swr_02_0055__en-us_topic_0000001231113979_p206876468583">Query succeeded.</p>
|
|
<pre class="screen" id="swr_02_0055__en-us_topic_0000001231113979_screen1068919469581">{
|
|
"algorithm" : "or",
|
|
"id" : 222,
|
|
"rules" : [ {
|
|
"params" : {
|
|
"days" : "30"
|
|
},
|
|
"tag_selectors" : [ {
|
|
"kind" : "label",
|
|
"pattern" : "v5"
|
|
}, {
|
|
"kind" : "label",
|
|
"pattern" : "1.0.1"
|
|
}, {
|
|
"kind" : "regexp",
|
|
"pattern" : "^123$"
|
|
} ],
|
|
"template" : "date_rule"
|
|
} ],
|
|
"scope" : ""
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section2695346105819"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0055__en-us_topic_0000001231113979_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0055__en-us_topic_0000001231113979_row18695174645814"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="swr_02_0055__en-us_topic_0000001231113979_p1469716469586">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="swr_02_0055__en-us_topic_0000001231113979_p369711468589">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0055__en-us_topic_0000001231113979_row56951746115818"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1969834610580">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1869824635817">Query succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row126958460589"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p169811463581">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p136994460585">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row5695194685815"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1569994675818">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p1170012465588">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row1169615464588"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p137009468582">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p117012046145811">The organization, image repository, or policy was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0055__en-us_topic_0000001231113979_row1369616462583"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0055__en-us_topic_0000001231113979_p270154685814">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0055__en-us_topic_0000001231113979_p107011546175818">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0055__en-us_topic_0000001231113979_section15702104617589"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0055__en-us_topic_0000001231113979_p1570219460580">For details, see <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="swr_02_0094.html">Image Retention Policy Management</a></div>
|
|
</div>
|
|
</div>
|
|
|