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>
23 lines
3.6 KiB
HTML
23 lines
3.6 KiB
HTML
<a name="EN-US_TOPIC_0110252702"></a><a name="EN-US_TOPIC_0110252702"></a>
|
|
|
|
<h1 class="topictitle1">Enabling an AS Group</h1>
|
|
<div id="body16323694"><div class="section" id="EN-US_TOPIC_0110252702__en-us_topic_0040879985-chtext"><h4 class="sectiontitle">Scenario</h4><ul id="EN-US_TOPIC_0110252702__ul47150815"><li id="EN-US_TOPIC_0110252702__li21704158">An AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions.</li><li id="EN-US_TOPIC_0110252702__li61119702">Only enabled AS groups support scaling actions.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0110252702__section13168838"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0110252702__ul51748792"><li id="EN-US_TOPIC_0110252702__li63085950">If you use a token for authentication, you must call the IAM API to obtain the user's token and add <strong id="EN-US_TOPIC_0110252702__b469613586486">X-Auth-Token</strong> to the request message header of ECS API you call.</li><li id="EN-US_TOPIC_0110252702__li30902639">The validity period of the token obtained from the IAM service is 24 hours. If you want to use a token for authentication, you can cache it to avoid frequently calling the IAM API.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0110252702__section51410680"><h4 class="sectiontitle">Involved APIs</h4><ul id="EN-US_TOPIC_0110252702__ul20085859"><li id="EN-US_TOPIC_0110252702__li46555007">IAM API used to obtain the token</li><li id="EN-US_TOPIC_0110252702__li16341883">API used to query AS groups</li><li id="EN-US_TOPIC_0110252702__li12859224">API used to enable or disable an AS group</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0110252702__section60042939"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0110252702__ol34964258"><li id="EN-US_TOPIC_0110252702__li7711728161511">For details about token authentication, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328003.html" target="_blank" rel="noopener noreferrer">Token Authentication</a>.</li><li id="EN-US_TOPIC_0110252702__li61685123">Send <strong id="EN-US_TOPIC_0110252702__b12981151513568">GET https://</strong><em id="EN-US_TOPIC_0110252702__i179632194564">AS endpoint</em><strong id="EN-US_TOPIC_0110252702__b154791825115611">/autoscaling-api/v1/{tenant_id}/scaling_group</strong> to obtain AS groups. Use the ID of one of the AS groups as the URI parameter <strong id="EN-US_TOPIC_0110252702__b0821153819587">scaling_group_id</strong> for enabling an AS group. For the response parameters of the API used to query AS groups, see section <a href="en-us_topic_0110252693.html">Response Parameters for Querying AS Groups</a>.</li><li id="EN-US_TOPIC_0110252702__li18295196">Send <strong id="EN-US_TOPIC_0110252702__b111191652135918">POST https://</strong><em id="EN-US_TOPIC_0110252702__i8630135925910">AS endpoint</em><strong id="EN-US_TOPIC_0110252702__b12498125513590">/autoscaling-api/v1/{tenant_id}/scaling_group/{scaling_group_id}/action</strong> to enable the AS group. For detailed parameters, see section "Enabling or Disabling an AS Group" in the <em id="EN-US_TOPIC_0110252702__i6661121117">Auto Scaling API Reference</em>.<div class="p" id="EN-US_TOPIC_0110252702__p1444694224614">Specify the following parameters in the request body:<pre class="screen" id="EN-US_TOPIC_0110252702__screen112712586287">{
|
|
"action": "resume"
|
|
}</pre>
|
|
</div>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0110252699.html">Common Operations</a></div>
|
|
</div>
|
|
</div>
|
|
|