doc-exports/elb/api-ref/elb_eg_v3_0003.html

32 lines
11 KiB
HTML

<a name="elb_eg_v3_0003"></a><a name="elb_eg_v3_0003"></a>
<h1 class="topictitle1">Deleting a Dedicated Load Balancer</h1>
<h4 class="sectiontitle">Scenarios</h4><p id="elb_eg_v3_0003__p209841539314">Call APIs to delete a dedicated load balancer.</p>
<p id="elb_eg_v3_0003__p396912337414">Before you delete a dedicated load balancer, delete all resources associated with it. <a href="#elb_eg_v3_0003__fig14527132320389">Figure 1</a> shows the associated resources.</p>
<a name="elb_eg_v3_0003__fig14527132320389"></a><a name="fig14527132320389"></a><span class="figcap"><b>Figure 1 </b>Resources associated with a dedicated load balancer</span><br><span><img class="eddx" id="elb_eg_v3_0003__image9527192311384" src="en-us_image_0294158472.png"></span>
<h4 class="sectiontitle">Procedure</h4><p id="elb_eg_v3_0003__p3249123011234">Perform the following steps to delete the associated resources and the load balancer. Skip the corresponding step if the associated resources do not exist. For example, you can skip <a href="#elb_eg_v3_0003__li693163653915">1</a> if no health check is configured.</p>
<ol id="elb_eg_v3_0003__ol54540221397"><li id="elb_eg_v3_0003__li693163653915"><a name="elb_eg_v3_0003__li693163653915"></a><a name="li693163653915"></a>Delete the health check configured for each associated backend server group.<ol type="a" id="elb_eg_v3_0003__ol4525743153913"><li id="elb_eg_v3_0003__li1552624319391">Send <strong id="elb_eg_v3_0003__b858822019237">DELETE https://</strong><em id="elb_eg_v3_0003__i76001120112317">{elb_endpoint}</em><strong id="elb_eg_v3_0003__b2060118201236">/v3/</strong><em id="elb_eg_v3_0003__i1601182042319">{project_id}</em><strong id="elb_eg_v3_0003__b460216202236">/elb/healthmonitors/</strong><em id="elb_eg_v3_0003__i160262092312">{healthmonitor_id}</em>. <em id="elb_eg_v3_0003__i4603120182312">project_id</em> indicates the project ID, and <em id="elb_eg_v3_0003__i14603142018238">healthmonitor_id</em> indicates the health check ID.</li><li id="elb_eg_v3_0003__li187231552394">Add <strong id="elb_eg_v3_0003__b55383227238">X-Auth-Token</strong> to the request header.</li><li id="elb_eg_v3_0003__li16571891407">Check the response.<ul id="elb_eg_v3_0003__ul8705210172817"><li id="elb_eg_v3_0003__li97051010182820">If the request is successful, 204 is returned, and the response body is empty.</li><li id="elb_eg_v3_0003__li13710710182818">If the request is abnormal, locate the fault by referring to <a href="errorcode.html">HTTP Status Codes for Dedicated Load Balancers</a>.</li></ul>
</li></ol>
</li><li id="elb_eg_v3_0003__li61564513413">Remove backend servers from each associated backend server group.<ol type="a" id="elb_eg_v3_0003__ol51564512420"><li id="elb_eg_v3_0003__li615605118417">Send <strong id="elb_eg_v3_0003__b189201257122315">DELETE https://</strong><em id="elb_eg_v3_0003__i79321157162317">{elb_endpoint}</em><strong id="elb_eg_v3_0003__b12932185772318">/v3/</strong><em id="elb_eg_v3_0003__i29331157192310">{project_id}</em><strong id="elb_eg_v3_0003__b09331757112311">/elb/pools/</strong><em id="elb_eg_v3_0003__i1934165752312">{pool_id}</em><strong id="elb_eg_v3_0003__b1493495712320">/members/</strong><em id="elb_eg_v3_0003__i393595722316">{member_id}</em>. <em id="elb_eg_v3_0003__i19936195792311">project_id</em> indicates the project ID, <em id="elb_eg_v3_0003__i1937155719236">pool_id</em> indicates the backend server group ID, and <strong id="elb_eg_v3_0003__b1193815712313">member_id</strong> indicates the backend server ID.</li><li id="elb_eg_v3_0003__li81571516411">Add <strong id="elb_eg_v3_0003__b1820285122415">X-Auth-Token</strong> to the request header.</li><li id="elb_eg_v3_0003__li1115720511247">Check the response.<ul id="elb_eg_v3_0003__ul515712512043"><li id="elb_eg_v3_0003__li10157451344">If the request is successful, 204 is returned, and the response body is empty.</li><li id="elb_eg_v3_0003__li2157551940">If the request is abnormal, locate the fault by referring to <a href="errorcode.html">HTTP Status Codes for Dedicated Load Balancers</a>.</li></ul>
</li></ol>
</li><li id="elb_eg_v3_0003__li2481891082">Delete each associated backend server group.<ol type="a" id="elb_eg_v3_0003__ol848791813"><li id="elb_eg_v3_0003__li2048139283">Send <strong id="elb_eg_v3_0003__b51791313122411">DELETE https://</strong><em id="elb_eg_v3_0003__i91801013182414">{elb_endpoint}</em><strong id="elb_eg_v3_0003__b11181913192413">/v3/</strong><strong id="elb_eg_v3_0003__b41811113132410">{project_id}</strong><strong id="elb_eg_v3_0003__b18182171382418">/elb/pools/</strong><em id="elb_eg_v3_0003__i101823139245">{pool_id}</em>. <em id="elb_eg_v3_0003__i418381316247">project_id</em> indicates the project ID, and <em id="elb_eg_v3_0003__i15183191382411">pool_id</em> indicates the backend server group ID.</li><li id="elb_eg_v3_0003__li13486920813">Add <strong id="elb_eg_v3_0003__b654711208249">X-Auth-Token</strong> to the request header.</li><li id="elb_eg_v3_0003__li448091280">Check the response.<ul id="elb_eg_v3_0003__ul1848898811"><li id="elb_eg_v3_0003__li104814910817">If the request is successful, 204 is returned, and the response body is empty.</li><li id="elb_eg_v3_0003__li14481691820">If the request is abnormal, locate the fault by referring to <a href="errorcode.html">HTTP Status Codes for Dedicated Load Balancers</a>.</li></ul>
</li></ol>
</li><li id="elb_eg_v3_0003__li8267540104">Delete the forwarding rules added to each listener.<ol type="a" id="elb_eg_v3_0003__ol20267145103"><li id="elb_eg_v3_0003__li1326714121012">Send <strong id="elb_eg_v3_0003__b6563216114113">DELETE https://</strong><em id="elb_eg_v3_0003__i16759279416">{elb_endpoint}</em><strong id="elb_eg_v3_0003__b8961332174119">/v3/</strong><em id="elb_eg_v3_0003__i44217380418">{project_id}</em><strong id="elb_eg_v3_0003__b1949414534110">/elb/l7policies/</strong><em id="elb_eg_v3_0003__i6441155044120">{policy_id}</em><strong id="elb_eg_v3_0003__b135161854184119">/rules/</strong><em id="elb_eg_v3_0003__i582412613421">{rule_id}</em>. <em id="elb_eg_v3_0003__i34043016246">project_id</em> indicates the project ID, <em id="elb_eg_v3_0003__i94193016247">policy_id</em> indicates the forwarding policy ID, and <em id="elb_eg_v3_0003__i134116305243">rule_id</em> indicates the forwarding rule ID.</li><li id="elb_eg_v3_0003__li10268642105">Add <strong id="elb_eg_v3_0003__b10491937112411">X-Auth-Token</strong> to the request header.</li><li id="elb_eg_v3_0003__li152681943108">Check the response.<ul id="elb_eg_v3_0003__ul12688401016"><li id="elb_eg_v3_0003__li12687410108">If the request is successful, 204 is returned, and the response body is empty.</li><li id="elb_eg_v3_0003__li1626817414102">If the request is abnormal, locate the fault by referring to <a href="errorcode.html">HTTP Status Codes for Dedicated Load Balancers</a>.</li></ul>
</li></ol>
</li><li id="elb_eg_v3_0003__li437819495127">Delete the forwarding policies added to each listener.<ol type="a" id="elb_eg_v3_0003__ol137820499121"><li id="elb_eg_v3_0003__li43784499121">Send <strong id="elb_eg_v3_0003__b26365562417">DELETE https://</strong><em id="elb_eg_v3_0003__i77455582419">{elb_endpoint}</em><strong id="elb_eg_v3_0003__b187455522415">/v3/</strong><em id="elb_eg_v3_0003__i1875145502417">{project_id}</em><strong id="elb_eg_v3_0003__b9751552244">/elb/l7policies/</strong><em id="elb_eg_v3_0003__i207615557245">{policy_id}</em>. <em id="elb_eg_v3_0003__i187625572414">project_id</em> indicates the project ID, and <em id="elb_eg_v3_0003__i47695515241">policy_id</em> indicates the forwarding policy ID.</li><li id="elb_eg_v3_0003__li1637834931213">Add <strong id="elb_eg_v3_0003__b8485121254">X-Auth-Token</strong> to the request header.</li><li id="elb_eg_v3_0003__li1437884914122">Check the response.<ul id="elb_eg_v3_0003__ul1837818493125"><li id="elb_eg_v3_0003__li3378249171219">If the request is successful, 204 is returned, and the response body is empty.</li><li id="elb_eg_v3_0003__li8378194913122">If the request is abnormal, locate the fault by referring to <a href="errorcode.html">HTTP Status Codes for Dedicated Load Balancers</a>.</li></ul>
</li></ol>
</li><li id="elb_eg_v3_0003__li1225913168136">Delete each listener added to the load balancer.<ol type="a" id="elb_eg_v3_0003__ol10259111661311"><li id="elb_eg_v3_0003__li1825921671312">Send <strong id="elb_eg_v3_0003__b1768641117257">DELETE https://</strong><em id="elb_eg_v3_0003__i106971311142510">{elb_endpoint}</em><strong id="elb_eg_v3_0003__b15697101172516">/v3/</strong><em id="elb_eg_v3_0003__i86986113251">{project_id}</em><strong id="elb_eg_v3_0003__b1969816118254">/elb/listeners/</strong><em id="elb_eg_v3_0003__i14699151114256">{listener_id}</em>. <em id="elb_eg_v3_0003__i2700101122517">project_id</em> indicates the project ID, and <em id="elb_eg_v3_0003__i77001311182514">listener_id</em> indicates the listener ID.</li><li id="elb_eg_v3_0003__li18259181601320">Add <strong id="elb_eg_v3_0003__b115881416172514">X-Auth-Token</strong> to the request header.</li><li id="elb_eg_v3_0003__li2025911691310">Check the response.<ul id="elb_eg_v3_0003__ul1925919164139"><li id="elb_eg_v3_0003__li16259181661311">If the request is successful, 204 is returned, and the response body is empty.</li><li id="elb_eg_v3_0003__li225918167134">If the request is abnormal, locate the fault by referring to <a href="errorcode.html">HTTP Status Codes for Dedicated Load Balancers</a>.</li></ul>
</li></ol>
</li><li id="elb_eg_v3_0003__li122222422147">Delete the load balancer.<ol type="a" id="elb_eg_v3_0003__ol13222104220140"><li id="elb_eg_v3_0003__li92221242111419">Send <strong id="elb_eg_v3_0003__b13458137172714">DELETE https://</strong><em id="elb_eg_v3_0003__i7469163742713">{elb_endpoint}</em><strong id="elb_eg_v3_0003__b14470163742712">/v3/</strong><em id="elb_eg_v3_0003__i4471133713274">{project_id}</em><strong id="elb_eg_v3_0003__b54711374270">/elbloadbalancers/</strong><em id="elb_eg_v3_0003__i9472237182716">{loadbalancer_id}</em>. <em id="elb_eg_v3_0003__i134731537122719">project_id</em> indicates the project ID, and <em id="elb_eg_v3_0003__i547311373275">loadbalancer_id</em> indicates the load balancer ID.</li><li id="elb_eg_v3_0003__li1322204261418">Add <strong id="elb_eg_v3_0003__b20630184812271">X-Auth-Token</strong> to the request header.</li><li id="elb_eg_v3_0003__li18222642151419">Check the response.<ul id="elb_eg_v3_0003__ul52221342111415"><li id="elb_eg_v3_0003__li16222154221410">If the request is successful, 204 is returned, and the response body is empty.</li><li id="elb_eg_v3_0003__li2022234211415">If the request is abnormal, locate the fault by referring to <a href="errorcode.html">HTTP Status Codes for Dedicated Load Balancers</a>.</li></ul>
</li></ol>
</li></ol>
<strong>Parent topic:</strong> <a href="elb_eg_v3_0000.html">Examples</a>