Template orkestrasi mendefinisikan dan mendeskripsikan sekumpulan resource kluster Kubernetes secara deklaratif, serta menentukan cara aplikasi dijalankan atau dikonfigurasi. Anda dapat memanggil operasi UpdateTemplate untuk memperbarui template orkestrasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:UpdateTemplate |
update |
*全部资源
|
None | None |
Sintaks permintaan
PUT /templates/{TemplateId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
ID template. |
72d20cf8-a533-4ea9-a10d-e7630d****** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Parameter badan permintaan. |
webserver01 |
| description |
string |
No |
Deskripsi template penerapan. |
web server cluster |
| name |
string |
No |
Nama template penerapan. |
webserver01 |
| tags |
string |
No |
Tag template penerapan. |
web |
| template |
string |
No |
Konten template dalam format YAML. |
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: 8080 |
| template_type |
string |
No |
Tipe templat.
Pengaturan parameter ini ke |
kubernetes |
Elemen respons
|
Element |
Type |
Description |
Example |
Tidak ada yang didefinisikan.
Contoh
Respons sukses
JSONformat
{}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.