Obtaining Application Configurations
Function
This API is used to obtain application configurations.
URI
GET /v2/{project_id}/cas/applications/{application_id}/configuration
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Tenant's project ID. |
application_id |
String |
Yes |
Application ID. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
environment_id |
String |
No |
Environment ID. If this parameter is not specified, all environments are queried. |
Request
None
Response
Parameter |
Type |
Description |
---|---|---|
configuration |
Array of objects |
Configuration information. See Table 4. |
Parameter |
Type |
Description |
---|---|---|
application_id |
String |
Application ID. |
environment_id |
String |
Environment ID. |
configuration |
Object |
Application configurations. See Table 5. |
Parameter |
Type |
Description |
---|---|---|
env |
Array of objects |
Environment variables of the application component. See Table 6. |
Example
Example request
None
Example response
{ "configuration": [ { "application_id": "e5213b62-0e3c-476f-9960-3e4108787350", "environment_id": "00078e9d-a61c-476e-ac63-a10c9cb2638e", "configuration": { "env": [ { "name": "env", "value": "value1" } ] } } ] }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
404 |
Not Found |
500 |
Internal Server Error |
Error Code
Error code must be in the format of SVCSTG.00100.[Error_ID]. Example: SVCSTG.00100400. See Error Codes of Application Management APIs.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot