1
0
forked from docs/doc-exports
doc-exports/docs/rts/api-ref/rts_03_0051.html
Hasko, Vladimir 354bef10dd RTS API 0930 version (recreate of #289)
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2022-12-02 15:11:35 +00:00

349 lines
25 KiB
HTML

<a name="rts_03_0051"></a><a name="rts_03_0051"></a>
<h1 class="topictitle1">Creating One or More Software Configurations</h1>
<div id="body1511161465561"><div class="section" id="rts_03_0051__en-us_topic_0057973155_section39327087"><h4 class="sectiontitle">Function</h4><p id="rts_03_0051__en-us_topic_0057973155_p58909564">This API is used to create one or more software configurations.</p>
</div>
<div class="section" id="rts_03_0051__en-us_topic_0057973155_section18399466"><h4 class="sectiontitle">URI</h4><p id="rts_03_0051__p76479013312">POST /v1/{project_id}/software_configs</p>
<p id="rts_03_0051__p245971418538">For details about the parameters, see <a href="#rts_03_0051__table1759528275">Table 1</a>.</p>
<div class="tablenoborder"><a name="rts_03_0051__table1759528275"></a><a name="table1759528275"></a><table cellpadding="4" cellspacing="0" summary="" id="rts_03_0051__table1759528275" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rts_03_0051__row26011272716"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.4.2.5.1.1"><p id="rts_03_0051__p17762534144716"><strong id="rts_03_0051__b6928202019284">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.4.2.5.1.2"><p id="rts_03_0051__p376433420478"><strong id="rts_03_0051__b5926172118288">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.4.2.5.1.3"><p id="rts_03_0051__p15766123474714"><strong id="rts_03_0051__b12908152211283">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.4.2.5.1.4"><p id="rts_03_0051__p147683349474"><strong id="rts_03_0051__b15816152382815">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rts_03_0051__row10601725277"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.4.2.5.1.1 "><p id="rts_03_0051__p1765464961019">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.4.2.5.1.2 "><p id="rts_03_0051__p0655184916104">String</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.4.2.5.1.3 "><p id="rts_03_0051__p865694971017">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.4.2.5.1.4 "><p id="rts_03_0051__p13658144921010">Specifies the project ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rts_03_0051__en-us_topic_0057973155_section31377468"><h4 class="sectiontitle">Request Parameter</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rts_03_0051__en-us_topic_0057973155_table65929779113135" frame="border" border="1" rules="all"><thead align="left"><tr id="rts_03_0051__en-us_topic_0057973155_row4303892113135"><th align="left" class="cellrowborder" valign="top" width="13.861386138613863%" id="mcps1.3.3.2.1.6.1.1"><p id="rts_03_0051__p13701251185014"><strong id="rts_03_0051__b1230411296284">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.85148514851485%" id="mcps1.3.3.2.1.6.1.2"><p id="rts_03_0051__p13704145119507"><strong id="rts_03_0051__b10409203319282">In</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.85148514851485%" id="mcps1.3.3.2.1.6.1.3"><p id="rts_03_0051__p3705151185017"><strong id="rts_03_0051__b13403234192818">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.85148514851485%" id="mcps1.3.3.2.1.6.1.4"><p id="rts_03_0051__p18709155145010"><strong id="rts_03_0051__b750218355280">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="41.584158415841586%" id="mcps1.3.3.2.1.6.1.5"><p id="rts_03_0051__p1371214511507"><strong id="rts_03_0051__b84961636152812">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rts_03_0051__row15808195064410"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.2.1.6.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p329864113144">name</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.2 "><p id="rts_03_0051__p1033162910431">body</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p26719017113144">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p16756734113144">No</p>
</td>
<td class="cellrowborder" valign="top" width="41.584158415841586%" headers="mcps1.3.3.2.1.6.1.5 "><p id="rts_03_0051__en-us_topic_0057973155_p15118191113144">Specifies the name of the software configuration.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row41540504113135"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.2.1.6.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p61868181113144">config</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.2 "><p id="rts_03_0051__p6333294432">body</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p45266725113144">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p42726081113144">No</p>
</td>
<td class="cellrowborder" valign="top" width="41.584158415841586%" headers="mcps1.3.3.2.1.6.1.5 "><p id="rts_03_0051__en-us_topic_0057973155_p38260562113144">Specifies the script used for defining the configuration.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row24454548113135"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.2.1.6.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p41771845113144">group</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.2 "><p id="rts_03_0051__p1339291437">body</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p28076297113144">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p59587548113144">No</p>
</td>
<td class="cellrowborder" valign="top" width="41.584158415841586%" headers="mcps1.3.3.2.1.6.1.5 "><p id="rts_03_0051__en-us_topic_0057973155_p61862121113144">Specifies the name of the software configuration group.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row38792844113135"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.2.1.6.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p15308182113144">inputs</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.2 "><p id="rts_03_0051__p1333142934318">body</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p32003214113144">List &lt;dict&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p42123518113144">No</p>
</td>
<td class="cellrowborder" valign="top" width="41.584158415841586%" headers="mcps1.3.3.2.1.6.1.5 "><p id="rts_03_0051__en-us_topic_0057973155_p56561807113144">Specifies the software configuration input.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row65450611113135"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.2.1.6.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p28715184113144">outputs</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.2 "><p id="rts_03_0051__p173312944313">body</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p44228553113144">List &lt;dict&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p25743039113144">No</p>
</td>
<td class="cellrowborder" valign="top" width="41.584158415841586%" headers="mcps1.3.3.2.1.6.1.5 "><p id="rts_03_0051__en-us_topic_0057973155_p4811385113144">Specifies the software configuration output.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row25758153113135"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.2.1.6.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p17838943113144">options</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.2 "><p id="rts_03_0051__p0337295430">body</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p35668275113144">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.3.2.1.6.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p3449192113144">No</p>
</td>
<td class="cellrowborder" valign="top" width="41.584158415841586%" headers="mcps1.3.3.2.1.6.1.5 "><p id="rts_03_0051__en-us_topic_0057973155_p10949158113144">Specifies options used by a software configuration management tool.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rts_03_0051__en-us_topic_0057973155_section13961758"><h4 class="sectiontitle">Response Parameter</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rts_03_0051__table534093217106" frame="border" border="1" rules="all"><thead align="left"><tr id="rts_03_0051__row19342113221011"><th align="left" class="cellrowborder" valign="top" width="16.470000000000002%" id="mcps1.3.4.2.1.5.1.1"><p id="rts_03_0051__p10524141715571"><strong id="rts_03_0051__b09061987291">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.470000000000002%" id="mcps1.3.4.2.1.5.1.2"><p id="rts_03_0051__p13528131714576"><strong id="rts_03_0051__b496510912296">In</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.65%" id="mcps1.3.4.2.1.5.1.3"><p id="rts_03_0051__p8531141795714"><strong id="rts_03_0051__b0993210202918">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.41%" id="mcps1.3.4.2.1.5.1.4"><p id="rts_03_0051__p4535181705714"><strong id="rts_03_0051__b2964711152913">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rts_03_0051__row334213329108"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.2.1.5.1.1 "><p id="rts_03_0051__p12342732111015">software_config</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.2.1.5.1.2 "><p id="rts_03_0051__p154421347134514">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.2.1.5.1.3 "><p id="rts_03_0051__p123421332141018">Dict</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.2.1.5.1.4 "><p id="rts_03_0051__p0342183218106">Specifies the software configuration information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rts_03_0051__p571581151610"><strong id="rts_03_0051__b8972173142916">software_config</strong> structure information</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rts_03_0051__en-us_topic_0057973155_table66276559" frame="border" border="1" rules="all"><thead align="left"><tr id="rts_03_0051__en-us_topic_0057973155_row11349229"><th align="left" class="cellrowborder" valign="top" width="16.470000000000002%" id="mcps1.3.4.4.1.5.1.1"><p id="rts_03_0051__p16504720125711"><strong id="rts_03_0051__b66260425294">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.470000000000002%" id="mcps1.3.4.4.1.5.1.2"><p id="rts_03_0051__p17508192095710"><strong id="rts_03_0051__b23351463301">In</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.65%" id="mcps1.3.4.4.1.5.1.3"><p id="rts_03_0051__p16512220165714"><strong id="rts_03_0051__b668414143011">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.41%" id="mcps1.3.4.4.1.5.1.4"><p id="rts_03_0051__p175201820165714"><strong id="rts_03_0051__b128601911203013">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rts_03_0051__en-us_topic_0057973155_row12495801"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p5526924">inputs</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p16884141154310">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p45027737">List &lt;dict&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p13765499">Specifies the software configuration input.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row56780633"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p35828526">name</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p488412412433">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p16429471">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p16929400">Specifies the name of the software configuration.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row18146878"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p60610990">outputs</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p16884741124310">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p10543167">List &lt;dict&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p51592162">Specifies the software configuration output.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row61676281"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p29722863">creation_time</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p13884184104320">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p58741673">Date Time</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p65021323">Specifies the time when the configuration was created.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row48320995"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p21686552">group</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p17884154115433">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p11780310">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p48312586">Specifies the name of the software configuration group.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row32160094"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p54830812">config</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p88841341204318">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p12110791">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p2006018">Specifies the software configuration code.</p>
</td>
</tr>
<tr id="rts_03_0051__en-us_topic_0057973155_row18054162"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__en-us_topic_0057973155_p53100979">options</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p688454116436">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__en-us_topic_0057973155_p6212037">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__en-us_topic_0057973155_p22096474">Specifies the software configuration options.</p>
</td>
</tr>
<tr id="rts_03_0051__row137462219123"><td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.1 "><p id="rts_03_0051__p177414227124">id</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.4.4.1.5.1.2 "><p id="rts_03_0051__p6884174174320">body</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.4.1.5.1.3 "><p id="rts_03_0051__p18741222131217">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.41%" headers="mcps1.3.4.4.1.5.1.4 "><p id="rts_03_0051__p17741222151220">Specifies the software configuration UUID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rts_03_0051__en-us_topic_0057973155_section58546961"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="rts_03_0051__en-us_topic_0057973155_screen14200006113229">POST /v1/95d02433133a4c0a87ba6967474a2ad3/software_configs
{
"inputs": [
{
"default": null,
"type": "String",
"name": "foo",
"description": null
},
{
"default": null,
"type": "String",
"name": "bar",
"description": null
}
],
"group": "script",
"name": "a-config-we5zpvyu7b5o",
"outputs": [
{
"type": "String",
"name": "result",
"error_output": false,
"description": null
}
],
"config": "#!/bin/sh -x\necho \"Writing to /tmp/$bar\"\necho $foo &gt; /tmp/$bar\necho -n \"The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action\" &gt; $heat_outputs_path.result\necho \"Written to /tmp/$bar\"\necho \"Output to stderr\" 1&gt;&amp;2",
"options": null
}</pre>
</div>
<div class="section" id="rts_03_0051__en-us_topic_0057973155_section57160607"><h4 class="sectiontitle">Response Example</h4><pre class="screen" id="rts_03_0051__en-us_topic_0057973155_screen5545480113245">{
"software_config": {
"creation_time": "2015-01-31T15:12:36Z",
"inputs": [
{
"default": null,
"type": "String",
"name": "foo",
"description": null
},
{
"default": null,
"type": "String",
"name": "bar",
"description": null
}
],
"group": "script",
"name": "a-config-we5zpvyu7b5o",
"outputs": [
{
"type": "String",
"name": "result",
"error_output": false,
"description": null
}
],
"options": null,
"config": "#!/bin/sh -x\necho \"Writing to /tmp/$bar\"\necho $foo &gt; /tmp/$bar\necho -n \"The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action\" &gt; $heat_outputs_path.result\necho \"Written to /tmp/$bar\"\necho \"Output to stderr\" 1&gt;&amp;2",
"id": "ddee7aca-aa32-4335-8265-d436b20db4f1"
}
}</pre>
</div>
<div class="section" id="rts_03_0051__en-us_topic_0057973155_section44683415"><h4 class="sectiontitle">Return Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rts_03_0051__table01411862119" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Normal return code</caption><thead align="left"><tr id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_row42419326194057"><th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.7.2.2.4.1.1"><p id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_p13413377194057"><strong id="rts_03_0051__rts_03_0020_b14910172512114">Return Code</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26%" id="mcps1.3.7.2.2.4.1.2"><p id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_p12741761194057"><strong id="rts_03_0051__rts_03_0020_en-us_topic_0057973140_b84235270615814_1">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51%" id="mcps1.3.7.2.2.4.1.3"><p id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_p25449701194057"><strong id="rts_03_0051__rts_03_0020_en-us_topic_0057973140_b842352706193020">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_row48159894194057"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.7.2.2.4.1.1 "><p id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_p8637307194057">200</p>
</td>
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.7.2.2.4.1.2 "><p id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_p28533244194057">OK</p>
</td>
<td class="cellrowborder" valign="top" width="51%" headers="mcps1.3.7.2.2.4.1.3 "><p id="rts_03_0051__rts_03_0020_en-us_topic_0057973117_p29491459194057">Request was successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rts_03_0051__table8571828153012" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Error return code</caption><thead align="left"><tr id="rts_03_0051__rts_03_0029_row16955110342"><th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.7.3.2.4.1.1"><p id="rts_03_0051__rts_03_0029_p129561510144"><strong id="rts_03_0051__rts_03_0029_b1235759101013">Return Code</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26%" id="mcps1.3.7.3.2.4.1.2"><p id="rts_03_0051__rts_03_0029_p4959810444"><strong id="rts_03_0051__rts_03_0029_en-us_topic_0057973140_b84235270615814_1">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51%" id="mcps1.3.7.3.2.4.1.3"><p id="rts_03_0051__rts_03_0029_p9959161020418"><strong id="rts_03_0051__rts_03_0029_en-us_topic_0057973140_b842352706193020">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rts_03_0051__rts_03_0029_row179609103411"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.7.3.2.4.1.1 "><p id="rts_03_0051__rts_03_0029_p896118101840">400</p>
</td>
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.7.3.2.4.1.2 "><p id="rts_03_0051__rts_03_0029_p1296211015416">Bad Request</p>
</td>
<td class="cellrowborder" valign="top" width="51%" headers="mcps1.3.7.3.2.4.1.3 "><p id="rts_03_0051__rts_03_0029_p9963110146">The server failed to process the request.</p>
</td>
</tr>
<tr id="rts_03_0051__rts_03_0029_row181330274199"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.7.3.2.4.1.1 "><p id="rts_03_0051__rts_03_0029_p18134027201912">401</p>
</td>
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.7.3.2.4.1.2 "><p id="rts_03_0051__rts_03_0029_p1713419274191">Unauthorized</p>
</td>
<td class="cellrowborder" valign="top" width="51%" headers="mcps1.3.7.3.2.4.1.3 "><p id="rts_03_0051__rts_03_0029_p11134162718196">Authorization failed.</p>
</td>
</tr>
<tr id="rts_03_0051__rts_03_0029_row16531631121913"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.7.3.2.4.1.1 "><p id="rts_03_0051__rts_03_0029_en-us_topic_0057973122_p5338333194217">404</p>
</td>
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.7.3.2.4.1.2 "><p id="rts_03_0051__rts_03_0029_p125520290312">Not found</p>
</td>
<td class="cellrowborder" valign="top" width="51%" headers="mcps1.3.7.3.2.4.1.3 "><p id="rts_03_0051__rts_03_0029_en-us_topic_0057973122_p29751790194217">The requested resources are not found.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rts_03_0050.html">Software Configuration Management</a></div>
</div>
</div>