latestSwagger 2.02026-07-17958153.6 KB

8c773e222448

v2

创建应用

create service

post/v2/tenants/{tenant_name}/services

Path parameters

tenant_namestring required

Request body

categorystring

服务分类:application,cache,store in: body

code_fromstring

代码来源:gitlab,github in: body

commentstring

服务描述 in: body

container_cmdstring

容器启动命令 in: body

container_cpuinteger

容器CPU权重 in: body

container_envstring

容器环境变量 in: body

container_memoryinteger

容器最大内存 in: body

deploy_versionstring

部署版本 in: body

event_idstring

最新操作ID in: body

extend_methodstring

扩容方式;0:无状态;1:有状态;2:分区 in: body

host_pathstring

宿主机目录 in: body

image_namestring

镜像名称 in: body

namespacestring

镜像来源 in: body

node_labelstring

节点标签,格式: v1,v2 in: body

operatorstring

操作人 in: body

port_typestring

端口类型,one_outer;dif_protocol;multi_outer in: body

replicasinteger

节点数 in: body

service_aliasstring required

服务别名 in: body

service_idstring

应用id in: body

service_keystring

服务key in: body

service_labelstring

应用标签,value in: body

service_originstring

服务创建类型cloud云市服务,assistant云帮服务 in: body

service_typestring

服务类型 in: body

service_versionstring

服务版本 in: body

tenant_idstring

租户id in: body

{"stackTrail":"paths:/v2/tenants/{tenant_name}/services:post:requestBody:content:application/json:schema:properties:update_time","oasType":"schema","type":"unknown","description":"更新时间\nin: body","extensionFields":{"x-go-name":"UpdateTime"}}
volume_mount_pathstring

容器挂载目录 in: body

volume_pathstring

卷名字 in: body

volume_typestring

共享类型shared、exclusive in: body

Response

统一返回格式

CommandResponse required— unresolved $ref