获取应用列表
更新时间 2026-09-10 11:34:24
最近更新时间: 2026-09-10 11:34:24
接口功能介绍
获取应用列表。
接口约束
无
URI
GET /v1/application/list
路径参数 无
Query参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| appIDs | 否 | String | 应用ID列表(用逗号分隔),和 AppNames 二选一,优先级高于 AppNames。若使用 AppNames 或 AppIDs 而未指定 NamespaceID / NamespaceName,则在所有命名空间中搜索。若 applicationID 不存在则报错 | appID1,appID2 | |
| appNamePrefix | 否 | String | 应用名称前缀 | app-test | |
| appNames | 否 | String | 应用名称列表(用逗号分隔),和 AppIDs 二选一,优先级低于 AppIDs。若使用 AppNames 或 AppIDs 而未指定 NamespaceID / NamespaceName,则在所有命名空间中搜索。若 AppName 不存在返回空 | app-test1,app-test2 | |
| appType | 否 | String | 应用类型 | ||
| labelIDs | 否 | String | 标签ID列表(用逗号分隔) | label1,label2 | |
| namespaceID | 否 | String | 命名空间ID,和 NamespaceName 二选一,优先级高于 NamespaceName。若填写,则只获取该命名空间下的应用。若命名空间 ID 不存在报错 | 0b7b7988-xxxx-xxxx-af7d-244e82424221 | |
| namespaceName | 否 | String | 命名空间名称,和 NamespaceID 二选一,优先级低于 NamespaceID。若填写,则只获取该命名空间下的应用。若命名空间名称不存在报错 | ns-test | |
| order | 否 | String | ASC升序,DESC降序,默认降序 | DESC | |
| orderBy | 否 | String | 排序字段名,默认按创建时间排序 | createTime | |
| pageNo | 否 | Integer | 页码 | 1 | |
| pageSize | 否 | Integer | 分页大小 | 10 | |
| search | 否 | String | 模糊查询的关键字,默认为空 | test | |
| source | 否 | String | 应用来源 | app_center_es | |
| vpcID | 否 | String | 应用所属vpcID | vpc-tsge**asd |
请求参数
请求头header参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| regionId | 是 | String | 资源池 ID | bb9fdb42056xxxeda1610242ac1xxxxx | |
| locale | 否 | String | 指定客户端期望的响应语言偏好,默认语言为中文 | en英文,zh-CN中文 |
请求体body参数 无
响应参数
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| statusCode | Integer | 业务状态码(800为成功,900为失败) | 800 | |
| message | String | 业务状态码为900时的错误信息; 业务状态码为800时为success, 英文 | success | |
| description | String | 业务状态码为900时的错误描述; 业务状态码为800时为成功, 中文 | 成功 | |
| error | String | 业务状态码为900时为业务细分错误码,CAE_XXXX; 业务状态码为800时省略这个字段 | CAE_5000 | |
| requestID | String | 请求ID | 5fd3e6f7-9229-4fb4-a352-0f91bfd638b1 | |
| returnObj | Object | 业务数据 | returnObj |
表 returnObj
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| applications | Array of Objects | 应用列表 | ApplicationListItem | |
| currentCount | Integer | 当前页数量 | 10 | |
| pageNo | Integer | 当前页 | 1 | |
| pageSize | Integer | 页面大小 | 10 | |
| totalCount | Integer | 总数 | 100 |
表 ApplicationListItem
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| appDescription | String | 用户配置字段(cloneset相关) | this is a test application | |
| appID | String | 常规字段 | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| appName | String | 应用名称 | app1 | |
| appSource | String | 应用来源:console 控制台 / api 接口 / system 系统 | console | |
| appType | String | 应用类型:deployment 无状态应用 / statefulset 有状态应用 / jobtemplate 任务模板 | deployment | |
| autoConfig | Boolean | 是否自动配置 | false | |
| availabilityZones | Array of Strings | 用户选择的可用区列表 | ["az-1","az-2"] | |
| baseAppID | String | 原始应用id | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| children | Array of Objects | 灰度应用列表 | ApplicationData | |
| codeOssInfo | Object | 代码包信息 | CodeOssInfo | |
| command | String | 命令类型 | /bin/sh | |
| commandArgs | String | 命令内容 | -c start.sh | |
| configmapMountDesc | Array of Objects | 配置管理 | ConfigMapMountDescData | |
| cpu | Integer | cpu核数(单位:毫核) | 1000 | |
| cpuBurstEnable | Boolean | 是否开启 cpu 突发核数 | false | |
| createTime | Integer | 创建时间 | 1634544000000 | |
| customHostAlias | String | host配置 | ||
| envs | Array of Objects | 环境变量 | EnvData | |
| governanceEnable | Integer | 是否开启网格服务治理:0 关闭 / 1 开启 | 0 | |
| headlessPvtzDiscoverySvc | Object | Headless Service 服务注册发现配置 | ServiceData | |
| imageConfig | Object | 镜像相关配置 | ImageConfig | |
| imagePullSecretId | String | 镜像拉取秘钥 | secret-123456 | |
| imageType | String | 镜像类型:demoImage 示例镜像 / customImage 自定义镜像 / crsImage CRS镜像 / codePackage 代码包 | customImage | |
| imageUrl | String | 镜像地址 | nginx:latest | |
| initContainersConfig | Array of Objects | init容器配置 | InitContainersConfigDesc | |
| instances | Integer | 实例数量 | 1 | |
| layerOssInfo | Object | layer信息 | LayerInfo | |
| liveness | String | 应用监控live配置 | ||
| logConfig | String | 日志配置 | ||
| logEnable | Integer | 是否开启日志:0 关闭 / 1 开启 | 1 | |
| memory | Integer | 内存大小(单位:MB) | 1024 | |
| minReadyInstance | Integer | 最小就绪实例数量 | 1 | |
| minReadyInstanceRatio | Integer | 最小就绪实例比例 | 100 | |
| mseEnable | Integer | 是否开启mse:0 关闭 / 1 开启 | 1 | |
| nacosConfig | Object | nacos配置 | NacosConfig | |
| namespaceID | String | 命名空间id | 0b7b7988-xxxx-xxxx-af7d-244e82424221 | |
| packageType | String | 代码包类型:zip 压缩包 | zip | |
| packageVersion | String | 代码包版本 | 1.0.0 | |
| postStartCommand | String | PostStart命令类型 | /bin/sh | |
| postStartCommandArgs | String | PostStart命令内容 | -c echo started | |
| preStopCommand | String | preStop命令类型 | /bin/sh | |
| preStopCommandArgs | String | preStop命令内容 | -c echo stopped | |
| programmingLanguage | String | 编程语言类型 | java | |
| prometheusConfig | Object | prometheus监控配置 | PrometheusConfig | |
| pvtzDiscoverySvc | Object | 服务注册发现配置 | ServiceData | |
| readiness | String | 应用健康ready配置 | ||
| regionID | String | 区域id | b342b77ef26b11ecb0ac0242ac110002 | |
| replicas | Integer | 实例数量 | 1 | |
| runningInstances | Integer | 运行实例数 | 1 | |
| runtimeKey | String | 运行时key | java8 | |
| runtimeType | Integer | 运行时类型 | 1 | |
| secretMountDesc | Array of Objects | 保密字典配置 | SecretMountDescData | |
| securityGroupID | String | 安全组id | sg-123456 | |
| serviceEnable | Boolean | 是否开启k8s service | true | |
| serviceTags | String | 灰度标签 | gray | |
| sfsConfig | Array of Objects | sfs配置 | SfsConfig | |
| sidecarContainersConfig | Array of Objects | sidecar容器配置 | SidecarContainersConfigDesc | |
| startupProbe | String | 应用健康startupProbe配置 | ||
| status | String | 应用状态:Running 运行中 / Stopped 已停止 / Executing 执行中 / Stopping 停止中 / Starting 启动中 / Deleting 删除中 / Deleted 已删除 / NotExist 不存在 | Running | |
| subnetID | String | 子网id | subnet-123456 | |
| tempStorage | Integer | 临时存储配置(单位:GB) | 10 | |
| terminationGracePeriodSeconds | Integer | 优雅终止等待秒数 | 30 | |
| updateStrategy | Object | 更新策略配置 | AppUpdateStrategy | |
| updateTime | Integer | 更新时间 | 1634544300000 | |
| vpcID | String | vpcid | vpc-123456 | |
| vpcName | String | vpc名称 | my-vpc | |
| zosConfig | Array of Objects | zos配置 | ZosConfig |
表 ApplicationData
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| appDescription | String | 用户配置字段(cloneset相关) | this is a test application | |
| appID | String | 常规字段 | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| appName | String | 应用名称 | app1 | |
| appSource | String | 应用来源:console 控制台 / api 接口 / system 系统 | console | |
| appType | String | 应用类型:deployment 无状态应用 / statefulset 有状态应用 / jobtemplate 任务模板 | deployment | |
| autoConfig | Boolean | 是否自动配置 | false | |
| availabilityZones | Array of Strings | 用户选择的可用区列表 | ["az-1","az-2"] | |
| baseAppID | String | 原始应用id | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| codeOssInfo | Object | 代码包信息 | CodeOssInfo | |
| command | String | 命令类型 | /bin/sh | |
| commandArgs | String | 命令内容 | -c start.sh | |
| configmapMountDesc | Array of Objects | 配置管理 | ConfigMapMountDescData | |
| cpu | Integer | cpu核数(单位:毫核) | 1000 | |
| cpuBurstEnable | Boolean | 是否开启 cpu 突发核数 | false | |
| createTime | Integer | 创建时间 | 1634544000000 | |
| customHostAlias | String | host配置 | ||
| envs | Array of Objects | 环境变量 | EnvData | |
| governanceEnable | Integer | 是否开启网格服务治理:0 关闭 / 1 开启 | 0 | |
| headlessPvtzDiscoverySvc | Object | Headless Service 服务注册发现配置 | ServiceData | |
| imageConfig | Object | 镜像相关配置 | ImageConfig | |
| imagePullSecretId | String | 镜像拉取秘钥 | secret-123456 | |
| imageType | String | 镜像类型:demoImage 示例镜像 / customImage 自定义镜像 / crsImage CRS镜像 / codePackage 代码包 | customImage | |
| imageUrl | String | 镜像地址 | nginx:latest | |
| initContainersConfig | Array of Objects | init容器配置 | InitContainersConfigDesc | |
| instances | Integer | 实例数量 | 1 | |
| layerOssInfo | Object | layer信息 | LayerInfo | |
| liveness | String | 应用监控live配置 | ||
| logConfig | String | 日志配置 | ||
| logEnable | Integer | 是否开启日志:0 关闭 / 1 开启 | 1 | |
| memory | Integer | 内存大小(单位:MB) | 1024 | |
| minReadyInstance | Integer | 最小就绪实例数量 | 1 | |
| minReadyInstanceRatio | Integer | 最小就绪实例比例 | 100 | |
| mseEnable | Integer | 是否开启mse:0 关闭 / 1 开启 | 1 | |
| nacosConfig | Object | nacos配置 | NacosConfig | |
| namespaceID | String | 命名空间id | 0b7b7988-xxxx-xxxx-af7d-244e82424221 | |
| packageType | String | 代码包类型:zip 压缩包 | zip | |
| packageVersion | String | 代码包版本 | 1.0.0 | |
| postStartCommand | String | PostStart命令类型 | /bin/sh | |
| postStartCommandArgs | String | PostStart命令内容 | -c echo started | |
| preStopCommand | String | preStop命令类型 | /bin/sh | |
| preStopCommandArgs | String | preStop命令内容 | -c echo stopped | |
| programmingLanguage | String | 编程语言类型 | java | |
| prometheusConfig | Object | prometheus监控配置 | PrometheusConfig | |
| pvtzDiscoverySvc | Object | 服务注册发现配置 | ServiceData | |
| readiness | String | 应用健康ready配置 | ||
| regionID | String | 区域id | b342b77ef26b11ecb0ac0242ac110002 | |
| replicas | Integer | 实例数量 | 1 | |
| runningInstances | Integer | 运行实例数 | 1 | |
| runtimeKey | String | 运行时key | java8 | |
| runtimeType | Integer | 运行时类型 | 1 | |
| secretMountDesc | Array of Objects | 保密字典配置 | SecretMountDescData | |
| securityGroupID | String | 安全组id | sg-123456 | |
| serviceEnable | Boolean | 是否开启k8s service | true | |
| serviceTags | String | 灰度标签 | gray | |
| sfsConfig | Array of Objects | sfs配置 | SfsConfig | |
| sidecarContainersConfig | Array of Objects | sidecar容器配置 | SidecarContainersConfigDesc | |
| startupProbe | String | 应用健康startupProbe配置 | ||
| status | String | 应用状态:Running 运行中 / Stopped 已停止 / Executing 执行中 / Stopping 停止中 / Starting 启动中 / Deleting 删除中 / Deleted 已删除 / NotExist 不存在 | Running | |
| subnetID | String | 子网id | subnet-123456 | |
| tempStorage | Integer | 临时存储配置(单位:GB) | 10 | |
| terminationGracePeriodSeconds | Integer | 优雅终止等待秒数 | 30 | |
| updateStrategy | Object | 更新策略配置 | AppUpdateStrategy | |
| updateTime | Integer | 更新时间 | 1634544300000 | |
| vpcID | String | vpcid | vpc-123456 | |
| vpcName | String | vpc名称 | my-vpc | |
| zosConfig | Array of Objects | zos配置 | ZosConfig |
表 CodeOssInfo
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| aptCommand | String | apt 命令 | apt-get install -y curl | |
| codeUrl | String | 后台通过 oss 接口获取 | https://oss.example.com/apps/app-1.0.0.jar | |
| codeZipFileName | String | 代码包名称 | app-1.0.0.jar | |
| depFileText | String | 依赖文件内容 | requirements.txt | |
| ossBucketName | String | 代码上传的oss bucket名 | cae-bucket | |
| ossObjectName | String | 代码上传的oss object名 | apps/app-1.0.0.jar | |
| zipFile | String | 函数代码 ZIP 包的 Base 64 编码(与 OSS 对象信息二选一,OSS 优先) |
表 ConfigMapMountDescData
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| configmapID | String | 配置管理id | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| configmapName | String | 配置管理名称 | my-config | |
| key | String | 配置项key | config-key | |
| mountPath | String | 挂载路径 | /mnt/config |
表 EnvData
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| name | String | 环境变量名称 | APP_ENV | |
| value | String | 环境变量值 | production | |
| valueFrom | Object | 环境变量来源 | EnvVarSource |
表 EnvVarSource
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| configmapRef | Object | 配置管理引用 | ConfigMapRefSourceData | |
| secretRef | Object | 保密字典引用 | SecretRefSourceData |
表 ConfigMapRefSourceData
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| configmapID | String | 配置管理id | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| configmapName | String | 配置管理名称 | my-config | |
| key | String | 配置项key | config-key |
表 SecretRefSourceData
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| key | String | 保密字典key | secret-key | |
| secretID | String | 保密字典id | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| secretName | String | 保密字典名称 | my-secret |
表 ServiceData
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| enable | Boolean | 是否开启服务 | true | |
| hosts | Array of Strings | 主机列表 | ["app.example.com","api.example.com"] | |
| portProtocols | Array of Objects | 端口协议 | PortProtocol | |
| serviceName | String | 服务名称 | my-service |
表 PortProtocol
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| port | Integer | 端口 | 80 | |
| protocol | String | 协议 | TCP | |
| targetPort | Integer | 目标端口 | 8080 |
表 ImageConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| instanceId | String | crs实例id | crs-123456 | |
| repositoryId | String | crs仓库id | repo-123456 | |
| repositoryName | String | crs仓库名称 | my-repo |
表 InitContainersConfigDesc
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| command | String | 命令类型 | /bin/sh | |
| commandArgs | String | 命令内容 | -c wait-for-db.sh | |
| configmapMountDesc | Array of Objects | 配置管理 | ConfigMapMountDescData | |
| cpu | Integer | cpu核数(单位:毫核) | 500 | |
| emptyDirDesc | Array of Objects | 空目录配置 | EmptyDirConfig | |
| envs | Array of Objects | 环境变量 | EnvData | |
| imageUrl | String | 镜像地址 | busybox:latest | |
| memory | Integer | 内存大小(单位:MB) | 512 | |
| name | String | init容器名称 | init-db |
表 EmptyDirConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| mountPath | String | 挂载路径 | /mnt/empty-dir | |
| name | String | 空目录名称 | my-empty-dir |
表 LayerInfo
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| aptCommand | String | apt 命令 | apt-get install -y curl | |
| depFileText | String | 依赖文件内容 | requirements.txt |
表 NacosConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| enable | Boolean | 是否启用 | true | |
| instanceId | String | nacos实例ID,当值为useDefault时使用应用配置 | ||
| namespace | String | nacos命名空间名称 | prod | |
| namespaceId | String | nacos命名空间ID | ||
| password | String | nacos密码 | 123456 | |
| type | Integer | 类型: 1-内置nacos 2-mse 3-自定义 | 1 | |
| userName | String | nacos用户名 | nacos |
表 PrometheusConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| enable | Boolean | 是否启用prometheus监控 | true | |
| metricsPath | String | 指标路径 | /actuator/prometheus | |
| scrapeInterval | Integer | 采集间隔,单位:秒 | 15 | |
| targetPort | Integer | 目标端口 | 8091 |
表 SecretMountDescData
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| key | String | 保密字典key | secret-key | |
| mountPath | String | 挂载路径 | /mnt/secret | |
| secretID | String | 保密字典id | 09db72fa-xxxx-xxxx-a1d8-24a420181216 | |
| secretName | String | 保密字典名称 | my-secret |
表 SfsConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| localMountPath | String | 挂载本地目录 | /tmp/sfs | |
| remoteSfsPath | String | 远程sfs路径 | /data | |
| sfsId | String | sfs id | sfs-123456 | |
| sfsName | String | sfs名称 | my-sfs | |
| sharePath | String | 共享路径 | 192.168.1.1:/share |
表 SidecarContainersConfigDesc
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| command | String | 命令类型 | /bin/sh | |
| commandArgs | String | 命令内容 | -c start.sh | |
| configmapMountDesc | Array of Objects | 配置管理 | ConfigMapMountDescData | |
| cpu | Integer | cpu核数(单位:毫核) | 2 | |
| emptyDirDesc | Array of Objects | 空目录配置 | EmptyDirConfig | |
| envs | Array of Objects | 环境变量 | EnvData | |
| imageUrl | String | 镜像地址 | nginx:latest | |
| memory | Integer | 内存大小(单位:MB) | 2048 | |
| name | String | sidecar容器名称 | my-sidecar | |
| postStartCommand | String | PostStart命令类型 | /bin/sh | |
| postStartCommandArgs | String | PostStart命令内容 | -c echo started | |
| preStopCommand | String | preStop命令类型 | /bin/sh | |
| preStopCommandArgs | String | preStop命令内容 | -c echo stopped | |
| sfsConfig | Array of Objects | sfs配置 | SfsConfig | |
| zosConfig | Array of Objects | zos配置 | ZosConfig |
表 ZosConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| accessUrl | String | oss 访问地址 | ||
| bucketID | String | bucketID | zos-123455 | |
| bucketName | String | bucket名 | my-zos | |
| bucketPath | String | bucket子目录 | /tmp/sfs | |
| mountDir | String | 挂载本地目录 | /local/sfs | |
| readOnly | Boolean | 是否只读,默认false | true |
表 AppUpdateStrategy
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| batchUpdate | Object | 分批发布配置 | BatchUpdateConfig | |
| grayUpdate | Object | 灰度发布配置 | GrayUpdateConfig | |
| type | String | 部署类型:BatchUpdate 分批发布 / GreyUpdate 灰度发布 | BatchUpdate |
表 BatchUpdateConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| batchCount | Integer | 分批数量 | 2 | |
| batchWaitTime | Integer | 自动分批间隔时间(单位:秒) | 10 | |
| releaseType | String | 分批方式:auto 自动 / manual 手动 | auto |
表 GrayUpdateConfig
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| enableGreyRule | Boolean | 是否启用灰度规则 | false | |
| grayNum | Integer | 灰度实例数量 | 1 |
枚举参数
无
请求示例
请求url
GET /v1/application/list
请求头header
regionId:20000000***1852
请求体body
无
响应示例
{
"statusCode": 800,
"message": "success",
"description": "成功",
"error": "CAE_5000",
"requestID": "5fd3e6f7-9229-4fb4-a352-0f91bfd638b1",
"returnObj": {
"applications": [
{
"appDescription": "this is a test application",
"appID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"appName": "app1",
"appSource": "console",
"appType": "deployment",
"autoConfig": false,
"availabilityZones": [
"az-1",
"az-2"
],
"baseAppID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"children": [
{
"appDescription": "this is a test application",
"appID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"appName": "app1",
"appSource": "console",
"appType": "deployment",
"autoConfig": false,
"availabilityZones": [
"az-1",
"az-2"
],
"baseAppID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"codeOssInfo": {
"aptCommand": "apt-get install -y curl",
"codeUrl": "https://oss.example.com/apps/app-1.0.0.jar",
"codeZipFileName": "app-1.0.0.jar",
"depFileText": "requirements.txt",
"ossBucketName": "cae-bucket",
"ossObjectName": "apps/app-1.0.0.jar",
"zipFile": ""
},
"command": "/bin/sh",
"commandArgs": "-c start.sh",
"configmapMountDesc": [
{
"configmapID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"configmapName": "my-config",
"key": "config-key",
"mountPath": "/mnt/config"
}
],
"cpu": 1000,
"cpuBurstEnable": false,
"createTime": 1634544000000,
"customHostAlias": "",
"envs": [
{
"name": "APP_ENV",
"value": "production",
"valueFrom": {
"configmapRef": {
"configmapID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"configmapName": "my-config",
"key": "config-key"
},
"secretRef": {
"key": "secret-key",
"secretID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"secretName": "my-secret"
}
}
}
],
"governanceEnable": 0,
"headlessPvtzDiscoverySvc": {
"enable": true,
"hosts": [
"app.example.com",
"api.example.com"
],
"portProtocols": [
{
"port": 80,
"protocol": "TCP",
"targetPort": 8080
}
],
"serviceName": "my-service"
},
"imageConfig": {
"instanceId": "crs-123456",
"repositoryId": "repo-123456",
"repositoryName": "my-repo"
},
"imagePullSecretId": "secret-123456",
"imageType": "customImage",
"imageUrl": "nginx:latest",
"initContainersConfig": [
{
"command": "/bin/sh",
"commandArgs": "-c wait-for-db.sh",
"configmapMountDesc": null,
"cpu": 500,
"emptyDirDesc": [
{
"mountPath": "/mnt/empty-dir",
"name": "my-empty-dir"
}
],
"envs": null,
"imageUrl": "busybox:latest",
"memory": 512,
"name": "init-db"
}
],
"instances": 1,
"layerOssInfo": {
"aptCommand": "apt-get install -y curl",
"depFileText": "requirements.txt"
},
"liveness": "",
"logConfig": "",
"logEnable": 1,
"memory": 1024,
"minReadyInstance": 1,
"minReadyInstanceRatio": 100,
"mseEnable": 1,
"nacosConfig": {
"enable": true,
"instanceId": "",
"namespace": "prod",
"namespaceId": "",
"password": "123456",
"type": 1,
"userName": "nacos"
},
"namespaceID": "0b7b7988-xxxx-xxxx-af7d-244e82424221",
"packageType": "zip",
"packageVersion": "1.0.0",
"postStartCommand": "/bin/sh",
"postStartCommandArgs": "-c echo started",
"preStopCommand": "/bin/sh",
"preStopCommandArgs": "-c echo stopped",
"programmingLanguage": "java",
"prometheusConfig": {
"enable": true,
"metricsPath": "/actuator/prometheus",
"scrapeInterval": 15,
"targetPort": 8091
},
"pvtzDiscoverySvc": null,
"readiness": "",
"regionID": "b342b77ef26b11ecb0ac0242ac110002",
"replicas": 1,
"runningInstances": 1,
"runtimeKey": "java8",
"runtimeType": {},
"secretMountDesc": [
{
"key": "secret-key",
"mountPath": "/mnt/secret",
"secretID": "09db72fa-xxxx-xxxx-a1d8-24a420181216",
"secretName": "my-secret"
}
],
"securityGroupID": "sg-123456",
"serviceEnable": true,
"serviceTags": "gray",
"sfsConfig": [
{
"localMountPath": "/tmp/sfs",
"remoteSfsPath": "/data",
"sfsId": "sfs-123456",
"sfsName": "my-sfs",
"sharePath": "192.168.1.1:/share"
}
],
"sidecarContainersConfig": [
{
"command": "/bin/sh",
"commandArgs": "-c start.sh",
"configmapMountDesc": null,
"cpu": 2,
"emptyDirDesc": null,
"envs": null,
"imageUrl": "nginx:latest",
"memory": 2048,
"name": "my-sidecar",
"postStartCommand": "/bin/sh",
"postStartCommandArgs": "-c echo started",
"preStopCommand": "/bin/sh",
"preStopCommandArgs": "-c echo stopped",
"sfsConfig": null,
"zosConfig": [
{
"accessUrl": "accessUrl",
"bucketID": "zos-123455",
"bucketName": "my-zos",
"bucketPath": "/tmp/sfs",
"mountDir": "/local/sfs",
"readOnly": true
}
]
}
],
"startupProbe": "",
"status": "Running",
"subnetID": "subnet-123456",
"tempStorage": 10,
"terminationGracePeriodSeconds": 30,
"updateStrategy": {
"batchUpdate": {
"batchCount": 2,
"batchWaitTime": 10,
"releaseType": "auto"
},
"grayUpdate": {
"enableGreyRule": false,
"grayNum": 1
},
"type": "BatchUpdate"
},
"updateTime": 1634544300000,
"vpcID": "vpc-123456",
"vpcName": "my-vpc",
"zosConfig": null
}
],
"codeOssInfo": null,
"command": "/bin/sh",
"commandArgs": "-c start.sh",
"configmapMountDesc": null,
"cpu": 1000,
"cpuBurstEnable": false,
"createTime": 1634544000000,
"customHostAlias": "",
"envs": null,
"governanceEnable": 0,
"headlessPvtzDiscoverySvc": null,
"imageConfig": null,
"imagePullSecretId": "secret-123456",
"imageType": "customImage",
"imageUrl": "nginx:latest",
"initContainersConfig": null,
"instances": 1,
"layerOssInfo": null,
"liveness": "",
"logConfig": "",
"logEnable": 1,
"memory": 1024,
"minReadyInstance": 1,
"minReadyInstanceRatio": 100,
"mseEnable": 1,
"nacosConfig": null,
"namespaceID": "0b7b7988-xxxx-xxxx-af7d-244e82424221",
"packageType": "zip",
"packageVersion": "1.0.0",
"postStartCommand": "/bin/sh",
"postStartCommandArgs": "-c echo started",
"preStopCommand": "/bin/sh",
"preStopCommandArgs": "-c echo stopped",
"programmingLanguage": "java",
"prometheusConfig": null,
"pvtzDiscoverySvc": null,
"readiness": "",
"regionID": "b342b77ef26b11ecb0ac0242ac110002",
"replicas": 1,
"runningInstances": 1,
"runtimeKey": "java8",
"runtimeType": {},
"secretMountDesc": null,
"securityGroupID": "sg-123456",
"serviceEnable": true,
"serviceTags": "gray",
"sfsConfig": null,
"sidecarContainersConfig": null,
"startupProbe": "",
"status": "Running",
"subnetID": "subnet-123456",
"tempStorage": 10,
"terminationGracePeriodSeconds": 30,
"updateStrategy": null,
"updateTime": 1634544300000,
"vpcID": "vpc-123456",
"vpcName": "my-vpc",
"zosConfig": null
}
],
"currentCount": 10,
"pageNo": 1,
"pageSize": 10,
"totalCount": 100
}
}
状态码
请参考 状态码
错误码
请参考 错误码