创建应用实例 参数 是否必填 参数类型 说明 示例 下级对象 envUuid 是 String 环境uuid appUuid 是 String 应用uuid techStackUuid 是 String 技术栈uuid clusterType 是 String 集群类型,只能为ECS或KUBERNETES name 是 String 应用实例名称,长度为3~30个字符,以小写字母开头,中间可包含小写字母、数字或短横线,结尾必须为小写字母或数字 comment 是 String 应用实例版本名称,长度不能低于3个字符,不能超过30个字符, deployUnitList 是 Array of Strings 部署单元uuid列表 clusterUuid 是 String K8s/Ecs集群uuid workloadType 否 String 工作负载类型只支持Deployment、StatefulSet,当clusterType为KUBERNETES时必填 type 是 String 应用类型,仅支持程序包PACKAGE或镜像IMAGE, packageSource 否 String 制品来源,当type为PACKAGE时必填,仅支持EXISTEDPACKAGE类型 packageUuid 否 String 制品uuid,当type为PACKAGE时必填 dockerfileContent 否 String dockerfile,当clusterType为KUBERNETES且type为PACKAGE时必填 instanceId 否 String 镜像服务实例id,当clusterType为KUBERNETES时必填 namespace 否 String 镜像服务实例命名空间,当clusterType为KUBERNETES时必填 repositoryId 否 String 镜像服务实例仓库ID,当clusterType为KUBERNETES时必填 imageUrl 否 String 镜像地址,当clusterType为KUBERNETES且type为IMAGE时必填 imageName 否 String 镜像名称,当clusterType为KUBERNETES且type为IMAGE时必填 imageVer 否 String 镜像版本,当clusterType为KUBERNETES且type为IMAGE时必填 imageType 否 String 镜像仓库类型,只支持自购镜像仓库1,当clusterType为KUBERNETES且type为IMAGE时必填 imageSecret 否 String 镜像密钥,当clusterType为KUBERNETES且type为IMAGE且选择镜像为私有镜像时必填 crType 否 String 镜像仓库仅支持自购镜像仓库ORDER,当clusterType为KUBERNETES且typePACKAGE时必填 crConnectionUuid 否 String 服务连接CR类型connectionUuid,当clusterType为KUBERNETES且typePACKAGE时必填 ecsIds 否 Array of Strings ECS uuid列表,取值属性:ecsUuid,当clusterType为ECS时必填 replicas 否 Integer 应用实例pod数,取值范围0~99,当clusterType为KUBERNETES时必填 activateMsgc 否 Boolean 是否接入微服务治理中心 activateApm 否 Boolean 是否接入应用性能监控 epProjectId 是 String 企业项目id imagePlatform 否 String 镜像目标架构,可选值为amd64、arm64、amd64,arm64和arm64,amd64;当clusterType为KUBERNETES且typePACKAGE时必填 msManagement 否 Object 微服务治理,适用于KUBERNETES和ECS msManagement istioService 否 Object 服务网格,适用于KUBERNETES istioService flowPrevention 否 Object 限流降级,适用于KUBERNETES和ECS flowPrevention podResourceSpec 否 Object Pod资源,适用于KUBERNETES,当clusterType为KUBERNETES时必填 podResourceSpec startCommand 否 Object 启动命令,适用于KUBERNETES startCommand envVariableList 否 Array of Objects 环境变量,适用于KUBERNETES envVariableList localStorage 否 Object 本地存储,适用于KUBERNETES localStorage schedulingRule 否 Object 调度规则,适用于KUBERNETES schedulingRule lifeCycleMgt 否 Object 应用生命周期管理,适用于KUBERNETES lifeCycleMgt logConfigList 否 Array of Objects 日志收集管理,适用于KUBERNETES logConfigList configMgtList 否 Array of Objects 配置管理,适用于KUBERNETES configMgtList dnsConfigMgt 否 Object DNS配置,适用于KUBERNETES dnsConfigMgt labelList 否 Array of Objects 标签(Label)配置,适用于KUBERNETES labelList tomcatConfig 否 Object Tomcat配置,适用于KUBERNETES和ECS tomcatConfig javaStartUpConfig 否 Object Java启动参数配置,适用于KUBERNETES和ECS javaStartUpConfig annotationList 否 Array of Objects 注解(Annotation)配置,适用于KUBERNETES annotationList sidecars 否 Array of Objects Sidecar配置,适用于KUBERNETES sidecarAndInitContainer initContainers 否 Array of Objects InitContainer配置,适用于KUBERNETES sidecarAndInitContainer pvcMountDescs 否 Array of Objects PVC挂载,适用于KUBERNETES pvcMountDescs pvcTemplates 否 Array of Objects PVC模板,适用于KUBERNETES pvcTemplates