应用管理与运维平台 ServiceStage-根据泳道组ID修改泳道组网关路由配置:响应消息

时间:2025-02-12 15:02:01

响应消息

表6 响应参数

参数

参数类型

描述

id

String

泳道组ID。

name

String

泳道组名称。

description

String

泳道组描述。

creator

String

创建人。

project_id

String

项目ID。

gray_release_type

String

泳道组灰度类型。

  • WEIGHT:基于流量比例进行全链路灰度。
  • CONTENT:基于内容进行全链路灰度。

engine_ids

Array of String

网关目标服务引擎ID。

gateways

Array of objects

目标服务列表,请参考表7

swimlane_count

Integer

泳道数量。

swimlanes

Array of objects

泳道列表,请参考表9

create_time

Integer

创建时间。

update_time

Integer

更新时间。

表7 gateways

参数

参数类型

描述

id

String

网关ID。

name

String

网关名称。

engine_id

String

目标服务引擎ID,对应于目标服务对应的服务来源所用的引擎ID。

target_services

Array of objects

目标服务列表,对应于网关服务管理中的服务。请参考表8

表8 target_services

参数

参数类型

描述

id

String

目标服务ID。

name

String

目标服务名称。

host

String

目标服务host信息。

host信息由目标服务的接入引擎后的微服务名、微服务所在环境名、微服务所属应用名称已经微服务接入的引擎类型组成,以点号(.)分隔。

例如,unit-controller.testing.test-application.servicecomb。unit-controller为接入引擎的微服务名称,testing为unit-controller微服务所在环境名,test-application为unit-controller微服务所属应用名称,servicecomb表示unit-controller微服务接入的是ServiceComb引擎。

表9 swimlanes

参数

参数类型

描述

id

String

泳道ID。

name

String

泳道名称。

swimlane_group_id

String

所属的泳道组ID。

type

String

泳道类型。

  • BASE:基线泳道。
  • GRAY:灰度泳道。

tag

String

泳道标签,根据标签来控制流量的走向。

route_status

String

泳道路由状态。

  • ENABLE:开启路由。
  • DISABLED:关闭路由。

rule_match_mode

String

路由规则匹配模式。包括ALL和ANY。

ALL表示匹配所有的规则、ANY表示匹配任一规则。

当泳道组灰度类型为基于内容,即gray_release_type为CONTENT时生效。

rules

Array of objects

路由规则。

当泳道组灰度类型为基于内容,即gray_release_type为CONTENT时生效。

请参考表10

weight

Integer

泳道流量权重。范围在0-100之间。

当泳道组灰度类型为基于流量,即gray_release_type为WEIGHT时生效。

instances

Array of objects

泳道中纳管的组件列表。

请参考表11

instance_count

Integer

泳道中纳管的组件个数。

latest_opt

String

泳道上一步的操作。

  • CLONE:克隆。
  • UPGRADE:升级。
  • ROLLBACK:回滚。
  • CREATE:创建。

release_plan_id

String

泳道上一步操作关联的发布单ID。

project_id

String

项目ID。

create_time

Integer

创建时间。

update_time

Integer

更新时间。

creator

String

创建人。

表10 rules

参数

参数类型

描述

type

String

灰度匹配规则类型。当前只支持HEADER,即基于Header头进行匹配。

key

String

键。

value

String

值。

condition

String

匹配条件。

  • EXACT:精确匹配。
  • PREFIX:前缀匹配。
  • REGEX:正则匹配。
表11 instances

参数

参数类型

描述

id

String

应用组件实例ID。

name

String

应用组件实例名称。

version

String

应用组件版本号。

application_id

String

应用ID。

component_id

String

组件ID。

application_name

String

应用名称。

status

String

实例状态。

engine_id

String

组件关联引擎ID。

runtime_stack

Object

运行时,请参考表12

replica

Integer

实例副本数。

表12 runtime_stack

参数

参数类型

描述

name

String

技术栈名称。

type

String

技术栈类型,支持Java、Tomcat、Nodejs、Php、Docker、Python。

当部署模式为虚机部署时,仅支持Java、Tomcat、Nodejs;容器部署上述类型都支持。

version

String

技术栈版本。

deploy_mode

String

部署模式。

  • container,容器部署。
  • virtualmachine,虚机部署。
support.huaweicloud.com/api-servicestage/servicestage_06_0199.html