All Products
Search
Document Center

Enterprise Distributed Application Service:UpdateContainerConfiguration

Last Updated:Jan 08, 2024

Configures the Tomcat container for an application or application instance group in an Elastic Compute Service (ECS) cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Debug

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
edas:ManageApplicationWrite
  • Application
    acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}
    none
none

Request syntax

POST /pop/v5/app/container_config

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application.

c627c157-560d-43ff-************
GroupIdstringNo

The ID of the application instance group.

  • If an ID is specified, this operation configures the Tomcat container for the specified application instance group.
  • If you set this parameter to "", this operation configures the Tomcat container for the application.
8123db90-880f-**************
ContextPathstringNo

The context path of the Tomcat container. The context path can be an empty string, a null WAR package name, a root directory, or other custom non-empty strings. It can contain letters, digits, hyphens (-), and underscores (_). Take note of the following items:

  • If this parameter is not specified when you configure the application instance group, the configuration of the application is applied.
  • If this parameter is not specified when you configure the Tomcat container for an application, the root directory / is used.
/
HttpPortintegerNo

The application port number for the Tomcat container. Take note of the following items:

  • If this parameter is not specified when you configure the application instance group, the configuration of the application is applied.
  • If this parameter is not specified when you configure the application, the default port 8080 is applied.
8080
MaxThreadsintegerNo

The maximum number of threads. Take note of the following items:

  • If this parameter is not specified when you configure the application instance group, the configuration of the application is applied.
  • If this parameter is not specified when you configure the application, the default value 250 is applied.
20
URIEncodingstringNo

The uniform resource identifier (URI) encoding scheme. Valid values: ISO-8859-1, GBK, GB2312, and UTF-8. Take note of the following items:

  • If this parameter is not specified when you configure the application instance group, the configuration of the application is applied.
  • If this parameter is not specified when you configure the application, the default URI encoding scheme in the Tomcat container is applied.
ISO-8859-1
UseBodyEncodingbooleanNo

Specifies whether to use the encoding scheme specified in the request body for URI query parameters. Take note of the following items:

  • If this parameter is not specified when you configure the application instance group, the configuration of the application is applied.
  • If this parameter is not specified when you configure the application, the default value false is applied.
true

Response parameters

ParameterTypeDescriptionExample
object

The returned content.

Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

success
RequestIdstring

The ID of the request.

D16979DC-4D42-***************
ContainerConfigurationobject

The configuration of the Tomcat container.

HttpPortinteger

The application port number for the Tomcat container.

8080
ContextPathstring

The context path of the Tomcat container.

/
UseBodyEncodingboolean

Indicates whether useBodyEncodingForURI is enabled.

true
MaxThreadsinteger

The maximum number of threads.

20
URIEncodingstring

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

ISO-8859-1

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "D16979DC-4D42-***************",
  "ContainerConfiguration": {
    "HttpPort": 8080,
    "ContextPath": "/",
    "UseBodyEncoding": true,
    "MaxThreads": 20,
    "URIEncoding": "ISO-8859-1"
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history