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:DescribeTemplateAttribute |
get |
*All Resource
|
None | None |
Request syntax
GET /templates/{TemplateId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The ID of the template. |
874ec485-e7e6-4373-8a3b-47bde8a**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| template_type |
string |
No |
The type of template. The value can be a custom value.
Default value: |
kubernetes |
Response elements
|
Element |
Type |
Description |
Example |
|
array |
The details of the queried template. |
||
|
object |
|||
| id |
string |
The ID of the template. When you update a template, a new template ID is generated. |
72d20cf8-a533-4ea9-a10d-e7630d3d**** |
| acl |
string |
The access control policy of the template. |
private |
| name |
string |
The name of the template. |
web |
| template |
string |
The template content in the YAML format. |
apiVersion: V1\n*** |
| template_type |
string |
The type of template. The value can be a custom value.
Default value: |
kubernetes |
| description |
string |
The description of the template. |
test template |
| tags |
string |
The label of the template. |
sa |
| template_with_hist_id |
string |
The unique ID of the template. The value remains unchanged after the template is updated. |
874ec485-e7e6-4373-8a3b-47bde8ae**** |
| 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 |
Examples
Success response
JSON format
[
{
"id": "72d20cf8-a533-4ea9-a10d-e7630d3d****",
"acl": "private",
"name": "web",
"template": "apiVersion: V1\\n***",
"template_type": "kubernetes",
"description": "test template",
"tags": "sa",
"template_with_hist_id": "874ec485-e7e6-4373-8a3b-47bde8ae****",
"created": "2025-04-25T16:56:33+08:00",
"updated": "2025-04-25T16:56:33+08:00"
}
]
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.