Mengambil konfigurasi pengumpulan log aplikasi kontainer tepi.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
ID aplikasi. Anda dapat memanggil operasi ListEdgeContainerApps untuk mendapatkan ID aplikasi. Penting AppId adalah parameter yang diperlukan. Jika parameter ini tidak ditentukan, API akan mengembalikan InvalidParameter.appid (400). Anda dapat memanggil operasi ListEdgeContainerApps untuk mendapatkan AppId yang valid. |
app-880688675****88 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
| Stdout |
boolean |
Apakah pengumpulan output standar diaktifkan untuk kontainer. |
|
| Path |
string |
Jalur file log kontainer. Jalur harus berupa jalur mutlak yang dimulai dengan garis miring (/). Tanda bintang (*) dan tanda tanya (?) dapat digunakan sebagai wildcard. |
/root/hello.log |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9",
"Stdout": false,
"Path": "/root/hello.log"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. |
| 400 | InvalidParameter | Invalid parameter. Check the parameter configuration. | Invalid parameter. Check the parameter configuration. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | The application does not exist. Check whether the application ID you specified is correct and try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.