Template orkestrasi mendefinisikan dan mendeskripsikan sekumpulan resource kluster Kubernetes secara deklaratif, yang menentukan cara aplikasi dijalankan atau dikonfigurasi. Anda dapat memanggil operasi DescribeTemplateAttribute untuk mengkueri detail template orkestrasi tertentu, termasuk izin akses, konten YAML, dan label.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeTemplateAttribute |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /templates/{TemplateId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
ID templat. |
874ec485-e7e6-4373-8a3b-47bde8a**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| template_type |
string |
No |
Tipe templat.
Pengaturan parameter ini ke |
kubernetes |
Elemen respons
|
Element |
Type |
Description |
Example |
|
array |
Detail template orkestrasi. |
||
|
object |
请求数据体。 |
||
| id |
string |
编排模板 ID,每次变更都会有一个模板 ID。 |
72d20cf8-a533-4ea9-a10d-e7630d3d**** |
| acl |
string |
编排模板的访问权限,取值:
|
private |
| name |
string |
编排模板名称。 |
web |
| template |
string |
编排模板 YAML 内容。 |
apiVersion: V1\n*** |
| template_type |
string |
模板类型。
|
kubernetes |
| description |
string |
编排模板描述信息。 |
test template |
| tags |
string |
部署模板的标签。 |
sa |
| template_with_hist_id |
string |
编排模板唯一 ID,不随模板更新而改变。 |
874ec485-e7e6-4373-8a3b-47bde8ae**** |
| created |
string |
编排模板创建时间。 |
2025-04-25T16:56:33+08:00 |
| updated |
string |
编排模板更新时间。 |
2025-04-25T16:56:33+08:00 |
Contoh
Respons sukses
JSONformat
[
{
"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"
}
]
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.