Querying Stack Input
Function
This API is used to query stack input.
URI
GET /v2/stacks/{stack_id}/inputs
Parameter |
Mandatory |
Description |
---|---|---|
stack_id |
Yes |
Stack ID, which has a length of 1 to 64 characters |
Request
N/A
Response
- Response parameters
Table 2 Response parameters Parameter
Type
Description
inputs
Object
Stack input information. For each key-value pair, the key indicates the input name. The value indicates the input value.
When the input parameter is defined as of the secret/password type in the template input, the input value returned in the query interface is encrypted.
- Example response
{ "inputs": { "provison_mysql_passwd": "******", "publish_image_name": "10.175.9.211:20202/aos-team/mysql:latest" } }
Status Code
- Normal
Table 3 Status code Status Code
Description
200
Querying the stack input information is successful.
- Abnormal
Table 4 Status code Status Code
Description
404
The stack does not exist.
500
The server fails to process the request due to an unexpected condition.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.