forked from docs/doc-exports
614 lines
56 KiB
HTML
614 lines
56 KiB
HTML
<a name="CreateExecutionPlan"></a><a name="CreateExecutionPlan"></a>
|
|
|
|
<h1 class="topictitle1">Creating an Execution Plan</h1>
|
|
<div id="body8662426"><div class="section" id="CreateExecutionPlan__section1641133093914"><h4 class="sectiontitle">Function</h4><p id="CreateExecutionPlan__p1141203063919">CreateExecutionPlan</p>
|
|
<p id="CreateExecutionPlan__p4421130103910">This API creates an execution plan in a specified stack. An execution plan describes the differences between the resource status recorded in the current stack and the target resource status described in the template. For example, resource A will be generated according to the following configuration file, and resource B will change the following parameters from XXX to YYY.</p>
|
|
<p id="CreateExecutionPlan__p154283019396">After an execution plan is created by calling this API, you can query the execution plan status by calling GetExecutionPlanMetadata. Once the execution plan is in an AVAILABLE state, you can call GetExecutionPlan to obtain the execution result.</p>
|
|
<p id="CreateExecutionPlan__p11427305392">An execution plan does not support in-depth checks and verification, such as whether the user has the permission to generate or modify resources.</p>
|
|
<p id="CreateExecutionPlan__p7421030123918"><strong id="CreateExecutionPlan__b042133015393">Note:</strong></p>
|
|
<ul id="CreateExecutionPlan__ul242530163915"><li id="CreateExecutionPlan__li1042163014395">When creating an execution plan, the specified resource stack must exist. If the specified resource stack does not exist, 404 is returned, and the user can create a resource stack by calling the CreateStack API.</li><li id="CreateExecutionPlan__li142930153911">If the request does not contain template_body or template_uri, 400 is returned.</li><li id="CreateExecutionPlan__li17426309393">Once a stack is deployed, all execution plans created before this deployment becomes invalid.</li><li id="CreateExecutionPlan__li2421330193914">An execution plan indicates only the resource configurations at the creation time. Once created, it will not automatically update upon your manual changes to the resource status.</li><li id="CreateExecutionPlan__li15421830133913">If the stack is in a DEPLOYMENT_IN_PROGRESS, ROLLBACK_IN_PROGRESS, or DELETION_IN_PROGRESS state, execution plans cannot be created and 403 is returned.</li></ul>
|
|
</div>
|
|
<div class="section" id="CreateExecutionPlan__section043113093913"><h4 class="sectiontitle">URI</h4><p id="CreateExecutionPlan__p184333017391">POST /v1/{project_id}/stacks/{stack_name}/execution-plans</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__table1644830163914" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row94323019392"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="CreateExecutionPlan__p18441630143915">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="CreateExecutionPlan__p104433063914">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="CreateExecutionPlan__p1444930113916">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="CreateExecutionPlan__p7441030153916">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row184333012391"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateExecutionPlan__p1744133011392">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateExecutionPlan__p1644530173912">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateExecutionPlan__p34512302391">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateExecutionPlan__p1245830113910">A project ID is obtained by calling an API or from the console.</p>
|
|
<p id="CreateExecutionPlan__p174543010392">Minimum: <strong id="CreateExecutionPlan__b1145143043911">3</strong></p>
|
|
<p id="CreateExecutionPlan__p24593053912">Maximum: <strong id="CreateExecutionPlan__b13451430193915">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row204393017396"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateExecutionPlan__p845430183913">stack_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateExecutionPlan__p8451630183910">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateExecutionPlan__p1945153043911">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateExecutionPlan__p045430143912">A stack name is unique within its domain (domain_id), region, and project (project_id). It is case-sensitive and starts with a letter. Only letters, digits, underscores (_), and hyphens (-) are allowed.</p>
|
|
<p id="CreateExecutionPlan__p44514306394">Minimum: <strong id="CreateExecutionPlan__b134513308396">1</strong></p>
|
|
<p id="CreateExecutionPlan__p1245153016393">Maximum: <strong id="CreateExecutionPlan__b346183013392">128</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateExecutionPlan__section104653083913"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row174619300394"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreateExecutionPlan__p8461305397">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreateExecutionPlan__p84643016393">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreateExecutionPlan__p1147173010396">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreateExecutionPlan__p24753053917">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row1646130113917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateExecutionPlan__p34743016395">Client-Request-Id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateExecutionPlan__p14471930163918">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateExecutionPlan__p1947113043912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateExecutionPlan__p447183013915">A unique request ID is specified by a user to locate a request. UUID is recommended.</p>
|
|
<p id="CreateExecutionPlan__p84823016397">Minimum: <strong id="CreateExecutionPlan__b24810303390">36</strong></p>
|
|
<p id="CreateExecutionPlan__p144812306395">Maximum: <strong id="CreateExecutionPlan__b64816301393">128</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_request_CreateExecutionPlanRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row84853010399"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateExecutionPlan__p175013017396">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateExecutionPlan__p75083019390">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateExecutionPlan__p1750330163916">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateExecutionPlan__p175043012399">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row34973073918"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p1850133083911">stack_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p19512307391">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p125153012392">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p125133033915">Unique stack ID.</p>
|
|
<p id="CreateExecutionPlan__p451133018390">It is a UUID generated by RFS when a stack is created.</p>
|
|
<p id="CreateExecutionPlan__p3517304391">Stack names are unique at one specific time, so you can create a stack named HelloWorld and another stack with the same name after deleting the first one.</p>
|
|
<p id="CreateExecutionPlan__p1551630123916">For parallel development, team members may want to ensure that they are operating the stack they created, not one with the same name created by other members after deleting the previous one.</p>
|
|
<p id="CreateExecutionPlan__p1951730103911">To avoid this mismatch, check the ID, since RFS ensures each stack has a unique ID that does not change with updates. If the stack_id value differs from the current stack ID, 400 is returned.</p>
|
|
<p id="CreateExecutionPlan__p751163023912">Minimum: <strong id="CreateExecutionPlan__b12510307398">36</strong></p>
|
|
<p id="CreateExecutionPlan__p15133013398">Maximum: <strong id="CreateExecutionPlan__b17511030113915">36</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row104993016391"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p14510302394">template_body</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p1852133018392">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p15213012393">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p1652830123918">HCL template. It describes the target status of a resource. RFS compares the differences between the statuses of this template and the current remote resources.</p>
|
|
<p id="CreateExecutionPlan__p1352230173917">Either template_body or template_uri must be specified but they both cannot be specified together.</p>
|
|
<p id="CreateExecutionPlan__p25263023918"><em id="CreateExecutionPlan__i15521430173913">In the CreateStack API, template_body and template_uri are optional.</em></p>
|
|
<p id="CreateExecutionPlan__p65210308395"><strong id="CreateExecutionPlan__b452183033917">Note:</strong></p>
|
|
<ul id="CreateExecutionPlan__ul10521930103916"><li id="CreateExecutionPlan__li1252193013396">template_body cannot contain any sensitive information. RFS directly uses, logs, displays, and stores the corresponding template_body in plaintext. If the information is sensitive, you are advised to use vars_structure to change the information to a variable and set the encryption field to enable encrypted transmission.</li></ul>
|
|
<p id="CreateExecutionPlan__p10521630103912">Minimum: <strong id="CreateExecutionPlan__b145233023919">0</strong></p>
|
|
<p id="CreateExecutionPlan__p152130123916">Maximum: <strong id="CreateExecutionPlan__b853103023919">51200</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row749163015392"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p753143033914">template_uri</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p145333043915">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p453143016395">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p145353015399">OBS address of an HCL template. The template describes the target status of a resource. RFS compares the differences between the statuses of this template and the current remote resources.</p>
|
|
<p id="CreateExecutionPlan__p3531730113915">The OBS address allows mutual access to regions of the same type. Regions are classified into universal regions and dedicated regions. A universal region provides universal cloud services for common tenants. A dedicated region provides specific services for specific tenants.</p>
|
|
<p id="CreateExecutionPlan__p2531303397">The corresponding file must be a tf file or a zip package.</p>
|
|
<p id="CreateExecutionPlan__p1153103073916">A pure .tf file must end with .tf or .tf.json and comply with the HCL syntax.</p>
|
|
<p id="CreateExecutionPlan__p15303033911">Currently, only the .zip package is supported. The file name extension must be .zip. The decompressed file cannot contain the .tfvars file and must be encoded in UTF8 format (the .tf.json file cannot contain the BOM header). The .zip package supports a maximum of 100 subfiles.</p>
|
|
<p id="CreateExecutionPlan__p4531930143918">Either template_body or template_uri must be specified.</p>
|
|
<p id="CreateExecutionPlan__p5534302399"><em id="CreateExecutionPlan__i85353013396">In the CreateStack API, template_body and template_uri are optional.</em></p>
|
|
<p id="CreateExecutionPlan__p1254163013395"><strong id="CreateExecutionPlan__b054530193914">Note</strong>:</p>
|
|
<ul id="CreateExecutionPlan__ul05413073920"><li id="CreateExecutionPlan__li1954430133913">The template file corresponds to template_uri cannot contain any sensitive information. RFS directly uses, logs, displays, and stores the content of the template file in plaintext. If the information is sensitive, you are advised to use vars_structure to change the information to a variable and set the encryption field to enable encrypted transmission.</li><li id="CreateExecutionPlan__li155410307391">If the template file corresponding to template_uri is of zip type, the length of the internal file or folder name must not exceed 255 bytes, the length of the deepest path must not exceed 2048 bytes, and the size of the zip package must not exceed 1MB.</li></ul>
|
|
<p id="CreateExecutionPlan__p254030173912">Minimum: <strong id="CreateExecutionPlan__b354830103916">0</strong></p>
|
|
<p id="CreateExecutionPlan__p15541330153918">Maximum: <strong id="CreateExecutionPlan__b754183017399">2048</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row10491130103916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p95413309394">execution_plan_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p1454830163913">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p19556304394">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p1655123013396">An execution plan name is unique within its domain (domain_id), region, project (project_id), and stack (stack_id). It is case-sensitive and starts with a letter. Only letters, digits, underscores (_), and hyphens (-) are allowed.</p>
|
|
<p id="CreateExecutionPlan__p18551330153912">Minimum: <strong id="CreateExecutionPlan__b1355183014395">1</strong></p>
|
|
<p id="CreateExecutionPlan__p135513033911">Maximum: <strong id="CreateExecutionPlan__b555330173911">128</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row949143093910"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p4550301395">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p20551730103911">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p1255530123919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p9552030183916">Execution plan description. It is used to identify your own execution plans.</p>
|
|
<p id="CreateExecutionPlan__p175563018395">Minimum: <strong id="CreateExecutionPlan__b10553306392">0</strong></p>
|
|
<p id="CreateExecutionPlan__p1551330123914">Maximum: <strong id="CreateExecutionPlan__b855123063912">1024</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row649143013918"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p195593010399">vars_structure</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p1855143093910">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p1255173043918">Array of <a href="#CreateExecutionPlan__en-us_topic_0000001709318814_request_VarsStructure">VarsStructure</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p175517307397">HCL variable structure. Transferring variables is supported by the HCL template. The same template can use different variables for different purposes.</p>
|
|
<ul id="CreateExecutionPlan__ul75593053910"><li id="CreateExecutionPlan__li145563043913">var_structure allows string variables.</li><li id="CreateExecutionPlan__li056730203912">RFS supports vars_structure, vars_body, and vars_uri. If they declare the same variable, error code 400 will be reported.</li><li id="CreateExecutionPlan__li16561030123913">vars_structure only supports string variables. To use variables of other types, you need to convert them in HCL reference. Alternatively, you can use vars_uri and vars_body, which support various types and complex structures supported by HCL.</li><li id="CreateExecutionPlan__li1256143019399">If vars_structure is too large, you can use vars_uri.</li><li id="CreateExecutionPlan__li25611304397">Note: vars_structure cannot contain any sensitive information. RFS directly uses, logs, displays, and stores the corresponding vars in plaintext. If the information is sensitive, you are advised to set the encryption field.</li></ul>
|
|
<p id="CreateExecutionPlan__p456173043914">Array Length: <strong id="CreateExecutionPlan__b18561630153917">0 - 100</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row6491230173914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p35617305392">vars_body</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p1556173013918">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p2056173073918">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p12562030123910">Content of the HCL variable file. Transferring variables is supported by the HCL template. The same template can use different variables for different purposes.</p>
|
|
<ul id="CreateExecutionPlan__ul95683012396"><li id="CreateExecutionPlan__li175612302391">The vars_body uses the tfvars format of HCL. You can submit the content in the .tfvars file to the vars_body.</li><li id="CreateExecutionPlan__li155610307396">RFS supports vars_structure, vars_body, and vars_uri. If they declare the same variable, error code 400 will be reported.</li><li id="CreateExecutionPlan__li12565305398">If vars_body is too large, you can use vars_uri.</li><li id="CreateExecutionPlan__li7561230193913">If the content in vars is simple strings, you can use var_structure.</li><li id="CreateExecutionPlan__li9561830103916">vars_body cannot contain any sensitive information. RFS directly uses, logs, displays, and stores the corresponding vars in plaintext. If the information is sensitive, you are advised to use vars_structure and set the encryption field for transmission.</li></ul>
|
|
<p id="CreateExecutionPlan__p4563309399">Minimum: <strong id="CreateExecutionPlan__b1356930173918">0</strong></p>
|
|
<p id="CreateExecutionPlan__p556193017393">Maximum: <strong id="CreateExecutionPlan__b356173013911">51200</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row1349730113914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateExecutionPlan__p165613023919">vars_uri</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateExecutionPlan__p1056230133913">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateExecutionPlan__p75773010394">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateExecutionPlan__p357630123913">OBS address of the HCL variable file. Transferring variables is supported by the HCL template. The same template can use different variables for different purposes.</p>
|
|
<p id="CreateExecutionPlan__p18571630123920">The OBS address allows mutual access to regions of the same type. Regions are classified into universal regions and dedicated regions. A universal region provides universal cloud services for common tenants. A dedicated region provides specific services for specific tenants.</p>
|
|
<ul id="CreateExecutionPlan__ul05713308397"><li id="CreateExecutionPlan__li3571530123912">RFS supports vars_structure, vars_body, and vars_uri. If they declare the same variable, error code 400 will be reported.</li><li id="CreateExecutionPlan__li1957133017399">The content in vars_uri uses the tfvars format of HCL. You can save the content in .tfvars to a file, upload the file to OBS, and transfer the pre-signed URL of OBS to vars_uri.</li><li id="CreateExecutionPlan__li16571130203920">vars_uri cannot contain any sensitive information. RFS directly uses, logs, displays, and stores the corresponding vars in plaintext. If the information is sensitive, you are advised to use vars_structure and set the encryption field for transmission.</li></ul>
|
|
<p id="CreateExecutionPlan__p757730133911">Minimum: <strong id="CreateExecutionPlan__b65703063918">0</strong></p>
|
|
<p id="CreateExecutionPlan__p1657730143915">Maximum: <strong id="CreateExecutionPlan__b5571730193911">2048</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="CreateExecutionPlan__en-us_topic_0000001709318814_request_VarsStructure"></a><a name="en-us_topic_0000001709318814_request_VarsStructure"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_request_VarsStructure" frame="border" border="1" rules="all"><caption><b>Table 4 </b>VarsStructure</caption><thead align="left"><tr id="CreateExecutionPlan__row457193043917"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="CreateExecutionPlan__p155719309397">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="CreateExecutionPlan__p6581930193910">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="CreateExecutionPlan__p45843023915">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="CreateExecutionPlan__p165816303395">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row057030153915"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateExecutionPlan__p4588306398">var_key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateExecutionPlan__p1558230133912">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateExecutionPlan__p058153033918">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateExecutionPlan__p8581130143914">Variable name.</p>
|
|
<p id="CreateExecutionPlan__p11589302399">Minimum: <strong id="CreateExecutionPlan__b1958530113911">1</strong></p>
|
|
<p id="CreateExecutionPlan__p115814301394">Maximum: <strong id="CreateExecutionPlan__b458133016399">32</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row1957430153915"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateExecutionPlan__p458133018397">var_value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateExecutionPlan__p1458133063919">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateExecutionPlan__p125811306394">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateExecutionPlan__p1958153013394">Variable value.</p>
|
|
<p id="CreateExecutionPlan__p6581530183911">Variables must be in the form of a string. If a parameter is a number, it must also be in the form of a string, for example, '10'.</p>
|
|
<p id="CreateExecutionPlan__p8581930123912">For different types or complex structures, you can use vars_uri or vars_body.</p>
|
|
<p id="CreateExecutionPlan__p35843011399">Minimum: <strong id="CreateExecutionPlan__b1558153019397">0</strong></p>
|
|
<p id="CreateExecutionPlan__p1958330153913">Maximum: <strong id="CreateExecutionPlan__b85873019392">2048</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row25703013396"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateExecutionPlan__p1058163053914">encryption</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateExecutionPlan__p859173018395">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateExecutionPlan__p45983015396"><a href="#CreateExecutionPlan__en-us_topic_0000001709318814_request_EncryptionStructure">EncryptionStructure</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateExecutionPlan__p559143010399">If a transferred var_value has been encrypted, you can declare this variable to require RFS to decrypt the var_value before using it. Currently, only KMS encryption and decryption are supported.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="CreateExecutionPlan__en-us_topic_0000001709318814_request_EncryptionStructure"></a><a name="en-us_topic_0000001709318814_request_EncryptionStructure"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_request_EncryptionStructure" frame="border" border="1" rules="all"><caption><b>Table 5 </b>EncryptionStructure</caption><thead align="left"><tr id="CreateExecutionPlan__row35933053919"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="CreateExecutionPlan__p145910301392">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="CreateExecutionPlan__p1591730143910">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="CreateExecutionPlan__p125963014395">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="CreateExecutionPlan__p059163019398">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row55915304391"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateExecutionPlan__p7591830123920">kms</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateExecutionPlan__p1759730113914">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateExecutionPlan__p12601530123918"><a href="#CreateExecutionPlan__en-us_topic_0000001709318814_request_KmsStructure">KmsStructure</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateExecutionPlan__p14607302395">If an assigned var_value is encrypted by KMS, related encryption information can be transferred. RFS will help you decrypt the var_value by KMS.</p>
|
|
<p id="CreateExecutionPlan__p10602302399"><strong id="CreateExecutionPlan__b18602309393">Note:</strong></p>
|
|
<ul id="CreateExecutionPlan__ul1860113013911"><li id="CreateExecutionPlan__li106003043913">The agency you specify for RFS should have the operation permissions on the specified key ID.</li><li id="CreateExecutionPlan__li17775642078">KMS provides a quota for free trial every month. If the quota is exceeded, you will be billed for KMS. The fee is not billed by RFS.</li><li id="CreateExecutionPlan__li1160103003918">KMS encryption only indicates that RFS uses ciphertext for storage and transmission. However, RFS still uses plaintext in stack-events. If you want RFS to use ciphertext in logs, you can declare sensitive in templates. For more information about sensitive, refer to https://learn.hashicorp.com/tutorials/terraform/sensitive-variables.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="CreateExecutionPlan__en-us_topic_0000001709318814_request_KmsStructure"></a><a name="en-us_topic_0000001709318814_request_KmsStructure"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_request_KmsStructure" frame="border" border="1" rules="all"><caption><b>Table 6 </b>KmsStructure</caption><thead align="left"><tr id="CreateExecutionPlan__row2060143012391"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.1"><p id="CreateExecutionPlan__p126023010391">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.2"><p id="CreateExecutionPlan__p186014305391">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.3"><p id="CreateExecutionPlan__p76120307396">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.6.2.5.1.4"><p id="CreateExecutionPlan__p18611330103920">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row960183013394"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="CreateExecutionPlan__p1261730183911">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="CreateExecutionPlan__p761130193910">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="CreateExecutionPlan__p66123083918">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="CreateExecutionPlan__p66193018394">KMS key ID is used by RFS during decryption. Generally, the key ID is that used for encryption.</p>
|
|
<p id="CreateExecutionPlan__p76133073916">Minimum: <strong id="CreateExecutionPlan__b116119301394">36</strong></p>
|
|
<p id="CreateExecutionPlan__p661123023916">Maximum: <strong id="CreateExecutionPlan__b1561173013394">36</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row1660930123913"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="CreateExecutionPlan__p1261173010394">cipher_text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="CreateExecutionPlan__p661183017391">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="CreateExecutionPlan__p1061143020394">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="CreateExecutionPlan__p8611330113912">Ciphertext of data encryption key.</p>
|
|
<p id="CreateExecutionPlan__p1611302395">Minimum: <strong id="CreateExecutionPlan__b6611830173915">2</strong></p>
|
|
<p id="CreateExecutionPlan__p1661230143915">Maximum: <strong id="CreateExecutionPlan__b961173018392">2048</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateExecutionPlan__section561113093910"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateExecutionPlan__p1262143033911"><strong id="CreateExecutionPlan__b162103014392">Status code: 202</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_response_CreateExecutionPlanResponseBody" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row062113093918"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="CreateExecutionPlan__p2628307395">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="CreateExecutionPlan__p0621030113916">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="CreateExecutionPlan__p12621230113914">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row862193019394"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateExecutionPlan__p196218302396">execution_plan_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateExecutionPlan__p1862183073917">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateExecutionPlan__p8621530173916">Unique execution plan ID.</p>
|
|
<p id="CreateExecutionPlan__p1162330153918">A UUID is generated by RFS when an execution plan is created.</p>
|
|
<p id="CreateExecutionPlan__p181638309399">Execution plan names are unique at one specific time, so you can create an execution plan named HelloWorld and another execution plan with the same name after deleting the first one.</p>
|
|
<p id="CreateExecutionPlan__p21631303397">For parallel development, team members may want to ensure that they are operating the execution plan they created, not one with the same name created by other members after deleting the previous one.</p>
|
|
<p id="CreateExecutionPlan__p15164030133919">To avoid this mismatch, check the ID, since RFS ensures each execution plan has a unique ID that does not change with updates. If the execution_plan_id value differs from the current execution plan ID, 400 is returned.</p>
|
|
<p id="CreateExecutionPlan__p111641230103915">Minimum: <strong id="CreateExecutionPlan__b10164230173915">36</strong></p>
|
|
<p id="CreateExecutionPlan__p1016413303391">Maximum: <strong id="CreateExecutionPlan__b616433013917">36</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateExecutionPlan__p1716433013912"><strong id="CreateExecutionPlan__b1716453015395">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_response_CommonErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row863113016392"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="CreateExecutionPlan__p10164530113911">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="CreateExecutionPlan__p0164030163911">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="CreateExecutionPlan__p15164143093913">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row963193010391"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateExecutionPlan__p16164163023911">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateExecutionPlan__p71641430203913">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateExecutionPlan__p17164153016394">Response code.</p>
|
|
<p id="CreateExecutionPlan__p1416423033914">Minimum: <strong id="CreateExecutionPlan__b14164143053911">11</strong></p>
|
|
<p id="CreateExecutionPlan__p161641230193919">Maximum: <strong id="CreateExecutionPlan__b916493010399">11</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row563103013396"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateExecutionPlan__p316483015394">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateExecutionPlan__p151641730193919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateExecutionPlan__p12164183017391">Response message.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row66315305395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateExecutionPlan__p916413301396">encoded_authorization_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateExecutionPlan__p111641030183912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateExecutionPlan__p12164143012392">The message contains information about unauthorized requests.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateExecutionPlan__p116453012398"><strong id="CreateExecutionPlan__b20164123015397">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__table56403063916" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row46410303393"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="CreateExecutionPlan__p4164173063913">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="CreateExecutionPlan__p101646304393">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="CreateExecutionPlan__p1165183043915">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row1864193083913"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateExecutionPlan__p20165930133916">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateExecutionPlan__p0165113013920">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateExecutionPlan__p1416518306394">Response code.</p>
|
|
<p id="CreateExecutionPlan__p1216553015395">Minimum: <strong id="CreateExecutionPlan__b81651630153915">11</strong></p>
|
|
<p id="CreateExecutionPlan__p6165183018392">Maximum: <strong id="CreateExecutionPlan__b116513301393">11</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row46417305397"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateExecutionPlan__p1216515302392">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateExecutionPlan__p1816518309395">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateExecutionPlan__p1216573013914">Response message.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row11648308393"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateExecutionPlan__p13165163053916">encoded_authorization_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateExecutionPlan__p31651230203919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateExecutionPlan__p11651930173914">The message contains information about unauthorized requests.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateExecutionPlan__p7165143018392"><strong id="CreateExecutionPlan__b1416519302398">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__table12652301396" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Response body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row56503053911"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="CreateExecutionPlan__p516563018392">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.2"><p id="CreateExecutionPlan__p1616503017394">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.9.2.4.1.3"><p id="CreateExecutionPlan__p016583043913">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row18652030173910"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreateExecutionPlan__p19165113016393">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreateExecutionPlan__p1116515309398">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreateExecutionPlan__p01652030113915">Response code.</p>
|
|
<p id="CreateExecutionPlan__p15165133043912">Minimum: <strong id="CreateExecutionPlan__b016563019395">11</strong></p>
|
|
<p id="CreateExecutionPlan__p2165163011399">Maximum: <strong id="CreateExecutionPlan__b71652030123913">11</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row86543014399"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreateExecutionPlan__p116512305395">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreateExecutionPlan__p161651830203910">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreateExecutionPlan__p151651030103914">Response message.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row5653305392"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreateExecutionPlan__p13165133018398">encoded_authorization_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreateExecutionPlan__p181651330173916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreateExecutionPlan__p1165330153912">The message contains information about unauthorized requests.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateExecutionPlan__p1316533043913"><strong id="CreateExecutionPlan__b161651930203914">Status code: 409</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__table196683011395" frame="border" border="1" rules="all"><caption><b>Table 11 </b>Response body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row16661830103911"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="CreateExecutionPlan__p41651530163916">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.2"><p id="CreateExecutionPlan__p2016513017390">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.11.2.4.1.3"><p id="CreateExecutionPlan__p1416533011395">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row16617308396"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="CreateExecutionPlan__p1616517304399">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="CreateExecutionPlan__p15165133017391">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="CreateExecutionPlan__p8165153017399">Response code.</p>
|
|
<p id="CreateExecutionPlan__p1716513083914">Minimum: <strong id="CreateExecutionPlan__b14165183073914">11</strong></p>
|
|
<p id="CreateExecutionPlan__p161651730173920">Maximum: <strong id="CreateExecutionPlan__b6165930103912">11</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row3661830133916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="CreateExecutionPlan__p816517307395">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="CreateExecutionPlan__p15165113023911">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="CreateExecutionPlan__p516583043919">Response message.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row46616305399"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="CreateExecutionPlan__p18165430173919">encoded_authorization_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="CreateExecutionPlan__p316518303399">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="CreateExecutionPlan__p10165133012394">The message contains information about unauthorized requests.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateExecutionPlan__p71657303396"><strong id="CreateExecutionPlan__b8165143063913">Status code: 429</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__table066330173910" frame="border" border="1" rules="all"><caption><b>Table 12 </b>Response body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row1566430203915"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.1"><p id="CreateExecutionPlan__p181665306393">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.2"><p id="CreateExecutionPlan__p4166123016398">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.13.2.4.1.3"><p id="CreateExecutionPlan__p1216619309391">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row13677304399"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="CreateExecutionPlan__p10166183073918">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="CreateExecutionPlan__p3166193093916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="CreateExecutionPlan__p2166930173912">Response code.</p>
|
|
<p id="CreateExecutionPlan__p31667306396">Minimum: <strong id="CreateExecutionPlan__b816693012393">11</strong></p>
|
|
<p id="CreateExecutionPlan__p14166133016394">Maximum: <strong id="CreateExecutionPlan__b171665306396">11</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row867730153917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="CreateExecutionPlan__p516663003913">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="CreateExecutionPlan__p101661930123912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="CreateExecutionPlan__p131661130143911">Response message.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row46743015397"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="CreateExecutionPlan__p201660307391">encoded_authorization_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="CreateExecutionPlan__p91661430163912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="CreateExecutionPlan__p216693003914">The message contains information about unauthorized requests.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateExecutionPlan__p2016615309398"><strong id="CreateExecutionPlan__b13166103073919">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__table1467330123918" frame="border" border="1" rules="all"><caption><b>Table 13 </b>Response body parameters</caption><thead align="left"><tr id="CreateExecutionPlan__row36713053911"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.15.2.4.1.1"><p id="CreateExecutionPlan__p1316663083917">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.15.2.4.1.2"><p id="CreateExecutionPlan__p19166163043912">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.15.2.4.1.3"><p id="CreateExecutionPlan__p13166730123920">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row156710309395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.1 "><p id="CreateExecutionPlan__p3166113010397">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.2 "><p id="CreateExecutionPlan__p41669301397">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.15.2.4.1.3 "><p id="CreateExecutionPlan__p91661306392">Response code.</p>
|
|
<p id="CreateExecutionPlan__p21661130153917">Minimum: <strong id="CreateExecutionPlan__b616610308390">11</strong></p>
|
|
<p id="CreateExecutionPlan__p1316623011399">Maximum: <strong id="CreateExecutionPlan__b2016617307397">11</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row1167143053911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.1 "><p id="CreateExecutionPlan__p11166430143912">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.2 "><p id="CreateExecutionPlan__p916663013913">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.15.2.4.1.3 "><p id="CreateExecutionPlan__p716619304392">Response message.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row96712308398"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.1 "><p id="CreateExecutionPlan__p1516603019391">encoded_authorization_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.15.2.4.1.2 "><p id="CreateExecutionPlan__p1216613093912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.15.2.4.1.3 "><p id="CreateExecutionPlan__p121660309395">The message contains information about unauthorized requests.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateExecutionPlan__section1616643023911"><h4 class="sectiontitle">Example Requests</h4><ul id="CreateExecutionPlan__ul316653063916"><li id="CreateExecutionPlan__li1916614302398">Create an execution plan in a specified stack based on the template.<pre class="screen" id="CreateExecutionPlan__screen1166113013917">POST https://{endpoint}/v1/ba2b9930c977f71edaeaa3a5e96a8ff1/stacks/my_hello_world_stack/execution-plans
|
|
|
|
{
|
|
"execution_plan_name" : "my_second_execution_plan",
|
|
"template_body" : "terraform {\n required_providers {\n opentelekomcloud = {\n source = \"opentelekomcloud/provider/opentelekomcloud\"\n version = \"1.35.13\"\n }\n }\n}\nprovider \"opentelekomcloud\"{\n insecure = true\n cloud = \"{cloud_name}\"\n region = \"{region}\"\n endpoints = {\n iam = \"{iam_endpoint}\",\n }\n}\n\nresource \"opentelekomcloud_vpc_v1\" \"vpc\" {\n cidr = \"172.16.0.0/16\"\n name = \"my_vpc\"\n}"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="CreateExecutionPlan__section181661530183913"><h4 class="sectiontitle">Example Responses</h4><p id="CreateExecutionPlan__p4166113011399"><strong id="CreateExecutionPlan__b81661430133918">Status code: 202</strong></p>
|
|
<p id="CreateExecutionPlan__p7166123020394">The request is accepted and processed asynchronously.</p>
|
|
<pre class="screen" id="CreateExecutionPlan__screen3166103063911">{
|
|
"execution_plan_id" : "fb5e781e-a27d-46e2-9954-242753857a9f"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreateExecutionPlan__section7166113073919"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateExecutionPlan__en-us_topic_0000001709318814_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreateExecutionPlan__row369330123912"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="CreateExecutionPlan__p12166630113920">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="CreateExecutionPlan__p8166123013398">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateExecutionPlan__row15691230103912"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateExecutionPlan__p316683063919">202</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateExecutionPlan__p216618303397">The request is accepted and processed asynchronously.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row16690302396"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateExecutionPlan__p1166103063914">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateExecutionPlan__p141661730173914">Invalid request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row1369103014391"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateExecutionPlan__p151661630103910">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateExecutionPlan__p101671030153917">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row1169133093913"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateExecutionPlan__p216773043913">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><ol id="CreateExecutionPlan__ol91671630123913"><li id="CreateExecutionPlan__li2167203011397">The user does not have the permission to call this API.</li><li id="CreateExecutionPlan__li0167930143912">The maximum number of execution plans has been reached.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row17691307392"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateExecutionPlan__p816763013916">409</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateExecutionPlan__p01677303393">Creation requests conflict. An execution plan with the same name already exists.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row1769193015395"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateExecutionPlan__p10167123016394">429</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateExecutionPlan__p81677304396">Too frequent requests.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateExecutionPlan__row3691030143919"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateExecutionPlan__p1316710303396">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateExecutionPlan__p1416793017398">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000001.html">Execution Plans</a></div>
|
|
</div>
|
|
</div>
|
|
|