云容器引擎-查询模板实例详情
接口功能介绍
调用该接口查看模板实例详情。
接口约束
无
URI
GET /v1.1/ccse/clusters//namespaces//templateInstance/*/detail
路径参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
clusterName | 是 | String | 集群名称 | ccse-demo | |
namespaceName | 是 | String | 命名空间名称 | demo_inst_ns | |
templateName | 是 | String | 模板名称 | tpl_inst |
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionId | 是 | String | 资源池编码 | bb9fdb42056f11eda1610242ac110002 |
请求体body参数
无
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 状态码 | 800 | |
message | String | 提示信息 | ||
returnObj | Object | 返回对象 | returnObj | |
error | String | 错误码 | CCSE_500 |
表 returnObj
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
releaseHistoryListDTOS | Array of Objects | 发布版本列表 | 800 | releaseHistoryListDTOS |
firstDeployTime | String | 首次发布时间 | 2023-02-28 17:52:23 | |
lastDeployTime | String | 最新发布时间 | 2023-02-28 17:52:23 | |
name | String | 实例名称 | demo-inst | |
namespace | String | 命名空间 | default | |
values | String | values参数 | ||
resourceDTOS | Array of Objects | 资源列表 | resourceDTOS | |
clusterName | String | 集群名称 | ||
createdTime | String | 创建时间 | ||
chartVersion | String | chart版本 | ||
status | String | 状态 | ||
lastEvent | String | 历史事件 | ||
readme | String | readme | ||
externalIps | Array of Strings | externalIps | ||
chartUrl | String | chart地址 | ||
kubeConfigPath | String | kubeConfig路径 | ||
repositoryId | Long | 镜像实例仓库id | ||
chartName | String | chart名称 | ||
icon | String | icon |
表 releaseHistoryListDTOS
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
revision | String | 版本 | 1 | |
updated | String | 更新时间 | 2023-02-28 17:52:23 | |
status | String | 状态 | deployed | |
chart | String | chart名称和版本 | demo-tpl-0.1.0 | |
appVersion | String | app版本 | 0.1.0 | |
description | String | 描述 | desc | |
clusterId | Long | 集群id | 10000 | |
name | String | 实例名称 | demo-inst | |
namespace | String | 命名空间 | default | |
chartName | String | chart名称 | ||
demo-tpl | ||||
chartVersion | String | chart版本 | 0.1.0 |
表 resourceDTOS
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
name | String | 名称 | ||
namespace | String | 命名空间 | ||
kind | String | 状态 | ||
yaml | String | chart |
枚举参数
无
请求示例
请求url
GET https://ccse-global.ctapi.ctyun.cn/v1.1/ccse/clusters/demo/namespaces/default/templateInstance/tpl_inst/detail
请求头header
{regionId:bb9fdb42056f11eda1610242ac110002}
请求体body
无
响应示例
{
"statusCode": 800,
"message":"查询模板实例详情成功",
"data": {
"releaseHistoryListDTOS": [
{
"revision": "1",
"updated": "2023-11-01 14:26:19",
"status": "superseded",
"chart": "cube-cntools-1.0.0",
"appVersion": "1.0.0",
"description": "Install complete",
"clusterId": "16974572343000001",
"name": "demo",
"namespace": "test1",
"chartName": "cube-cntools",
"chartVersion": null
}
],
"firstDeployTime": "2023-11-01 14:26:19",
"lastDeployTime": "2023-11-01 15:30:56",
"name": "demo",
"namespace": "test1",
"values": "---\ncntoolsService:\n name: \"cntools\"\n port: 80\n targetPort: 8094\n type: \"ClusterIP\"\nimage:\n image: \"library/ctg-cntools-service\"\n imagePullPolicy: \"Always\"\n repository: \"registry-vpc-crs-gzsyj.ctyun.cn:30015\"\n tag: \"1.0.0\"\nnamespace: \"cntools\"\nrbac:\n create: true\nserviceAccount:\n annotations: {}\n create: true\n name: \"cntools\"\n",
"resourceDTOS": [
{
"name": "cntools",
"namespace": "test1",
"kind": "ServiceAccount",
"yaml": "# Source: cube-cntools/templates/serviceaccount.yaml\napiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: cntools\n"
},
{
"name": "cntools",
"namespace": "test1",
"kind": "ClusterRole",
"yaml": "# Source: cube-cntools/templates/clusterrole.yaml\napiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n name: cntools\nrules:\n- apiGroups: [\"\"]\n resources: [\"namespaces\"]\n verbs: [\"get\", \"list\"]\n- apiGroups: [\"\"]\n resources: [\"pods/exec\"]\n verbs: [\"*\"]\n- apiGroups: [\"\"]\n resources: [\"pods\"]\n verbs: [\"get\", \"list\"]\n"
},
{
"name": "cntools",
"namespace": "test1",
"kind": "ClusterRoleBinding",
"yaml": "# Source: cube-cntools/templates/clusterrolebinding.yaml\napiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRoleBinding\nmetadata:\n name: cntools\nroleRef:\n apiGroup: rbac.authorization.k8s.io\n kind: ClusterRole\n name: cntools\nsubjects:\n- kind: ServiceAccount\n name: cntools\n namespace: test1\n"
},
{
"name": "cntools",
"namespace": "test1",
"kind": "Service",
"yaml": "# Source: cube-cntools/templates/service.yaml\napiVersion: v1\nkind: Service\nmetadata:\n name: cntools\nspec:\n type: ClusterIP\n ports:\n - port: 80\n targetPort: 8094\n protocol: TCP\n name: http\n selector:\n app: cntools\n"
},
{
"name": "cntools",
"namespace": "test1",
"kind": "Deployment",
"yaml": "# Source: cube-cntools/templates/deployment.yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: cntools\n labels:\n app: cntools\nspec:\n replicas: 1\n revisionHistoryLimit: 10\n selector:\n matchLabels:\n app: cntools\n template:\n metadata:\n name: cntools\n labels:\n app: cntools\n spec:\n serviceAccountName: cntools\n containers:\n - name: cntools\n image: \"registry-vpc-crs-gzsyj.ctyun.cn:30015/library/ctg-cntools-service:1.0.0\"\n resources: \n requests: \n cpu: 100m\n memory: 128Mi\n limits: \n cpu: 500m\n memory: 1Gi\n imagePullPolicy: Always\n ports:\n - name: http\n containerPort: 8090\n protocol: TCP\n\n"
}
],
"clusterName": null,
"createdTime": null,
"chartVersion": null,
"status": null,
"lastEvent": null,
"readme": null,
"externalIps": null,
"chartUrl": null,
"kubeConfigPath": null,
"repositoryId": null,
"chartName": null,
"icon": null
}
}