Creates an edge application that allows you to manage Edge Node Service (ENS) nodes in containers, bare metal instances, and virtual machines.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateApplication |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Template |
string |
Yes |
The edge application template. The value must be a JSON string that contains the following information:
|
{\"appMetaData\":{ \"appName\":\"nginx\", \"clusterName\":\"poc\", \"appType\":\"Common\", \"description\":\"Test service\" }, \"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 |
The timeout period for asynchronous processing. Unit: seconds. Default value: 1800. |
1800 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AppId |
string |
The ID of the application. This is the unique identifier of the edge application. |
d0639abf-789a-4527-b420-031d2cd9ad9b |
| RequestId |
string |
The ID of the request. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Examples
Success response
JSON format
{
"AppId": "d0639abf-789a-4527-b420-031d2cd9ad9b",
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Error codes
|
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. | An error occurred when you call the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.