Memanggil CreateApplication untuk membuat layanan aplikasi edge yang menyediakan hosting edge untuk kontainer (perangkat virtual), bare metal, atau mesin virtual.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateApplication |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Template |
string |
Yes |
Templat aplikasi edge. String berformat JSON yang berisi:
|
{\"appMetaData\":{ \"appName\":\"nginx\", \"clusterName\":\"poc\", \"appType\":\"Common\", \"description\":\"测试服务\" }, \"resourceAttribute\":{ \"resourceType\":\"\", \"instanceSpec\":\"ens.sn1.tiny\", \"systemDiskSize\":20, \"dataDiskSize\":0, \"bandwithOut\":10, \"areaLevel\":\"National\", \"netSecurityStrategy\":null, \"initConfig\":null }, \"resourceSelector\":[ { \"count\":1 } ], \"workload\":[ { \"podCount\":1, \"serviceConfig\":null, \"name\":\"nginx\", \"podSpec\":{ \"containers\":[ { \"name\":\"android\", \"image\":\"edge-registry.alicdn.com/test/nginx\" } ] }, \"count\":1 } ]} |
| Timeout |
integer |
No |
Periode waktu tunggu untuk pemrosesan asinkron. Unit: seconds. Nilai default: 1800. |
1800 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| AppId |
string |
ID aplikasi yang dihasilkan setelah aplikasi dibuat. Merupakan pengenal unik layanan aplikasi edge pengguna. |
d0639abf-789a-4527-b420-031d2cd9ad9b |
| RequestId |
string |
ID permintaan. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Contoh
Respons sukses
JSONformat
{
"AppId": "d0639abf-789a-4527-b420-031d2cd9ad9b",
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.