AS DEV 20221025 v2
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
202
docs/as/dev/ALL_META.TXT.json
Normal file
182
docs/as/dev/CLASS.TXT.json
Normal file
3
docs/as/dev/PARAMETERS.txt
Normal file
@ -0,0 +1,3 @@
|
||||
version=""
|
||||
language="en-us"
|
||||
type=""
|
||||
27
docs/as/dev/en-us_topic_0110252684.html
Normal file
@ -0,0 +1,27 @@
|
||||
<a name="EN-US_TOPIC_0110252684"></a><a name="EN-US_TOPIC_0110252684"></a>
|
||||
|
||||
<h1 class="topictitle1">Performing Operations on Instances in Batches</h1>
|
||||
<div id="body4139237"><div class="section" id="EN-US_TOPIC_0110252684__section663215"><h4 class="sectiontitle">Scenario</h4><ul id="EN-US_TOPIC_0110252684__ul66842817"><li id="EN-US_TOPIC_0110252684__li64714441">An instance is an ECS in an AS group.</li><li id="EN-US_TOPIC_0110252684__li45559064">Adding Instances to or Removing Instances from an AS Group</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252684__section5968939"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0110252684__ul66405588"><li id="EN-US_TOPIC_0110252684__li60779388">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_0110252684__b19557811171519">X-Auth-Token</strong> to the request message header of ECS API you call.</li><li id="EN-US_TOPIC_0110252684__li10143581">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><li id="EN-US_TOPIC_0110252684__li24183370">The number of instances after the removal must be greater than or equal to the minimum number of instances allowed.</li><li id="EN-US_TOPIC_0110252684__li16323738">The number of instances after the adding must be less than or equal to the maximum number of instances allowed.</li><li id="EN-US_TOPIC_0110252684__li12695920">Instances can be added to an AS group only when the AS group is in the <strong id="EN-US_TOPIC_0110252684__b51986441151945">INSERVICE</strong> state and has no scaling action in progress.</li><li id="EN-US_TOPIC_0110252684__li47154420">You can remove instances from an AS group only when no scaling action is in progress.</li><li id="EN-US_TOPIC_0110252684__li21736599">The instances are removable only when they are in <strong id="EN-US_TOPIC_0110252684__b36026384143513">INSERVICE</strong> state.</li><li id="EN-US_TOPIC_0110252684__li61411666">To add instances to an AS group, ensure that the AZ of the instances must be within the AZ of the AS group and that the instances are in the same VPC as the AS group.</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252684__section53720453"><h4 class="sectiontitle">Involved APIs</h4><ul id="EN-US_TOPIC_0110252684__ul8289053"><li id="EN-US_TOPIC_0110252684__li7492614">IAM API used to obtain the token</li><li id="EN-US_TOPIC_0110252684__li324668">API used to query AS groups</li><li id="EN-US_TOPIC_0110252684__li2922015">API used to query instances in an AS group</li><li id="EN-US_TOPIC_0110252684__li26298136">API used to query ECSs (native OpenStack API)</li><li id="EN-US_TOPIC_0110252684__li35356632">API used to perform operations on instances in batches</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252684__section13722030"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0110252684__ol74761340204518"><li id="EN-US_TOPIC_0110252684__li16418192513408">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></ol><ol start="2" id="EN-US_TOPIC_0110252684__ol10190321"><li id="EN-US_TOPIC_0110252684__li20109663">Send <strong id="EN-US_TOPIC_0110252684__b641203717184">GET https://</strong><em id="EN-US_TOPIC_0110252684__i443173719186">AS endpoint</em><strong id="EN-US_TOPIC_0110252684__b444173751816">/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_0110252684__b18451037181819">scaling_group_id</strong> for querying instances in 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_0110252684__li46769243">Send <strong id="EN-US_TOPIC_0110252684__b388215513194">GET https://</strong><em id="EN-US_TOPIC_0110252684__i3431125951916">AS endpoint</em><strong id="EN-US_TOPIC_0110252684__b3782239205">/autoscaling-api/v1/{tenant_id}/scaling_group_instance/{scaling_group_id}/list</strong> to obtain instances of a specified AS group, such as <strong id="EN-US_TOPIC_0110252684__b1027410147228">instance_id_1</strong> and <strong id="EN-US_TOPIC_0110252684__b38504224221">instance_id_2</strong>. For the response parameters of the API used to query instances of an AS group, see section <a href="en-us_topic_0110252696.html">Response Parameters for Querying Instances in an AS Group</a>.</li><li id="EN-US_TOPIC_0110252684__li30212363">Send <strong id="EN-US_TOPIC_0110252684__b1574512111234">POST https://</strong><em id="EN-US_TOPIC_0110252684__i1710115153231">AS endpoint</em><strong id="EN-US_TOPIC_0110252684__b145131119172310">/autoscaling-api/v1/{tenant_id}/scaling_group_instance/{scaling_group_id}/action</strong> to remove instances from an AS group in batches. For detailed parameters, see section "Performing Operations on Instances in Batches" in the <em id="EN-US_TOPIC_0110252684__i1316311211259">Auto Scaling API Reference</em>.<div class="p" id="EN-US_TOPIC_0110252684__p19646736474">Specify the following parameters in the request body:<pre class="screen" id="EN-US_TOPIC_0110252684__screen89773532382">{
|
||||
"action": "REMOVE",
|
||||
"instances_id": [
|
||||
"instance_id_1",
|
||||
"instance_id_2"
|
||||
],
|
||||
"instance_delete": "yes"
|
||||
}</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>
|
||||
|
||||
29
docs/as/dev/en-us_topic_0110252685.html
Normal file
@ -0,0 +1,29 @@
|
||||
<a name="EN-US_TOPIC_0110252685"></a><a name="EN-US_TOPIC_0110252685"></a>
|
||||
|
||||
<h1 class="topictitle1">Appendix</h1>
|
||||
<div id="body62599170"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252686.html">Response Parameters for Querying VPCs</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252687.html">Response Parameters for Querying Subnets</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252688.html">Response Parameters for Querying Security Groups</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252689.html">Response Parameters for Querying Images</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252690.html">Response Parameters for Querying SSH Key Pairs</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252691.html">Response Parameters for Querying ECSs</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252693.html">Response Parameters for Querying AS Groups</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252695.html">Response Parameters for Querying AS Configurations</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252696.html">Response Parameters for Querying Instances in an AS Group</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0136596144.html">ICMP-Port Range Relationship Table</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
135
docs/as/dev/en-us_topic_0110252686.html
Normal file
237
docs/as/dev/en-us_topic_0110252687.html
Normal file
211
docs/as/dev/en-us_topic_0110252688.html
Normal file
555
docs/as/dev/en-us_topic_0110252689.html
Normal file
104
docs/as/dev/en-us_topic_0110252690.html
Normal file
117
docs/as/dev/en-us_topic_0110252691.html
Normal file
394
docs/as/dev/en-us_topic_0110252693.html
Normal file
7
docs/as/dev/en-us_topic_0110252694.html
Normal file
@ -0,0 +1,7 @@
|
||||
<a name="EN-US_TOPIC_0110252694"></a><a name="EN-US_TOPIC_0110252694"></a>
|
||||
|
||||
<h1 class="topictitle1">Overview</h1>
|
||||
<div id="body10785417"><p class="msonormal" id="EN-US_TOPIC_0110252694__p29592551">This document describes how to call the APIs of Auto Scaling (AS) to use basic functions of the service.</p>
|
||||
<p id="EN-US_TOPIC_0110252694__en-us_topic_0020507759_p188289482118">For details about how to use APIs, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328001.html?tag=API Documents" target="_blank" rel="noopener noreferrer">API Usage Guidelines</a>.</p>
|
||||
</div>
|
||||
|
||||
537
docs/as/dev/en-us_topic_0110252695.html
Normal file
160
docs/as/dev/en-us_topic_0110252696.html
Normal file
22
docs/as/dev/en-us_topic_0110252697.html
Normal file
@ -0,0 +1,22 @@
|
||||
<a name="EN-US_TOPIC_0110252697"></a><a name="EN-US_TOPIC_0110252697"></a>
|
||||
|
||||
<h1 class="topictitle1">Basic Concepts</h1>
|
||||
<div id="body66315398"><div class="section" id="EN-US_TOPIC_0110252697__section54486835"><p id="EN-US_TOPIC_0110252697__p1215615093212"><strong id="EN-US_TOPIC_0110252697__b127012275244">AS Group</strong></p>
|
||||
</div>
|
||||
<p id="EN-US_TOPIC_0110252697__p12379726">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.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p44308675"><strong id="EN-US_TOPIC_0110252697__b11607623132416">AS Configuration</strong></p>
|
||||
<p id="EN-US_TOPIC_0110252697__p32232900">An AS configuration is an Elastic Cloud Server (ECS) instance template in an AS group, specifying specifications of the ECS to be added, including the ECS type, vCPU, memory, image, disk, and login mode.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p21660651"><strong id="EN-US_TOPIC_0110252697__b842352706165453">AS Policy</strong></p>
|
||||
<p id="EN-US_TOPIC_0110252697__p9682339">An AS policy specifies a condition for triggering a scaling action.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p20032189">AS supports the following policies:</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p46071979">Alarm: AS automatically increases or decreases the number of instances in an AS group or sets the number of instances to a specified value if Cloud Eye generates an alarm for a configured metric, such as CPU usage.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p11994628">Periodic: AS increases or decreases the number of instances in an AS group or sets the number of instances to a specified value at a configured interval, such as one day, one week, or month.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p40842795">Scheduled: AS automatically increases or decreases the number of instances in an AS group or sets the number of instances to a specified value at a specified time.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p32040840"><strong id="EN-US_TOPIC_0110252697__b1588443112712">Instance</strong></p>
|
||||
<p id="EN-US_TOPIC_0110252697__p45171248">An instance is an ECS in an AS group.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p3888053"><strong id="EN-US_TOPIC_0110252697__b85383692714">Scaling Action</strong></p>
|
||||
<p id="EN-US_TOPIC_0110252697__p46496911">A scaling action adds or removes instances to or from an AS group so that the number of instances in the AS group is the same as the expected number for proper service running.</p>
|
||||
<p id="EN-US_TOPIC_0110252697__p15819022">When the number of instances in an AS group is not the same as expected, a scaling action is triggered. Specifically, when the scaling condition is met or you manually change the expected number of instances, a scaling action is triggered.</p>
|
||||
</div>
|
||||
<div></div>
|
||||
|
||||
21
docs/as/dev/en-us_topic_0110252699.html
Normal file
@ -0,0 +1,21 @@
|
||||
<a name="EN-US_TOPIC_0110252699"></a><a name="EN-US_TOPIC_0110252699"></a>
|
||||
|
||||
<h1 class="topictitle1">Common Operations</h1>
|
||||
<div id="body55706593"><div class="section" id="EN-US_TOPIC_0110252699__section819520452258"><h4 class="sectiontitle">Prerequisites</h4><p id="EN-US_TOPIC_0110252699__p125171952112519">You have obtained the <em id="EN-US_TOPIC_0110252699__i10521130102817">Auto Scaling API Reference</em>.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252700.html">Creating an AS Configuration</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252701.html">Creating an AS Group</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252702.html">Enabling an AS Group</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252703.html">Creating an AS Policy</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="en-us_topic_0110252684.html">Performing Operations on Instances in Batches</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
36
docs/as/dev/en-us_topic_0110252700.html
Normal file
@ -0,0 +1,36 @@
|
||||
<a name="EN-US_TOPIC_0110252700"></a><a name="EN-US_TOPIC_0110252700"></a>
|
||||
|
||||
<h1 class="topictitle1">Creating an AS Configuration</h1>
|
||||
<div id="body30187339"><div class="section" id="EN-US_TOPIC_0110252700__section7559386"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0110252700__p10676131775613">An AS configuration specifies the specifications of the ECSs to be added to an AS group, including the ECS specifications, images, and disks. You can create an AS configuration using an existing ECS or create a new AS configuration.</p>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252700__section925617"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0110252700__ul53648635"><li id="EN-US_TOPIC_0110252700__li13075671">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_0110252700__en-us_topic_0024478020_b842352706134841">X-Auth-Token</strong> to the request message header of ECS API you call.</li><li id="EN-US_TOPIC_0110252700__li50572182">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_0110252700__section8330559"><h4 class="sectiontitle">Involved APIs</h4><ul id="EN-US_TOPIC_0110252700__ul2706053"><li id="EN-US_TOPIC_0110252700__li24354480">IAM API used to obtain the token</li><li id="EN-US_TOPIC_0110252700__li17863729">API used to query specifications and expansion details about ECSs</li><li id="EN-US_TOPIC_0110252700__li26555833">API used to query images</li><li id="EN-US_TOPIC_0110252700__li37675905">API used to query SSH key pairs</li><li id="EN-US_TOPIC_0110252700__li3538826">API used to create an AS configuration<p id="EN-US_TOPIC_0110252700__p31849437"><a name="EN-US_TOPIC_0110252700__li3538826"></a><a name="li3538826"></a></p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252700__section7866173"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0110252700__ol29667630"><li class="msonormal" id="EN-US_TOPIC_0110252700__li5207175121910">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_0110252700__li52393797">Send <strong id="EN-US_TOPIC_0110252700__b14130112613491">GET https://</strong><em id="EN-US_TOPIC_0110252700__i765695171220">ECS endpoint</em><strong id="EN-US_TOPIC_0110252700__b209311322491">/v1/{tenant_id}/cloudservers/flavors</strong> to obtain the ECS specifications. For details about the response parameters of the API used to query ECS specifications, see section <a href="en-us_topic_0110252691.html">Response Parameters for Querying ECSs</a>.</li><li id="EN-US_TOPIC_0110252700__li1782126">Send <strong id="EN-US_TOPIC_0110252700__b176626375491">GET https://</strong><em id="EN-US_TOPIC_0110252700__i195990543163">ECS endpoint</em><strong id="EN-US_TOPIC_0110252700__b27054408492">/v2/{tenant_id}/os-keypairs</strong> to obtain the SSH key pair. For details about the response parameters of the API used to query SSH key pairs, see section <a href="en-us_topic_0110252690.html">Response Parameters for Querying SSH Key Pairs</a>.</li><li id="EN-US_TOPIC_0110252700__li16039134">Send <strong id="EN-US_TOPIC_0110252700__b18249184524910">GET https://</strong><em id="EN-US_TOPIC_0110252700__i1298871013189">IMS endpoint</em><strong id="EN-US_TOPIC_0110252700__b4436154884917">/v2/cloudimages</strong> to obtain images. For details about the response parameters of the API used to query images, see section <a href="en-us_topic_0110252689.html">Response Parameters for Querying Images</a>.</li><li id="EN-US_TOPIC_0110252700__li10134478">Send <strong id="EN-US_TOPIC_0110252700__b78409536496">POST https://</strong><em id="EN-US_TOPIC_0110252700__i15172132320191">AS endpoint</em><strong id="EN-US_TOPIC_0110252700__b720385814494">/autoscaling-api/v1/{tenant_id}/scaling_configuration</strong> to create an AS configuration. For detailed parameters, see section "Creating an AS Configuration" in the <em id="EN-US_TOPIC_0110252700__i152251433132320">Auto Scaling API Reference</em>.<div class="p" id="EN-US_TOPIC_0110252700__p1667140164615">Specify the following parameters in the request body:<pre class="screen" id="EN-US_TOPIC_0110252700__screen148641215122314">{
|
||||
"scaling_configuration_name": "as-config-test",
|
||||
"instance_config": {
|
||||
"flavorRef": "103", //ECS flavor ID
|
||||
"imageRef": "627a1223-2ca3-46a7-8d5f-7aef22c74ee6", //Image ID
|
||||
"disk": [
|
||||
{
|
||||
"size": 40,
|
||||
"volume_type": "SATA",
|
||||
"disk_type": "SYS"
|
||||
}
|
||||
],
|
||||
"key_name": "as-keypair-test" //SSH key pair
|
||||
}
|
||||
} </pre>
|
||||
</div>
|
||||
<p id="EN-US_TOPIC_0110252700__p11552527164620"><strong id="EN-US_TOPIC_0110252700__b2303551102411">scaling_configuration_id</strong> is returned if the request is successful.</p>
|
||||
</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>
|
||||
|
||||
43
docs/as/dev/en-us_topic_0110252701.html
Normal file
@ -0,0 +1,43 @@
|
||||
<a name="EN-US_TOPIC_0110252701"></a><a name="EN-US_TOPIC_0110252701"></a>
|
||||
|
||||
<h1 class="topictitle1">Creating an AS Group</h1>
|
||||
<div id="body36818163"><div class="section" id="EN-US_TOPIC_0110252701__section50663857"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0110252701__p169406482239">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.</p>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252701__section53321536"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0110252701__ul16949880"><li id="EN-US_TOPIC_0110252701__li18331200">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_0110252701__b178523532612">X-Auth-Token</strong> to the request message header of ECS API you call.</li><li id="EN-US_TOPIC_0110252701__li30763078">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.<p id="EN-US_TOPIC_0110252701__p8432251"><a name="EN-US_TOPIC_0110252701__li30763078"></a><a name="li30763078"></a></p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252701__section10131777"><h4 class="sectiontitle">Involved APIs</h4><ul id="EN-US_TOPIC_0110252701__ul11923743"><li id="EN-US_TOPIC_0110252701__li40204823">IAM API used to obtain the token</li><li id="EN-US_TOPIC_0110252701__li26299090">API used to query VPCs</li><li id="EN-US_TOPIC_0110252701__li35365226">API used to query subnets</li><li id="EN-US_TOPIC_0110252701__li49851583">API used to query security groups</li><li id="EN-US_TOPIC_0110252701__li46011066">API used to query AS configurations</li><li id="EN-US_TOPIC_0110252701__li11446412">API used to create an AS group</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252701__section24077135"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0110252701__ol54744161"><li id="EN-US_TOPIC_0110252701__li481592752418">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_0110252701__li18630676">Send <strong id="EN-US_TOPIC_0110252701__b822054055011">GET https://</strong><em id="EN-US_TOPIC_0110252701__i47401551165012">VPC endpoint</em><strong id="EN-US_TOPIC_0110252701__b113321945205011">/v1/{tenant_id}/vpcs</strong> to obtain VPCs. Use the ID of one of the obtained VPCs as parameter <strong id="EN-US_TOPIC_0110252701__b568425353210">vpc_id</strong> for creating an AS group, such as <strong id="EN-US_TOPIC_0110252701__b3485162113338">a8327883-6b07-4497-9c61-68d03ee193</strong>. For the response parameters of the API used to query VPCs, see section <a href="en-us_topic_0110252686.html">Response Parameters for Querying VPCs</a>.</li><li id="EN-US_TOPIC_0110252701__li33458356">Send <strong id="EN-US_TOPIC_0110252701__b4776208514">GET https://</strong><em id="EN-US_TOPIC_0110252701__i94287584345">VPC endpoint</em><strong id="EN-US_TOPIC_0110252701__b11317171335116"> /v1/{tenant_id}/security-groups</strong> to obtain security groups. Use one of the obtained security groups as parameter <strong id="EN-US_TOPIC_0110252701__b7821164017358">security_groups</strong> for creating an AS group. For the response parameters of the API used to query security groups, see section <a href="en-us_topic_0110252688.html">Response Parameters for Querying Security Groups</a>.</li><li id="EN-US_TOPIC_0110252701__li32689751">Send <strong id="EN-US_TOPIC_0110252701__b194503795112">GET https://</strong><em id="EN-US_TOPIC_0110252701__i94042016371">VPC endpoint</em><strong id="EN-US_TOPIC_0110252701__b12534135412511"> /v1/{tenant_id}/subnets?vpc_id=a8327883-6b07-4497-9c61-68d03ee193a</strong> to obtain subnets in a specified VPC. For the response parameters of the API used to query subnets, see section <a href="en-us_topic_0110252687.html">Response Parameters for Querying Subnets</a>.</li><li id="EN-US_TOPIC_0110252701__li25772311">Send <strong id="EN-US_TOPIC_0110252701__b123931131525">GET https://</strong><em id="EN-US_TOPIC_0110252701__i10201114333818">AS endpoint</em><strong id="EN-US_TOPIC_0110252701__b3742618145216">/autoscaling-api/v1/{tenant_id}/scaling_configuration</strong> to obtain AS configurations. Use the ID of one of the obtained AS configurations as parameter <strong id="EN-US_TOPIC_0110252701__b1608918193914">scaling_configuration_id</strong> for creating an AS group. For the response parameters of the API used to query AS configurations, see section <a href="en-us_topic_0110252695.html">Response Parameters for Querying AS Configurations</a>.</li><li id="EN-US_TOPIC_0110252701__li30624212">Send <strong id="EN-US_TOPIC_0110252701__b175959352526">POST https://</strong><em id="EN-US_TOPIC_0110252701__i757704813403">AS endpoint</em><strong id="EN-US_TOPIC_0110252701__b1413942195213">/autoscaling-api/v1/{tenant_id}/scaling_group</strong> to create an AS group. For detailed parameters, see section "Creating an AS Group" in the <em id="EN-US_TOPIC_0110252701__i10231028174012">Auto Scaling API Reference</em>.<div class="p" id="EN-US_TOPIC_0110252701__p177041233194620">Specify the following parameters in the request body:<pre class="screen" id="EN-US_TOPIC_0110252701__screen128761151194017">{
|
||||
"scaling_group_name": "as-group-test",
|
||||
"scaling_configuration_id": "47683a91-93ee-462a-a7d7-484c006f4440",
|
||||
"desire_instance_number": 0,
|
||||
"min_instance_number": 0,
|
||||
"max_instance_number": 10,
|
||||
"cool_down_time": 300,
|
||||
"health_periodic_audit_method": "NOVA_AUDIT",
|
||||
"health_periodic_audit_time": 5,
|
||||
"instance_terminate_policy": "OLD_CONFIG_OLD_INSTANCE",
|
||||
"vpc_id": "a8327883-6b07-4497-9c61-68d03ee193a",
|
||||
"networks": [
|
||||
{
|
||||
"id": "3cd35bca-5a10-416f-8994-f79169559870"
|
||||
}
|
||||
],
|
||||
"security_groups": [
|
||||
{
|
||||
"id": "23b7b999-0a30-4b48-ae8f-ee201a88a6ab"
|
||||
}
|
||||
]
|
||||
}</pre>
|
||||
</div>
|
||||
<p id="EN-US_TOPIC_0110252701__p546673717463"><strong id="EN-US_TOPIC_0110252701__b139830184420">scaling_group_id</strong> is returned if the request is successful.</p>
|
||||
</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>
|
||||
|
||||
22
docs/as/dev/en-us_topic_0110252702.html
Normal file
@ -0,0 +1,22 @@
|
||||
<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>
|
||||
|
||||
37
docs/as/dev/en-us_topic_0110252703.html
Normal file
@ -0,0 +1,37 @@
|
||||
<a name="EN-US_TOPIC_0110252703"></a><a name="EN-US_TOPIC_0110252703"></a>
|
||||
|
||||
<h1 class="topictitle1">Creating an AS Policy</h1>
|
||||
<div id="body43408526"><div class="section" id="EN-US_TOPIC_0110252703__section7653740"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0110252703__p13658134117306">An AS policy specifies a condition for triggering a scaling action. When the trigger condition is met, a scaling action occurs.</p>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252703__section1774803"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0110252703__ul7006171"><li id="EN-US_TOPIC_0110252703__li63055544">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_0110252703__b14154111058">X-Auth-Token</strong> to the request message header of ECS API you call.</li><li id="EN-US_TOPIC_0110252703__li30628985">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_0110252703__section15973227"><h4 class="sectiontitle">Involved APIs</h4><ul id="EN-US_TOPIC_0110252703__ul65028760"><li id="EN-US_TOPIC_0110252703__li48387936">IAM API used to obtain the token</li><li id="EN-US_TOPIC_0110252703__li32838240">API used to query AS groups</li><li id="EN-US_TOPIC_0110252703__li27108706">API used to create an AS policy</li></ul>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0110252703__section9541318"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0110252703__ol1241962524014"><li id="EN-US_TOPIC_0110252703__li16418192513408">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_0110252703__li94188256404">Send <strong id="EN-US_TOPIC_0110252703__b1858514508518">GET https://</strong><em id="EN-US_TOPIC_0110252703__i1958611505512">AS endpoint</em><strong id="EN-US_TOPIC_0110252703__b7586550750">/autoscaling-api/v1/{tenant_id}/scaling_group</strong> to obtain AS groups. Use the ID of one of the AS groups as parameter <strong id="EN-US_TOPIC_0110252703__b7587250253">scaling_group_id</strong> for creating an AS policy. 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_0110252703__li1841802594017">Send <strong id="EN-US_TOPIC_0110252703__b620210301776">POST https://</strong><em id="EN-US_TOPIC_0110252703__i2094173210711">AS endpoint</em><strong id="EN-US_TOPIC_0110252703__b165365366714">/autoscaling-api/v1/{tenant_id}/scaling_policy</strong> to create an AS policy, such as a periodic policy which is executed on Sunday, Tuesday, and Thursday. For detailed parameters, see section "Creating an AS Policy" in the <em id="EN-US_TOPIC_0110252703__i19514135816811">Auto Scaling API Reference</em>.<div class="p" id="EN-US_TOPIC_0110252703__p20165064617">Specify the following parameters in the request body:<pre class="screen" id="EN-US_TOPIC_0110252703__screen1941911258406">{
|
||||
"scaling_policy_name": "as-policy-test",
|
||||
"scaling_policy_action": {
|
||||
"operation": "ADD",
|
||||
"instance_number": 1
|
||||
},
|
||||
"cool_down_time": 900,
|
||||
"scheduled_policy": {
|
||||
"launch_time": "16:00",
|
||||
"recurrence_type": "Weekly",
|
||||
"recurrence_value": "1,3,5",
|
||||
"start_time": "2018-05-04T03:34Z",
|
||||
"end_time": "2018-12-27T03:34Z"
|
||||
},
|
||||
"scaling_policy_type": "RECURRENCE",
|
||||
"scaling_group_id": "5bc3aa02-b83e-454c-aba1-4d2095c68f8b"
|
||||
}</pre>
|
||||
</div>
|
||||
<p id="EN-US_TOPIC_0110252703__p1144545564718"><strong id="EN-US_TOPIC_0110252703__b7810927595">scaling_policy_id</strong> is returned if the request is successful.</p>
|
||||
</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>
|
||||
|
||||
169
docs/as/dev/en-us_topic_0136596144.html
Normal file
27
docs/as/dev/en-us_topic_0139616237.html
Normal file
@ -0,0 +1,27 @@
|
||||
<a name="EN-US_TOPIC_0139616237"></a><a name="EN-US_TOPIC_0139616237"></a>
|
||||
|
||||
<h1 class="topictitle1">Change History</h1>
|
||||
<div id="body1541659353666">
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0139616237__table46471838124216" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0139616237__row1464873816421"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.1.3.1.1"><p id="EN-US_TOPIC_0139616237__en-us_topic_0040408498_p578760449205"><strong id="EN-US_TOPIC_0139616237__b206920614113">Released On</strong></p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.1.3.1.2"><p id="EN-US_TOPIC_0139616237__en-us_topic_0040408498_p574479799205"><strong id="EN-US_TOPIC_0139616237__b560418001737">What's New</strong></p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="EN-US_TOPIC_0139616237__row577392274113"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0139616237__p20774182214113">2021-10-20</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0139616237__p77741922134110">This release incorporates the following change:</p>
|
||||
<p id="EN-US_TOPIC_0139616237__p1984518534411">Change</p>
|
||||
<p id="EN-US_TOPIC_0139616237__p8199165716414">Updated response parameters in <a href="en-us_topic_0110252691.html">Response Parameters for Querying ECSs</a>.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="EN-US_TOPIC_0139616237__row564823834214"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0139616237__en-us_topic_0040408498_p289344809205">2018-11-08</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0139616237__en-us_topic_0040408498_p619915549205">This issue is the first official release.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
1
docs/as/dev/public_sys-resources/ExpandCollapse.js
Normal file
@ -0,0 +1 @@
|
||||
var expandClassName="dropdownexpand";var collapseClassName="dropdowncollapse";var collapseTableClassName="dropdowncollapsetable";var href="";function ExpandorCollapseNode(a){a=a.parentNode;if(a.className==expandClassName){a.className=collapseClassName}else{a.className=expandClassName}}function ExpandorCollapseTableNode(a){a=a.parentNode;if(a.className==expandClassName){a.className=collapseTableClassName}else{a.className=expandClassName}}function ExpandorCollapseAllNodes(g,h,c){var a=g.getAttribute("title");var b=g.parentNode;if(a=="collapse"){g.setAttribute("title","expand");g.className="dropdownAllButtonexpand";g.innerHTML=h}else{g.setAttribute("title","collapse");g.className="dropdownAllButtoncollapse";g.innerHTML=c}var f=b.getElementsByTagName("*");for(var d=0;d<f.length;d++){var e=f[d];if(e.className.indexOf(expandClassName)!=-1||e.className.indexOf(collapseClassName)!=-1||e.className.indexOf(collapseTableClassName)!=-1){if(a=="collapse"){if(e.tagName.toLowerCase()=="table"){e.className=collapseTableClassName}else{e.className=collapseClassName}}else{e.className=expandClassName}}}}function ExpandForHref(f){if(null==f||"#"==f||"###"==f){return}var a=null;try{a=document.getElementById(f)}catch(d){}if(null==a||a.length==0){return}try{var b=a.parentNode;while(b!=null&&b.tagName!="body"){if(b.className==collapseClassName){b.className=expandClassName}b=b.parentNode}}catch(c){}}window.onload=function(){var b=document.getElementsByTagName("div");for(var c=0;c<b.length;c++){var j=b[c];if(j.className.indexOf(expandClassName)!=-1){j.className=collapseClassName}}var d=document.getElementsByTagName("a");try{for(var c=0;c<d.length;c++){var f=d[c];var h=f.getAttribute("href");if(h!=""&&h!=null){href=h;f.addEventListener("click",showHasConref,false)}}}catch(g){}};function showHasConref(){try{if(href!=null&&href!="#"&&href.lastIndexOf("#")>-1){ExpandForHref(href.substring(href.lastIndexOf("#")+1))}}catch(a){}};
|
||||
BIN
docs/as/dev/public_sys-resources/caution_3.0-en-us.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
1
docs/as/dev/public_sys-resources/commonltr.css
Normal file
1
docs/as/dev/public_sys-resources/commonltr_print.css
Normal file
2
docs/as/dev/public_sys-resources/commonrtl.css
Normal file
@ -0,0 +1,2 @@
|
||||
.msgph{font-family:Courier New}.unresolved{background-color:#87ceeb}.noTemplate{background-color:#ff0}.base{background-color:#fff}/*! Add space for top level topics */.nested0,.p{margin-top:1em}/*! div with class=p is used for paragraphs that contain blocks, to keep the XHTML valid *//*! Default of italics to set apart figure captions */.figcap,.italic,.var{font-style:italic}.figdesc{font-style:normal}/*! Use @frame to create frames on figures */.figborder{padding-left:3px;padding-right:3px;margin-top:1em;border:2px solid Silver}.figsides{margin-top:1em;padding-left:3px;padding-right:3px;border-left:2px solid Silver;border-right:2px solid Silver}.figtop{border-top:2px solid Silver;margin-top:1em}.figbottom{border-bottom:2px solid Silver}.figtopbot{border-top:2px solid Silver;border-bottom:2px solid Silver;margin-top:1em}/*! Most link groups are created with <div>. Ensure they have space before and after. */.ullinks,ul.simple{list-style-type:none}.attention,.danger,.ddexpand,.dlexpand,.example,.fastpath,.important,.liexpand,.linklist,.note,.notice,.olchildlink,.relconcepts,.relinfo,.relref,.reltasks,.remember,.restriction,.section,.sliexpand,.stepexpand,.substepexpand,.tip,.ulchildlink,.warning{margin-top:1em;margin-bottom:1em}.linklistwithchild,.sublinklist{margin-top:1em;margin-right:1.5em;margin-bottom:1em}.breadcrumb{font-size:smaller;margin-bottom:1em}.prereq{margin-right:20px}/*! Set heading sizes, getting smaller for deeper nesting */.topictitle1{font-size:1.34em;margin-top:0;margin-bottom:.1em}.topictitle2,.topictitle3,.topictitle4,.topictitle5,.topictitle6,.sectiontitle{font-size:1.17em}.topictitle2{margin-top:1pc;margin-bottom:.45em}.topictitle3{margin-top:1pc;margin-bottom:.17em;font-weight:700}.topictitle4{margin-top:.83em;font-weight:700}.topictitle5{font-weight:700}.topictitle6{font-style:italic}.sectiontitle{margin-top:1em;margin-bottom:0;color:#000;font-weight:700}/*! All note formats have the same default presentation */.attentiontitle,.bold,.cautiontitle,.dangertitle,.dlterm,.fastpathtitle,.firstcol,.importanttitle,.notelisttitle,.notetitle,.noticetitle,.parmname,.remembertitle,.restrictiontitle,.tiptitle,.uicontrol,.warningtitle{font-weight:700}.caution{font-weight:700;margin-bottom:1em}/*! Simple lists do not get a bullet *//*! Used on the first column of a table, when rowheader="firstcol" is used *//*! Various basic phrase styles */.boldItalic{font-weight:700;font-style:italic}.shortcut,.underlined{text-decoration:underline}/*! 2008-10-27 keyword采用跟随上下文的样式
|
||||
*//*! Default of bold for definition list terms *//*! Use CSS to expand lists with @compact="no" */.dltermexpand{font-weight:700;margin-top:1em}[compact="yes"]>li{margin-top:0}[compact="no"]>li{margin-top:.53em}/*! Align images based on @align on topic/image */div.imageleft,.text-align-left{text-align:left}div.imagecenter,.text-align-center{text-align:center}div.imageright,.text-align-right{text-align:right}div.imagejustify,.text-align-justify{text-align:justify}.cellrowborder{border-right:0;border-top:0;border-left:1px solid;border-bottom:1px solid}.row-nocellborder{border-left:hidden;border-right:0;border-top:0;border-bottom:1px solid}.cell-norowborder{border-top:0;border-bottom:hidden;border-right:0;border-left:1px solid}.nocellnorowborder{border:0;border-left:hidden;border-bottom:hidden}pre.codeblock,pre.screen{padding:5px;border:outset;background-color:#ccc;margin-top:2px;margin-bottom:2px;white-space:pre}
|
||||
BIN
docs/as/dev/public_sys-resources/danger_3.0-en-us.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
docs/as/dev/public_sys-resources/delta.gif
Normal file
|
After Width: | Height: | Size: 836 B |
BIN
docs/as/dev/public_sys-resources/deltaend.gif
Normal file
|
After Width: | Height: | Size: 834 B |
BIN
docs/as/dev/public_sys-resources/icon-arrowdn.gif
Normal file
|
After Width: | Height: | Size: 68 B |
BIN
docs/as/dev/public_sys-resources/icon-arrowrt.gif
Normal file
|
After Width: | Height: | Size: 70 B |
BIN
docs/as/dev/public_sys-resources/icon-caution.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
docs/as/dev/public_sys-resources/icon-danger.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
docs/as/dev/public_sys-resources/icon-huawei.gif
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
docs/as/dev/public_sys-resources/icon-note.gif
Normal file
|
After Width: | Height: | Size: 983 B |
BIN
docs/as/dev/public_sys-resources/icon-notice.gif
Normal file
|
After Width: | Height: | Size: 962 B |
BIN
docs/as/dev/public_sys-resources/icon-tip.gif
Normal file
|
After Width: | Height: | Size: 879 B |
BIN
docs/as/dev/public_sys-resources/icon-warning.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
docs/as/dev/public_sys-resources/note_3.0-en-us.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
docs/as/dev/public_sys-resources/notice_3.0-en-us.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
1
docs/as/dev/public_sys-resources/popup.js
Normal file
@ -0,0 +1 @@
|
||||
var i=0;var dhtmlgoodies_tooltipFlag=false;var dhtmlgoodies_tooltip="";var dhtmlgoodies_tooltipShadow="";var dhtmlgoodies_shadowSize=3;var dhtmlgoodies_tooltipMaxWidth=500;var dhtmlgoodies_tooltipMinWidth=100;var dhtmlgoodies_iframe=false;var timeId;var clickFlag=false;var tooltip_is_msie=(navigator.userAgent.indexOf("MSIE")>=0&&navigator.userAgent.indexOf("opera")==-1&&document.all)?true:false;var xPos;var yPos;window.document.onmousemove=function(a){a=a||window.event;if(a.pageX){xPos=a.pageX;yPos=a.pageY}else{if(document.body!=null){xPos=a.clientX+document.body.scrollLeft-document.body.clientLeft;yPos=a.clientY+document.body.scrollTop-document.body.clientTop}}};function showTooltip(tooltipTxt){if(document.body==null){return}if(i==0){return}clickFlag=true;var text=eval("jsonData."+tooltipTxt);var bodyWidth=Math.max(document.body.clientWidth,document.documentElement.clientWidth)-20;if(!dhtmlgoodies_tooltipFlag){dhtmlgoodies_tooltip=document.createElement("DIV");dhtmlgoodies_tooltip.id="dhtmlgoodies_tooltip";dhtmlgoodies_tooltipShadow=document.createElement("DIV");dhtmlgoodies_tooltipShadow.id="dhtmlgoodies_tooltipShadow";document.body.appendChild(dhtmlgoodies_tooltip);document.body.appendChild(dhtmlgoodies_tooltipShadow);if(tooltip_is_msie){dhtmlgoodies_iframe=document.createElement("IFRAME");dhtmlgoodies_iframe.frameborder="5";dhtmlgoodies_iframe.style.backgroundColor="#FFFFFF";dhtmlgoodies_iframe.src="#";dhtmlgoodies_iframe.style.zIndex=100;dhtmlgoodies_iframe.style.position="absolute";document.body.appendChild(dhtmlgoodies_iframe)}}dhtmlgoodies_tooltip.style.display="block";dhtmlgoodies_tooltipShadow.style.display="block";if(tooltip_is_msie){dhtmlgoodies_iframe.style.display="block"}var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(navigator.userAgent.toLowerCase().indexOf("safari")>=0){st=0}var leftPos=xPos+10;dhtmlgoodies_tooltip.style.width=null;dhtmlgoodies_tooltip.innerHTML=text;dhtmlgoodies_tooltip.style.left=leftPos+"px";if(tooltip_is_msie){dhtmlgoodies_tooltip.style.top=yPos+20+st+"px"}else{dhtmlgoodies_tooltip.style.top=yPos+20+"px"}dhtmlgoodies_tooltipShadow.style.left=leftPos+dhtmlgoodies_shadowSize+"px";if(tooltip_is_msie){dhtmlgoodies_tooltipShadow.style.top=yPos+20+st+dhtmlgoodies_shadowSize+"px"}else{dhtmlgoodies_tooltipShadow.style.top=yPos+20+dhtmlgoodies_shadowSize+"px"}if(dhtmlgoodies_tooltip.offsetWidth>dhtmlgoodies_tooltipMaxWidth){dhtmlgoodies_tooltip.style.width=dhtmlgoodies_tooltipMaxWidth+"px"}var tooltipWidth=dhtmlgoodies_tooltip.offsetWidth;if(tooltipWidth<dhtmlgoodies_tooltipMinWidth){tooltipWidth=dhtmlgoodies_tooltipMinWidth}dhtmlgoodies_tooltip.style.width=tooltipWidth+"px";dhtmlgoodies_tooltipShadow.style.width=dhtmlgoodies_tooltip.offsetWidth+"px";dhtmlgoodies_tooltipShadow.style.height=dhtmlgoodies_tooltip.offsetHeight+"px";if((leftPos+tooltipWidth)>bodyWidth){dhtmlgoodies_tooltip.style.left=(dhtmlgoodies_tooltipShadow.style.left.replace("px","")-((leftPos+tooltipWidth)-bodyWidth))+"px";dhtmlgoodies_tooltipShadow.style.left=(dhtmlgoodies_tooltipShadow.style.left.replace("px","")-((leftPos+tooltipWidth)-bodyWidth)+dhtmlgoodies_shadowSize)+"px"}if(tooltip_is_msie){dhtmlgoodies_iframe.style.left=dhtmlgoodies_tooltip.style.left;dhtmlgoodies_iframe.style.top=dhtmlgoodies_tooltip.style.top;dhtmlgoodies_iframe.style.width=dhtmlgoodies_tooltip.offsetWidth+"px";dhtmlgoodies_iframe.style.height=dhtmlgoodies_tooltip.offsetHeight+"px"}}function hideTooltip(){i=0;clickFlag=false;if(dhtmlgoodies_tooltip!=null&&dhtmlgoodies_tooltip.style!=null){dhtmlgoodies_tooltip.style.display="none";dhtmlgoodies_tooltipShadow.style.display="none";if(tooltip_is_msie){dhtmlgoodies_iframe.style.display="none"}}if(timeId!=null&&timeId!=""){clearTimeout(timeId)}}function showText(a){i=1;timeId=setTimeout(function(){showTooltip(a)},500)}function showText2(a){if(!clickFlag){i=1;showTooltip(a);i=0;if(timeId!=null&&timeId!=""){clearTimeout(timeId)}}}function anchorScroll(b){var d=document.getElementsByName(b);if(d!=null&&d.length>0){var c=d[0];var a=c.getBoundingClientRect().left+(document.body.scrollLeft||(document.documentElement&&document.documentElement.scrollLeft));var e=c.getBoundingClientRect().top+(document.body.scrollTop||(document.documentElement&&document.documentElement.scrollTop));window.scrollTo(a,e-30)}};
|
||||
1
docs/as/dev/public_sys-resources/pygments.css
Normal file
@ -0,0 +1 @@
|
||||
.hll{background-color:#ffc}.c{color:#069;font-style:italic}.err{color:black}.k{color:#069;font-weight:bold}.ch{color:#069;font-style:italic}.cm{color:#008200}.cp{color:black}.cpf{color:#069;font-style:italic}.c1{color:#008200}.cs{color:#069;font-weight:bold}.gd{color:#000;background-color:#fdd}.ge{font-style:italic}.gr{color:#a00}.gh{color:#999}.gi{color:#000;background-color:#dfd}.go{color:#888}.gp{color:#555}.gs{font-weight:bold}.gu{color:#aaa}.gt{color:#a00}.kc{color:#000080;font-weight:bold}.kd{color:#069;font-weight:bold}.kn{color:#000080;font-weight:bold}.kp{color:#069;font-weight:bold}.kr{color:#000080;font-weight:bold}.kt{color:#069;font-weight:bold}.m{color:blue}.s{color:blue}.na{color:gray}.nt{color:#069;font-weight:bold}.ow{font-weight:bold}.w{color:#bbb}.mb{color:blue}.mf{color:blue}.mh{color:blue}.mi{color:black}.mo{color:blue}.sa{color:blue}.sb{color:blue}.sc{color:#800080}.dl{color:blue}.sd{color:blue}.s2{color:blue}.se{color:blue}.sh{color:blue}.si{color:blue}.sx{color:blue}.sr{color:blue}.s1{color:blue}.ss{color:blue}.il{color:blue}.linenos{width:15px}.linenos{border-right:3px solid #6ce26c;color:#afafaf;text-align:right;padding:0 .5em 0 1em}.codecoloring{line-height:1.1em}.code .highlight pre{font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace}.code .highlight pre span{font-size:1em}.nb{color:#ff1493}.nv{color:#a70}.nx,.o,.n,.nf{color:black}.vc,.vi{color:#a70}.highlight pre{padding:0 1em}.highlighttable pre{box-sizing:border-box;margin:0}
|
||||
BIN
docs/as/dev/public_sys-resources/warning_3.0-en-us.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |