doc-exports/docs/rts/api-ref/rts_03_0016.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

19 lines
2.3 KiB
HTML

<a name="rts_03_0016"></a><a name="rts_03_0016"></a>
<h1 class="topictitle1">Redirection Description</h1>
<div id="body1511161465560"><div class="section" id="rts_03_0016__section152735214014"><h4 class="sectiontitle">Redirect</h4><p id="rts_03_0016__p1967619324013">In the Heat API, the stack ID consists of <strong id="rts_03_0016__b1475611199502">stack_name</strong> and <strong id="rts_03_0016__b18756719175016">stack_id</strong>. When the system calls APIs to access resources such as stacks, templates, events, and actions, if only <strong id="rts_03_0016__en-us_topic_0078864757_b1281958196103853">stack_name</strong> is specified, Heat queries the <strong id="rts_03_0016__en-us_topic_0078864757_b84235270610405">stack_id</strong> value and returns a redirect response pointing to the correct URL. The following provides a request example:</p>
<pre class="screen" id="rts_03_0016__en-us_topic_0078864757_screen23441340">GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack</pre>
<p id="rts_03_0016__p19790227164017">After redirection, the actual request is as follows:</p>
<pre class="screen" id="rts_03_0016__en-us_topic_0078864757_screen19700367">Location: http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306</pre>
</div>
<div class="section" id="rts_03_0016__section74276034111"><h4 class="sectiontitle">Redirect APIs</h4><p id="rts_03_0016__p111679224116">The APIs used in the following topics support redirection. When calling the following APIs to access stacks or templates, you can specify only <strong id="rts_03_0016__b51316520171">stack_name</strong> or <strong id="rts_03_0016__b1033395741716">stack_id</strong>.</p>
<ul id="rts_03_0016__ul195501616104211"><li id="rts_03_0016__li055010166420"><a href="rts_03_0025.html">Querying Details of a Stack</a></li><li id="rts_03_0016__li127043411429"><a href="rts_03_0029.html">Querying Resources of a Stack</a></li><li id="rts_03_0016__li1736616494318"><a href="rts_03_0038.html">Querying Events of a Stack</a></li><li id="rts_03_0016__li1195791819533"><a href="rts_03_0043.html">Querying a Stack Template</a></li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rts_03_0014.html">General Information</a></div>
</div>
</div>