Querying Details About an Application Template Version
Function
This API is used to query details about an application template version.
URI
GET /v2/{project_id}/edgemgr/apps/{app_id}/versions/{version_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. |
version_id |
Yes |
Application template version 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 |
---|---|---|
version |
Table 17 object |
Application template version details. |
Example response
{ "version": { "envs": [ { "name": "key1", "value": "name1" }, { "name": "key2", "value": "name2" } ], "created_at": "2018-05-25T03:36:50", "args": [], "updated_at": "2018-05-25T03:49:37", "cpu": 1, "version": "v2", "image_url": "edge-demo-app:latest", "npu_type": "", "volumes": [ { "read_only": true, "source": "/tmp", "destination": "/tmp0", "type": "hostPath", "name": "test2" } ], "memory": 1024, "configs": { "host_network": true, "privileged": true }, "project_id": "3a1e645f5b12407d864bcb04c8b9f3ee", "id": "9535d8ac-93c1-4e41-8113-f1538aad38a7" } }
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