Querying Details About an Application Template
Function
This API is used to query application template details.
URI
GET /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 |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The default value application/json is recommended. |
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
app |
Table 4 object |
App template details. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Application template ID. |
name |
String |
Application template name. |
description |
String |
Application template description. |
created_at |
String |
Creation time. |
updated_at |
String |
Update time |
project_id |
String |
Project ID. |
icon_url |
String |
URL of the application icon. |
visibility |
String |
Template type. |
app_versions |
Table 17 object |
Application version information. |
alias |
String |
Application template alias. |
Example response
{ "app":{ "name":"test", "created_at":"2018-05-25T03:26:33", "updated_at":"2018-05-25T03:29:48", "visibility":"private", "alias": "Optical character 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot