forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
24 lines
3.6 KiB
HTML
24 lines
3.6 KiB
HTML
<a name="EN-US_TOPIC_0110300596"></a><a name="EN-US_TOPIC_0110300596"></a>
|
|
|
|
<h1 class="topictitle1">Deleting an Image Member</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0110300596__en-us_topic_0110299943_section18301082"><h4 class="sectiontitle">Scenario</h4><p class="MsoNormal" id="EN-US_TOPIC_0110300596__en-us_topic_0110299943_p61347601">Image sharing can be stopped if you do not want to share your images any more.</p>
|
|
<div class="note" id="EN-US_TOPIC_0110300596__note021013252910"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0110300596__en-us_topic_0109822404_p88501497167">The token obtained from IAM is valid for only 24 hours. If you want to use a token for authentication, you can cache it to avoid frequently calling the IAM API.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0110300596__en-us_topic_0110299943_section30492010"><h4 class="sectiontitle">Involved APIs</h4><p class="litext" id="EN-US_TOPIC_0110300596__p23385131">If you use a token for authentication, you must obtain the token and add <strong id="EN-US_TOPIC_0110300596__en-us_topic_0109822381_b842352706134841">X-Auth-Token</strong> to the request header of the IMS API when making an API call.</p>
|
|
<ul id="EN-US_TOPIC_0110300596__ul1840113419200"><li id="EN-US_TOPIC_0110300596__li6754315">IAM API used to obtain the token<p id="EN-US_TOPIC_0110300596__en-us_topic_0109822381_p1833933634"><a name="EN-US_TOPIC_0110300596__li6754315"></a><a name="li6754315"></a>URI format: POST https://<em id="EN-US_TOPIC_0110300596__en-us_topic_0109822381_i15500165112426">IAM endpoint</em>/v3/auth/tokens</p>
|
|
</li><li id="EN-US_TOPIC_0110300596__en-us_topic_0110299943_li27869743">IMS API used to delete an image member (Native OpenStack API)<p id="EN-US_TOPIC_0110300596__p49864255114"><a name="EN-US_TOPIC_0110300596__en-us_topic_0110299943_li27869743"></a><a name="en-us_topic_0110299943_li27869743"></a>URI format: DELETE https://<em id="EN-US_TOPIC_0110300596__i1982732218615">IMS endpoint</em>/v2/images/<em id="EN-US_TOPIC_0110300596__i1382810229619">Image ID</em>/members/<em id="EN-US_TOPIC_0110300596__i1482872211615">Member ID</em></p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0110300596__en-us_topic_0110299943_section5992637"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0110300596__en-us_topic_0110299943_ol42856673"><li id="EN-US_TOPIC_0110300596__li1837051910476">Obtain the token.</li><li id="EN-US_TOPIC_0110300596__en-us_topic_0110299943_li60176744">Send <strong id="EN-US_TOPIC_0110300596__b134601332565">DELETE https://</strong><em id="EN-US_TOPIC_0110300596__i2460632763">IMS endpoint</em><strong id="EN-US_TOPIC_0110300596__b1246053216611">/v2/images/</strong><em id="EN-US_TOPIC_0110300596__i17460193217614">Image ID</em><strong id="EN-US_TOPIC_0110300596__b44615322614">/members/</strong><em id="EN-US_TOPIC_0110300596__i44611132364">Member ID</em>. <em id="EN-US_TOPIC_0110300596__i164611328619">Member ID</em> indicates the project ID of the image recipient.</li><li id="EN-US_TOPIC_0110300596__li1329510246315">Add <strong id="EN-US_TOPIC_0110300596__b84235270615255">X-Auth-Token</strong> to the request header.<p id="EN-US_TOPIC_0110300596__p23341256310">If the request is successful, status code 204 is returned.</p>
|
|
<p id="EN-US_TOPIC_0110300596__p19540153313813">For details about status codes for request errors, see <a href="en-us_topic_0124290300.html">Status Codes</a>.</p>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0110300591.html">Sharing an Image</a></div>
|
|
</div>
|
|
</div>
|
|
|