Queries the Tomcat configurations of an application.
Debugging
Request headers
This operation uses only common request headers. For more information, see the topic about common request parameters.
Request syntax
GET /pop/v5/oam/web_container_config HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | 5a166fbd-****-**** |
The ID of the application. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The HTTP status code. |
Message | String | success |
The returned message that indicates whether the call is successful. |
RequestId | String | 4823-bhjf-23u4-eiufh |
The ID of the request. |
WebContainerConfig | Struct |
The Tomcat configurations of the application. |
|
ContextInputType | String | root |
The type of the context path. |
ContextPath | String | ROOT |
The context path. |
HttpPort | Integer | 8080 |
The HTTP service port. |
MaxThreads | Integer | 500 |
The maximum number of threads. |
ServerXml | String | <Server port=***** |
The content of the server.xml file customized by using advanced configurations. |
UriEncoding | String | ISO-8859-1 |
The uniform resource identifier (URI) encoding scheme. |
UseAdvancedServerXml | Boolean | true |
Indicates whether advanced configurations are used to customize the server.xml file. |
UseBodyEncoding | Boolean | true |
Indicates whether the encoding scheme specified in the request body is used for URI query parameters. |
UseDefaultConfig | Boolean | true |
Indicates whether the default configurations are used. |
Examples
Sample requests
GET /pop/v5/oam/web_container_config HTTP/1.1
Common request headers
{
"AppId": "5a166fbd-****-****"
}
Sample success responses
XML
format
<GetWebContainerConfigResponse>
<Message>success</Message>
<RequestId>4823-bhjf-23u4-eiufh</RequestId>
<Code>200</Code>
<WebContainerConfig>
<HttpPort>8080</HttpPort>
<UriEncoding>ISO-8859-1</UriEncoding>
<ContextPath>ROOT</ContextPath>
<ContextInputType>root</ContextInputType>
<UseBodyEncoding>true</UseBodyEncoding>
<ServerXml><Server port=*****</ServerXml>
<MaxThreads>500</MaxThreads>
<UseDefaultConfig>true</UseDefaultConfig>
<UseAdvancedServerXml>true</UseAdvancedServerXml>
</WebContainerConfig>
</GetWebContainerConfigResponse>
JSON
format
{
"Message": "success",
"RequestId": "4823-bhjf-23u4-eiufh",
"Code": 200,
"WebContainerConfig": {
"HttpPort": 8080,
"UriEncoding": "ISO-8859-1",
"ContextPath": "ROOT",
"ContextInputType": "root",
"UseBodyEncoding": true,
"ServerXml": "<Server port=*****",
"MaxThreads": 500,
"UseDefaultConfig": true,
"UseAdvancedServerXml": true
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
500 | UnknownError | The request processing has failed due to some unknown error. | The error message returned because an unknown error has occurred. Retry the operation. If the error occurs again, submit a ticket. |
For a list of error codes, visit the API Error Center.