Mengambil informasi dasar tentang aplikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:GetApplication |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/sam/app/getApplication HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
ID aplikasi. |
017f39b8-dfa4-4e16-a84b-1dcee4b1**** |
| AppName |
string |
No |
Nama aplikasi. |
test |
| NamespaceId |
string |
No |
ID namespace. |
cn-shenzhen |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. |
01CF26C7-00A3-4AA6-BA76-7E95F2A3**** |
| Message |
string |
Pesan respons.
|
success |
| TraceId |
string |
ID pelacakan yang digunakan untuk menanyakan detail permintaan. |
ac1a0b2215622920113732501e**** |
| Application |
object |
Detail aplikasi. |
|
| AppId |
string |
ID aplikasi. |
443d638a-ef76-47c4-b707-61197d****** |
| AppName |
string |
Nama aplikasi. |
test |
| AppDescription |
string |
Deskripsi aplikasi. |
for testing |
| NamespaceId |
string |
ID namespace. |
cn-shenzhen |
| ScaleRuleType |
string |
Jenis kebijakan penskalaan otomatis. Nilai yang valid:
|
timing |
| ScaleRuleEnabled |
string |
Menunjukkan apakah kebijakan penskalaan otomatis diaktifkan. Nilai yang valid:
|
true |
| RunningInstances |
integer |
Jumlah instans yang sedang berjalan. |
6 |
| Instances |
integer |
Jumlah total instans aplikasi. |
6 |
| Cpu |
integer |
CPU yang diperlukan untuk setiap instans, dalam milicore. Nilai ini tidak boleh 0. Nilai yang valid:
|
2000 |
| Mem |
integer |
Memori yang diperlukan untuk setiap instans, dalam MB. Nilai ini tidak boleh 0. Spesifikasi memori dikaitkan dengan spesifikasi CPU. Konfigurasi berikut didukung:
|
4096 |
| MseEnabled |
boolean |
Menunjukkan apakah WebAssemblyFilter diaktifkan. Nilai yang valid:
|
true |
| MseNamespaceId |
string |
ID namespace dari instans MSE. |
test |
| ProgrammingLanguage |
string |
Bahasa pemrograman aplikasi. Nilai yang valid:
|
java |
| BaseAppId |
string |
ID aplikasi dasar. |
ee99cce6-1c8e-4bfa-96c3-3e2fa9****** |
| IsStateful |
boolean |
Menunjukkan apakah aplikasi bersifat stateful. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "01CF26C7-00A3-4AA6-BA76-7E95F2A3****",
"Message": "success",
"TraceId": "ac1a0b2215622920113732501e****",
"Application": {
"AppId": "443d638a-ef76-47c4-b707-61197d******",
"AppName": "test",
"AppDescription": "for testing",
"NamespaceId": "cn-shenzhen",
"ScaleRuleType": "timing",
"ScaleRuleEnabled": "true",
"RunningInstances": 6,
"Instances": 6,
"Cpu": 2000,
"Mem": 4096,
"MseEnabled": true,
"MseNamespaceId": "test",
"ProgrammingLanguage": "java",
"BaseAppId": "ee99cce6-1c8e-4bfa-96c3-3e2fa9******",
"IsStateful": false
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidApplication.NotFound | The current application does not exist. | |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | |
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | InvalidParameter.NoPermission | Resource no permission | |
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.