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
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| project_id | String | Yes | Tenant's project ID. |
Request Parameters
Request parameters
None
Response Parameters
Response parameters
| Parameter | Type | Description |
|---|---|---|
| templates | Array of objects | Template parameters. See Table 3. |
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
| 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.
Last Article: Meta
Next Article: Obtaining All Supported Runtimes of Application Components
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.