4.2. API 端点
可用的 API 端点如下:
/apis/template.openshift.io/v1/templates-
GET: 列出或监视类型为 Template 的对象
-
/apis/template.openshift.io/v1/watch/templates-
GET: 观察单个对模板列表的更改。已弃用:改为使用 'watch' 参数及列表操作。
-
/apis/template.openshift.io/v1/namespaces/{namespace}/templates-
DELETE:删除模板集合 -
GET: 列出或监视类型为 Template 的对象 -
POST:创建模板
-
/apis/template.openshift.io/v1/watch/namespaces/{namespace}/templates-
GET: 观察单个对模板列表的更改。已弃用:改为使用 'watch' 参数及列表操作。
-
/apis/template.openshift.io/v1/namespaces/{namespace}/templates/{name}-
DELETE:删除模板 -
GET:读取指定的模板 -
PATCH: 部分更新指定的模板 -
PUT:替换指定的模板
-
/apis/template.openshift.io/v1/namespaces/{namespace}/processedtemplates-
POST:创建模板
-
/apis/template.openshift.io/v1/watch/namespaces/{namespace}/templates/{name}-
GET: 观察对类型为 Template 的对象的更改。已弃用:使用带有 list 操作的 'watch' 参数,而是过滤成带有 'fieldSelector' 参数的单个项目。
-
4.2.1. /apis/template.openshift.io/v1/templates 复制链接链接已复制到粘贴板!
- HTTP 方法
-
GET - 描述
- 列出或监视类型为 Template 的对象
| HTTP 代码 | 响应正文 |
|---|---|
| 200 - OK |
|
| 401 - Unauthorized | 空 |