doc-exports/docs/vpn/api-ref/en_topic_0093011513.html
gtema 6b71b4a1fa Initial import of the VPN API document
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>
2022-12-07 13:22:09 +00:00

291 lines
27 KiB
HTML

<a name="en_topic_0093011513"></a><a name="en_topic_0093011513"></a>
<h1 class="topictitle1">Updating an IKE Policy</h1>
<div id="body217508"><div class="section" id="en_topic_0093011513__section59206997"><h4 class="sectiontitle"><strong id="en_topic_0093011513__b842352706112523">Function</strong></h4><p id="en_topic_0093011513__p17618221">This interface is used to update an IKE policy.</p>
<div class="note" id="en_topic_0093011513__note36176352147"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en_topic_0093011513__p762563514145">If the IKE policy is updated, the IPsec VPN connection also needs to be updated.</p>
</div></div>
</div>
<div class="section" id="en_topic_0093011513__section63100926"><h4 class="sectiontitle">URI</h4><p id="en_topic_0093011513__p1480725241316">PUT /v2.0/vpn/ikepolicies/{ikepolicy_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011513__table492018108144" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en_topic_0093011513__row29285105141"><th align="left" class="cellrowborder" valign="top" width="25.507449255074494%" id="mcps1.3.2.3.2.5.1.1"><p id="en_topic_0093011513__p3928151019147"><strong id="en_topic_0093011513__b842352706172115">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.2.3.2.5.1.2"><p id="en_topic_0093011513__p69359101144">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.2.3.2.5.1.3"><p id="en_topic_0093011513__p7935510111417">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45.91540845915409%" id="mcps1.3.2.3.2.5.1.4"><p id="en_topic_0093011513__p893571013140">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011513__row1294311103147"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.2.3.2.5.1.1 "><p id="en_topic_0093011513__p1943141015146">ikepolicy_id</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.2.3.2.5.1.2 "><p id="en_topic_0093011513__p69514103140">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.2.3.2.5.1.3 "><p id="en_topic_0093011513__p179517108141">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.2.3.2.5.1.4 "><p id="en_topic_0093011513__p1595131020148">Specifies the IKE policy ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="en_topic_0093011513__section10901353"><h4 class="sectiontitle">Request Message</h4><p id="en_topic_0093011513__p8202104881417"><a href="#en_topic_0093011513__table9467673">Table 2</a> describes the request parameters.</p>
<div class="tablenoborder"><a name="en_topic_0093011513__table9467673"></a><a name="table9467673"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011513__table9467673" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="en_topic_0093011513__row5698118"><th align="left" class="cellrowborder" valign="top" width="25.507449255074494%" id="mcps1.3.3.3.2.5.1.1"><p id="en_topic_0093011513__p58894414">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_0093011513__p5718243">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_0093011513__p60524524">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_0093011513__p3539410">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011513__row61306625"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p66889567">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_0093011513__p49345813">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p37587916">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p24722347">Specifies the authentication hash algorithm. The value can be <strong id="en_topic_0093011513__b842352706165820">md5</strong>, <strong id="en_topic_0093011513__b842352706165823">sha1</strong>, <strong id="en_topic_0093011513__b842352706165833">sha2-256</strong>, <strong id="en_topic_0093011513__b842352706165840">sha2-384</strong>, or <strong id="en_topic_0093011513__b842352706165851">sha2-512</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row21174538"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p37415993">description</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011513__p10796581">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p2107829">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p36516433">Provides supplementary information about the IKE policy.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row60212448"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p45370106">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_0093011513__p51099989">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p45458457">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p58256364">Specifies the encryption algorithm. The value can be <strong id="en_topic_0093011513__b8423527061721">3des</strong>, <strong id="en_topic_0093011513__b84235270617211">aes-128</strong>, <strong id="en_topic_0093011513__b84235270617219">aes-192</strong>, or <strong id="en_topic_0093011513__b84235270617227">aes-256</strong>. The default value is <strong id="en_topic_0093011513__b84235270617239">aes-128</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row54545236"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p56088004">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_0093011513__p46834456">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p35494585">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p56489102">Specifies the IKE version. The value can be <strong id="en_topic_0093011513__b2123880768213834">v1</strong> or <strong id="en_topic_0093011513__b499525058213834">v2</strong>. The default value is <strong id="en_topic_0093011513__b842352706213844">v1</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row38639871"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p42821886">ikepolicy</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011513__p46020774">Object</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p36695198">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p19521038">Specifies the IKE policy object.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row41471619"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p3757979">lifetime</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011513__p35960896">Object</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p27151449">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p51783759">Specifies the lifetime object of SA.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row63400648"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p35178835">name</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011513__p30913391">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p20956739">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p19774328">Specifies the IKE policy name.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row43751230"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p54188775">pfs</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011513__p27214660">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p56903870">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p6588145672511">Specifies the PFS. The value can be <strong id="en_topic_0093011513__b15233116153619">group1</strong>, <strong id="en_topic_0093011513__b72332633619">group2</strong>, <strong id="en_topic_0093011513__b1523510653611">group5</strong>, <strong id="en_topic_0093011513__b202357618364">group14</strong>, <strong id="en_topic_0093011513__b32364633616">group15</strong>, <strong id="en_topic_0093011513__b16236767365">group16</strong>, <strong id="en_topic_0093011513__b18237126123615">group19</strong>, <strong id="en_topic_0093011513__b1923714633614">group20</strong>, <strong id="en_topic_0093011513__b1923813683611">group21</strong>, or <strong id="en_topic_0093011513__b1023811619367">disable</strong>.</p>
<p id="en_topic_0093011513__p489023122614">The default value is <strong id="en_topic_0093011513__b20367157163618">group5</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row9643552"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p42930272">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_0093011513__p54800025">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p9617010">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p40780307">Specifies the IKE mode The default value is <strong id="en_topic_0093011513__b842352706213613">main</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row31478446"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p66726223">value</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011513__p36115021">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p39635599">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p56366974">Specifies the lifetime value of the SA. The default unit is <strong id="en_topic_0093011513__b842352706101653">seconds</strong>. The default value is <strong id="en_topic_0093011513__b842352706101657">3600</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row37540721"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011513__p20899598">units</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011513__p15145867">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011513__p18855696">No</p>
</td>
<td class="cellrowborder" valign="top" width="45.91540845915409%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011513__p50916422">Specifies the lifecycle unit. The default value is <strong id="en_topic_0093011513__b8423527061079">seconds</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="en_topic_0093011513__note156124146157"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ol id="en_topic_0093011513__ol7175111551510"><li id="en_topic_0093011513__li0175715191512">The <strong id="en_topic_0093011513__b84235270692755">ikepolicy_id</strong> parameter must be specified.</li><li id="en_topic_0093011513__li7175101591512">The value of <strong id="en_topic_0093011513__b842352706144933">name</strong> can contain 1 to 64 characters.</li><li id="en_topic_0093011513__li15183915191513">The value of <strong id="en_topic_0093011513__b120501305120950">description</strong> can contain a maximum of 255 characters.</li><li id="en_topic_0093011513__li51831215201511">The value of <strong id="en_topic_0093011513__b842352706203329">auth_algorithm</strong> can only be <strong id="en_topic_0093011513__b786669655">md5</strong>, <strong id="en_topic_0093011513__b1387843098">sha1</strong>, <strong id="en_topic_0093011513__b1540919121">sha2-256</strong>, <strong id="en_topic_0093011513__b355439469">sha2-384</strong>, or <strong id="en_topic_0093011513__b725054240">sha2-512</strong>.</li><li id="en_topic_0093011513__li418331541519">The value of <strong id="en_topic_0093011513__b842352706165848">encryption_algorithm</strong> can only be <strong id="en_topic_0093011513__b84235270616593">3des</strong>, <strong id="en_topic_0093011513__b842352706165930">aes-128</strong>, <strong id="en_topic_0093011513__b842352706165939">aes-192</strong>, or <strong id="en_topic_0093011513__b842352706165951">aes-256</strong>.</li><li id="en_topic_0093011513__li151901515161520">The value of <strong id="en_topic_0093011513__b84235270692027">phase1_negotiation_mode</strong> can only be <strong id="en_topic_0093011513__b84235270692043">main</strong> and <strong id="en_topic_0093011513__b842352706163112">aggressive</strong>.</li><li id="en_topic_0093011513__li719020153159">The value of <strong id="en_topic_0093011513__b175932844">units</strong> can only be in seconds.</li><li id="en_topic_0093011513__li1119891517152">The value of <strong id="en_topic_0093011513__b842352706205920">value</strong> can only be an integer ranging from 60 to 604,800.</li><li id="en_topic_0093011513__li121981157158">The value of <strong id="en_topic_0093011513__b842352706212339">ike_version</strong> can only be <strong id="en_topic_0093011513__b842352706212342">v1</strong> or <strong id="en_topic_0093011513__b15643137115115">v2</strong>.</li><li id="en_topic_0093011513__li12207191513155">The <strong id="en_topic_0093011513__en-us_topic_0053740027_b84235270620329">project_id</strong> parameter is not supported.</li></ol>
</div></div>
</div>
<div class="section" id="en_topic_0093011513__section31003317"><h4 class="sectiontitle">Response Message</h4><p id="en_topic_0093011513__p921512851511"><a href="#en_topic_0093011513__table30589524">Table 3</a> describes the response parameters.</p>
<div class="tablenoborder"><a name="en_topic_0093011513__table30589524"></a><a name="table30589524"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011513__table30589524" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="en_topic_0093011513__row17707452"><th align="left" class="cellrowborder" valign="top" width="29.76%" id="mcps1.3.4.3.2.4.1.1"><p id="en_topic_0093011513__p25017536">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_0093011513__p13154536">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_0093011513__p4915910">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011513__row62644428"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p41033878">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_0093011513__p35409804">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p59951903">Specifies the authentication hash algorithm. The value can be <strong id="en_topic_0093011513__b262384587">md5</strong>, <strong id="en_topic_0093011513__b70313038">sha1</strong>, <strong id="en_topic_0093011513__b381209901">sha2-256</strong>, <strong id="en_topic_0093011513__b818130152">sha2-384</strong>, or <strong id="en_topic_0093011513__b113524152">sha2-512</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row2696221"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p17067371">description</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p40279785">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p963478">Provides supplementary information about the IKE policy.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row8671305"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p31287108">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_0093011513__p51227795">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p24374351">Specifies the encryption algorithm. The value can be <strong id="en_topic_0093011513__b1885476105">3des</strong>, <strong id="en_topic_0093011513__b1494845060">aes-128</strong>, <strong id="en_topic_0093011513__b1744392957">aes-192</strong>, or <strong id="en_topic_0093011513__b1442656227">aes-256</strong>. The default value is <strong id="en_topic_0093011513__b1915804160">aes-128</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row18042568"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p52161898">id</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p64364196">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p44522499">Specifies the IKE policy ID.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row65158171"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p43320494">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_0093011513__p19299134">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p54302323">Specifies the IKE version. The value can be <strong id="en_topic_0093011513__b2008931497">v1</strong> or <strong id="en_topic_0093011513__b1509412973">v2</strong>. The default value is <strong id="en_topic_0093011513__b1665966336">v1</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row18958859"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p59272617">lifetime</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p36352712">Object</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p5246632">Specifies the lifetime object of SA.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row47219689"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p66698493">name</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p33868853">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p16100147">Specifies the IKE policy name.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row10683599"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p60065170">pfs</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p33440573">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p8545646381">Specifies the PFS. The value can be <strong id="en_topic_0093011513__b157916843618">group1</strong>, <strong id="en_topic_0093011513__b358028203618">group2</strong>, <strong id="en_topic_0093011513__b1058010817361">group5</strong>, <strong id="en_topic_0093011513__b185811810361">group14</strong>, <strong id="en_topic_0093011513__b45814883617">group15</strong>, <strong id="en_topic_0093011513__b5582281363">group16</strong>, <strong id="en_topic_0093011513__b2582118123618">group19</strong>, <strong id="en_topic_0093011513__b135827814366">group20</strong>, <strong id="en_topic_0093011513__b358318853619">group21</strong>, or <strong id="en_topic_0093011513__b175835819368">disable</strong>.</p>
<p id="en_topic_0093011513__p11546104619817">The default value is <strong id="en_topic_0093011513__b22765111365">group5</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row21213148"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p40543448">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_0093011513__p62793889">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p9393336">Specifies the IKE mode The default value is <strong id="en_topic_0093011513__b110805075">main</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row17431163"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p2638090">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_0093011513__p12358762">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p18334396">Specifies the project ID.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row55991032"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p38979707">ikepolicy</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p3239736">Object</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p49509242">Specifies the IKE policy object.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row2405037"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p60590285">value</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p8866062">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p53959953">Specifies the lifetime value of the SA. The default unit is <strong id="en_topic_0093011513__b842352706101729">seconds</strong>. The default value is <strong id="en_topic_0093011513__b842352706101736">3600</strong>.</p>
</td>
</tr>
<tr id="en_topic_0093011513__row15877536"><td class="cellrowborder" valign="top" width="29.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en_topic_0093011513__p11012038">units</p>
</td>
<td class="cellrowborder" valign="top" width="16.67%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en_topic_0093011513__p19559856">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.57000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en_topic_0093011513__p20069106">Specifies the lifetime unit of the SA. The default unit is <strong id="en_topic_0093011513__b842352706101812">seconds</strong>. The default value is <strong id="en_topic_0093011513__b842352706101817">3600</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="en_topic_0093011513__section10594405"><h4 class="sectiontitle">Example</h4><ul id="en_topic_0093011513__ul79501413161"><li id="en_topic_0093011513__li69506191614">Example Request<pre class="screen" id="en_topic_0093011513__screen40715627214130">{
"ikepolicy" : {
"encryption_algorithm" : "aes-256"
}
}</pre>
</li></ul>
</div>
<ul id="en_topic_0093011513__ul74173109161"><li id="en_topic_0093011513__li34179103166">Example Response<pre class="screen" id="en_topic_0093011513__screen2072432561615">{
"ikepolicy" : {
"name" : "ikepolicy1",
"tenant_id" : "ccb81365fe36411a9011e90491fe1330",
"auth_algorithm" : "sha1",
"encryption_algorithm" : "aes-256",
"pfs" : "group5",
"phase1_negotiation_mode" : "main",
"lifetime" : {
"units" : "seconds",
"value" : 3600
},
"ike_version" : "v1",
"id" : "5522aff7-1b3c-48dd-9c3c-b50f016b73db",
"description" : ""
}
}</pre>
</li></ul>
<div class="section" id="en_topic_0093011513__section6578292"><h4 class="sectiontitle">Returned Values</h4><p id="en_topic_0093011513__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>