doc-exports/docs/as/api-ref/as_06_0408.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

348 lines
31 KiB
HTML

<a name="as_06_0408"></a><a name="as_06_0408"></a>
<h1 class="topictitle1">Querying an AS Policy</h1>
<div id="body66726223"><div class="section" id="as_06_0408__section54800025"><h4 class="sectiontitle">Function</h4><p id="as_06_0408__p36115021">This API is used to query details about a specified AS policy by policy ID.</p>
</div>
<div class="section" id="as_06_0408__section23438178"><h4 class="sectiontitle">URI</h4><p id="as_06_0408__p56366974">GET /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0408__table2322177" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="as_06_0408__row50916422"><th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.2.3.2.5.1.1"><p id="as_06_0408__p30589524"><strong id="as_06_0408__b16740952175715">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.2.3.2.5.1.2"><p id="as_06_0408__p61832419">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.3.2.5.1.3"><p id="as_06_0408__p42370075">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42%" id="mcps1.3.2.3.2.5.1.4"><p id="as_06_0408__p9424035"><strong id="as_06_0408__b16568155313573">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0408__row25149347"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0408__p23831236">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0408__p51281965">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0408__p60198535">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0408__p36520930">Specifies the project ID.</p>
</td>
</tr>
<tr id="as_06_0408__row62644428"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0408__p41033878">scaling_policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0408__p35409804">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0408__p49621912">String</p>
</td>
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0408__p59951903">Specifies the AS policy ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="as_06_0408__section9617010"><h4 class="sectiontitle">Request Message</h4><ul id="as_06_0408__ul9007507"><li id="as_06_0408__li56913160">Request parameters<p id="as_06_0408__p60400126203515"><a name="as_06_0408__li56913160"></a><a name="li56913160"></a>None</p>
</li><li id="as_06_0408__li3640858994017">Example request<p id="as_06_0408__p15614505203519"><a name="as_06_0408__li3640858994017"></a><a name="li3640858994017"></a>This example shows how to query details about the AS policy with ID <strong id="as_06_0408__b174717110477">fd7d63ce-8f5c-443e-b9a0-bef9386b23b3</strong>.</p>
<pre class="screen" id="as_06_0408__screen754110614315">GET https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_policy/fd7d63ce-8f5c-443e-b9a0-bef9386b23b3</pre>
</li></ul>
</div>
<div class="section" id="as_06_0408__section19444226"><h4 class="sectiontitle">Response Message</h4><ul id="as_06_0408__ul31287108"><li id="as_06_0408__li13148517">Response parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0408__table51227795" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="as_06_0408__row28165387"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="as_06_0408__p66803900"><strong id="as_06_0408__b197965695718">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="as_06_0408__p42406858">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="as_06_0408__p12403484"><strong id="as_06_0408__b0937145635719">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0408__row65158171"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="as_06_0408__p43320494">scaling_policy</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="as_06_0408__a4c03d226ca78442f99e13b8d363cd51d"><a href="#as_06_0408__t2a6ea1b88928469f849918033ac9b323">scaling_policy</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="as_06_0408__p19726002">Specifies details about the AS policy. For details, see <a href="#as_06_0408__t2a6ea1b88928469f849918033ac9b323">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0408__t2a6ea1b88928469f849918033ac9b323"></a><a name="t2a6ea1b88928469f849918033ac9b323"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0408__t2a6ea1b88928469f849918033ac9b323" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="as_06_0408__b62239319183">scaling_policy</strong> field description</caption><thead align="left"><tr id="as_06_0408__re7fc67a6f30742f184c131a457e53ca5"><th align="left" class="cellrowborder" valign="top" width="26.75%" id="mcps1.3.4.2.1.2.2.4.1.1"><p id="as_06_0408__a2330d17810fb4b43a6ebbe9d04b2aa3b">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.3%" id="mcps1.3.4.2.1.2.2.4.1.2"><p id="as_06_0408__aab479e40ee0346cb8a8b030caeeb0f84">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.949999999999996%" id="mcps1.3.4.2.1.2.2.4.1.3"><p id="as_06_0408__ae40c31b78ab94c12a1a91a7295be29fb">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0408__r1683eaa1734e43f5a12c575711758d16"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__a6abf6c7be3604db9b6c46839194a3a15">scaling_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__ad538eb3174dc4989a6c0faf284230a81">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a45b014225549462381f627ea62b55386">Specifies the AS group ID.</p>
</td>
</tr>
<tr id="as_06_0408__re13fedab1aec49069bf8acce2001bbe9"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__a64d074b4826a446d99eebfaa0461c1c2">scaling_policy_name</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__ac6391aa790b344d382bd9c6d90451154">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a4f14d62c607845018ba6ca369d5db676">Specifies the AS policy name.</p>
<p id="as_06_0408__p759283241212">Supports fuzzy search. </p>
</td>
</tr>
<tr id="as_06_0408__r045fa9d1df9340e1847f6d9d49fbe56c"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__a19c5fc7554914d9dbc27ad969f9f2010">scaling_policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__a7463801383b6416c99eb0ea94f28e0a3">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a92c30c4499884aa4a3e2ee2436960112">Specifies the AS policy ID.</p>
</td>
</tr>
<tr id="as_06_0408__rcd972a9b2e6444b18a456387618e6186"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__ab5acea3930d44329bd0c741c06efb707">policy_status</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__ad495ddbab5954c219019266b1440a8f5">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a486f2eb901a04e03b7dcbca9913aa531">Specifies the AS policy status.</p>
<ul id="as_06_0408__u37a87bcee6664e788c30239a9d8bd359"><li id="as_06_0408__l4483cd7a5a904f29b0b331f9decfc448"><strong id="as_06_0408__b146004133475">INSERVICE</strong>: The AS policy is enabled.</li><li id="as_06_0408__lc65b917a422446dd8abf05d838020151"><strong id="as_06_0408__b119120160479">PAUSED</strong>: The AS policy is disabled.</li><li id="as_06_0408__li18963775142036"><strong id="as_06_0408__b168144171473">EXECUTING</strong>: The AS policy is being executed.</li></ul>
</td>
</tr>
<tr id="as_06_0408__r1227084f4790495d98311413452978ca"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__a5acc905fa779462db9ce34d404d166dc">scaling_policy_type</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__a53e43ad265c04294994adbbd71a4240a">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a74e06dc4d9d0421bad729ced813c2fbf">Specifies the AS policy type.</p>
<ul id="as_06_0408__ua99da6c954d14b9f8e73af19c844fac9"><li id="as_06_0408__l45422e4f822946d7966e6cddbc896f0e"><strong>ALARM</strong>: indicates that the scaling action is triggered by an alarm. A value is returned for <strong>alarm_id</strong>, and no value is returned for <strong>scheduled_policy</strong>.</li><li id="as_06_0408__la4172620632647b8a4a815f09dc0e3d4"><strong id="as_06_0408__b842352706174318">SCHEDULED</strong>: indicates that the scaling action is triggered as scheduled. A value is returned for <strong id="as_06_0408__b842352706174359">scheduled_policy</strong>, and no value is returned for <strong id="as_06_0408__b842352706174456">alarm_id</strong>, <strong id="as_06_0408__b84235270617451">recurrence_type</strong>, <strong id="as_06_0408__b84235270617457">recurrence_value</strong>, <strong id="as_06_0408__b842352706174512">start_time</strong>, or <strong id="as_06_0408__b842352706174516">end_time</strong>.</li><li id="as_06_0408__l651ec89cd75b493ea99524bbbaa4cc06"><strong id="as_06_0408__b1376210442">RECURRENCE</strong>: indicates that the scaling action is triggered periodically. Values are returned for <strong id="as_06_0408__b547137690">scheduled_policy</strong>, <strong id="as_06_0408__b1121671907174638">recurrence_type</strong>, <strong id="as_06_0408__b413073752174638">recurrence_value</strong>, <strong id="as_06_0408__b1481332545174638">start_time</strong>, and <strong id="as_06_0408__b331387069174638">end_time</strong>, and no value is returned for <strong id="as_06_0408__b1470370740">alarm_id</strong>.</li></ul>
</td>
</tr>
<tr id="as_06_0408__re6c8601d7735402289d3df1aa513dd38"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__ae4c58dc938a244639096cf46c69ea43c">alarm_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__a37e95fc8ec0e48dc95603de5d5f327da">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a623ce02737344aeab494b0d1af22e05e">Specifies the alarm ID.</p>
</td>
</tr>
<tr id="as_06_0408__r4076ad4eb9d04e35ab070a631c2933a1"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__ae25c25829e9e4e909498fa48248176dc">scheduled_policy</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__p94609281115"><a href="#as_06_0408__t651e0a18c39047e8b0a9be40295e858c">scheduled_policy</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a181fa2e6e6cd40f7a909d92a134fd7e1">Specifies the periodic or scheduled AS policy. For details, see <a href="#as_06_0408__t651e0a18c39047e8b0a9be40295e858c">Table 4</a>.</p>
</td>
</tr>
<tr id="as_06_0408__r12e92bd949a14326a63ce9d7fd818a29"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__a1b0d050a78c24b6eb7523a36622f423f">scaling_policy_action</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__p167395571418"><a href="#as_06_0408__te023df2ee8be4d3b801cdd19ea6c9844">scaling_policy_action</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__aed4902e2ba7445f7be377a690a18fd3a">Specifies the scaling action of the AS policy. For details, see <a href="#as_06_0408__te023df2ee8be4d3b801cdd19ea6c9844">Table 5</a>.</p>
</td>
</tr>
<tr id="as_06_0408__rc6a22a7abdae451eb4870e4e1a0b0246"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__af63d2fb7c0ee4d7ebdd03a38d9a4e133">cool_down_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__a28e9d3c14d4b442e82f14e6001fb23cd">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a3d33cb93dd934726b19effc167b03466">Specifies the cooldown period (s).</p>
</td>
</tr>
<tr id="as_06_0408__r0e00840d49e84352b06ead2720ff0097"><td class="cellrowborder" valign="top" width="26.75%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="as_06_0408__a221a388b4c184276ab6e809b0393fd34">create_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="as_06_0408__a8b5669595594430cbc04610bc6c7709b">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.949999999999996%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="as_06_0408__a591a730d8d71490f902f01d310f929d0">Specifies the time when an AS policy was created. The time format complies with UTC.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0408__t651e0a18c39047e8b0a9be40295e858c"></a><a name="t651e0a18c39047e8b0a9be40295e858c"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0408__t651e0a18c39047e8b0a9be40295e858c" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="as_06_0408__b33701191753">scheduled_policy</strong> field description</caption><thead align="left"><tr id="as_06_0408__r70c860c3c45345fab0a3c5259a71c71a"><th align="left" class="cellrowborder" valign="top" width="26.57%" id="mcps1.3.4.2.1.3.2.4.1.1"><p id="as_06_0408__aa6989ce6997340d198939fde85c773a1">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.3%" id="mcps1.3.4.2.1.3.2.4.1.2"><p id="as_06_0408__a9380e820b72c4d2eaa2941846ffd7b37">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.13%" id="mcps1.3.4.2.1.3.2.4.1.3"><p id="as_06_0408__a7959c4611a6b4147b637a8638dfe5e77">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0408__re705198ad97743a3a1446f281bc76925"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="as_06_0408__acfd712cbb76e412b909d12ea3430db52">launch_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="as_06_0408__ac57bde3a2c304b888b6ac396e12672d1">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="as_06_0408__a775ce34e70a947da96cf6e2634aaa65d">Specifies the time when the scaling action is triggered. The time format complies with UTC.</p>
<ul id="as_06_0408__ua100c9e0b46e42e89dc8bd38e170207b"><li id="as_06_0408__l8e8a39a651894b17a8d682b0b0684318">If <strong>scaling_policy_type</strong> is set to <strong>SCHEDULED</strong>, the time format is <strong>YYYY-MM-DDThh:mmZ</strong>.</li><li id="as_06_0408__laa808b8cd2274345a50814246db7662d">If <strong>scaling_policy_type</strong> is set to <strong>RECURRENCE</strong>, the time format is <strong>hh:mm</strong>.</li></ul>
</td>
</tr>
<tr id="as_06_0408__r471a85b072ff47338816f1925a59cff5"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="as_06_0408__a465461555f5249238b99265def2f1bda">recurrence_type</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="as_06_0408__aece703b64e4f4d2c98a7772fab81572c">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="as_06_0408__a09ebdaa3cca44f1392b26efafc92f5af">Specifies the type of a periodically triggered scaling action.</p>
<ul id="as_06_0408__ul81291706320"><li id="as_06_0408__li20129902038"><strong>Daily</strong>: indicates that the scaling action is triggered once a day.</li><li id="as_06_0408__li512990830"><strong>Weekly</strong>: indicates that the scaling action is triggered once a week.</li><li id="as_06_0408__li01292012311"><strong>Monthly</strong>: indicates that the scaling action is triggered once a month.</li></ul>
</td>
</tr>
<tr id="as_06_0408__r9d4a440c2dd14f039b26e5a700cf1745"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="as_06_0408__a5c865f47baad4350bc82f3c1911fe134">recurrence_value</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="as_06_0408__a27b1d2ae1784451f8898e4c1eced139a">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="as_06_0408__a62556f878eae4c52aa03fb3b1c0c4d79">Specifies the frequency at which scaling actions are triggered.</p>
<ul id="as_06_0408__u8b21647227e64c63a492ba84439b7fe0"><li id="as_06_0408__l65d715677656401a9274af08f0d5eb01">If <strong>recurrence_type</strong> is set to <strong>Daily</strong>, the value is <strong>null</strong>, indicating that the scaling action is triggered once a day.</li><li id="as_06_0408__lcb46bb70207340fd85a8a0c059b5f72d">If <strong id="as_06_0408__b7604142111508">recurrence_type</strong> is set to <strong id="as_06_0408__b1760492116508">Weekly</strong>, the value ranges from <strong id="as_06_0408__b7605142117503">1</strong> (Sunday) to <strong id="as_06_0408__b10606192119501">7</strong> (Saturday). The digits refer to dates in each week and separated by a comma, such as <strong id="as_06_0408__b16606721205016">1,3,5</strong>.</li><li id="as_06_0408__l66f2eb5fb6194434819cd765810dcf9d">If <strong id="as_06_0408__b84235270617528">recurrence_type</strong> is set to <strong id="as_06_0408__b68182407503">Monthly</strong>, the value ranges from <strong id="as_06_0408__b15826104012508">1</strong> to <strong id="as_06_0408__b118271540105011">31</strong>. The digits refer to the dates in each month and separated by a comma, such as <strong id="as_06_0408__b0827940105018">1,10,13,28</strong>.</li></ul>
</td>
</tr>
<tr id="as_06_0408__r369c897c21b547b885c942156fea7164"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="as_06_0408__a1fbe8e6217d24874b4d1b5ff97855bb5">start_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="as_06_0408__a1d115943644144b8a94203800bb02a3f">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="as_06_0408__a9a8c3a3fbc8f4337966ef7af365e1fea">Specifies the start time of the scaling action triggered periodically. The time format complies with UTC.</p>
<p id="as_06_0408__a7783b07bff6c401ab7f33d7c4d461bc7">The time format is <strong>YYYY-MM-DDThh:mmZ</strong>.</p>
</td>
</tr>
<tr id="as_06_0408__r42dc7a56b9954ba9b8f8ef36981787c0"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="as_06_0408__ac12e80cb48d74a03a66f8f346d318a43">end_time</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="as_06_0408__a4aba6ac61ebc45bcb5629a79688d901c">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="as_06_0408__af79d800631784861b9121cf1b2f58470">Specifies the end time of the scaling action triggered periodically. The time format complies with UTC.</p>
<p id="as_06_0408__a2ceaf265f4014cb6abed4109aed80988">The time format is <strong>YYYY-MM-DDThh:mmZ</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="as_06_0408__te023df2ee8be4d3b801cdd19ea6c9844"></a><a name="te023df2ee8be4d3b801cdd19ea6c9844"></a><table cellpadding="4" cellspacing="0" summary="" id="as_06_0408__te023df2ee8be4d3b801cdd19ea6c9844" frame="border" border="1" rules="all"><caption><b>Table 5 </b><strong id="as_06_0408__b1337112412489">scaling_policy_action</strong> field description</caption><thead align="left"><tr id="as_06_0408__rc005130818ef46b88be52c086600191e"><th align="left" class="cellrowborder" valign="top" width="26.57%" id="mcps1.3.4.2.1.4.2.4.1.1"><p id="as_06_0408__a5befe73ee04d42baba72ffdaf366d0fd">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.3%" id="mcps1.3.4.2.1.4.2.4.1.2"><p id="as_06_0408__a8575ed2abca747368ed26f4cdce2485b">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.13%" id="mcps1.3.4.2.1.4.2.4.1.3"><p id="as_06_0408__a865b54f8ccb94e55aa1d4901167d50b1">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0408__rd13af8ee8bdb43fbbec69c5d477c2ab1"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.4.2.4.1.1 "><p id="as_06_0408__a732867155f88459191bfeac9ec81e99a">operation</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.4.2.4.1.2 "><p id="as_06_0408__a7a143b52935e4c7585c9f86d90b77021">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.4.2.4.1.3 "><p id="as_06_0408__ac324300c4cb34a45b4e0000493499503">Specifies the scaling action.</p>
<ul id="as_06_0408__ul539153022"><li id="as_06_0408__li1439753329"><strong id="as_06_0408__b5907351145015">ADD</strong>: adds specified number of instances to the AS group.</li><li id="as_06_0408__li10395531020"><strong id="as_06_0408__b447635814477">REMOVE</strong>: removes specified number of instances from the AS group.</li><li id="as_06_0408__li43914531226"><strong>SET</strong>: sets the number of instances in the AS group.</li></ul>
</td>
</tr>
<tr id="as_06_0408__r3366c359b5bc4333bdef2734871d66f5"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.4.2.4.1.1 "><p id="as_06_0408__a423f634b5eaf432b9a81eb771bcbd4d3">instance_number</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.4.2.4.1.2 "><p id="as_06_0408__ae29f514cb9844cccb25925cae2b198ad">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.4.2.4.1.3 "><p id="as_06_0408__ac0f067fd4e4f46e99b1dd442e975b2c3">Specifies the number of instances to be operated.</p>
</td>
</tr>
<tr id="as_06_0408__row20622786173125"><td class="cellrowborder" valign="top" width="26.57%" headers="mcps1.3.4.2.1.4.2.4.1.1 "><p id="as_06_0408__p29296277173128">instance_percentage</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.4.2.1.4.2.4.1.2 "><p id="as_06_0408__p24188207173128">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="55.13%" headers="mcps1.3.4.2.1.4.2.4.1.3 "><p id="as_06_0408__p13087733173128">Specifies the percentage of instances to be operated.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="as_06_0408__ul18958859"><li id="as_06_0408__li36412008">Example response<pre class="screen" id="as_06_0408__screen4471186995256">{
"scaling_policy": {
"scaling_policy_id": "fd7d63ce-8f5c-443e-b9a0-bef9386b23b3",
"scaling_group_id": "e5d27f5c-dd76-4a61-b4bc-a67c5686719a",
"scaling_policy_name": "Scheduled 1",
"scaling_policy_type": "SCHEDULED",
"scheduled_policy": {
"launch_time": "2015-07-24T01:21Z"
},
"cool_down_time": 300,
"scaling_policy_action": {
"operation": "REMOVE",
"instance_number": 1
},
"policy_status": "INSERVICE",
"create_time": "2015-07-24T01:09:30Z"
}
}</pre>
</li></ul>
</div>
<div class="section" id="as_06_0408__section40780307"><h4 class="sectiontitle">Returned Values</h4><ul id="as_06_0408__ul24726637"><li id="as_06_0408__li21213148">Normal<p id="as_06_0408__p56700610"><a name="as_06_0408__li21213148"></a><a name="li21213148"></a>200</p>
</li><li id="as_06_0408__li40543448">Abnormal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0408__table29346720" frame="border" border="1" rules="all"><thead align="left"><tr id="as_06_0408__row9393336"><th align="left" class="cellrowborder" valign="top" width="44.36%" id="mcps1.3.5.2.2.1.1.3.1.1"><p id="as_06_0408__p22662742">Returned Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.64%" id="mcps1.3.5.2.2.1.1.3.1.2"><p id="as_06_0408__p23742817">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0408__row44120000"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p16950236">400 Bad Request</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p30791836">The server failed to process the request.</p>
</td>
</tr>
<tr id="as_06_0408__row8691069"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p32887983">401 Unauthorized</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p46680953">You must enter the username and password to access the requested page.</p>
</td>
</tr>
<tr id="as_06_0408__row17475399"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p6221225">403 Forbidden</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p34157240">You are forbidden to access the requested page.</p>
</td>
</tr>
<tr id="as_06_0408__row38979707"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p3239736">404 Not Found</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p61092053">The server could not find the requested page.</p>
</td>
</tr>
<tr id="as_06_0408__row12957567"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p42930000">405 Method Not Allowed</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p54777941">You are not allowed to use the method specified in the request.</p>
</td>
</tr>
<tr id="as_06_0408__row23239422"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p3345069">406 Not Acceptable</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p2515205">The response generated by the server could not be accepted by the client.</p>
</td>
</tr>
<tr id="as_06_0408__row22636847"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p21645334">407 Proxy Authentication Required</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p8441658">You must use the proxy server for authentication to process the request.</p>
</td>
</tr>
<tr id="as_06_0408__row8866062"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p47062423">408 Request Timeout</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p53959953">The request timed out.</p>
</td>
</tr>
<tr id="as_06_0408__row15877536"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p11012038">409 Conflict</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p19559856">The request could not be processed due to a conflict.</p>
</td>
</tr>
<tr id="as_06_0408__row41820978"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p32056062">500 Internal Server Error</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p46404226">Failed to complete the request because of an internal service error.</p>
</td>
</tr>
<tr id="as_06_0408__row14984857"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p5813925">501 Not Implemented</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p1165950">Failed to complete the request because the server does not support the requested function.</p>
</td>
</tr>
<tr id="as_06_0408__row10493555"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p44671593">502 Bad Gateway</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p61629280">Failed to complete the request because the request is invalid.</p>
</td>
</tr>
<tr id="as_06_0408__row17792611"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p31915390">503 Service Unavailable</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p35009773">Failed to complete the request because the system is unavailable.</p>
</td>
</tr>
<tr id="as_06_0408__row46652504"><td class="cellrowborder" valign="top" width="44.36%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0408__p20756449">504 Gateway Timeout</p>
</td>
<td class="cellrowborder" valign="top" width="55.64%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0408__p3550770">A gateway timeout error occurred.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="as_06_0408__section17669131616110"><h4 class="sectiontitle">Error Codes</h4><p id="as_06_0408__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_0400.html">AS Policies</a></div>
</div>
</div>