Help Center> ServiceStage> API Reference> Application Management APIs> Meta> Obtaining All Supported Templates of Application Components

Obtaining All Supported Templates of Application Components

Function

This API is used to obtain all supported built-in templates of application components.

URI

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

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Tenant's project ID.

Request Parameters

Request parameters

None

Response Parameters

Response parameters

Table 2 Response parameters

Parameter

Type

Description

templates

Array of objects

Template parameters. See Table 3.

Table 3 templates parameters

Parameter

Type

Description

template_name

String

Template name.

template_desc

String

Template description.

source_type

String

Source code type.

source_repo_url

String

Source code repository URL.

runtime

String

Runtime.

Example

Example request

None

Example response

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

Status Code

Table 4 Status codes

HTTP Status Code

Description

200

OK

400

Bad Request

404

Not Found

500

Internal Server Error

Error code must be in the format of SVCSTG.00100.[Error_ID]. Example: SVCSTG.00100400. See Error Codes of Application Management APIs.