Mengonfigurasi kontainer Tomcat untuk aplikasi atau kelompok instans aplikasi di kluster Elastic Compute Service (ECS).
Coba sekarang
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageApplication |
update |
*Application
|
None | None |
Sintaks permintaan
POST /pop/v5/app/container_config HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. |
c627c157-560d-43ff-************ |
| GroupId |
string |
No |
ID kelompok instans aplikasi.
|
8123db90-880f-************** |
| ContextPath |
string |
No |
Jalur konteks kontainer Tomcat. Jalur konteks dapat berupa string kosong, nama paket WAR null, direktori root, atau string kustom bukan kosong lainnya. Dapat berisi huruf, digit, tanda hubung (-), dan garis bawah (_). Perhatikan hal-hal berikut:
|
/ |
| HttpPort |
integer |
No |
Nomor port aplikasi untuk kontainer Tomcat. Perhatikan hal-hal berikut:
|
8080 |
| MaxThreads |
integer |
No |
Jumlah thread maksimum. Perhatikan hal-hal berikut:
|
20 |
| URIEncoding |
string |
No |
Skema pengodean pengidentifikasi sumber daya seragam (URI). Nilai valid: ISO-8859-1, GBK, GB2312, dan UTF-8. Perhatikan hal-hal berikut:
|
ISO-8859-1 |
| UseBodyEncoding |
boolean |
No |
Apakah akan menggunakan skema pengodean yang ditentukan di badan permintaan untuk parameter kueri URI. Perhatikan hal-hal berikut:
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned content. |
||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The additional information that is returned. |
success |
| RequestId |
string |
The ID of the request. |
D16979DC-4D42-*************** |
| ContainerConfiguration |
object |
The configuration of the Tomcat container. |
|
| HttpPort |
integer |
The application port number for the Tomcat container. |
8080 |
| ContextPath |
string |
The context path of the Tomcat container. |
/ |
| UseBodyEncoding |
boolean |
Indicates whether useBodyEncodingForURI is enabled. |
true |
| MaxThreads |
integer |
The maximum number of threads. |
20 |
| URIEncoding |
string |
The URI encoding scheme. Valid values: ISO-8859-1, GBK, GB2312, and UTF-8. |
ISO-8859-1 |
Contoh
Respons sukses
JSONformat
{
"Code": 200,
"Message": "success",
"RequestId": "D16979DC-4D42-***************",
"ContainerConfiguration": {
"HttpPort": 8080,
"ContextPath": "/",
"UseBodyEncoding": true,
"MaxThreads": 20,
"URIEncoding": "ISO-8859-1"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat 变更详情Release Notes untuk daftar lengkap.