forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: gtema <artem.goncharov@gmail.com> Co-committed-by: gtema <artem.goncharov@gmail.com>
285 lines
26 KiB
HTML
285 lines
26 KiB
HTML
<a name="en_topic_0093011510"></a><a name="en_topic_0093011510"></a>
|
|
|
|
<h1 class="topictitle1">Creating an IKE Policy</h1>
|
|
<div id="body40205569"><div class="section" id="en_topic_0093011510__section1108643"><h4 class="sectiontitle"><strong id="en_topic_0093011510__b842352706112523">Function</strong></h4><p id="en_topic_0093011510__p35425694">This interface is used to create an IKE policy.</p>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011510__section9977790"><h4 class="sectiontitle">URI</h4><p id="en_topic_0093011510__p695810616616">POST /v2.0/vpn/ikepolicies</p>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011510__section2894687"><h4 class="sectiontitle">Request Message</h4><p id="en_topic_0093011510__p10780424169"><a href="#en_topic_0093011510__table59280891">Table 1</a> describes the request parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="en_topic_0093011510__table59280891"></a><a name="table59280891"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011510__table59280891" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameters</caption><thead align="left"><tr id="en_topic_0093011510__row23389273"><th align="left" class="cellrowborder" valign="top" width="25.507449255074494%" id="mcps1.3.3.3.2.5.1.1"><p id="en_topic_0093011510__p15482964">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.3.3.2.5.1.2"><p id="en_topic_0093011510__p46160547">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.3.3.2.5.1.3"><p id="en_topic_0093011510__p48016815">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.91540845915409%" id="mcps1.3.3.3.2.5.1.4"><p id="en_topic_0093011510__p64156767">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en_topic_0093011510__row29315611"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p25754316">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p5724890">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p61062956">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p47152427">Specifies the IKE policy name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row21718662"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p14381235">auth_algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p24029376">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p222421">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p18016155">Specifies the authentication hash algorithm. The value can be <strong id="en_topic_0093011510__b842352706165820">md5</strong>, <strong id="en_topic_0093011510__b842352706165823">sha1</strong>, <strong id="en_topic_0093011510__b842352706165833">sha2-256</strong>, <strong id="en_topic_0093011510__b842352706165840">sha2-384</strong>, or <strong id="en_topic_0093011510__b842352706165851">sha2-512</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row27927672"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p47548937">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p26258720">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p46581538">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p15008249">Provides supplementary information about the IKE policy.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row856520"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p2269305">encryption_algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p49596018">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p57854556">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p55707487">Specifies the encryption algorithm. The value can be <strong id="en_topic_0093011510__b8423527061721">3des</strong>, <strong id="en_topic_0093011510__b84235270617211">aes-128</strong>, <strong id="en_topic_0093011510__b84235270617219">aes-192</strong>, or <strong id="en_topic_0093011510__b84235270617227">aes-256</strong>. The default value is <strong id="en_topic_0093011510__b84235270617239">aes-128</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row31605337"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p9895475">ike_version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p63335993">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p29941845">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p9370348">Specifies the IKE version. The value can be <strong id="en_topic_0093011510__b842352706212526">v1</strong> or <strong id="en_topic_0093011510__b842352706212529">v2</strong>. The default value is <strong id="en_topic_0093011510__b842352706212533">v1</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row17224274"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p52988976">lifetime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p64248638">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p36757156">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p24539659">Specifies the lifetime object of SA.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row19530342"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p38453873">pfs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p27755984">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p33642220">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p6588145672511">Specifies the PFS. The value can be <strong id="en_topic_0093011510__b85524134353">group1</strong>, <strong id="en_topic_0093011510__b65521130351">group2</strong>, <strong id="en_topic_0093011510__b6553713133512">group5</strong>, <strong id="en_topic_0093011510__b1355351353518">group14</strong>, <strong id="en_topic_0093011510__b16553111311357">group15</strong>, <strong id="en_topic_0093011510__b6553613103510">group16</strong>, <strong id="en_topic_0093011510__b11553181314358">group19</strong>, <strong id="en_topic_0093011510__b05551313173510">group20</strong>, <strong id="en_topic_0093011510__b55551313163511">group21</strong>, or <strong id="en_topic_0093011510__b5555113143514">disable</strong>.</p>
|
|
<p id="en_topic_0093011510__p489023122614">The default value is <strong id="en_topic_0093011510__b769615123514">group5</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row30443021"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p49965631">phase1_negotiation_mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p20684297">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p64815380">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p15554440">Specifies the IKE mode The default value is <strong id="en_topic_0093011510__b842352706213613">main</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row5772232"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p64897643">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p22217739">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p54806415">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p10134624">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row24102752"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p6165902">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p29676093">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p54953365">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p22037565">Specifies the lifetime value of the SA. The default unit is <strong id="en_topic_0093011510__b84235270610146">seconds</strong>. The default value is <strong id="en_topic_0093011510__b84235270610149">3600</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row64120358"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p26366538">units</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p55314834">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p51316583">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p63002544">Specifies the lifecycle unit. The default value is <strong id="en_topic_0093011510__b84235270610658">seconds</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row5607849"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011510__p51582645">ikepolicy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011510__p17444750">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011510__p3738651">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011510__p34395333">Specifies the IKE policy object.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="en_topic_0093011510__note5178145819618"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ol id="en_topic_0093011510__ol81052042714"><li id="en_topic_0093011510__li1311214420715">The <strong id="en_topic_0093011510__en-us_topic_0053740027_b84235270620329">project_id</strong> parameter is not supported.</li><li id="en_topic_0093011510__li411254479">The value of <strong id="en_topic_0093011510__b120501305120950">tenant_id</strong> can contain a maximum of 255 characters.</li><li id="en_topic_0093011510__li11112124372">The value of <strong id="en_topic_0093011510__b842352706144933">name</strong> can contain 1 to 64 characters.</li><li id="en_topic_0093011510__li4120543718">The value of <strong id="en_topic_0093011510__b350915068">description</strong> can contain a maximum of 255 characters.</li><li id="en_topic_0093011510__li1120741578">The value of <strong id="en_topic_0093011510__b842352706203329">auth_algorithm</strong> can only be <strong id="en_topic_0093011510__b982038454">md5</strong>, <strong id="en_topic_0093011510__b1528457046">sha1</strong>, <strong id="en_topic_0093011510__b880546345">sha2-256</strong>, <strong id="en_topic_0093011510__b886940442">sha2-384</strong>, or <strong id="en_topic_0093011510__b1421424037">sha2-512</strong>.</li><li id="en_topic_0093011510__li1712019412718">The value of <strong id="en_topic_0093011510__b842352706165848">encryption_algorithm</strong> can only be <strong id="en_topic_0093011510__b84235270616593">3des</strong>, <strong id="en_topic_0093011510__b842352706165930">aes-128</strong>, <strong id="en_topic_0093011510__b842352706165939">aes-192</strong>, or <strong id="en_topic_0093011510__b842352706165951">aes-256</strong>.</li><li id="en_topic_0093011510__li181291643714">The value of <strong id="en_topic_0093011510__b84235270692027">phase1_negotiation_mode</strong> can only be <strong id="en_topic_0093011510__b84235270692043">main</strong> and <strong id="en_topic_0093011510__b842352706163112">aggressive</strong>.</li><li id="en_topic_0093011510__li0129194273">The value of <strong id="en_topic_0093011510__b653515736">units</strong> can only be in seconds.</li><li id="en_topic_0093011510__li31371247720">The value of <strong id="en_topic_0093011510__b842352706205920">value</strong> can only be an integer ranging from 60 to 604,800.</li><li id="en_topic_0093011510__li31371647711">The value of <strong id="en_topic_0093011510__b842352706212339">ike_version</strong> can only be <strong id="en_topic_0093011510__b842352706212342">v1</strong> or <strong id="en_topic_0093011510__b145220440501">v2</strong>.</li></ol>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011510__section26052191"><h4 class="sectiontitle">Response Message</h4><p id="en_topic_0093011510__p4862630378"><a href="#en_topic_0093011510__table34558579">Table 2</a> describes the response parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="en_topic_0093011510__table34558579"></a><a name="table34558579"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011510__table34558579" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="en_topic_0093011510__row60007281"><th align="left" class="cellrowborder" valign="top" width="29.76%" id="mcps1.3.4.3.2.4.1.1"><p id="en_topic_0093011510__p28751554">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.67%" id="mcps1.3.4.3.2.4.1.2"><p id="en_topic_0093011510__p47174532">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.57000000000001%" id="mcps1.3.4.3.2.4.1.3"><p id="en_topic_0093011510__p6025849">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en_topic_0093011510__row18331773"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510___Hlk477540336">auth_algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p15678685">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p57075007">Specifies the authentication hash algorithm. The value can be <strong id="en_topic_0093011510__b76203261">md5</strong>, <strong id="en_topic_0093011510__b695925355">sha1</strong>, <strong id="en_topic_0093011510__b1559153077">sha2-256</strong>, <strong id="en_topic_0093011510__b607912275">sha2-384</strong>, or <strong id="en_topic_0093011510__b1397842068">sha2-512</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row43913021"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p184914">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p14978051">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p23621468">Provides supplementary information about the IKE policy.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row11266626"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p40181490">encryption_algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p33475267">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p51027174">Specifies the encryption algorithm. The value can be <strong id="en_topic_0093011510__b1860682314">3des</strong>, <strong id="en_topic_0093011510__b1312249387">aes-128</strong>, <strong id="en_topic_0093011510__b469637679">aes-192</strong>, or <strong id="en_topic_0093011510__b1659722710">aes-256</strong>. The default value is <strong id="en_topic_0093011510__b1693109021">aes-128</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row56591389"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p20499795">lifetime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p49870669">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p45749167">Specifies the lifetime object of SA.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row9089319"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p65146268">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p42356378">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p2391374">Specifies the IKE policy name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row21522370"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p65590400">pfs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p11222187">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p1581194113275">Specifies the PFS. The value can be <strong id="en_topic_0093011510__b21116168356">group1</strong>, <strong id="en_topic_0093011510__b411215162358">group2</strong>, <strong id="en_topic_0093011510__b1711221633514">group5</strong>, <strong id="en_topic_0093011510__b1911411673510">group14</strong>, <strong id="en_topic_0093011510__b51148165354">group15</strong>, <strong id="en_topic_0093011510__b1111511166357">group16</strong>, <strong id="en_topic_0093011510__b7115141623520">group19</strong>, <strong id="en_topic_0093011510__b131165162352">group20</strong>, <strong id="en_topic_0093011510__b511614167351">group21</strong>, or <strong id="en_topic_0093011510__b10116141643514">disable</strong>.</p>
|
|
<p id="en_topic_0093011510__p38111841102710">The default value is <strong id="en_topic_0093011510__b16151121715354">group5</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row26008214"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p26290551">phase1_negotiation_mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p49159881">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p12781022">Specifies the IKE mode The default value is <strong id="en_topic_0093011510__b1713262098">main</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row47920339"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p56342274">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p321477">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p28839721">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row58230900"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p19082474">ikepolicy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p2176568">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p53389951">Specifies the IKE policy object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row24598620"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p46331171">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p61837391">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p42045429">Specifies the lifetime value of the SA. The default unit is <strong id="en_topic_0093011510__b842352706101517">seconds</strong>. The default value is <strong id="en_topic_0093011510__b842352706101522">3600</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row42864547"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p49476282">units</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p48155897">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p2313746">Specifies the lifecycle unit. The default value is <strong id="en_topic_0093011510__b8423527061079">seconds</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row20823715"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p8999315">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p57855887">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p24745166">Specifies the IKE policy ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en_topic_0093011510__row21379907"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011510__p54050919">ike_version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011510__p16048282">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011510__p66085716">Specifies the IKE version. The value can be <strong id="en_topic_0093011510__b2123880768213834">v1</strong> or <strong id="en_topic_0093011510__b499525058213834">v2</strong>. The default value is <strong id="en_topic_0093011510__b842352706213844">v1</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="en_topic_0093011510__section33143133"><h4 class="sectiontitle">Example</h4><ul id="en_topic_0093011510__ul19391205811714"><li id="en_topic_0093011510__li11391195816712">Example Request<pre class="screen" id="en_topic_0093011510__screen63961269175526">POST /v2.0/vpn/ikepolicies
|
|
{
|
|
"ikepolicy" : {
|
|
"phase1_negotiation_mode" : "main",
|
|
"auth_algorithm" : "sha1",
|
|
"encryption_algorithm" : "aes-128",
|
|
"pfs" : "group5",
|
|
"lifetime" : {
|
|
"units" : "seconds",
|
|
"value" : 7200
|
|
},
|
|
"ike_version" : "v1",
|
|
"name" : "ikepolicy1"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="en_topic_0093011510__ul18649131017819"><li id="en_topic_0093011510__li1564916106817">Example Response<pre class="screen" id="en_topic_0093011510__screen126791519781">{
|
|
"ikepolicy" : {
|
|
"name" : "ikepolicy1",
|
|
"tenant_id" : "ccb81365fe36411a9011e90491fe1330",
|
|
"auth_algorithm" : "sha1",
|
|
"encryption_algorithm" : "aes-128",
|
|
"pfs" : "group5",
|
|
"phase1_negotiation_mode" : "main",
|
|
"lifetime" : {
|
|
"units" : "seconds",
|
|
"value" : 7200
|
|
},
|
|
"ike_version" : "v1",
|
|
"id" : "5522aff7-1b3c-48dd-9c3c-b50f016b73db",
|
|
"description" : ""
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
<div class="section" id="en_topic_0093011510__section6578292"><h4 class="sectiontitle">Returned Values</h4><p id="en_topic_0093011510__en-us_topic_0053740035_p19515943486">For details, see section <a href="en_topic_0093011522.html">Common Returned Values</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en_topic_0093011509.html">IKE Policy Management</a></div>
|
|
</div>
|
|
</div>
|
|
|