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

2.3 KiB

Redirection Description

Redirect

In the Heat API, the stack ID consists of stack_name and stack_id. When the system calls APIs to access resources such as stacks, templates, events, and actions, if only stack_name is specified, Heat queries the stack_id value and returns a redirect response pointing to the correct URL. The following provides a request example:

GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack

After redirection, the actual request is as follows:

Location: http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306

Redirect APIs

The APIs used in the following topics support redirection. When calling the following APIs to access stacks or templates, you can specify only stack_name or stack_id.