Queries Tomcat configuration information of an application or a specified instance group where an application is deployed.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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.

  • If an ID is specified, this operation queries the Tomcat configuration of the specified instance group.
  • If you set this parameter to "", this operation queries the Tomcat configuration of the application.

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.

  • If no instance group is specified, the configuration of the application is returned.
  • If no application is specified, the default configuration is returned.
URIEncoding String ISO-8859-1

The URI encoding scheme. Valid values: ISO-8859-1, GBK, GB2312, and UTF-8.

  • If no instance group is specified, the configuration of the application is returned.
  • If no application is specified, the default configuration is returned.
UseBodyEncoding Boolean true

Indicates whether useBodyEncodingForURI is enabled in the Tomcat container.

  • If no instance group is specified, the configuration of the application is returned.
  • If no application is specified, the default configuration is returned.
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.