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 Parameters
Request parameters
None
Response Parameters
Response parameters
| Parameter | Type | Description |
|---|---|---|
| application_id | String | Application ID. |
| environment_id | String | Environment ID. |
| configuration | Object | Application configurations. See Table 4. |
| Parameter | Type | Description |
|---|---|---|
| env | Array of objects | Environment variables of the application component. See Table 5. |
Example
Example request
None
Example response
{
"application_id": "06cf2fda-af45-44b4-9e22-6294c4804515",
"environment_id": "0fa75dfe-0d32-4bc1-848b-8008cf3f2567",
"configuration": {
"env": [
{
"name": "app-env",
"value": "env"
}
]
}
} Status Code
| HTTP Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Error code must be in the format of SVCSTG.00100.[Error_ID]. Example: SVCSTG.00100400. See Error Codes of Application Management APIs.
Last Article: Deleting Application Configurations
Next Article: Components
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.