获取应用列表 请求参数 请求头header参数 参数 是否必填 参数类型 说明 示例 下级对象 regionId 是 String 资源池 ID bb9fdb42056xxxeda1610242ac1xxxxx locale 否 String 指定客户端期望的响应语言偏好,默认语言为中文 en英文,zhCH中文 请求体body参数 无 响应参数 参数 参数类型 说明 示例 下级对象 statusCode Integer 业务状态码(800为成功,900为失败) 800 message String 业务状态码为900时的错误信息 success description String 业务状态码为900时的错误描述 成功 returnObj Object 业务数据 returnObj 表 returnObj 参数 参数类型 说明 示例 下级对象 applications Array of Objects 应用列表 ApplicationListItem currentCount Integer 当前页数量 10 pageNo Integer 当前页 1 pageSize Integer 页面大小 10 totalCount Integer 总数 100 requestID String 请求ID 5fd3e6f792294fb4a3520f91bfd638b1 表 ApplicationListItem 参数 参数类型 说明 示例 下级对象 appDescription String 应用描述 测试应用 appID String 应用id 09db72faxxxxxxxxa1d824a420181216 appName String 应用名称 app1 appSource String 应用来源 appcenteres appType String 应用类型 deployment autoConfig Boolean 命名空间类型 true baseAppID String 原始应用id 09db72faxxxxxxxxa1d824a420181216 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核数 500 cpuBurstEnable Boolean 是否开启cpu突发核数 false createTime Integer 创建时间 1634544000000 customHostAlias String host配置 127.0.0.1 myhost envs Array of Objects 环境变量 EnvData governanceEnable Integer 是否开启网格服务治理 1 headlessPvtzDiscoverySvc Object Headless Service 服务注册发现配置 ServiceData imageConfig Object 镜像相关配置 ImageConfig imagePullSecretId String 镜像拉取秘钥 secretxxxx imageType String 镜像类型 custom imageUrl String 镜像地址 nginx:latest instances Integer 实例数量 2 liveness String 应用监控live配置 logConfig String 日志配置 logEnable Integer 是否开启日志 1 memory Integer 内存大小 1024 minReadyInstance Integer 最小就绪实例数量 1 minReadyInstanceRatio Integer 最小就绪实例比例 1 mseEnable Integer 是否开启mse 1 nacosConfig Object nacos配置 NacosConfig namespaceID String 命名空间id 0b7b7988xxxxxxxxaf7d244e82424221 packageType String 代码包类型 jar packageVersion String 代码包版本 1.0.0 postStartCommand String PostStart命令类型 /bin/sh postStartCommandArgs String PostStart命令内容 c start.sh preStopCommand String preStop命令类型 /bin/sh preStopCommandArgs String preStop命令内容 c stop.sh programmingLanguage String 编程语言类型 java pvtzDiscoverySvc Object 服务注册发现配置 ServiceData readiness String 应用健康ready配置 regionID String 区域id cneast3 replicas Integer 实例数量 2 runningInstances Integer 运行实例数 2 runtimeKey String 运行时key java8 runtimeType Integer 运行时类型 1 secretMountDesc Array of Objects 保密字典配置 SecretMountDescData securityGroupID String 安全组id sgxxxx serviceEnable Boolean 是否开启k8s service true serviceTags String 灰度标签 graytag sfsConfig Array of Objects sfs配置 SfsConfig sidecarContainersConfig Array of Objects sidecar容器配置 SidecarContainersConfigDesc startupProbe String 应用健康startupProbe配置 status String Running:运行中 Stopped:已停止 Executing:执行中 Stopping: 停止中 Starting: 启动中 Running subnetID String 子网id subnetxxxx tempStorage Integer 临时存储配置 20 terminationGracePeriodSeconds Integer 应用关闭前等待时间 30 updateStrategy Object 更新策略 AppUpdateStrategy updateTime Integer 更新时间 1634544300000 vpcID String vpcid vpctsgeasd zosConfig Array of Objects zos配置 ZosConfig 表 ApplicationData 参数 参数类型 说明 示例 下级对象 appDescription String 应用描述 测试应用 appID String 应用id 09db72faxxxxxxxxa1d824a420181216 appName String 应用名称 app1 appSource String 应用来源 appcenteres appType String 应用类型 deployment autoConfig Boolean 命名空间类型 true baseAppID String 原始应用id 09db72faxxxxxxxxa1d824a420181216 codeOssInfo Object 代码包信息 CodeOssInfo command String 命令类型 /bin/sh commandArgs String 命令内容 c start.sh configmapMountDesc Array of Objects 配置管理 ConfigMapMountDescData cpu Integer cpu核数 500 cpuBurstEnable Boolean 是否开启cpu突发核数 false createTime Integer 创建时间 1634544000000 customHostAlias String host配置 127.0.0.1 myhost envs Array of Objects 环境变量 EnvData governanceEnable Integer 是否开启网格服务治理 1 headlessPvtzDiscoverySvc Object Headless Service 服务注册发现配置 ServiceData imageConfig Object 镜像相关配置 ImageConfig imagePullSecretId String 镜像拉取秘钥 secretxxxx imageType String 镜像类型 custom imageUrl String 镜像地址 nginx:latest instances Integer 实例数量 2 liveness String 应用监控live配置 logConfig String 日志配置 logEnable Integer 是否开启日志 1 memory Integer 内存大小 1024 minReadyInstance Integer 最小就绪实例数量 1 minReadyInstanceRatio Integer 最小就绪实例比例 1 mseEnable Integer 是否开启mse 1 nacosConfig Object nacos配置 NacosConfig namespaceID String 命名空间id 0b7b7988xxxxxxxxaf7d244e82424221 packageType String 代码包类型 jar packageVersion String 代码包版本 1.0.0 postStartCommand String PostStart命令类型 /bin/sh postStartCommandArgs String PostStart命令内容 c start.sh preStopCommand String preStop命令类型 /bin/sh preStopCommandArgs String preStop命令内容 c stop.sh programmingLanguage String 编程语言类型 java pvtzDiscoverySvc Object 服务注册发现配置 ServiceData readiness String 应用健康ready配置 regionID String 区域id cneast3 replicas Integer 实例数量 2 runningInstances Integer 运行实例数 2 runtimeKey String 运行时key java8 runtimeType Integer 运行时类型 1 secretMountDesc Array of Objects 保密字典配置 SecretMountDescData securityGroupID String 安全组id sgxxxx serviceEnable Boolean 是否开启k8s service true serviceTags String 灰度标签 graytag sfsConfig Array of Objects sfs配置 SfsConfig sidecarContainersConfig Array of Objects sidecar容器配置 SidecarContainersConfigDesc startupProbe String 应用健康startupProbe配置 status String Running:运行中 Stopped:已停止 Executing:执行中 Stopping: 停止中 Starting: 启动中 Running subnetID String 子网id subnetxxxx tempStorage Integer 临时存储配置 20 terminationGracePeriodSeconds Integer 应用关闭前等待时间 30 updateStrategy Object 更新策略 AppUpdateStrategy updateTime Integer 更新时间 1634544300000 vpcID String vpcid vpctsgeasd zosConfig Array of Objects zos配置 ZosConfig 表 CodeOssInfo 参数 参数类型 说明 示例 下级对象 codeUrl String 后台通过 oss 接口获取 codeZipFileName String 代码包名称 app1.0.0.jar ossBucketName String 代码上传的oss bucket名 caebucket ossObjectName String 代码上传的oss object名 apps/app1.0.0.jar zipFile String 函数代码 ZIP 包的 Base 64 编码(与 OSS 对象信息二选一,OSS 优先) 表 ConfigMapMountDescData 参数 参数类型 说明 示例 下级对象 configmapID String 配置管理id 09db72faxxxxxxxxa1d824a420181216 configmapName String 配置管理名称 myconfig key String 配置项key configkey mountPath String 挂载路径 /mnt/config 表 EnvData 参数 参数类型 说明 示例 下级对象 name String 环境变量名称 APPENV value String 环境变量值 production valueFrom Object 环境变量来源 EnvVarSource 表 EnvVarSource 参数 参数类型 说明 示例 下级对象 configmapRef Object 配置管理引用 ConfigMapRefSourceData secretRef Object 保密字典引用 SecretRefSourceData 表 ConfigMapRefSourceData 参数 参数类型 说明 示例 下级对象 configmapID String 配置管理id 09db72faxxxxxxxxa1d824a420181216 configmapName String 配置管理名称 myconfig key String 配置项key configkey 表 SecretRefSourceData 参数 参数类型 说明 示例 下级对象 key String 保密字典key secretkey secretID String 保密字典id 09db72faxxxxxxxxa1d824a420181216 secretName String 保密字典名称 mysecret 表 ServiceData 参数 参数类型 说明 示例 下级对象 enable Boolean 是否开启服务 true hosts Array of Strings 主机列表 ["app.example.com"] portProtocols Array of Objects 端口协议 PortProtocol serviceName String 服务名称 myservice 表 PortProtocol 参数 参数类型 说明 示例 下级对象 port Integer 端口 80 protocol String 协议 TCP targetPort Integer 目标端口 8080 表 ImageConfig 参数 参数类型 说明 示例 下级对象 instanceId String crs实例id crsinstancexxxx repositoryId String crs仓库id repoxxxx repositoryName String crs仓库名称 myrepo 表 NacosConfig 参数 参数类型 说明 示例 下级对象 enable Boolean 是否启用 true type Integer 类型: 1: 内置nacos, 2: mse, 3: 自定义 1 表 SecretMountDescData 参数 参数类型 说明 示例 下级对象 key String 保密字典key secretkey mountPath String 挂载路径 /mnt/secret secretID String 保密字典id 09db72faxxxxxxxxa1d824a420181216 secretName String 保密字典名称 mysecret 表 SfsConfig 参数 参数类型 说明 示例 下级对象 localMountPath String 挂载本地目录 /tmp/sfs remoteSfsPath String 远程sfs路径 /data sfsId String sfs id sfs123456 sfsName String sfs名称 mysfs 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 内存大小 2048 name String sidecar容器名称 mysidecar postStartCommand String PostStart命令类型 postStartCommandArgs String PostStart命令内容 preStopCommand String preStop命令类型 preStopCommandArgs String preStop命令内容 sfsConfig Array of Objects sfs配置 SfsConfig zosConfig Array of Objects zos配置 ZosConfig 表 EmptyDirConfig 参数 参数类型 说明 示例 下级对象 mountPath String 挂载路径 /mnt/emptydir name String 空目录名称 myemptydir 表 ZosConfig 参数 参数类型 说明 示例 下级对象 accessUrl String oss 访问地址 bucketID String bucketID zos123455 bucketName String bucket名 myzos bucketPath String bucket子目录 /tmp/sfs mountDir String 挂载本地目录 /local/sfs readOnly Boolean 是否只读,默认false true 表 AppUpdateStrategy 参数 参数类型 说明 示例 下级对象 batchUpdate Object 分批发布配置 BatchUpdateConfig grayUpdate Object 灰度发布配置 GrayUpdateConfig type String 部署类型(分批发布) RollingUpdate 表 BatchUpdateConfig 参数 参数类型 说明 示例 下级对象 batchCount Integer 分批数量 2 batchWaitTime Integer 自动分批间隔时间 5 releaseType String 分批方式(手动/自动) auto 表 GrayUpdateConfig 参数 参数类型 说明 示例 下级对象 enableGreyRule Boolean 是否启用灰度规则 false grayNum Integer 灰度实例数量 1