An orchestration template defines and describes a group of Kubernetes resources. It declaratively describes the configuration of an application or how an application runs. You can call the DescribeTemplates API operation to query orchestration templates and their detailed information, including access permissions, YAML content, and labels.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeTemplates |
get |
*All Resource
|
None | None |
Request syntax
GET /templates HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| template_type |
string |
No |
The type of template. This parameter can be set to a custom value.
Default value: |
kubernetes |
| page_num |
integer |
No |
The page number. Default value: 1. |
1 |
| page_size |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| templates |
array<object> |
The list of returned templates. |
|
|
object |
|||
| acl |
string |
The access control policy of the template. Valid values:
Default value: |
private |
| id |
string |
The ID of the template. |
874ec485-e7e6-4373-8a3b-47bde8****** |
| name |
string |
The name of the template. |
webserver |
| description |
string |
The description of the template. |
a web server |
| tags |
string |
The label of the template. By default, the value is the name of the template. |
kubernetes |
| template |
string |
The template content in the YAML format. |
apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: nginx-deployment-basic\n labels:\n app: nginx\nspec:\n replicas: 2\n selector:\n matchLabels:\n app: nginx\n template:\n metadata:\n labels:\n app: nginx\n spec:\n containers:\n - name: nginx\n image: busybox:latest\n ports:\n - containerPort: 80 |
| template_type |
string |
The type of template. This parameter can be set to a custom value.
|
kubernetes |
| created |
string |
The time when the template was created. |
2025-04-25T16:56:33+08:00 |
| updated |
string |
The time when the template was updated. |
2025-04-25T16:56:33+08:00 |
| template_with_hist_id |
string |
The ID of the parent template. The value of |
ad81d115-7c8b-47e7-a222-9c28d7****** |
| page_info |
object |
The pagination information. |
|
| page_number |
integer |
The page number. |
20 |
| page_size |
integer |
The number of entries per page. |
3 |
| total_count |
integer |
The total number of entries returned. |
50 |
Examples
Success response
JSON format
{
"templates": [
{
"acl": "private",
"id": "874ec485-e7e6-4373-8a3b-47bde8******",
"name": "webserver",
"description": "a web server",
"tags": "kubernetes",
"template": "apiVersion: apps/v1\\nkind: Deployment\\nmetadata:\\n name: nginx-deployment-basic\\n labels:\\n app: nginx\\nspec:\\n replicas: 2\\n selector:\\n matchLabels:\\n app: nginx\\n template:\\n metadata:\\n labels:\\n app: nginx\\n spec:\\n containers:\\n - name: nginx\\n image: busybox:latest\\n ports:\\n - containerPort: 80",
"template_type": "kubernetes",
"created": "2025-04-25T16:56:33+08:00",
"updated": "2025-04-25T16:56:33+08:00",
"template_with_hist_id": "ad81d115-7c8b-47e7-a222-9c28d7******"
}
],
"page_info": {
"page_number": 20,
"page_size": 3,
"total_count": 50
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.