查询Chart的values.yaml
更新时间 2026-11-06 11:40:59
最近更新时间: 2026-11-06 11:40:59
接口功能介绍
查询Chart的values.yaml文件内容
接口约束
无
URI
GET /v2/getChartValues
路径参数 无
Query参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| instanceId | 是 | String | 实例ID | f04e47d9b48747958c9f4516cf1a8d82 | |
| repositoryId | 是 | String | 仓库ID | 9c7f70ae24dbdf535d81f6f94cc8fe01 | |
| tagName | 是 | String | Chart的tag | 0.1.0 |
请求参数
请求头header参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| Content-Type | 是 | String | 类型 | application/json | |
| regionId | 是 | String | 资源池编码(资源池ID,您可以查看容器镜像服务资源池获取) | bb9fdb42056f11eda1610242ac110002 |
请求体body参数 无
响应参数
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| statusCode | Integer | 响应码 (800为请求成功,900为失败 ) | 800 | |
| message | String | 返回信息 | ||
| error | String | 错误码 | ||
| returnObj | String | 返回结果(values.yaml文件内容) |
枚举参数
无
请求示例
请求url
GET https://crs-global.ctapi.ctyun.cn/v2/getChartValues?instanceId=f04e47d9b48747958c9f4516cf1a8d82&repositoryId=9c7f70ae24dbdf535d81f6f94cc8fe01&tagName=0.1.0
请求头header
{
"Content-Type": "application/json"
}
请求体body
无
响应示例
{
"message": "请求成功",
"requestId": "977b81c260697150760d86ad0e35a287",
"returnObj": "# Default values for test-chart.\n# This is a YAML-formatted file.\n# Declare variables to be passed into your templates.\n\nreplicaCount: 1\n\nimage:\n repository: nginx\n pullPolicy: IfNotPresent\n # Overrides the image tag whose default is the chart appVersion.\n tag: \"\"\n\nimagePullSecrets: []\nnameOverride: \"\"\nfullnameOverride: \"\"\n\nserviceAccount:\n # Specifies whether a service account should be created\n create: true\n # Annotations to add to the service account\n annotations: {}\n # The name of the service account to use.\n # If not set and create is true, a name is generated using the fullname template\n name: \"\"\n\npodAnnotations: {}\n\npodSecurityContext: {}\n # fsGroup: 2000\n\nsecurityContext: {}\n # capabilities:\n # drop:\n # - ALL\n # readOnlyRootFilesystem: true\n # runAsNonRoot: true\n # runAsUser: 1000\n\nservice:\n type: ClusterIP\n port: 80\n\ningress:\n enabled: false\n className: \"\"\n annotations: {}\n # kubernetes.io/ingress.class: nginx\n # kubernetes.io/tls-acme: \"true\"\n hosts:\n - host: chart-example.local\n paths:\n - path: /\n pathType: ImplementationSpecific\n tls: []\n # - secretName: chart-example-tls\n # hosts:\n # - chart-example.local\n\nresources: {}\n # We usually recommend not to specify default resources and to leave this as a conscious\n # choice for the user. This also increases chances charts run on environments with little\n # resources, such as Minikube. If you do want to specify resources, uncomment the following\n # lines, adjust them as necessary, and remove the curly braces after 'resources:'.\n # limits:\n # cpu: 100m\n # memory: 128Mi\n # requests:\n # cpu: 100m\n # memory: 128Mi\n\nautoscaling:\n enabled: false\n minReplicas: 1\n maxReplicas: 100\n targetCPUUtilizationPercentage: 80\n # targetMemoryUtilizationPercentage: 80\n\nnodeSelector: {}\n\ntolerations: []\n\naffinity: {}\n",
"statusCode": 800
}
状态码
请参考 状态码
错误码
请参考 错误码