Belirtilen uygulama dağıtım şablonunun ayrıntılarını sorgular.
Hata Ayıklama
İstek sözdizimi
GET /templates/TemplateId?template_type=String HTTP/1.1
Content-Type:application/json
İstek parametreleri
|
|
|
|
|
|
|
|
|
|
|
|
Parameter | Type | Required | Example | Description |
template_type | String | No | kubernetes | Şablon türü. Bu parametreyi özel bir değere ayarlayabilirsiniz.
Varsayılan değer: |
Yanıt sözdizimi
HTTP/1.1 200
Content-Type:application/json
[ {
"id" : "String",
"acl" : "String",
"name" : "String",
"template" : "String",
"template_type" : "String",
"description" : "String",
"tags" : "String",
"template_with_hist_id" : "String",
"created" : "String",
"updated" : "String"
} ]
Yanıt parametreleri
Parameter | Type | Example | Description |
Array of template_info | Sorgulanan şablonun ayrıntıları. | ||
id | String | 72d20cf8-a533-4ea9-a10d-e7630d3d**** | Şablonun kimliği (ID). Bir şablonu güncellediğinizde yeni bir şablon kimliği oluşturulur. |
acl | String | private | Şablonun erişim kontrol ilkesi. |
name | String | web | Şablonun adı. |
template | String | apiVersion: V1\n*** | YAML biçimindeki şablon içeriği. |
template_type | String | kubernetes | Şablon türü. Değer özel bir değer olabilir.
Varsayılan değer: |
description | String | test template | Şablonun açıklaması. |
tags | String | sa | Şablonun etiketleri. |
template_with_hist_id | String | 874ec485-e7e6-4373-8a3b-47bde8ae**** | Şablonun benzersiz kimliği (ID). Şablon güncellendikten sonra bu değer değişmez. |
created | String | 2020-09-16T19:21:29+08:00 | Şablonun oluşturulma zamanı. |
updated | String | 2020-09-16T19:21:29+08:00 | Şablonun güncellenme zamanı. |
Örnekler
Örnek istekler
GET /templates/874ec485-e7e6-4373-8a3b-47bde8a****?template_type=kubernetes HTTP/1.1
Content-Type:application/json
Başarılı yanıt örnekleri
XML biçimi
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeTemplateAttributeResponse>
<id>72d20cf8-a533-4ea9-a10d-e7630d3d****</id>
<acl>private</acl>
<name>web</name>
<template>apiVersion: V1\n***</template>
<template_type>kubernetes</template_type>
<description>test template</description>
<tags>sa</tags>
<template_with_hist_id>874ec485-e7e6-4373-8a3b-47bde8ae****</template_with_hist_id>
<created>2020-09-16T19:21:29+08:00</created>
<updated>2020-09-16T19:21:29+08:00</updated>
</DescribeTemplateAttributeResponse>
JSON biçimi
HTTP/1.1 200 OK
Content-Type:application/json
[ {
"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" : "2020-09-16T19:21:29+08:00",
"updated" : "2020-09-16T19:21:29+08:00"
} ]
Hata kodları
Hata kodlarının listesi için API Hata Merkezi adresini ziyaret edin.