Help Center/ ServiceStage/ API Reference/ Historical APIs/ Application Management V2 APIs/ Meta/ Obtaining All Supported Templates of Application Components
Updated on 2025-11-06 GMT+08:00

Obtaining All Supported Templates of Application Components

Function

This API is used to obtain all built-in application component templates.

URI

GET /v2/{project_id}/cas/metadata/templates

Table 1 Path parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant's project ID. See Obtaining a Project ID.

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format). Default value: application/json;charset=utf8.

X-Auth-Token

Yes

String

API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain a token, see Obtaining a User Token.

Response

Table 3 Response parameter

Parameter

Type

Description

templates

Array of objects

Template list. See Table 4.

Table 4 templates

Parameter

Type

Description

template_name

String

Template name.

template_desc

String

Template description.

source_type

String

Template type.

source_repo_url

String

Source code repository URL.

runtime

String

Runtime type.

Example Request

None

Example Response

{
    "templates": [
        {
            "template_name": "magento", 
            "template_desc": "Magento e-commerce application", 
            "source_type": "Swr", 
            "source_repo_url": "{CAS_IMAGE_REPO}/magento:2.2-int-1.0", 
            "runtime": "Php7"
        }
    ]
}

Status Code

Status Code

Description

200

OK

400

Bad Request

404

Not Found

500

Internal Server Error

Error Code

See ServiceStage Error Codes.