Queries Tomcat configuration information of an application or a specified instance group where an application is deployed.
Debugging
Request headers
This operation uses only the common request header. For more information, see Common request parameters.
Request syntax
GET /pop/v5/app/container_config HTTP/1.1
Request parameters
| Parameter | Type | Position | Required | Example | Description |
|---|---|---|---|---|---|
| AppId | String | Query | Yes | 3616cdca-4f92-************** |
The ID of the application. |
| GroupId | String | Query | No | 8123db90-880f-************** |
The ID of the instance group.
|
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| Code | Integer | 200 |
The HTTP status code. |
| ContainerConfiguration | Struct |
The Tomcat configuration. |
|
| ContextPath | String | / |
The context path of the Tomcat container. |
| HttpPort | Integer | 8080 |
The application port number for the Tomcat container. The value specified in the application configuration is returned. |
| MaxThreads | Integer | 400 |
The maximum number of threads in the Tomcat container.
|
| URIEncoding | String | ISO-8859-1 |
The URI encoding scheme. Valid values: ISO-8859-1, GBK, GB2312, and UTF-8.
|
| UseBodyEncoding | Boolean | true |
Indicates whether useBodyEncodingForURI is enabled in the Tomcat container.
|
| Message | String | success |
The returned message. |
| RequestId | String | 34F8-FDG9-***************** |
The ID of the request. |
Examples
Sample requests
GET /pop/v5/app/container_config HTTP/1.1
Common request header
{
"AppId": ""
}
Sample success responses
XML format
<Message>success</Message>
<ContainerConfiguration>
<UseBodyEncoding>true</UseBodyEncoding>
<ContextPath>ROOT</ContextPath>
<MaxThreads>400</MaxThreads>
<HttpPort>8080</HttpPort>
<URIEncoding>ISO-8859-1</URIEncoding>
</ContainerConfiguration>
<Code>200</Code>
JSON format
{
"Message": "success",
"ContainerConfiguration": {
"UseBodyEncoding": true,
"ContextPath": "ROOT",
"MaxThreads": 400,
"HttpPort": 8080,
"URIEncoding": "ISO-8859-1"
},
"Code": 200
}
Error codes
For a list of error codes, visit the API Error Center.