Updating an Application Template
Function
This API is used to update an application template.
URI
PUT /v2/{project_id}/edgemgr/apps/{app_id}
| Parameter | Mandatory | Description |
|---|---|---|
| project_id | Yes | Project ID. For details about how to obtain a project ID, see Obtaining a Project ID. |
| app_id | Yes | Application template ID. |
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| alias | No | String | Application template alias. The value contains a maximum of 64 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed. |
| description | No | String | Application template description. The value contains a maximum of 255 characters. The following characters are not allowed: ^~#$%&*<>()[]{}'"\ |
Request example:
{
"app": {
"alias": "Edge facial recognition",
"description": "This is a test."
}
} Response
Response parameters
| Parameter | Type | Description |
|---|---|---|
| app | Application template details. |
| Parameter | Type | Description |
|---|---|---|
| id | String | Application template ID. |
| name | String | Application template name. |
| description | String | Application template description. |
| created_at | String | Time when the application is created. |
| updated_at | String | Time when the application is updated. |
| svc_type | String | Cloud service type corresponding to the application template. |
| visibility | String | Template type. |
| app_versions | Table 17 object | Application version information. |
| alias | String | Application template alias. |
| project_id | String | Project ID. |
| icon_url | String | URL of the application icon. The value contains a maximum of 2,083 characters. |
Response example:
{
"app":{
"name":"test",
"svc_type":null,
"created_at":"2018-05-25T03:26:33",
"updated_at":"2018-05-25T03:29:48",
"visibility":"private",
"alias": "Edge facial recognition",
"project_id":"{project_id}",
"id":"2873e595-a55c-4d55-aa8f-eefcbd2b5027",
"description":"This is a test.",
"app_versions":[
{
"envs":[
],
"created_at":"2018-05-23T03:58:41",
"args":[
],
"updated_at":null,
"cpu":0.01,
"version":"1.0.0",
"image_url":"",
"volumes":[
],
"memory":1,
"configs":{
"host_network":true,
"privileged":false
},
"project_id":"{project_id}",
"id":"6670f491-72d9-46e8-85f3-3a480b636205"
}
]
}
} Error Codes
For details, see Error Codes.
Last Article: Creating an Application Template
Next Article: Querying Details About an Application Template
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.