doc-exports/docs/as/api-ref/as_06_0201.html
guoyanyan 31704f0318 as_api_0325
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2023-04-13 08:59:32 +00:00

646 lines
55 KiB
HTML

<a name="as_06_0201"></a><a name="as_06_0201"></a>
<h1 class="topictitle1">Creating an AS Configuration</h1>
<div id="body38092103"><div class="section" id="as_06_0201__section66578044"><h4 class="sectiontitle">Function</h4><p id="as_06_0201__p121523560447">This API is used to create an AS configuration.</p>
<ul id="as_06_0201__ul121871425111719"><li id="as_06_0201__li618772511174">An AS configuration is a template specifying specifications for the instances to be added to an AS group.</li><li id="as_06_0201__li091415278176">The AS configuration is decoupled from the AS group. An AS configuration can be used by multiple AS groups.</li><li id="as_06_0201__li1961496185720">Up to 100 AS configurations can be created for each user.</li></ul>
</div>
<div class="section" id="as_06_0201__section62331491"><h4 class="sectiontitle">URI</h4><p id="as_06_0201__p48490504">POST /autoscaling-api/v1/{project_id}/scaling_configuration</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table35416756" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="as_06_0201__row47063428"><th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.2.3.2.5.1.1"><p id="as_06_0201__p54041329">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="as_06_0201__p15271547">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.2.3.2.5.1.3"><p id="as_06_0201__p29035785">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="44%" id="mcps1.3.2.3.2.5.1.4"><p id="as_06_0201__p3088388">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row48832851"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0201__p63146847">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0201__p14620943">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0201__p43445707">String</p>
</td>
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0201__p36520930">Specifies the project ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="as_06_0201__section24112512"><h4 class="sectiontitle">Request Message</h4><ul id="as_06_0201__ul55056607"><li id="as_06_0201__li25747420">Request parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table30400195" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="as_06_0201__row25496434"><th align="left" class="cellrowborder" valign="top" width="21.21212121212121%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="as_06_0201__p51945267">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.21212121212121%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="as_06_0201__p46817064">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.151515151515152%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="as_06_0201__p34085817">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.42424242424242%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="as_06_0201__p9487824">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row30316242"><td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="as_06_0201__p39696553">scaling_configuration_name</p>
</td>
<td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="as_06_0201__p61304253">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="as_06_0201__p66697461">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.42424242424242%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="as_06_0201__p33785274">Specifies the AS configuration name. The name contains only letters, digits, underscores (_), and hyphens (-), and cannot exceed 64 characters.</p>
</td>
</tr>
<tr id="as_06_0201__row35632012"><td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="as_06_0201__p511887">instance_config</p>
</td>
<td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="as_06_0201__p41462866">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="as_06_0201__p15686522173916">Object</p>
</td>
<td class="cellrowborder" valign="top" width="42.42424242424242%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="as_06_0201__p45638969">Specifies the ECS configuration. For details, see <a href="#as_06_0201__table5981573891121">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table5981573891121"></a><a name="table5981573891121"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table5981573891121" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="as_06_0201__a523667fbf7f84c88a4f2912761171a51">instance_config</strong> field description</caption><thead align="left"><tr id="as_06_0201__r4c26d84153be4464b22847e9b6182390"><th align="left" class="cellrowborder" valign="top" width="20.792079207920793%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="as_06_0201__ae87dd78bead34b4bb60b8b3f402c44f2">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.792079207920793%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="as_06_0201__p5549735191529">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.841584158415841%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="as_06_0201__a4950d94907064b47a4bda4858a33cdc0">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.57425742574257%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="as_06_0201__a797f28c561484893b5f5cfc317582ba5">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row4833983694940"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__p2321261094940">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p117325794940">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__p2792498494940">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__p5714172410748">Specifies the ECS ID. When you want to create an AS configuration from an ECS, specify this parameter. In this case, the <strong id="as_06_0201__b84235270618340">flavorRef</strong>, <strong id="as_06_0201__b84235270618345">imageRef</strong>, <strong id="as_06_0201__b84235270618349">disk</strong>, and <strong id="as_06_0201__b4205314195116">security_groups</strong> fields do not take effect.</p>
<p id="as_06_0201__p3937759195828">If the <strong id="as_06_0201__b842352706183458">instance_id</strong> field is not specified, <strong id="as_06_0201__b884057306183518">flavorRef</strong>, <strong id="as_06_0201__b1056433101183518">imageRef</strong>, and <strong id="as_06_0201__b1299744514183518">disk</strong> fields are mandatory.</p>
</td>
</tr>
<tr id="as_06_0201__r91b06878f5da4447abf9b85bf4c82bc6"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__a509afeee56a44a43897bac222c61f3ff">flavorRef</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p6610046591529">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__af5eccdf2dbd04ef8ae9a07f3f57472e0">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__a068eef21ab6b4492876594074b9a6ea8">Specifies the ECS flavor ID. A maximum of 10 flavors can be selected. Use a comma (,) to separate multiple flavor IDs. You can obtain an ECS flavor ID from the API for querying details about flavors and extended flavor information.</p>
</td>
</tr>
<tr id="as_06_0201__rc85492fa8fb7484b8f9ce867ee9c9db6"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__a0ef3b55b17824d92a0b4fff8a3b9fc6f">imageRef</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p5253743991529">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__a0b7ade9132b143a18449fed7c25c1794">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__a1aafc582cb754139946238475192748d">Specifies the image ID. Its value is the same as that of <strong id="as_06_0201__b84235270619918">image_id</strong> for specifying the image selected during ECS creation. You can obtain an image ID by calling the IMS API for querying images.</p>
</td>
</tr>
<tr id="as_06_0201__r7d3d6a0636424a11aef13684aeacd387"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__a2fd0f5cb13fa4b2e9cce0a57e5755405">disk</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p2767417091529">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__a59f1976b777c49dabc9f22e498393078">Array of <a href="#as_06_0201__table279810959126">disk</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__aeafe48e042c04c619ee16094cf39bdca">Specifies the disk group information. System disks are mandatory and data disks are optional. For details, see <a href="#as_06_0201__table279810959126">Table 4</a>.</p>
</td>
</tr>
<tr id="as_06_0201__row3676444084457"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__p438140798456">key_name</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p592794868456">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__p369090508456">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__p368430348456">Specifies the name of the SSH key pair used to log in to the ECS.</p>
</td>
</tr>
<tr id="as_06_0201__r20296d7eb44f447f8a64bbc0a96e87d2"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__a44d4ff71822642e8a3299c7beebc4da7">personality</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p1269859791529">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__af0a4b1b96a534569986e2f66b4c3a81f">Array of <a href="#as_06_0201__table3396587291242">personality</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__a76bd6d9b0fcf4bc795d8cd02cd71669b">Specifies information about the injected file. Only text files can be injected. A maximum of five files can be injected at a time and the maximum size of each file is 1 KB. For details, see <a href="#as_06_0201__table3396587291242">Table 6</a>.</p>
</td>
</tr>
<tr id="as_06_0201__row53959709102955"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__p8660319102955">public_ip</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p30397262102955">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__p16206163593912"><a href="#as_06_0201__table105840310312">public_ip</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__p42992030">Specifies the EIP of the ECS. The EIP can be configured in two ways. For details, see <a href="#as_06_0201__table105840310312">Table 7</a>.</p>
<ul id="as_06_0201__ul41483341153130"><li id="as_06_0201__li51608295153130">Do not use an EIP. In this case, this parameter is unavailable.</li><li id="as_06_0201__li61821472153130">Automatically assign an EIP. You need to specify the information about the new EIP.</li></ul>
</td>
</tr>
<tr id="as_06_0201__row65213387183650"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__p47793031183650">user_data</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p46030270183650">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__p37464410183650">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__p75316311525">Specifies the user data to be injected during the ECS creation process. Text, text files, and gzip files can be injected. </p>
<p id="as_06_0201__p18531131105212">Constraints:</p>
<ul id="as_06_0201__ul954173117522"><li id="as_06_0201__li13531631175219">The content to be injected must be encoded with base64. The maximum size of the content to be injected (before encoding) is 32 KB.</li></ul>
<p id="as_06_0201__p2062915093518">Examples:</p>
<ul id="as_06_0201__ul13541314520"><li id="as_06_0201__li13546312528">Linux<pre class="screen" id="as_06_0201__screen16541531125220">#! /bin/bash
echo user_test &gt;&gt; /home/user.txt</pre>
</li><li id="as_06_0201__li0541731105219">Windows<pre class="screen" id="as_06_0201__screen35418316520">rem cmd
echo 111 &gt; c:\aaa.txt</pre>
</li></ul>
</td>
</tr>
<tr id="as_06_0201__row5961124394643"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__p6378139794643">metadata</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p6601952394643">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__p4598115094643"><a href="#as_06_0201__table6119722495435">metadata</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__p3348564594643">Specifies the ECS metadata. For details, see <a href="#as_06_0201__table6119722495435">Table 10</a>.</p>
</td>
</tr>
<tr id="as_06_0201__row1574783418203"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__p14930144516201">security_groups</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p4954183351316">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__p10175134115396">Array of <a href="#as_06_0201__table144645712211">security_groups</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__p9394187112314">Specifies security groups. For details, see <a href="#as_06_0201__table144645712211">Table 11</a>. </p>
<p id="as_06_0201__p14930194512015">If the security group is specified both in the AS configuration and AS group, scaled ECS instances will be added to the security group specified in the AS configuration. If the security group is not specified in either of them, scaled ECS instances will be added to the default security group. For your convenience, you are advised to specify the security group in the AS configuration.</p>
</td>
</tr>
<tr id="as_06_0201__row099113253218"><td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="as_06_0201__p1777713012214">market_type</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="as_06_0201__p1377718301220">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="as_06_0201__p17779301420">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.57425742574257%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="as_06_0201__p0897134016220">This parameter is reserved.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table279810959126"></a><a name="table279810959126"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table279810959126" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="as_06_0201__a504b741a1d0b43298294c867f473015b">disk</strong> field description</caption><thead align="left"><tr id="as_06_0201__r357c6f0bb9f342809f9c348ed70a9968"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.2.1.3.2.5.1.1"><p id="as_06_0201__ab740b0232cd54c0e85af7cd7a1291270">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.3.2.1.3.2.5.1.2"><p id="as_06_0201__p5608268791811">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.1.3.2.5.1.3"><p id="as_06_0201__aec91c4d91bd64bebba818293af6106c2">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42%" id="mcps1.3.3.2.1.3.2.5.1.4"><p id="as_06_0201__a2c67dda839364047a779f76c6d45c2a1">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__r184900d8743c4eac936d0f08517229ba"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="as_06_0201__a2b40e8a57985423ea748cbba0db2f958">size</p>
</td>
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="as_06_0201__p4640382191811">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="as_06_0201__a93c78ee974024a56a7e7ef417cd54fa0">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="as_06_0201__ad58bc0b1affa4c0f9d6f03cef81dd4f0">Specifies the disk size. The unit is GB.</p>
<p id="as_06_0201__p43554686145747">The system disk size ranges from 1 to 1024 and must be greater than or equal to the minimum size (<strong id="as_06_0201__b1978214517138">min_disk</strong> value) of the system disk specified in the image.</p>
<p id="as_06_0201__p5562853216262">The data disk size ranges from 10 to 32768.</p>
</td>
</tr>
<tr id="as_06_0201__r2f1e5724d07040ea9695bb591a5f5c5e"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="as_06_0201__a722115890c2146c48fef0bd6aef24dd1">volume_type</p>
</td>
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="as_06_0201__p61313191811">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="as_06_0201__ae311d77181a6412887d36d37fce61759">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="as_06_0201__p54864902">Specifies the ECS system disk type. The disk type must match the available disk type.</p>
<ul id="as_06_0201__ul32900150164116"><li id="as_06_0201__li27665902164116"><strong id="as_06_0201__b842352706144153">SATA</strong>: common I/O disk type</li><li id="as_06_0201__li47666531164116"><strong id="as_06_0201__b842352706144157">SAS</strong>: high I/O disk type</li><li id="as_06_0201__li26345598164116"><strong id="as_06_0201__b84235270614420">SSD</strong>: ultra-high I/O disk type</li><li id="as_06_0201__li3657636393434"><strong id="as_06_0201__b14801824142717">co-p1</strong>: high I/O (performance-optimized I) disk type</li><li id="as_06_0201__li5970375593452"><strong id="as_06_0201__b973015355271">uh-l1</strong>: ultra-high I/O (latency-optimized) disk type</li></ul>
<p id="as_06_0201__en-us_topic_0020212668_en-us_topic_0044524833_p62741351184614">If the specified disk type is not available in the AZ, the disk will fail to create.</p>
<div class="note" id="as_06_0201__note1189393515548"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="as_06_0201__p188949357544">For HANA, HL1, and HL2 ECSs, use co-p1 and uh-l1 disks. For other ECSs, do not use co-p1 or uh-l1 disks.</p>
<p id="as_06_0201__p167344541156"></p>
</div></div>
</td>
</tr>
<tr id="as_06_0201__r252618b0a3c741db83283ef15bd6c2da"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="as_06_0201__a5bc291d03ad648e4a94aedd34e30633d">disk_type</p>
</td>
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="as_06_0201__p4966361791811">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="as_06_0201__ad99ff23668e34c8daf7da9183db829a7">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="as_06_0201__p166542512353">Specifies a disk type. The options are as follows:</p>
<ul id="as_06_0201__ul1050113813519"><li id="as_06_0201__li36421649143518"><strong id="as_06_0201__b842352706182939">DATA</strong>: indicates a data disk.</li><li id="as_06_0201__li1501143818350"><strong id="as_06_0201__b842352706182952">SYS</strong>: indicates a system disk.<div class="note" id="as_06_0201__note13338111214422"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="as_06_0201__p15338151274217">System disk encryption is not supported.</p>
</div></div>
</li></ul>
</td>
</tr>
<tr id="as_06_0201__row49633994175534"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="as_06_0201__p60930547175534">dedicated_storage_id</p>
</td>
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="as_06_0201__p36427236175534">No</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="as_06_0201__p64924998175534">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="as_06_0201__p24433472175534">Specifies a DSS device ID for creating an ECS disk.</p>
<div class="note" id="as_06_0201__note5234646218286"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="as_06_0201__p135611818286">Specify DSS devices for all disks in an AS configuration or not. If DSS devices are specified, all the data stores must belong to the same AZ, and the disk types supported by a DSS device for a disk must be the same as the <strong id="as_06_0201__b842352706162857">volume_type</strong> value.</p>
</div></div>
</td>
</tr>
<tr id="as_06_0201__row58688944175538"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="as_06_0201__p56184018175538">data_disk_image_id</p>
</td>
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="as_06_0201__p54611596175538">No</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="as_06_0201__p61463175175538">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="as_06_0201__p88867165126">Specifies the ID of a data disk image used to export data disks of an ECS.</p>
</td>
</tr>
<tr id="as_06_0201__row3824652814281"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="as_06_0201__p1096104114281">snapshot_id</p>
</td>
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="as_06_0201__p1542916014281">No</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="as_06_0201__p4180241014281">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="as_06_0201__p3055206514281">Specifies the disk backup snapshot ID for restoring the system disk and data disks using a full-ECS backup when a full-ECS image is used.</p>
<div class="note" id="as_06_0201__note829347714332"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="as_06_0201__p753243314332">Each disk in an AS configuration must correspond to a disk backup in the full-ECS backup by <strong id="as_06_0201__b13727599185528">snapshot_id</strong>.</p>
</div></div>
</td>
</tr>
<tr id="as_06_0201__row1774725017296"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="as_06_0201__p12748155016294">metadata</p>
</td>
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="as_06_0201__p64975104309">No</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="as_06_0201__p197488507290"><a href="#as_06_0201__table24491331595">metadata</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="as_06_0201__p6748135052911">Specifies the metadata for creating disks. For details, see <a href="#as_06_0201__table24491331595">Table 5</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table24491331595"></a><a name="table24491331595"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table24491331595" frame="border" border="1" rules="all"><caption><b>Table 5 </b><strong id="as_06_0201__b1771482815316">metadata</strong> Field Description for Creating Disks</caption><thead align="left"><tr id="as_06_0201__row64501831795"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.2.1.4.2.5.1.1"><p id="as_06_0201__p445012311913"><strong id="as_06_0201__b1928321516472">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.2.1.4.2.5.1.2"><p id="as_06_0201__p7450431292">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.2.1.4.2.5.1.3"><p id="as_06_0201__p164501831490">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42%" id="mcps1.3.3.2.1.4.2.5.1.4"><p id="as_06_0201__p164505318913"><strong id="as_06_0201__b90161613473">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row104511531798"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.4.2.5.1.1 "><p id="as_06_0201__p84519311991">__system__encrypted</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.4.2.5.1.2 "><p id="as_06_0201__p945123112920">No</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.4.2.5.1.3 "><p id="as_06_0201__p1545163119918">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.4.2.5.1.4 "><p id="as_06_0201__p134511731497">Specifies encryption in <strong id="as_06_0201__b022414329338">metadata</strong>. The value can be <strong id="as_06_0201__b1122512327339">0</strong> (encryption disabled) or <strong id="as_06_0201__b1722533219332">1</strong> (encryption enabled).</p>
<p id="as_06_0201__p194512312091">If this parameter does not exist, the disk will not be encrypted by default.</p>
<div class="note" id="as_06_0201__note15663191162717"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="as_06_0201__p1666341172714">System disk encryption is not supported.</p>
</div></div>
</td>
</tr>
<tr id="as_06_0201__row104521331796"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.4.2.5.1.1 "><p id="as_06_0201__p345233110911">__system__cmkid</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.4.2.5.1.2 "><p id="as_06_0201__p164526314915">No</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.4.2.5.1.3 "><p id="as_06_0201__p1545219314916">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.4.2.5.1.4 "><p id="as_06_0201__p445210311990">Specifies the CMK ID, which indicates encryption in <strong id="as_06_0201__b133078414409">metadata</strong>. This parameter is used with <strong id="as_06_0201__b5308184144018">__system__encrypted</strong>.</p>
<div class="note" id="as_06_0201__note19452031492"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="as_06_0201__ul2653439114516"><li id="as_06_0201__li13653139134520">For details about how to obtain the CMK ID, see "Querying the List of CMKs" in <em id="as_06_0201__i5153132415592">Key Management Service API Reference</em>.</li><li id="as_06_0201__li1265353924514">System disk encryption is not supported.</li></ul>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table3396587291242"></a><a name="table3396587291242"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table3396587291242" frame="border" border="1" rules="all"><caption><b>Table 6 </b><strong id="as_06_0201__b154941035104019">personality</strong> field description</caption><thead align="left"><tr id="as_06_0201__r6a6a3c4936384d2eb9ba188a74782106"><th align="left" class="cellrowborder" valign="top" width="20.588235294117645%" id="mcps1.3.3.2.1.5.2.5.1.1"><p id="as_06_0201__ae52b461d7be445538179892250c454d3">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.568627450980394%" id="mcps1.3.3.2.1.5.2.5.1.2"><p id="as_06_0201__p5313561291856">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.686274509803921%" id="mcps1.3.3.2.1.5.2.5.1.3"><p id="as_06_0201__a705bd328b65e40609a925747b9b9ca19">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.15686274509804%" id="mcps1.3.3.2.1.5.2.5.1.4"><p id="as_06_0201__ab09337e1921045d0b2301b9433de15a4">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__r1cc46c416c9344afb67c18b2db04eb1e"><td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.5.2.5.1.1 "><p id="as_06_0201__ab1fd3be8a3b14d9b928d9be020d9cce1">path</p>
</td>
<td class="cellrowborder" valign="top" width="21.568627450980394%" headers="mcps1.3.3.2.1.5.2.5.1.2 "><p id="as_06_0201__p901735291856">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.686274509803921%" headers="mcps1.3.3.2.1.5.2.5.1.3 "><p id="as_06_0201__a1fd06f02d7fa4bb78375adaac8c7c83a">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.15686274509804%" headers="mcps1.3.3.2.1.5.2.5.1.4 "><p id="as_06_0201__af9b3fb4e3d3646689b1a9eaa9272e59f">Specifies the path of the injected file.</p>
<ul id="as_06_0201__ul174946235321"><li id="as_06_0201__li3494182310329">For Linux OSs, specify the path, for example, <strong id="as_06_0201__b881049913163448">/etc/foo.txt</strong>, for storing the injected file.</li><li id="as_06_0201__li1449432353214">For Windows, the injected file is automatically stored in the root directory of drive C. You only need to specify the file name, for example, <strong id="as_06_0201__b19455189172515">foo</strong>. The file name contains only letters and digits.</li></ul>
</td>
</tr>
<tr id="as_06_0201__r65c4416353bf4344af2fe51be83fdf9b"><td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.5.2.5.1.1 "><p id="as_06_0201__a23bd88691709477a978e415c1a0fe6da">content</p>
</td>
<td class="cellrowborder" valign="top" width="21.568627450980394%" headers="mcps1.3.3.2.1.5.2.5.1.2 "><p id="as_06_0201__p5931687991856">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.686274509803921%" headers="mcps1.3.3.2.1.5.2.5.1.3 "><p id="as_06_0201__ac90e2333d4f0408ab96039ff47c0b6cd">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.15686274509804%" headers="mcps1.3.3.2.1.5.2.5.1.4 "><p id="as_06_0201__aaa250f7a45114ceaa046e414c3e414aa">Specifies the content of the injected file.</p>
<p id="as_06_0201__p19417814183420">The value must be the information after the content of the injected file is encoded using Base64.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table105840310312"></a><a name="table105840310312"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table105840310312" frame="border" border="1" rules="all"><caption><b>Table 7 </b><strong id="as_06_0201__b3960746154017">public_ip</strong> field description</caption><thead align="left"><tr id="as_06_0201__row2228809910312"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.2.1.6.2.5.1.1"><p id="as_06_0201__p6050559410312">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.2.1.6.2.5.1.2"><p id="as_06_0201__p200607310312">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.2.1.6.2.5.1.3"><p id="as_06_0201__p2827424910312">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42%" id="mcps1.3.3.2.1.6.2.5.1.4"><p id="as_06_0201__p851285010312">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row1845221910312"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.6.2.5.1.1 "><p id="as_06_0201__p1823473210312">eip</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.6.2.5.1.2 "><p id="as_06_0201__p61831810312">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.6.2.5.1.3 "><p id="as_06_0201__p260112527395"><a href="#as_06_0201__table35964662103154">eip</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.6.2.5.1.4 "><p id="as_06_0201__p3025472310312">Specifies the EIP automatically assigned to the ECS. For details, see <a href="#as_06_0201__table35964662103154">Table 8</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table35964662103154"></a><a name="table35964662103154"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table35964662103154" frame="border" border="1" rules="all"><caption><b>Table 8 </b><strong id="as_06_0201__b19381165864014">eip</strong> field description</caption><thead align="left"><tr id="as_06_0201__row62589803103154"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.2.1.7.2.5.1.1"><p id="as_06_0201__p36609296103154">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.2.1.7.2.5.1.2"><p id="as_06_0201__p12562985103154">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.2.1.7.2.5.1.3"><p id="as_06_0201__p10968863103154">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42%" id="mcps1.3.3.2.1.7.2.5.1.4"><p id="as_06_0201__p16062681103154">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row26008767103154"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.7.2.5.1.1 "><p id="as_06_0201__p26335419103154">ip_type</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.7.2.5.1.2 "><p id="as_06_0201__p52794162103154">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.7.2.5.1.3 "><p id="as_06_0201__p48468750103154">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.7.2.5.1.4 "><p id="as_06_0201__p11217393102451">Specifies the EIP type.</p>
<p id="as_06_0201__p1468485318810">Enumerated value of the IP address type: 5_bgp (indicates dynamic BGP)</p>
</td>
</tr>
<tr id="as_06_0201__row5044530610333"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.7.2.5.1.1 "><p id="as_06_0201__p5953796110333">bandwidth</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.2.1.7.2.5.1.2 "><p id="as_06_0201__p5784552510333">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.7.2.5.1.3 "><p id="as_06_0201__p5497590910333"><a href="#as_06_0201__table18754238103344">bandwidth</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.3.2.1.7.2.5.1.4 "><p id="as_06_0201__p2386361710333">Specifies the bandwidth of an IP address. For details, see <a href="#as_06_0201__table18754238103344">Table 9</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table18754238103344"></a><a name="table18754238103344"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table18754238103344" frame="border" border="1" rules="all"><caption><b>Table 9 </b><strong id="as_06_0201__b10262111018419">bandwidth</strong> field description</caption><thead align="left"><tr id="as_06_0201__row11404567103344"><th align="left" class="cellrowborder" valign="top" width="20.588235294117645%" id="mcps1.3.3.2.1.8.2.5.1.1"><p id="as_06_0201__p51354766103344">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.588235294117645%" id="mcps1.3.3.2.1.8.2.5.1.2"><p id="as_06_0201__p66095344103344">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.666666666666668%" id="mcps1.3.3.2.1.8.2.5.1.3"><p id="as_06_0201__p52122663103344">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.15686274509804%" id="mcps1.3.3.2.1.8.2.5.1.4"><p id="as_06_0201__p61186203103344">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row57135411103344"><td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.8.2.5.1.1 "><p id="as_06_0201__p64565592103344">size</p>
</td>
<td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.8.2.5.1.2 "><p id="as_06_0201__p16576173511573">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.666666666666668%" headers="mcps1.3.3.2.1.8.2.5.1.3 "><p id="as_06_0201__p23701607103344">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="42.15686274509804%" headers="mcps1.3.3.2.1.8.2.5.1.4 "><p id="as_06_0201__p28107425418">Specifies the bandwidth (Mbit/s). The value ranges from 1 to 500.</p>
<div class="note" id="as_06_0201__note193569549262"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="as_06_0201__ul889214120276"><li id="as_06_0201__li145515115437">The specific range may vary depending on the configuration in each region. You can see the bandwidth range of each region on the management console.</li><li id="as_06_0201__li555051144311">The minimum unit for bandwidth varies depending on the bandwidth range.<ul id="as_06_0201__ul62431057184317"><li id="as_06_0201__li9895191292715">The minimum unit is 1 Mbit/s if the allowed bandwidth size ranges from 0 to 300 Mbit/s (with 300 Mbit/s included).</li><li id="as_06_0201__li1838511792813">The minimum unit is 50 Mbit/s if the allowed bandwidth size ranges 300 Mbit/s to 500 Mbit/s (with 500 Mbit/s included).</li></ul>
</li></ul>
</div></div>
</td>
</tr>
<tr id="as_06_0201__row31493547103344"><td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.8.2.5.1.1 "><p id="as_06_0201__p840519103344">share_type</p>
</td>
<td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.8.2.5.1.2 "><p id="as_06_0201__p973211103344">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.666666666666668%" headers="mcps1.3.3.2.1.8.2.5.1.3 "><p id="as_06_0201__p11721296103344">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.15686274509804%" headers="mcps1.3.3.2.1.8.2.5.1.4 "><p id="as_06_0201__p44928433102758">Specifies the bandwidth sharing type.</p>
<p id="as_06_0201__p737015157592">Enumerated values of the sharing type:</p>
<ul id="as_06_0201__ul2738203453114"><li id="as_06_0201__li18441204712319"><strong id="as_06_0201__b842352706183913">PER</strong>: dedicated</li></ul>
<p id="as_06_0201__p62203121153252">Only dedicated bandwidth is available.</p>
</td>
</tr>
<tr id="as_06_0201__row46301101103436"><td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.8.2.5.1.1 "><p id="as_06_0201__p59401706103436">charging_mode</p>
</td>
<td class="cellrowborder" valign="top" width="20.588235294117645%" headers="mcps1.3.3.2.1.8.2.5.1.2 "><p id="as_06_0201__p198831642801">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.666666666666668%" headers="mcps1.3.3.2.1.8.2.5.1.3 "><p id="as_06_0201__p33424546103436">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.15686274509804%" headers="mcps1.3.3.2.1.8.2.5.1.4 "><p id="as_06_0201__p11173478141019">Specifies the bandwidth billing mode.</p>
<p id="as_06_0201__p19258123004916"><strong id="as_06_0201__b842352706184041">traffic</strong>: billed by traffic.</p>
<p id="as_06_0201__p672818222397">If the parameter value is out of the preceding options, creating the ECS will fail.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table6119722495435"></a><a name="table6119722495435"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table6119722495435" frame="border" border="1" rules="all"><caption><b>Table 10 </b><strong id="as_06_0201__b125972194116">metadata</strong> field description</caption><thead align="left"><tr id="as_06_0201__row5794517795435"><th align="left" class="cellrowborder" valign="top" width="19.79%" id="mcps1.3.3.2.1.9.2.5.1.1"><p id="as_06_0201__p6304778595435">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.920000000000002%" id="mcps1.3.3.2.1.9.2.5.1.2"><p id="as_06_0201__p659697895435">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.469999999999999%" id="mcps1.3.3.2.1.9.2.5.1.3"><p id="as_06_0201__p6459317995435">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="52.82%" id="mcps1.3.3.2.1.9.2.5.1.4"><p id="as_06_0201__p6466497295435">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row337137495435"><td class="cellrowborder" valign="top" width="19.79%" headers="mcps1.3.3.2.1.9.2.5.1.1 "><p id="as_06_0201__p460751359557">admin_pass</p>
</td>
<td class="cellrowborder" valign="top" width="12.920000000000002%" headers="mcps1.3.3.2.1.9.2.5.1.2 "><p id="as_06_0201__p696135712406">No</p>
</td>
<td class="cellrowborder" valign="top" width="14.469999999999999%" headers="mcps1.3.3.2.1.9.2.5.1.3 "><p id="as_06_0201__p406410849557">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.82%" headers="mcps1.3.3.2.1.9.2.5.1.4 "><p id="as_06_0201__p12995174416219">Specifies the initial login password of the administrator account for logging in to an ECS using password authentication. The Linux administrator is <strong id="as_06_0201__b2039993678">root</strong>, and the Windows administrator is <strong id="as_06_0201__b803663488">Administrator</strong>.</p>
<div class="p" id="as_06_0201__p578131415383">Password complexity requirements:<ul id="as_06_0201__ul52104519219"><li id="as_06_0201__li1025452217">Consists of 8 to 26 characters.</li><li id="as_06_0201__li142114510215">Contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters !@$%^-_=+[{}]:,./?</li><li id="as_06_0201__li15244511217">The password cannot contain the username or the username in reversed order.</li><li id="as_06_0201__li192114592111">The Windows ECS password cannot contain the username, the username in reversed order, or more than two consecutive characters in the username.</li></ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0201__table144645712211"></a><a name="table144645712211"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table144645712211" frame="border" border="1" rules="all"><caption><b>Table 11 </b><strong id="as_06_0201__b6699296094725">security_groups</strong> field description</caption><thead align="left"><tr id="as_06_0201__row9451145752211"><th align="left" class="cellrowborder" valign="top" width="21.568627450980394%" id="mcps1.3.3.2.1.10.2.5.1.1"><p id="as_06_0201__p98056272236">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.607843137254903%" id="mcps1.3.3.2.1.10.2.5.1.2"><p id="as_06_0201__p48061927162310">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.666666666666668%" id="mcps1.3.3.2.1.10.2.5.1.3"><p id="as_06_0201__p1080610274234">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.15686274509804%" id="mcps1.3.3.2.1.10.2.5.1.4"><p id="as_06_0201__p280619278231">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row12454155742210"><td class="cellrowborder" valign="top" width="21.568627450980394%" headers="mcps1.3.3.2.1.10.2.5.1.1 "><p id="as_06_0201__p8806202702310">id</p>
</td>
<td class="cellrowborder" valign="top" width="19.607843137254903%" headers="mcps1.3.3.2.1.10.2.5.1.2 "><p id="as_06_0201__p118065277232">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.666666666666668%" headers="mcps1.3.3.2.1.10.2.5.1.3 "><p id="as_06_0201__p12806132742318">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.15686274509804%" headers="mcps1.3.3.2.1.10.2.5.1.4 "><p id="as_06_0201__p180615275233">Specifies the ID of the security group.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="as_06_0201__ul5769005"><li id="as_06_0201__li51921052">Example request<div class="p" id="as_06_0201__p107114217241"><a name="as_06_0201__li51921052"></a><a name="li51921052"></a>This example shows how to create an AS configuration with name <strong id="as_06_0201__b842352706185157">as-config-tlzp</strong>, image ID <strong id="as_06_0201__b842352706185212">627a1223-2ca3-46a7-8d5f-7aef22c74ee6</strong>, flavor ID <strong id="as_06_0201__b842352706185227">s3.xlarge.4</strong>, 40 GB SATA system disk, and SSH key name <strong id="as_06_0201__b842352706185259">100vm_key</strong>.<pre class="screen" id="as_06_0201__screen2314103917246">POST https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_configuration
{
"scaling_configuration_name": "as-config-tlzq",
"instance_config": {
"flavorRef": "s3.xlarge.4",
"imageRef": "627a1223-2ca3-46a7-8d5f-7aef22c74ee6",
"disk": [
{
"size": 40,
"volume_type": "SATA",
"disk_type": "SYS"
}
],
"key_name": "100vm_key" ,
"security_groups": [{
"id": "6c22a6c0-b5d2-4a84-ac56-51090dcc33be"
}],
"multi_flavor_priority_policy": "PICK_FIRST"
}
}
</pre>
</div>
</li></ul>
</div>
<div class="section" id="as_06_0201__section15686020"><h4 class="sectiontitle">Response Message</h4><ul id="as_06_0201__ul21202951"><li id="as_06_0201__li56608836">Response parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table39717481" frame="border" border="1" rules="all"><caption><b>Table 12 </b>Response parameters</caption><thead align="left"><tr id="as_06_0201__row15677883"><th align="left" class="cellrowborder" valign="top" width="32%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="as_06_0201__p61948991"><strong id="as_06_0201__b1212643914012">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="as_06_0201__p51812368">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="as_06_0201__p36052245"><strong id="as_06_0201__b17344194114015">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row34550710"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="as_06_0201__p47144157">scaling_configuration_id</p>
</td>
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="as_06_0201__p60580335">String</p>
</td>
<td class="cellrowborder" valign="top" width="49%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="as_06_0201__p8060118">Specifies the AS configuration ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="as_06_0201__ul48889850"><li id="as_06_0201__li37355470">Example response<pre class="screen" id="as_06_0201__screen365114759330">{
"scaling_configuration_id": "f8327883-6a07-4497-9a61-68c03e8e72a2"
}</pre>
</li></ul>
</div>
<div class="section" id="as_06_0201__section6956456"><h4 class="sectiontitle">Returned Values</h4><ul id="as_06_0201__ul15537542"><li id="as_06_0201__li5620158">Normal<p id="as_06_0201__p50581426"><a name="as_06_0201__li5620158"></a><a name="li5620158"></a>200</p>
</li><li id="as_06_0201__li52579650">Abnormal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0201__table3454809" frame="border" border="1" rules="all"><thead align="left"><tr id="as_06_0201__row59223347"><th align="left" class="cellrowborder" valign="top" width="37%" id="mcps1.3.5.2.2.1.1.3.1.1"><p id="as_06_0201__p32361769">Returned Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="63%" id="mcps1.3.5.2.2.1.1.3.1.2"><p id="as_06_0201__p4057632">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0201__row60232767"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p47015983">400 Bad Request</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p50198296">The server failed to process the request.</p>
</td>
</tr>
<tr id="as_06_0201__row49131481"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p20226985">401 Unauthorized</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p27773061">You must enter the username and password to access the requested page.</p>
</td>
</tr>
<tr id="as_06_0201__row48630964"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p46793998">403 Forbidden</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p32217513">You are forbidden to access the requested page.</p>
</td>
</tr>
<tr id="as_06_0201__row21522166"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p65573909">404 Not Found</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p9886408">The server could not find the requested page.</p>
</td>
</tr>
<tr id="as_06_0201__row21868813"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p26543418">405 Method Not Allowed</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p2533231">You are not allowed to use the method specified in the request.</p>
</td>
</tr>
<tr id="as_06_0201__row22799085"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p34786562">406 Not Acceptable</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p66248115">The response generated by the server could not be accepted by the client.</p>
</td>
</tr>
<tr id="as_06_0201__row59362130"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p43603258">407 Proxy Authentication Required</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p42202994">You must use the proxy server for authentication to process the request.</p>
</td>
</tr>
<tr id="as_06_0201__row44282627"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p30123063">408 Request Timeout</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p24049039">The request timed out.</p>
</td>
</tr>
<tr id="as_06_0201__row15114764"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p16336406">409 Conflict</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p48180537">The request could not be processed due to a conflict.</p>
</td>
</tr>
<tr id="as_06_0201__row30971651"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p25675773">500 Internal Server Error</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p66471715">Failed to complete the request because of an internal service error.</p>
</td>
</tr>
<tr id="as_06_0201__row61374531"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p5281111">501 Not Implemented</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p25116876">Failed to complete the request because the server does not support the requested function.</p>
</td>
</tr>
<tr id="as_06_0201__row24725298"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p56592155">502 Bad Gateway</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p20561848">Failed to complete the request because the request is invalid.</p>
</td>
</tr>
<tr id="as_06_0201__row50838910"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p24311045">503 Service Unavailable</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p23037620">Failed to complete the request because the system is unavailable.</p>
</td>
</tr>
<tr id="as_06_0201__row6011995"><td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0201__p17209562">504 Gateway Timeout</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0201__p51797270">A gateway timeout error occurred.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="as_06_0201__section17669131616110"><h4 class="sectiontitle">Error Codes</h4><p id="as_06_0201__p172692548116">See <a href="as_07_0102.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="as_06_0200.html">AS Configurations</a></div>
</div>
</div>