Help Center/ Intelligent EdgeFabric/ API Reference/ API/ Application Template Management/ Querying Details About an Application Template Version
Updated on 2023-11-23 GMT+08:00

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}

Table 1 Path parameters

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

Table 2 Parameters in the request header

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

Table 3 Parameters in the response body

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.