Mengambil informasi aplikasi untuk kontainer tepi, termasuk konfigurasi dasar aplikasi dan pengaturan pemeriksaan kesehatan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetEdgeContainerApp |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. Anda dapat memperoleh ID aplikasi dengan memanggil operasi ListEdgeContainerApps. |
app-88068867578379**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
156A6B-677B1A-4297B7-9187B7-2B44792 |
| App |
object |
Informasi dasar aplikasi. |
|
| Status |
string |
Status aplikasi. Nilai valid:
|
created |
| GatewayType |
string |
Tipe gerbang. Nilai valid:
|
l7 |
| CreateTime |
string |
Waktu pembuatan. Waktu mengikuti standar ISO 8601 dalam format yyyy-MM-ddTHH:mm:ssZ. Waktu ditampilkan dalam UTC. |
2023-07-25T05:58:05Z |
| VersionCount |
integer |
Jumlah versi aplikasi. |
1 |
| DomainName |
string |
Nama domain yang terikat ke aplikasi. Jika tidak ada nama domain yang terikat, string kosong akan dikembalikan. |
www.1feel.cn |
| Remarks |
string |
Keterangan aplikasi. |
test app |
| ServicePort |
integer |
Nomor Port layanan. Nilai valid: 1 hingga 65535. |
80 |
| AppId |
string |
ID aplikasi. |
app-88068867578379**** |
| TargetPort |
integer |
Port Backend, yang juga merupakan Port layanan aplikasi. Nilai valid: 1 hingga 65535. |
80 |
| QuicCid |
string |
Apakah dukungan QUIC diaktifkan. |
false |
| Name |
string |
Nama aplikasi. |
test-app1 |
| UpdateTime |
string |
Waktu modifikasi terakhir aplikasi. Waktu mengikuti standar ISO 8601 dalam format yyyy-MM-ddTHH:mm:ssZ. Waktu ditampilkan dalam UTC. |
2023-03-26T02:35:58Z |
| HealthCheck |
object |
Informasi pemeriksaan kesehatan. |
|
| Timeout |
integer |
The timeout period of the health check. Unit: seconds. |
60 |
| Type |
string |
The health check type. Valid values:
|
l7 |
| Host |
string |
The domain name that is used for health checks. |
test.com |
| Interval |
integer |
The interval between health checks. Unit: seconds. |
5 |
| SuccTimes |
integer |
The number of consecutive successful health checks required for an application to be considered as healthy. |
3 |
| Method |
string |
The HTTP method that the health check request uses. |
HEAD |
| HttpCode |
string |
The range of health check status codes that indicate successful health checks. |
http_2xx |
| FailTimes |
integer |
The number of consecutive failed health checks required for an application to be considered as unhealthy. |
5 |
| Port |
integer |
The health check port. |
80 |
| Uri |
string |
The health check URL. |
/health_check |
Contoh
Respons sukses
JSONformat
{
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792",
"App": {
"Status": "created",
"GatewayType": "l7",
"CreateTime": "2023-07-25T05:58:05Z",
"VersionCount": 1,
"DomainName": "www.1feel.cn",
"Remarks": "test app",
"ServicePort": 80,
"AppId": "app-88068867578379****",
"TargetPort": 80,
"QuicCid": "false",
"Name": "test-app1",
"UpdateTime": "2023-03-26T02:35:58Z",
"HealthCheck": {
"Timeout": 60,
"Type": "l7",
"Host": "test.com",
"Interval": 5,
"SuccTimes": 3,
"Method": "HEAD",
"HttpCode": "http_2xx",
"FailTimes": 5,
"Port": 80,
"Uri": "/health_check"
}
}
}
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. | Format ID aplikasi yang ditentukan salah. Panggil operasi ListEdgeContainerApps untuk mendapatkan ID aplikasi. |
| 400 | InvalidParameter | The specified parameter is invalid. | Validasi format parameter input gagal. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Gagal memanggil layanan. Coba lagi nanti atau hubungi layanan pelanggan untuk detail lebih lanjut. |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | Aplikasi yang sesuai dengan ID aplikasi yang ditentukan tidak ada. Periksa ID aplikasi dan coba lagi. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.