You can call this operation to query the Tomcat settings of an application or an instance group.

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 only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

GET /pop/v5/app/container_config HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
AppId String Yes 3616cdca-4f92-**************

The ID of the application whose Tomcat settings you want to query.

GroupId String No 8123db90-880f-**************

The ID of the instance group whose Tomcat settings you want to query.

If you want to query the Tomcat settings of an instance group, set this parameter to a specific ID.

If you want to query the Tomcat settings of an application, set this parameter to "".

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String 34F8-FDG9-*****************
ContainerConfiguration Struct

The returned settings of the Tomcat container.

ContextPath String /

The context path of the Tomcat container. The value specified in the application configuration is returned.

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.

1. The default value is returned if this parameter is not specified in the application configuration.

2. The value specified in the application configuration is returned if this parameter is not specified in the group configuration.

URIEncoding String ISO-8859-1

The uniform resource identifier (URI) encoding scheme in the Tomcat container. Valid values: ISO-8859-1, GBK, GBK213, and UTF-8.

1. The default value is returned if this parameter is not specified in the application configuration.

2. The value specified in the application configuration is returned if this parameter is not specified in the group configuration.

UseBodyEncoding Boolean true

Indicates whether useBodyEncodingForURI is enabled in the Tomcat container.

1. The default value is returned if this parameter is not specified in the application configuration.

2. The value specified in the application configuration is returned if this parameter is not specified in the group configuration.

Examples

Sample requests

GET /pop/v5/app/container_config HTTP/1.1
Common request headers
{
  "AppId": ""
}

Sample success responses

JSON format

{
    "Message": "success",
    "ContainerConfiguration": {
        "UseBodyEncoding": true,
        "ContextPath": "ROOT",
        "MaxThreads": 400,
        "HttpPort": 8080,
        "URIEncoding": "ISO-8859-1"
    },
    "Code": 200
}

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>

Error codes

For a list of error codes, visit the API Error Center.