Configures the Tomcat container for an application or application instance group in an Elastic Compute Service (ECS) cluster.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
edas:ManageApplication | Write |
|
| none |
Request syntax
POST /pop/v5/app/container_config
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AppId | string | Yes | The ID of the application. | c627c157-560d-43ff-************ |
GroupId | string | No | The ID of the application instance group.
| 8123db90-880f-************** |
ContextPath | string | No | 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:
| / |
HttpPort | integer | No | The application port number for the Tomcat container. Take note of the following items:
| 8080 |
MaxThreads | integer | No | The maximum number of threads. Take note of the following items:
| 20 |
URIEncoding | string | No | The uniform resource identifier (URI) encoding scheme. Valid values: ISO-8859-1, GBK, GB2312, and UTF-8. Take note of the following items:
| ISO-8859-1 |
UseBodyEncoding | boolean | No | Specifies whether to use the encoding scheme specified in the request body for URI query parameters. Take note of the following items:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|