summaryrefslogtreecommitdiff
path: root/data/zh_cn/rocketmq/2022-08-01
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/rocketmq/2022-08-01')
-rw-r--r--data/zh_cn/rocketmq/2022-08-01/api-docs.php15117
1 files changed, 15117 insertions, 0 deletions
diff --git a/data/zh_cn/rocketmq/2022-08-01/api-docs.php b/data/zh_cn/rocketmq/2022-08-01/api-docs.php
new file mode 100644
index 0000000..3d5d966
--- /dev/null
+++ b/data/zh_cn/rocketmq/2022-08-01/api-docs.php
@@ -0,0 +1,15117 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'ROA',
+ 'product' => 'RocketMQ',
+ 'version' => '2022-08-01',
+ ],
+ 'directories' => [
+ [
+ 'id' => 322709,
+ 'title' => '实例',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateInstance',
+ 'UpdateInstance',
+ 'DeleteInstance',
+ 'ListInstances',
+ 'GetInstance',
+ ],
+ ],
+ [
+ 'id' => 322715,
+ 'title' => '主题',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateTopic',
+ 'UpdateTopic',
+ 'DeleteTopic',
+ 'ListTopics',
+ 'GetTopic',
+ ],
+ ],
+ [
+ 'id' => 322721,
+ 'title' => '消费者分组',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateConsumerGroup',
+ 'UpdateConsumerGroup',
+ 'DeleteConsumerGroup',
+ 'ListConsumerGroups',
+ 'GetConsumerGroup',
+ ],
+ ],
+ [
+ 'id' => 322727,
+ 'title' => '订阅关系',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListTopicSubscriptions',
+ 'ListConsumerGroupSubscriptions',
+ 'GetConsumerGroupSubscription',
+ 'DeleteConsumerGroupSubscription',
+ ],
+ ],
+ [
+ 'id' => 322732,
+ 'title' => '消费',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListConsumerConnections',
+ 'GetConsumerGroupLag',
+ 'GetConsumerStack',
+ 'ResetConsumeOffset',
+ ],
+ ],
+ [
+ 'id' => 322737,
+ 'title' => '消息',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListMessages',
+ 'GetMessageDetail',
+ 'VerifySendMessage',
+ 'VerifyConsumeMessage',
+ ],
+ ],
+ [
+ 'id' => 322742,
+ 'title' => '轨迹',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListTraces',
+ 'GetTrace',
+ ],
+ ],
+ [
+ 'id' => 322745,
+ 'title' => 'ACL',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateInstanceAccount',
+ 'UpdateInstanceAccount',
+ 'DeleteInstanceAccount',
+ 'ListInstanceAccount',
+ 'GetInstanceAccount',
+ 'CreateInstanceAcl',
+ 'UpdateInstanceAcl',
+ 'DeleteInstanceAcl',
+ 'ListInstanceAcl',
+ 'GetInstanceAcl',
+ 'CreateInstanceIpWhitelist',
+ 'DeleteInstanceIpWhitelist',
+ 'ListInstanceIpWhitelist',
+ 'GetInstanceIpWhitelist',
+ ],
+ ],
+ [
+ 'id' => 322760,
+ 'title' => '迁移上云',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListMigrations',
+ 'ListMigrationOperations',
+ 'ExecuteMigrationOperation',
+ 'FinishMigrationStage',
+ ],
+ ],
+ [
+ 'id' => 322765,
+ 'title' => 'Global Replicator',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateDisasterRecoveryPlan',
+ 'DeleteDisasterRecoveryPlan',
+ 'UpdateDisasterRecoveryPlan',
+ 'ListDisasterRecoveryPlans',
+ 'GetDisasterRecoveryPlan',
+ 'AddDisasterRecoveryItem',
+ 'UpdateDisasterRecoveryItem',
+ 'DeleteDisasterRecoveryItem',
+ 'StartDisasterRecoveryItem',
+ 'StopDisasterRecoveryItem',
+ 'ListDisasterRecoveryItems',
+ 'GetDisasterRecoveryItem',
+ 'ListDisasterRecoveryCheckpoints',
+ 'SyncDisasterRecoveryCheckpoint',
+ ],
+ ],
+ [
+ 'id' => 322780,
+ 'title' => '标签',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListTagResources',
+ 'TagResources',
+ 'UntagResources',
+ ],
+ ],
+ [
+ 'id' => 322784,
+ 'title' => '资源组',
+ 'type' => 'directory',
+ 'children' => [
+ 'ChangeResourceGroup',
+ ],
+ ],
+ [
+ 'id' => 322786,
+ 'title' => '其他',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetConsumeTimespan',
+ 'ListRegions',
+ 'ListAvailableZones',
+ 'ListMetricMeta',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'CreateInstance' => [
+ 'summary' => '创建云消息队列 RocketMQ 版5.x系列实例。',
+ 'path' => '/instances',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '145030',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsWNMPZ3',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'clientToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大不超过64个ASCII字符。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'c2c5d1274a8d4317a13bc5b0d4******',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'body参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceName' => [
+ 'title' => '实例名称',
+ 'description' => '待创建的实例名称。'."\n"
+ ."\n"
+ .'不填写则以实例ID作为实例名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-72u3048uxxx',
+ ],
+ 'serviceCode' => [
+ 'title' => '服务编码',
+ 'description' => '实例所属的服务编码。消息队列RocketMQ版的服务编码为rmq。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq',
+ 'default' => 'rmq',
+ ],
+ 'seriesCode' => [
+ 'title' => '系列编码',
+ 'description' => '实例的主系列编码。主系列间的具体差异,请参见[产品选型](~~444722~~)。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- standard:标准版'."\n"
+ .'- ultimate:铂金版'."\n"
+ .'- professional:专业版'."\n"
+ .'- dedicated: 独享版'."\n"
+ .'- shared: 共享版'."\n"
+ ."\n"
+ .'><notice>实例创建成功后,主系列只支持单向变更,只升不降,变更方向为:标准版 > 专业版 > 铂金版。例如,只支持从标准版变更到专业版,不支持从专业版降为标准版。></notice>',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'standard' => '标准版',
+ 'dedicated' => '独享版',
+ 'shared' => '共享版',
+ 'ultimate' => '铂金版',
+ 'professional' => '专业版',
+ ],
+ 'example' => 'standard',
+ ],
+ 'subSeriesCode' => [
+ 'title' => '子系列编码',
+ 'description' => '实例的子系列编码。子系列间具体差异,请参见[产品选型](~~444722~~)。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- cluster_ha:集群高可用版'."\n"
+ .'- single_node:单节点测试版'."\n"
+ .'- serverless:Serverless实例'."\n"
+ ."\n"
+ .'主系列选择ultimate(铂金版)时,子系列只能选择为cluster_ha(集群高可用版)。'."\n"
+ .'><notice>实例创建成功后,子系列不支持变更。></notice>',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'serverless' => 'Serverless版',
+ 'cluster_ha' => '集群高可用版',
+ 'single_node' => '单节点测试版',
+ ],
+ 'example' => 'cluster_ha',
+ ],
+ 'paymentType' => [
+ 'title' => '付费类型,'."\n"
+ .'预付费:Subscription'."\n"
+ .'后付费:PayAsYouGo',
+ 'description' => '实例的付费类型。云消息队列 RocketMQ 版支持包年包月和按量付费两种类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- PayAsYouGo:按量付费,一种后付费模式,即先使用再付费。'."\n"
+ .'- Subscription:包年包月,一种预付费模式,即先付费再使用。'."\n"
+ ."\n"
+ .'具体信息,请参见[计费方式](~~427234~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'PayAsYouGo' => '按量付费',
+ 'Subscription' => '包年包月',
+ ],
+ 'example' => 'Subscription',
+ 'enum' => [
+ 'Subscription',
+ 'PayAsYouGo',
+ ],
+ ],
+ 'period' => [
+ 'title' => '购买时长,只有预付费支持',
+ 'description' => '购买时长。仅当实例付费类型为Subscription(包年包月)时,该参数生效。'."\n"
+ ."\n"
+ .'取值范围如下:'."\n"
+ ."\n"
+ .'- 按月购买:1、2、3、4、5、6'."\n"
+ ."\n"
+ .'- 按年购买:1、2、3',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '3',
+ ],
+ 'periodUnit' => [
+ 'title' => '购买时长单位,只有预付费支持'."\n"
+ .'月:Month'."\n"
+ .'年:Year',
+ 'description' => '购买时长的最小周期单位。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- Month:按月购买'."\n"
+ .'- Year:按年购买',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Month' => '按月购买',
+ 'Year' => '按年购买',
+ ],
+ 'example' => 'Month',
+ 'enum' => [
+ 'Month',
+ 'Year',
+ ],
+ ],
+ 'autoRenew' => [
+ 'title' => '是否自动续费,只有预付费支持',
+ 'description' => '是否自动续费。仅当实例付费类型为Subscription(包年包月)时,该参数生效。'."\n"
+ ."\n"
+ .'- true:开启自动续费'."\n"
+ .'- false:不开启自动续费',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启自动续费',
+ 'false' => '不开启自动续费',
+ ],
+ 'example' => 'true',
+ ],
+ 'autoRenewPeriod' => [
+ 'title' => '自动续费周期,只有预付费支持',
+ 'description' => '自动续费周期。仅当开启自动续费时该参数有效。单位:月。'."\n"
+ ."\n"
+ .'取值范围:'."\n"
+ ."\n"
+ .'- 按月续费:1、2、3、6、12',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '3',
+ ],
+ 'remark' => [
+ 'title' => '备注信息',
+ 'description' => '实例的备注信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is the remark for test.',
+ ],
+ 'productInfo' => [
+ 'title' => '产品信息',
+ 'description' => '实例规格信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'msgProcessSpec' => [
+ 'title' => '消息收发规格',
+ 'description' => '消息收发计算规格。具体消息收发TPS上限,请参见[实例规格](~~444715~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq.s2.2xlarge',
+ ],
+ 'sendReceiveRatio' => [
+ 'title' => '消息收发比例',
+ 'description' => '消息发送TPS占整个实例消息收发TPS总量的比例。'."\n"
+ ."\n"
+ .'例如,实例的消息收发TPS上限为1000次/秒,若消息发送占比为0.8,则消息发送TPS上限为800次/秒,消息接收TPS上限为200次/秒。'."\n"
+ ."\n"
+ .'取值范围:[0.05,0.95],默认值为0.5。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'example' => '0.5',
+ ],
+ 'autoScaling' => [
+ 'title' => '是否开启弹性伸缩',
+ 'description' => '是否开启规格外突发弹性能力。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ ."\n"
+ .'- true:开启弹性能力'."\n"
+ .'- false:不开启弹性能力'."\n"
+ ."\n"
+ .'开启弹性突发能力后,云消息队列 RocketMQ 版允许该实例在一定范围内超过基础规格限制的TPS,且超过基础规格外的部分,需要收取额外的弹性规格费用。具体计费信息,请参见[计算能力费用](~~427237~~)。'."\n"
+ ."\n\n"
+ .'> 仅部分规格的实例支持开启弹性突发规格能力,具体支持的实例,请参见[实例规格](~~444715~~)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启弹性能力',
+ 'false' => '不开启弹性能力',
+ ],
+ 'example' => 'true',
+ ],
+ 'messageRetentionTime' => [
+ 'title' => '消息保留时长',
+ 'description' => '消息保存时长。单位:小时。'."\n"
+ ."\n"
+ .'取值范围,请参见[使用限制](~~440347~~)>资源配额>消息保存时长的限制值。'."\n"
+ ."\n"
+ .'云消息队列 RocketMQ 版的消息存储完全实现Serverless弹性,按照实际存储空间收取费用,您可以通过调整消息保存时长来控制消息的存储容量。更多信息,请参见[存储费用](~~427238~~)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '72',
+ ],
+ 'storageEncryption' => [
+ 'title' => '是否开启存储加密',
+ 'description' => '是否开启存储加密',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ 'storageSecretKey' => [
+ 'title' => '存储加密密钥Key',
+ 'description' => '存储加密密钥Key',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxxxx',
+ ],
+ 'capacityType' => [
+ 'title' => '容量模式。provisioned:预留+弹性;onDemand:按量付费',
+ 'description' => '容量模式。provisioned:预留+弹性;onDemand:按量付费',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'provisioned',
+ 'enum' => [
+ 'provisioned',
+ 'ondemand',
+ ],
+ ],
+ 'provisionedCapacity' => [
+ 'title' => '预留容量',
+ 'description' => '预留容量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '5000',
+ ],
+ 'traceOn' => [
+ 'title' => '是否开启消息轨迹功能。'."\n"
+ ."\n"
+ .'true:开启消息轨迹功能'."\n"
+ .'false:关闭消息轨迹功能'."\n"
+ .'该参数仅对 Serverless 类型的实例生效,若开启消息轨迹功能,会产生相关的消息轨迹费用,具体计费信息,请参见 Serverless 计费说明。 对于按量付费和包年包月实例,该参数不生效,即不管参数是否开启,都默认支持消息轨迹功能。',
+ 'description' => '是否开启消息轨迹功能。'."\n"
+ ."\n"
+ .'true:开启消息轨迹功能'."\n"
+ .'false:关闭消息轨迹功能'."\n"
+ .'该参数仅对 Serverless 类型的实例生效,若开启消息轨迹功能,会产生相关的消息轨迹费用,具体计费信息,请参见 Serverless 计费说明。 对于按量付费和包年包月实例,该参数不生效,即不管参数是否开启,都默认支持消息轨迹功能。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'networkInfo' => [
+ 'title' => '网络信息',
+ 'description' => '网络配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'vpcInfo' => [
+ 'title' => '专有网络信息',
+ 'description' => '专有网络配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'vpcId' => [
+ 'title' => '专有网络ID',
+ 'description' => '待创建实例所关联的专有网络的ID。'."\n"
+ ."\n"
+ .'> 云消息队列 RocketMQ 版实例创建后,选择的VPC不支持变更。若要修改关联的VPC,您需要先释放已购买的云消息队列 RocketMQ 版实例,再重新购买。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'vpc-wz9qt50xhtj9krb******',
+ ],
+ 'vSwitchId' => [
+ 'title' => '交换机ID',
+ 'description' => '实例所关联的交换机ID,当有多个交换机时,请以“|“进行拼接。'."\n"
+ ."\n"
+ .'> 云消息队列 RocketMQ 版实例创建后,选择的交换机不支持变更。若要修改关联的交换机,您需要先释放已购买的云消息队列 RocketMQ 版实例,再重新购买。'."\n"
+ ."\n"
+ .'<notice>该字段不推荐使用,请使用vSwitches字段></notice>',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'vsw-uf6gwtbn6etadpv*******',
+ ],
+ 'securityGroupIds' => [
+ 'description' => '安全组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sg-bp17hpmgz96tvnsdy6so',
+ ],
+ 'vSwitches' => [
+ 'description' => '交换机列表。'."\n"
+ ."\n"
+ .'> 云消息队列 RocketMQ 版实例创建后,选择的交换机不支持变更。若要修改关联的交换机,您需要先释放已购买的云消息队列 RocketMQ 版实例,再重新购买。'."\n"
+ ."\n"
+ .'<notice>必填字段,由于vSwitchId字段已不推荐使用,请使用该字段设置交换机></notice>',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'vSwitchId' => [
+ 'description' => '实例所关联的交换机ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-uf6gwtbn6etadpv*******',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'internetInfo' => [
+ 'title' => '公网信息',
+ 'description' => '公网配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'internetSpec' => [
+ 'title' => '是否开启公网'."\n"
+ .'开启:enable'."\n"
+ .'关闭:disable',
+ 'description' => '是否开通公网访问。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- enable:开启公网访问'."\n"
+ .'- disable:关闭公网访问'."\n"
+ ."\n"
+ .'实例默认支持VPC访问方式,若开启公网访问,云消息队列 RocketMQ 版会收取公网下行带宽费用。具体计费信息,请参见[公网访问费用](~~427240~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'enable' => '开启公网访问',
+ 'disable' => '关闭公网访问',
+ ],
+ 'example' => 'disable',
+ ],
+ 'flowOutType' => [
+ 'title' => '公网计费类型'."\n"
+ .'固定带宽计费:payByBandwidth',
+ 'description' => '公网计费类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- payByBandwidth:固定带宽计费。开启公网访问时,设置为该参数取值。'."\n"
+ .'- payByTraffic:按流量计费。开启公网访问时,设置为该参数取值。'."\n"
+ .'- uninvolved:不涉及。关闭公网访问时,设置为该参数取值。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'payByBandwidth' => '固定带宽计费',
+ 'payByTraffic' => '按流量计费',
+ 'uninvolved' => '不涉及',
+ ],
+ 'example' => 'uninvolved',
+ ],
+ 'flowOutBandwidth' => [
+ 'title' => '公网带宽规格',
+ 'description' => '公网带宽规格。单位:Mb/s。'."\n"
+ ."\n"
+ .'只有在公网计费类型为按固定带宽计费的时候才需要填写。'."\n"
+ ."\n"
+ .'取值范围:[1 - 1000]。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ 'ipWhitelist' => [
+ 'title' => '公网IP白名单列表',
+ 'description' => '公网访问IP白名单。仅公网接入点支持配置IP白名单,VPC接入点暂不支持。'."\n"
+ ."\n"
+ .'- 若不配置IP白名单,则默认放通所有IP地址段通过公网访问云消息队列 RocketMQ 版服务端。'."\n"
+ .'- 若配置IP白名单,则仅允许白名单内的IP地址通过公网访问云消息队列 RocketMQ 版服务端。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '公网IP白名单',
+ 'description' => '公网访问白名单地址段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '192.168.x.x/24',
+ ],
+ 'deprecated' => true,
+ 'required' => false,
+ ],
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'commodityCode' => [
+ 'description' => '商品编码。'."\n"
+ ."\n"
+ .'<props="china">- ons_rmqsub_public_cn:包年包月实例</props>'."\n"
+ ."\n"
+ .'<props="china">- ons_rmqpost_public_cn:按量付费实例</props>'."\n"
+ ."\n"
+ .'<props="china">- ons_rmqsrvlesspost_public_cn :Serverless实例</props>'."\n"
+ ."\n"
+ .'<props="intl">- ons_rmqpost_public_intl:按量付费</props>'."\n"
+ ."\n"
+ .'<props="intl">- ons_rmqsub_public_intl:包年包月</props>'."\n"
+ .'<props="intl">- ons_rmqsrvlesspost_public_intl :Serverless实例</props>'."\n"
+ .'serverless实例此参数必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ons_ rmqpost_public_cn',
+ ],
+ 'resourceGroupId' => [
+ 'title' => '资源组ID',
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-aekzy6pist7uuna',
+ ],
+ 'tags' => [
+ 'description' => '资源标签列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => [
+ 'description' => '资源标签key值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxxKey',
+ ],
+ 'value' => [
+ 'description' => '资源标签value值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxxValue',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'aclInfo' => [
+ 'title' => '访问控制信息',
+ 'description' => '访问控制信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'defaultVpcAuthFree' => [
+ 'title' => '是否支持vpc免密访问',
+ 'description' => '是否智能身份识别类型下,VPC接入免密访问'."\n"
+ .'- true 开启免密访问'."\n"
+ .'- false 关闭免密访问',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<String>',
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回已创建实例的ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": \\"rmq-cn-7e22ody****\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"Success\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '创建实例',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'UpdateInstance' => [
+ 'summary' => '更新云消息队列 RocketMQ 版实例的基本信息和规格配置。',
+ 'path' => '/instances/{instanceId}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待更新实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceName' => [
+ 'title' => '实例名称',
+ 'description' => '更新后的实例名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test_instance',
+ ],
+ 'remark' => [
+ 'title' => '实例备注',
+ 'description' => '更新后的实例备注信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is the remark for test.',
+ ],
+ 'networkInfo' => [
+ 'title' => '网络信息',
+ 'description' => '更新后的实例网络信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'internetInfo' => [
+ 'title' => '公网信息',
+ 'description' => '公网信息,仅当实例开通公网访问功能时,该参数有效。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ipWhitelist' => [
+ 'title' => '公网IP白名单列表',
+ 'description' => '公网访问IP白名单列表。'."\n"
+ ."\n"
+ .'- 若不配置IP白名单,则默认放通所有IP地址段通过公网访问云消息队列 RocketMQ 版服务端。'."\n"
+ .'- 若配置IP白名单,则仅允许白名单内的IP地址通过公网访问云消息队列 RocketMQ 版服务端。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '公网IP白名单',
+ 'description' => '公网访问IP白名单。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '192.168.x.x/24',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'productInfo' => [
+ 'title' => '扩展配置',
+ 'description' => '实例的扩展配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'sendReceiveRatio' => [
+ 'title' => '消息收发比例',
+ 'description' => '消息发送和接收的比例。'."\n"
+ ."\n"
+ .'取值范围:[0.25,1]',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'example' => '0.5',
+ ],
+ 'autoScaling' => [
+ 'title' => '自适应弹性伸缩',
+ 'description' => '是否开启规格外突发弹性能力。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- true:开启弹性'."\n"
+ .'- false:关闭弹性'."\n"
+ ."\n"
+ .'开启弹性突发能力后,云消息队列 RocketMQ 版允许该实例在一定范围内超过基础规格限制的TPS,且超过基础规格外的部分,需要收取额外的弹性规格费用。具体计费信息,请参见[计算能力费用](~~427237~~)。'."\n"
+ ."\n\n"
+ .'> 仅部分规格的实例支持开启弹性突发规格能力,具体支持的实例,请参见[实例规格](~~444715~~)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启弹性',
+ 'false' => '关闭弹性',
+ ],
+ 'example' => 'true',
+ ],
+ 'messageRetentionTime' => [
+ 'title' => '消息保留时长',
+ 'description' => '消息保存时长。单位:小时。'."\n"
+ ."\n"
+ .'取值范围,请参见[使用限制](~~440347~~)>资源配额>消息保存时长的限制值。'."\n"
+ ."\n"
+ .'云消息队列 RocketMQ 版的消息存储完全实现Serverless弹性,按照实际存储空间收取费用,您可以通过调整消息保存时长来控制消息的存储容量。更多信息,请参见[存储费用](~~427238~~)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '72',
+ ],
+ 'traceOn' => [
+ 'description' => '是否开启消息轨迹功能。'."\n"
+ .'- true:开启消息轨迹功能'."\n"
+ .'- false:关闭消息轨迹功能'."\n"
+ ."\n"
+ .'<props="intl">该参数暂不生效,不管参数是否开启,实例都默认支持轨迹功能。</props>'."\n"
+ .'<props="china">该参数仅对Serverless类型的实例生效,若开启消息轨迹功能,会产生相关的消息轨迹费用,具体计费信息,请参见[Serverless计费说明](~~2586280~~)。</props>'."\n"
+ .'<props="china">对于按量付费和包年包月实例,该参数不生效,即不管参数是否开启,都默认支持消息轨迹功能。</props>',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'false' => '关闭消息轨迹功能',
+ 'true' => '开启消息轨迹功能',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'aclInfo' => [
+ 'description' => '访问控制信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'aclTypes' => [
+ 'description' => '实例的鉴权类型。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例的鉴权类型。'."\n"
+ .'- default: 智能身份识别'."\n"
+ .'- apache_acl: Apache RocketMQ ACL',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'default' => '智能身份识别',
+ 'apache_acl' => 'Apache RocketMQ ACL',
+ ],
+ 'example' => 'apache_acl',
+ ],
+ 'required' => false,
+ ],
+ 'defaultVpcAuthFree' => [
+ 'description' => '是否智能身份识别类型下,VPC接入免密访问'."\n"
+ .'- true 开启免密访问'."\n"
+ .'- false 关闭免密访问',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启免密访问',
+ 'false' => '关闭免密访问',
+ ],
+ 'example' => 'false',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AA87DE09-DA44-52F4-9515-78B1B607****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AA87DE09-DA44-52F4-9515-78B1B607****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '更新实例',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'DeleteInstance' => [
+ 'summary' => '释放实例。',
+ 'path' => '/instances/{instanceId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ 'http',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待删除实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody0129',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => '048242AA-BADA-5F29-B2CD-ED9FA344467F',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"048242AA-BADA-5F29-B2CD-ED9FA344467F\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '删除实例',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>'."\n"
+ ."\n"
+ .'- 实例删除后将无法恢复,请慎重操作。'."\n"
+ ."\n"
+ .'- 本接口用于删除按量付费实例,对于包年包月实例,实例到期后自动释放,无需手动删除。',
+ ],
+ 'ListInstances' => [
+ 'summary' => '查询指定地域下,所有的云消息队列 RocketMQ 版实例的列表信息。',
+ 'path' => '/instances',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '144675',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsICR0M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '过滤关键字',
+ 'description' => '查询的过滤条件,若不输入则查询所有实例。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页页码',
+ 'description' => '分页页码,查询第几页的返回结果。'."\n"
+ ."\n"
+ .'取值范围:1~100000000。'."\n"
+ ."\n"
+ .'若您设置的参数值小于1,则系统默认按照参数值为1处理;若您设置的参数值大于100000000,则系统默认按照参数值为100000000处理。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小,每页最多显示的返回结果数量。'."\n"
+ ."\n"
+ .'取值范围:10~200。'."\n"
+ ."\n"
+ .'若您设置的参数值小于10,则系统默认按照参数值为10处理;若您设置的参数值大于200,则系统默认按照参数值为200处理。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '200',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源组ID',
+ 'description' => '实例所属的资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfmx7caj******',
+ ],
+ ],
+ [
+ 'name' => 'tags',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源标签列表,用于筛选实例。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[{"key": "rmq-test", "value": "test"}]',
+ ],
+ ],
+ [
+ 'name' => 'seriesCodes',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '实例的主系列编码。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- standard:标准版'."\n"
+ .'- ultimate:铂金版'."\n"
+ .'- professional:专业版'."\n"
+ .'- dedicated: 独享版'."\n"
+ .'- shared: 共享版',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例的主系列编码。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'standard',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'storageSecretKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '存储加密密钥Key',
+ 'description' => '存储加密密钥Key',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxxxx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<InstanceDTO>>',
+ 'description' => 'Result<MyPage<InstanceDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => '84445A20-2B50-5306-A3C0-AF99FC1833C6',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '返回结果的总数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '实例所属的地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'instanceName' => [
+ 'title' => '实例名称',
+ 'description' => '实例名称。',
+ 'type' => 'string',
+ 'example' => 'test instance',
+ ],
+ 'status' => [
+ 'title' => '实例状态',
+ 'description' => '实例状态。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- RELEASED(已释放)'."\n"
+ .'- RUNNING(运行中)'."\n"
+ .'- STOPPED(已停服)'."\n"
+ .'- CHANGING(变更中)'."\n"
+ .'- CREATING(创建中)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'RELEASED' => '已释放',
+ 'RUNNING' => '运行中',
+ 'STOPPED' => '已停服',
+ 'CHANGING' => '变更中',
+ 'CREATING' => '创建中',
+ ],
+ 'example' => 'RUNNING',
+ 'enum' => [
+ 'CREATING',
+ 'CHANGING',
+ 'RUNNING',
+ 'STOPPED',
+ 'RELEASED',
+ ],
+ ],
+ 'startTime' => [
+ 'title' => '开服时间',
+ 'description' => '实例的创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 00:00:00',
+ ],
+ 'expireTime' => [
+ 'title' => '过期时间',
+ 'description' => '实例的到期时间。',
+ 'type' => 'string',
+ 'example' => '2022-09-01 00:00:00',
+ ],
+ 'releaseTime' => [
+ 'title' => '释放时间',
+ 'description' => '实例的释放时间。',
+ 'type' => 'string',
+ 'example' => '2022-09-07 00:00:00',
+ ],
+ 'userId' => [
+ 'title' => '所属人ID',
+ 'description' => '实例所属的用户ID。',
+ 'type' => 'string',
+ 'example' => '6W0xz2uPfiwp****',
+ ],
+ 'commodityCode' => [
+ 'title' => '商品编码',
+ 'description' => '消息队列RocketMQ 5.x系列实例的商品代号,类似于ons_rmqsub_public_cn。',
+ 'type' => 'string',
+ 'example' => 'ons_rmqsub_public_cn',
+ ],
+ 'serviceCode' => [
+ 'title' => '服务编码',
+ 'description' => '实例所属的服务编码。消息队列RocketMQ版的服务编码为rmq。',
+ 'type' => 'string',
+ 'example' => 'rmq',
+ ],
+ 'seriesCode' => [
+ 'title' => '系列编码',
+ 'description' => '实例的主系列编码。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- standard:标准版'."\n"
+ .'- ultimate:铂金版'."\n"
+ .'- professional:专业版'."\n"
+ .'- shared: 共享版'."\n"
+ .'- dedicated:独享版',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'standard' => '标准版',
+ 'ultimate' => '铂金版',
+ 'professional' => '专业版',
+ ],
+ 'example' => 'standard',
+ ],
+ 'subSeriesCode' => [
+ 'title' => '子系列编码',
+ 'description' => '实例的子系列编码。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- cluster_ha:集群高可用版'."\n"
+ .'- single_node:单节点版'."\n"
+ .'- serverless: serverless版本',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'cluster_ha' => '集群高可用版',
+ 'single_node' => '单节点版',
+ ],
+ 'example' => 'cluster_ha',
+ ],
+ 'paymentType' => [
+ 'title' => '付费类型',
+ 'description' => '实例的付费类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- PayAsYouGo:按量付费(后付费)'."\n"
+ .'- Subscription:包年包月(预付费)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PayAsYouGo' => '按量付费(后付费)',
+ 'Subscription' => '包年包月(预付费)',
+ ],
+ 'example' => 'Subscription',
+ 'enum' => [
+ 'Subscription',
+ 'PayAsYouGo',
+ ],
+ ],
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '实例的备注信息。',
+ 'type' => 'string',
+ 'example' => 'This is remark for instance.',
+ ],
+ 'topicCount' => [
+ 'title' => '主题数量',
+ 'description' => '实例中所创建的主题数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20',
+ ],
+ 'groupCount' => [
+ 'title' => '消费组数量',
+ 'description' => '实例中所创建的消费者分组的数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '实例的版本更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 00:00:00',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '实例的最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-02 00:00:00',
+ ],
+ 'resourceGroupId' => [
+ 'title' => '资源组ID',
+ 'description' => '实例所属的资源组ID。',
+ 'type' => 'string',
+ 'example' => 'rg-acfmx7caj******',
+ ],
+ 'tags' => [
+ 'title' => '资源标签列表。',
+ 'description' => '资源标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '资源标签。',
+ 'description' => '资源标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => [
+ 'title' => '资源标签key值。',
+ 'description' => '资源标签key值。',
+ 'type' => 'string',
+ 'example' => 'key',
+ ],
+ 'value' => [
+ 'title' => '资源标签value值。',
+ 'description' => '资源标签value值。',
+ 'type' => 'string',
+ 'example' => 'value',
+ ],
+ ],
+ ],
+ ],
+ 'productInfo' => [
+ 'description' => '产品信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'traceOn' => [
+ 'description' => '是否开启消息轨迹功能。'."\n"
+ .'- true:开启消息轨迹功能'."\n"
+ .'- false:关闭消息轨迹功能'."\n"
+ ."\n"
+ .'<props="intl">该参数暂不生效,不管参数是否开启,实例都默认支持轨迹功能。</props>'."\n"
+ .'<props="china">该参数仅对Serverless类型的实例生效,若开启消息轨迹功能,会产生相关的消息轨迹费用,具体计费信息,请参见[Serverless计费说明](~~2586280~~)。</props>'."\n"
+ ."\n"
+ .'<props="china">对于按量付费和包年包月实例,该参数不生效,即不管参数是否开启,都默认支持消息轨迹功能。</props>',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'capacityType' => [
+ 'description' => '容量模式:'."\n"
+ .' - provisioned: 预留+弹性'."\n"
+ .' - ondemand: 按量付费',
+ 'type' => 'string',
+ 'example' => 'provisioned',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingPageNumber',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter pageNumber is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'PageNumber',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'pageNumber',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"84445A20-2B50-5306-A3C0-AF99FC1833C6\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 100,\\n \\"list\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"instanceName\\": \\"test instance\\",\\n \\"status\\": \\"RUNNING\\",\\n \\"startTime\\": \\"2022-08-01 00:00:00\\",\\n \\"expireTime\\": \\"2022-09-01 00:00:00\\",\\n \\"releaseTime\\": \\"2022-09-07 00:00:00\\",\\n \\"userId\\": \\"6W0xz2uPfiwp****\\",\\n \\"commodityCode\\": \\"ons_rmqsub_public_cn\\",\\n \\"serviceCode\\": \\"rmq\\",\\n \\"seriesCode\\": \\"standard\\",\\n \\"subSeriesCode\\": \\"cluster_ha\\",\\n \\"paymentType\\": \\"Subscription\\",\\n \\"remark\\": \\"This is remark for instance.\\",\\n \\"topicCount\\": 20,\\n \\"groupCount\\": 10,\\n \\"createTime\\": \\"2022-08-01 00:00:00\\",\\n \\"updateTime\\": \\"2022-08-02 00:00:00\\",\\n \\"resourceGroupId\\": \\"rg-acfmx7caj******\\",\\n \\"tags\\": [\\n {\\n \\"key\\": \\"key\\",\\n \\"value\\": \\"value\\"\\n }\\n ],\\n \\"productInfo\\": {\\n \\"traceOn\\": true,\\n \\"capacityType\\": \\"provisioned\\"\\n }\\n }\\n ]\\n },\\n \\"code\\": \\"MissingPageNumber\\",\\n \\"message\\": \\"Parameter pageNumber is mandatory for this action .\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"PageNumber\\",\\n \\"dynamicMessage\\": \\"pageNumber\\"\\n}","type":"json"}]',
+ 'title' => '查询实例列表',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'GetInstance' => [
+ 'summary' => '获取某个指定实例的详细信息。',
+ 'path' => '/instances/{instanceId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '147017',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsHF2FLP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待查询实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<InstanceDTO>',
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => '05AB7FBD-F1D3-5D87-BF78-BD782249****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '实例所属的地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'instanceName' => [
+ 'title' => '实例名称',
+ 'description' => '实例名称。',
+ 'type' => 'string',
+ 'example' => 'test instance',
+ ],
+ 'status' => [
+ 'title' => '实例状态',
+ 'description' => '实例状态。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- RELEASED:已释放'."\n"
+ .'- RUNNING:运行中'."\n"
+ .'- STOPPED:已停服'."\n"
+ .'- CHANGING:变更中'."\n"
+ .'- CREATING:创建中',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'RELEASED' => '已释放',
+ 'RUNNING' => '运行中',
+ 'STOPPED' => '已停服',
+ 'CHANGING' => '变更中',
+ 'CREATING' => '创建中',
+ ],
+ 'example' => 'RUNNING',
+ 'enum' => [
+ 'CREATING',
+ 'CHANGING',
+ 'RUNNING',
+ 'STOPPED',
+ 'RELEASED',
+ ],
+ ],
+ 'startTime' => [
+ 'title' => '开服时间',
+ 'description' => '实例的启动时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 00:00:00',
+ ],
+ 'expireTime' => [
+ 'title' => '过期时间',
+ 'description' => '实例的到期时间。',
+ 'type' => 'string',
+ 'example' => '2022-09-01 00:00:00',
+ ],
+ 'releaseTime' => [
+ 'title' => '释放时间',
+ 'description' => '实例的释放时间。',
+ 'type' => 'string',
+ 'example' => '2022-09-07 00:00:00',
+ ],
+ 'userId' => [
+ 'title' => '所属人ID',
+ 'description' => '实例所属的用户ID。',
+ 'type' => 'string',
+ 'example' => '111111111111111',
+ ],
+ 'bid' => [
+ 'title' => 'BID',
+ 'description' => '商品的售卖渠道BID。',
+ 'type' => 'string',
+ 'example' => '26842',
+ ],
+ 'commodityCode' => [
+ 'title' => '商品编码',
+ 'description' => '消息队列RocketMQ 5.x系列实例的商品代号类似于ons_rmqsub_public_cn。',
+ 'type' => 'string',
+ 'example' => 'ons_rmqsub_public_cn',
+ ],
+ 'serviceCode' => [
+ 'title' => '服务编码',
+ 'description' => '实例所属的服务编码。消息队列RocketMQ版的服务编码为rmq。',
+ 'type' => 'string',
+ 'example' => 'rmq',
+ ],
+ 'seriesCode' => [
+ 'title' => '系列编码',
+ 'description' => '实例的主系列编码。主系列间的具体差异,请参见[产品选型](~~444722~~)。'."\n"
+ ."\n"
+ .' 参数取值如下:'."\n"
+ .'- standard:标准版'."\n"
+ .'- ultimate:铂金版'."\n"
+ .'- professional:专业版'."\n"
+ .'- shared: 共享版'."\n"
+ .'- dedicated:独享版',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'standard' => '标准版',
+ 'shared' => '共享版',
+ 'dedicated' => '独享版',
+ 'ultimate' => '铂金版',
+ 'professional' => '专业版',
+ ],
+ 'example' => 'standard',
+ ],
+ 'subSeriesCode' => [
+ 'title' => '子系列编码',
+ 'description' => '实例的子系列编码。子系列间的具体差异,请参见[产品选型](~~444722~~)。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- cluster_ha:集群高可用版'."\n"
+ .'- single_node:单节点版'."\n"
+ .'- serverless: serverless版本',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'serverless' => 'serverless版本',
+ 'cluster_ha' => '集群高可用版',
+ 'single_node' => '单节点版',
+ ],
+ 'example' => 'cluster_ha',
+ ],
+ 'paymentType' => [
+ 'title' => '付费类型',
+ 'description' => '实例的付费类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- PayAsYouGo:按量付费(后付费)'."\n"
+ .'- Subscription:包年包月(预付费)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PayAsYouGo' => '按量付费(后付费)',
+ 'Subscription' => '包年包月(预付费)',
+ ],
+ 'example' => 'Subscription',
+ 'enum' => [
+ 'Subscription',
+ 'PayAsYouGo',
+ ],
+ ],
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '实例的备注信息。',
+ 'type' => 'string',
+ 'example' => 'This is remark for instance.',
+ ],
+ 'networkInfo' => [
+ 'title' => '网络信息',
+ 'description' => '网络信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'vpcInfo' => [
+ 'title' => '专有网络信息',
+ 'description' => '专有网络信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'vpcId' => [
+ 'title' => '专有网络ID',
+ 'description' => '实例所关联的专有网络的ID。',
+ 'type' => 'string',
+ 'example' => 'vpc-uf6of9452b2pba82c****',
+ ],
+ 'vSwitchId' => [
+ 'title' => '交换机ID',
+ 'description' => '实例所关联的交换机ID。'."\n"
+ ."\n"
+ .'<notice>该字段不推荐使用,请使用vSwitches字段。此外,为了兼容,该字段目前只返回一个交换机。></notice>',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'example' => 'vsw-uf6gwtbn6etadpvz7****',
+ ],
+ 'vSwitches' => [
+ 'title' => '交换机列表',
+ 'description' => '交换机列表',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'vSwitchId' => [
+ 'title' => '交换机ID',
+ 'description' => '交换机ID',
+ 'type' => 'string',
+ 'example' => 'vsw-uf6gwtbn6etadpvz7****',
+ ],
+ 'zoneId' => [
+ 'title' => '可用区ID',
+ 'description' => '可用区ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ ],
+ 'securityGroupIds' => [
+ 'description' => '安全组ID。',
+ 'type' => 'string',
+ 'example' => 'sg-hp35r2hc3a3sv8q2sb16',
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ 'title' => '接入点列表',
+ 'description' => '接入点信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '接入点信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'endpointType' => [
+ 'title' => '接入点类型',
+ 'description' => '表示实例的接入点类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'TCP_VPC' => 'VPC接入点',
+ 'TCP_INTERNET' => '公网接入点',
+ ],
+ 'example' => 'TCP_INTERNET',
+ 'enum' => [
+ 'TCP_INTERNET',
+ 'TCP_VPC',
+ ],
+ ],
+ 'endpointUrl' => [
+ 'title' => '接入点地址',
+ 'description' => '实例的接入点。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-c4d2tbk****-vpc.cn-hangzhou.rmq.aliyuncs.com:8080',
+ ],
+ 'ipWhitelist' => [
+ 'description' => '公网访问IP白名单。仅公网接入点支持配置IP白名单,VPC接入点暂不支持。'."\n"
+ ."\n"
+ .'- 若不配置IP白名单,则默认放通所有IP地址段通过公网访问消息队列RocketMQ版服务端。'."\n"
+ .'- 若配置IP白名单,则仅允许白名单内的IP地址通过公网访问消息队列RocketMQ版服务端。'."\n"
+ ."\n"
+ .'该字段不再推荐使用,请使用internetInfo.ipWhitelist字段。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '公网访问IP白名单。',
+ 'type' => 'string',
+ 'example' => '192.168.x.x/24',
+ ],
+ 'example' => '192.168.x.x/24',
+ ],
+ 'endpointId' => [
+ 'title' => '关联的pvl ep实例',
+ 'description' => '关联的pvl ep实例',
+ 'type' => 'string',
+ 'example' => 'ep-bpxxx',
+ ],
+ ],
+ ],
+ ],
+ 'internetInfo' => [
+ 'title' => '公网信息',
+ 'description' => '实例公网信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'internetSpec' => [
+ 'title' => '是否开通公网',
+ 'description' => '是否开通公网访问。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- enable:开启公网访问'."\n"
+ .'- disable:关闭公网访问'."\n"
+ ."\n"
+ .'实例默认支持VPC访问方式,若开启公网访问,消息队列RocketMQ版会收取公网下行带宽费用。具体计费信息,请参见[公网访问费用](~~427240~~)。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'enable' => '开启公网访问',
+ 'disable' => '关闭公网访问',
+ ],
+ 'example' => 'enable',
+ ],
+ 'flowOutType' => [
+ 'title' => '公网计费类型',
+ 'description' => '公网计费类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- payByBandwidth:固定带宽计费,开启公网访问时,设置为该参数值。'."\n"
+ .'- uninvolved:不涉及,未开启公网访问时,设置为该参数值。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'payByBandwidth' => '固定带宽计费',
+ 'uninvolved' => '不涉及',
+ ],
+ 'example' => 'payByBandwidth',
+ ],
+ 'flowOutBandwidth' => [
+ 'title' => '公网带宽规格',
+ 'description' => '公网带宽规格。单位:1 Mb/s。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ipWhitelist' => [
+ 'title' => '公网IP白名单列表',
+ 'description' => '公网访问IP白名单列表。'."\n"
+ ."\n"
+ .'- 若不配置IP白名单,则默认放通所有IP地址段通过公网访问消息队列RocketMQ版服务端。'."\n"
+ .'- 若配置IP白名单,则仅允许白名单内的IP地址通过公网访问消息队列RocketMQ版服务端。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '公网IP白名单',
+ 'description' => '公网访问IP白名单。',
+ 'type' => 'string',
+ 'example' => '192.168.x.x/24',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'accountInfo' => [
+ 'title' => '账号信息',
+ 'description' => '账号信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'username' => [
+ 'title' => '用户名',
+ 'description' => '实例的用户名。使用公网访问时,SDK代码中需要配置实例的用户名和密码,进行身份验证。',
+ 'type' => 'string',
+ 'example' => '6W0xz2uPfiwp****',
+ ],
+ ],
+ ],
+ 'instanceQuotas' => [
+ 'title' => '容量信息',
+ 'description' => '容量信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '容量信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'quotaName' => [
+ 'title' => '配额名称',
+ 'description' => '实例的配额名称。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ ."\n"
+ .'- TOPIC_COUNT:实例的Topic创建额度',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'TOPIC_COUNT' => '实例的Topic创建额度',
+ ],
+ 'example' => 'TOPIC_COUNT',
+ ],
+ 'usedCount' => [
+ 'title' => '已使用量',
+ 'description' => '已使用量。单位:个。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '10',
+ ],
+ 'freeCount' => [
+ 'title' => '免费',
+ 'description' => '免费额度。单位:个。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '20',
+ ],
+ 'totalCount' => [
+ 'title' => '总配额',
+ 'description' => '总配额。单位:个。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '100',
+ ],
+ ],
+ ],
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '实例的创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 00:00:00 ',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '实例最后的修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-02 00:00:00 ',
+ ],
+ 'extConfig' => [
+ 'title' => '扩展配置,不再推荐使用,建议使用产品信息、网络信息中的字段替换',
+ 'description' => '扩展配置。该字段不再推荐使用,请使用productInfo、internetInfo、aclInfo等字段替代。',
+ 'type' => 'object',
+ 'properties' => [
+ 'aclType' => [
+ 'title' => '鉴权类型',
+ 'description' => '实例的鉴权类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .' '."\n"
+ .'- default:智能身份识别',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'default' => '智能身份识别',
+ ],
+ 'example' => 'default',
+ 'enum' => [
+ 'default',
+ 'aliyun_ram',
+ 'apache_acl',
+ ],
+ ],
+ 'sendReceiveRatio' => [
+ 'title' => '消息收发比例',
+ 'description' => '消息发送和接收的比例。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.5',
+ ],
+ 'autoScaling' => [
+ 'title' => '自适应弹性伸缩',
+ 'description' => '是否开启规格外突发弹性能力。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- true:开启弹性能力'."\n"
+ .'- false:不开启弹性能力'."\n"
+ ."\n"
+ .'仅当supportAutoScaling参数值为enable,即实例支持开启弹性能力,该参数才有效。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启弹性能力',
+ 'false' => '不开启弹性能力',
+ ],
+ 'example' => 'true',
+ ],
+ 'messageRetentionTime' => [
+ 'title' => '消息保留时长',
+ 'description' => '消息保存时长。单位:小时。'."\n"
+ ."\n"
+ .'取值范围,请参见[使用限制](~~440347~~)>资源配额>消息保存时长的限制值。'."\n"
+ ."\n"
+ .'消息队列RocketMQ版的消息存储完全实现Serverless弹性,按照实际存储空间收取费用,您可以通过调整消息保存时长来控制消息的存储容量。更多信息,请参见[存储费用](~~427238~~)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '72',
+ ],
+ 'supportAutoScaling' => [
+ 'title' => '是否支持自适应弹性伸缩',
+ 'description' => '实例是否支持开启规格外突发弹性能力。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- true:支持开启弹性能力'."\n"
+ .'- false:不支持开启弹性能力'."\n"
+ ."\n"
+ .'开启弹性突发能力后,消息队列RocketMQ允许该实例在一定范围内超过基础规格限制的TPS,且超过基础规格外的部分,需要收取额外的弹性规格费用。具体计费信息,请参见[计算能力费用](~~427237~~)。'."\n"
+ ."\n\n"
+ .'> 仅部分规格的实例支持开启弹性突发规格能力,具体支持的实例,请参见[实例规格](~~444715~~)。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '支持开启弹性能力',
+ 'false' => '不支持开启弹性能力',
+ ],
+ 'example' => 'true',
+ ],
+ 'internetSpec' => [
+ 'title' => '是否开通公网',
+ 'description' => '是否开通公网访问。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- enable:开通公网访问'."\n"
+ .'- disable:关闭公网访问'."\n"
+ ."\n"
+ .'实例默认支持VPC访问方式,若开启公网访问,消息队列RocketMQ版会收取公网下行带宽费用。具体计费信息,请参见[公网访问费用](~~427240~~)。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'enable' => '开通公网访问',
+ 'disable' => '关闭公网访问',
+ ],
+ 'example' => 'enable',
+ 'enum' => [
+ 'enable',
+ 'disable',
+ ],
+ ],
+ 'flowOutType' => [
+ 'title' => '公网计费类型',
+ 'description' => '公网计费类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- payByTraffic:按流量计费'."\n"
+ .'- payByBandwidth:按带宽计费'."\n"
+ .'- uninvolved:不涉及',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'payByTraffic' => '按流量计费',
+ 'payByBandwidth' => '按带宽计费',
+ 'uninvolved' => '不涉及',
+ ],
+ 'example' => 'payByBandwidth',
+ 'enum' => [
+ 'uninvolved',
+ 'payByTraffic',
+ 'payByBandwidth',
+ ],
+ ],
+ 'flowOutBandwidth' => [
+ 'title' => '公网带宽规格',
+ 'description' => '公网带宽规格。单位:Mb/s。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'msgProcessSpec' => [
+ 'title' => '消息收发计算规格',
+ 'description' => '消息收发计算规格。具体消息收发TPS上限,请参见[实例规格](~~444715~~)。',
+ 'type' => 'string',
+ 'example' => 'rmq.s2.2xlarge',
+ ],
+ ],
+ 'deprecated' => true,
+ ],
+ 'resourceGroupId' => [
+ 'title' => '资源组ID',
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'example' => 'rg-acfm3tmjruyribi',
+ ],
+ 'productInfo' => [
+ 'title' => '产品信息',
+ 'description' => '实例的扩展配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'msgProcessSpec' => [
+ 'title' => '消息收发规格',
+ 'description' => '消息收发计算规格。具体消息收发TPS上限,请参见[实例规格](~~444715~~)。',
+ 'type' => 'string',
+ 'example' => 'rmq.s2.2xlarge',
+ ],
+ 'sendReceiveRatio' => [
+ 'title' => '消息收发比例',
+ 'description' => '消息发送和接收的比例。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.5',
+ ],
+ 'autoScaling' => [
+ 'title' => '是否开启弹性伸缩',
+ 'description' => '是否开启规格外突发弹性能力。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- true:支持开启弹性能力'."\n"
+ .'- false:不支持开启弹性能力'."\n"
+ ."\n"
+ .'仅当supportAutoScaling参数值为enable,即实例支持开启弹性能力,该参数才有效。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启弹性能力',
+ 'false' => '不开启弹性能力',
+ ],
+ 'example' => 'true',
+ ],
+ 'messageRetentionTime' => [
+ 'title' => '消息保留时长',
+ 'description' => '消息保存时长。单位:小时。'."\n"
+ ."\n"
+ .'取值范围,请参见[使用限制](~~440347~~)>资源配额>消息保存时长的限制值。'."\n"
+ ."\n"
+ .'消息队列RocketMQ版的消息存储完全实现Serverless弹性,按照实际存储空间收取费用,您可以通过调整消息保存时长来控制消息的存储容量。更多信息,请参见[存储费用](~~427238~~)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '72',
+ ],
+ 'supportAutoScaling' => [
+ 'title' => '是否支持弹性伸缩',
+ 'description' => '是否支持开启规格外突发弹性能力。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- true:支持开启弹性能力'."\n"
+ .'- false:不支持开启弹性能力'."\n"
+ ."\n"
+ .'开启弹性突发能力后,消息队列RocketMQ允许该实例在一定范围内超过基础规格限制的TPS,且超过基础规格外的部分,需要收取额外的弹性规格费用。具体计费信息,请参见[计算能力费用](~~427237~~)。'."\n"
+ ."\n\n"
+ .'> 仅部分规格的实例支持开启弹性突发规格能力,具体支持的实例,请参见[实例规格](~~444715~~)。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '支持开启弹性能力',
+ 'false' => '不支持开启弹性能力',
+ ],
+ 'example' => 'true',
+ ],
+ 'traceOn' => [
+ 'description' => '是否开启消息轨迹功能。'."\n"
+ .'- true:开启消息轨迹功能'."\n"
+ .'- false:关闭消息轨迹功能'."\n"
+ ."\n"
+ .'<props="intl">该参数暂不生效,不管参数是否开启,实例都默认支持轨迹功能。</props>'."\n"
+ .'<props="china">该参数仅对Serverless类型的实例生效,若开启消息轨迹功能,会产生相关的消息轨迹费用,具体计费信息,请参见[Serverless计费说明](~~2586280~~)。</props>'."\n"
+ ."\n"
+ .'<props="china">对于按量付费和包年包月实例,该参数不生效,即不管参数是否开启,都默认支持消息轨迹功能。</props>',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'storageEncryption' => [
+ 'title' => '是否开启存储加密',
+ 'description' => '是否开启存储加密',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'storageSecretKey' => [
+ 'title' => '存储加密密钥Key',
+ 'description' => '存储加密密钥Key',
+ 'type' => 'string',
+ 'example' => 'xxxxx',
+ ],
+ 'capacityType' => [
+ 'description' => '容量模式:'."\n"
+ .' - provisioned: 预留+弹性'."\n"
+ .' - ondemand: 按量付费',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'provisioned' => '预留+弹性',
+ 'ondemand' => '按量付费',
+ ],
+ 'example' => 'provisioned',
+ ],
+ 'provisionedCapacity' => [
+ 'description' => '预留容量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3000',
+ ],
+ ],
+ ],
+ 'aclInfo' => [
+ 'title' => '访问控制信息',
+ 'description' => '访问控制信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'aclTypes' => [
+ 'description' => '实例的鉴权类型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例的鉴权类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'default' => '智能身份识别',
+ 'apache_acl' => 'ACL身份识别',
+ ],
+ 'example' => 'default',
+ ],
+ ],
+ 'defaultVpcAuthFree' => [
+ 'description' => '内网免身份识别开关。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ 'aclType' => [
+ 'description' => '实例的鉴权类型。已废弃,推荐使用aclTypes字段',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'enumValueTitles' => [
+ 'default' => '智能身份识别',
+ 'apache_acl' => 'ACL身份识别',
+ ],
+ 'example' => 'default',
+ ],
+ ],
+ ],
+ 'software' => [
+ 'title' => '实例软件信息',
+ 'description' => '实例软件信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'softwareVersion' => [
+ 'title' => '软件版本',
+ 'description' => '软件版本。',
+ 'type' => 'string',
+ 'example' => '5.0-rmq-20230619-1',
+ ],
+ 'maintainTime' => [
+ 'title' => '升级时间段',
+ 'description' => '升级时间段。',
+ 'type' => 'string',
+ 'example' => '02:00-06:00',
+ ],
+ 'upgradeMethod' => [
+ 'title' => '升级方式,auto自动升级,manual手动升级',
+ 'description' => '升级方式。'."\n"
+ ."\n"
+ .'参数取值如下'."\n"
+ ."\n"
+ .'- auto:自动升级'."\n"
+ .'- manual:手动升级',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'auto' => '自动升级',
+ 'maunal' => '手动升级',
+ ],
+ 'example' => 'auto',
+ ],
+ ],
+ ],
+ 'topicCount' => [
+ 'title' => '主题数量',
+ 'description' => '主题数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'groupCount' => [
+ 'title' => '消费组数量',
+ 'description' => '消费组数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'tags' => [
+ 'title' => '资源标签列表。',
+ 'description' => '资源标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '资源标签。',
+ 'description' => '资源标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => [
+ 'title' => '资源标签key值。',
+ 'description' => '资源标签key值。',
+ 'type' => 'string',
+ 'example' => 'key',
+ ],
+ 'value' => [
+ 'title' => '资源标签value值。',
+ 'description' => '资源标签value值。',
+ 'type' => 'string',
+ 'example' => 'value',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"05AB7FBD-F1D3-5D87-BF78-BD782249****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"instanceName\\": \\"test instance\\",\\n \\"status\\": \\"RUNNING\\",\\n \\"startTime\\": \\"2022-08-01 00:00:00\\",\\n \\"expireTime\\": \\"2022-09-01 00:00:00\\",\\n \\"releaseTime\\": \\"2022-09-07 00:00:00\\",\\n \\"userId\\": \\"111111111111111\\",\\n \\"bid\\": \\"26842\\",\\n \\"commodityCode\\": \\"ons_rmqsub_public_cn\\",\\n \\"serviceCode\\": \\"rmq\\",\\n \\"seriesCode\\": \\"standard\\",\\n \\"subSeriesCode\\": \\"cluster_ha\\",\\n \\"paymentType\\": \\"Subscription\\",\\n \\"remark\\": \\"This is remark for instance.\\",\\n \\"networkInfo\\": {\\n \\"vpcInfo\\": {\\n \\"vpcId\\": \\"vpc-uf6of9452b2pba82c****\\",\\n \\"vSwitchId\\": \\"vsw-uf6gwtbn6etadpvz7****\\",\\n \\"vSwitches\\": [\\n {\\n \\"vSwitchId\\": \\"vsw-uf6gwtbn6etadpvz7****\\",\\n \\"zoneId\\": \\"cn-hangzhou\\"\\n }\\n ],\\n \\"securityGroupIds\\": \\"sg-hp35r2hc3a3sv8q2sb16\\"\\n },\\n \\"endpoints\\": [\\n {\\n \\"endpointType\\": \\"TCP_INTERNET\\",\\n \\"endpointUrl\\": \\"rmq-cn-c4d2tbk****-vpc.cn-hangzhou.rmq.aliyuncs.com:8080\\",\\n \\"ipWhitelist\\": [\\n \\"192.168.x.x/24\\"\\n ],\\n \\"endpointId\\": \\"ep-bpxxx\\"\\n }\\n ],\\n \\"internetInfo\\": {\\n \\"internetSpec\\": \\"enable\\",\\n \\"flowOutType\\": \\"payByBandwidth\\",\\n \\"flowOutBandwidth\\": 1,\\n \\"ipWhitelist\\": [\\n \\"192.168.x.x/24\\"\\n ]\\n }\\n },\\n \\"accountInfo\\": {\\n \\"username\\": \\"6W0xz2uPfiwp****\\"\\n },\\n \\"instanceQuotas\\": [\\n {\\n \\"quotaName\\": \\"TOPIC_COUNT\\",\\n \\"usedCount\\": 10,\\n \\"freeCount\\": 20,\\n \\"totalCount\\": 100\\n }\\n ],\\n \\"createTime\\": \\"2022-08-01 00:00:00 \\",\\n \\"updateTime\\": \\"2022-08-02 00:00:00 \\",\\n \\"extConfig\\": {\\n \\"aclType\\": \\"default\\",\\n \\"sendReceiveRatio\\": 0.5,\\n \\"autoScaling\\": true,\\n \\"messageRetentionTime\\": 72,\\n \\"supportAutoScaling\\": true,\\n \\"internetSpec\\": \\"enable\\",\\n \\"flowOutType\\": \\"payByBandwidth\\",\\n \\"flowOutBandwidth\\": 10,\\n \\"msgProcessSpec\\": \\"rmq.s2.2xlarge\\"\\n },\\n \\"resourceGroupId\\": \\"rg-acfm3tmjruyribi\\",\\n \\"productInfo\\": {\\n \\"msgProcessSpec\\": \\"rmq.s2.2xlarge\\",\\n \\"sendReceiveRatio\\": 0.5,\\n \\"autoScaling\\": true,\\n \\"messageRetentionTime\\": 72,\\n \\"supportAutoScaling\\": true,\\n \\"traceOn\\": true,\\n \\"storageEncryption\\": false,\\n \\"storageSecretKey\\": \\"xxxxx\\",\\n \\"capacityType\\": \\"provisioned\\",\\n \\"provisionedCapacity\\": 3000\\n },\\n \\"aclInfo\\": {\\n \\"aclTypes\\": [\\n \\"default\\"\\n ],\\n \\"defaultVpcAuthFree\\": true,\\n \\"aclType\\": \\"default\\"\\n },\\n \\"software\\": {\\n \\"softwareVersion\\": \\"5.0-rmq-20230619-1\\",\\n \\"maintainTime\\": \\"02:00-06:00\\",\\n \\"upgradeMethod\\": \\"auto\\"\\n },\\n \\"topicCount\\": 10,\\n \\"groupCount\\": 10,\\n \\"tags\\": [\\n {\\n \\"key\\": \\"key\\",\\n \\"value\\": \\"value\\"\\n }\\n ]\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '获取指定实例的详情',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'CreateTopic' => [
+ 'summary' => '创建云消息队列 RocketMQ 版的主题(Topic)。主题是云消息队列 RocketMQ 版中消息传输和存储的顶层容器,用于标识同一类业务逻辑的消息。在消息收发模型中,生产者将消息发送至主题,消费者通过订阅指定的主题来消费其中的消息。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsHZ457W',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待创建主题所属的实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '主题名称',
+ 'description' => '待创建主题的名称,用于标识主题,全局唯一。'."\n"
+ ."\n"
+ .'取值规范如下:'."\n"
+ ."\n"
+ .'- 字符限制:支持字母a\\~z或A\\~Z、数字0~9以及下划线(_)、短划线(-)。'."\n"
+ .'- 长度限制:1~60个字符。'."\n"
+ ."\n"
+ .'保留字符限制,请参见[参数限制](~~440347~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'topic_test',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '消息类型',
+ 'description' => '主题信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'messageType' => [
+ 'title' => '消息类型',
+ 'description' => '待创建主题的消息类型。'."\n"
+ ."\n"
+ .'><notice>主题的类型和发送消息的类型必须一致。例如,您创建的主题的类型为顺序消息,则该主题只能用于收发顺序消息,不能收发其他类型的消息。></notice>',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'TRANSACTION' => '事务消息',
+ 'FIFO' => '顺序消息',
+ 'DELAY' => '定时/延时消息',
+ 'LITE' => '轻量主题消息',
+ 'NORMAL' => '普通消息',
+ ],
+ 'example' => 'NORMAL',
+ 'enum' => [
+ 'NORMAL',
+ 'FIFO',
+ 'DELAY',
+ 'TRANSACTION',
+ 'LITE',
+ ],
+ ],
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '待创建主题的备注信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is the remark for test.',
+ ],
+ 'maxSendTps' => [
+ 'description' => '发送消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1500',
+ ],
+ 'liteTopicExpiration' => [
+ 'title' => 'liteTopic过期时间,单位:分钟'."\n"
+ .'取值范围:15-720。'."\n"
+ .'默认-1,表示永久存在',
+ 'description' => 'lite类型的Topic过期时间,单位:分钟'."\n"
+ .'取值范围:30-720。'."\n"
+ .'默认-1,表示永久存在',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '60',
+ 'default' => '-1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Topic.Existed',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The topic already exists.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'TopicName',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'topicName',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.Existed\\",\\n \\"message\\": \\"The topic already exists.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"TopicName\\",\\n \\"dynamicMessage\\": \\"topicName\\"\\n}","type":"json"}]',
+ 'title' => '创建主题',
+ ],
+ 'UpdateTopic' => [
+ 'summary' => '更新主题的备注信息。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '144678',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsCON1A8',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待更新主题所属的实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '主题名称',
+ 'description' => '待更新的主题的名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'topic_test',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '',
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '更新后的主题备注信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is the remark for test.',
+ ],
+ 'maxSendTps' => [
+ 'description' => '发送消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1000',
+ ],
+ 'liteTopicExpiration' => [
+ 'title' => 'liteTopic过期时间,单位:分钟'."\n"
+ .'取值范围:15-720。'."\n"
+ .'默认-1,表示永久存在',
+ 'description' => 'lite类型的Topic过期时间,单位:分钟'."\n"
+ .'取值范围:15-720。'."\n"
+ .'默认-1,表示永久存在',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The topic cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'TopicName',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'topicName',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The topic cannot be found.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"TopicName\\",\\n \\"dynamicMessage\\": \\"topicName\\"\\n}","type":"json"}]',
+ 'title' => '更新主题',
+ ],
+ 'DeleteTopic' => [
+ 'summary' => '删除指定主题。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ 'http',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待删除主题所属的实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '主题名称',
+ 'description' => '待删除主题的名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'topic_test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The topic cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'TopicName',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'topicName',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The topic cannot be found.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"TopicName\\",\\n \\"dynamicMessage\\": \\"topicName\\"\\n}","type":"json"}]',
+ 'title' => '删除主题',
+ 'description' => '删除主题将导致该主题下的所有发布订阅关系同时被清理,请慎重调用。',
+ ],
+ 'ListTopics' => [
+ 'summary' => '查询指定实例下的主题列表信息。',
+ 'path' => '/instances/{instanceId}/topics',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '144680',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsXSOU1Y',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '指定需要获取哪个实例下的主题列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '过滤条件',
+ 'description' => '查询的过滤条件,若不输入则查询该实例下所有的主题。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'topic_test',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页页码',
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '3',
+ ],
+ ],
+ [
+ 'name' => 'messageTypes',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '主题的消息类型。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '需要查询实例下哪种类型的主题。若不输入,则查询实例下的所有主题。'."\n"
+ .'参数取值如下:'."\n"
+ .'- TRANSACTION:事务消息'."\n"
+ .'- FIFO:顺序消息'."\n"
+ .'- DELAY:定时/延时消息'."\n"
+ .'- NORMAL:普通消息'."\n"
+ .'- LITE: 轻量类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'TRANSACTION' => '事务消息',
+ 'FIFO' => '顺序消息',
+ 'DELAY' => '定时/延时消息',
+ 'LITE' => '轻量类型',
+ 'NORMAL' => '普通消息',
+ ],
+ 'example' => 'NORMAL',
+ ],
+ 'required' => false,
+ 'enumValueTitles' => [],
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<TopicDTO>>',
+ 'description' => 'Result<MyPage<TopicDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '返回结果的总数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '实例所属的地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'topicName' => [
+ 'title' => 'Topic编码',
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageType' => [
+ 'title' => '消息类型,MessageTypeEnum[UNSPECIFIED,NORMAL(普通),FIFO(顺序),DELAY(延迟),TRANSACTION(事务),UNRECOGNIZED(无法识别),code,desc]',
+ 'description' => '主题的消息类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'TRANSACTION' => '事务消息',
+ 'FIFO' => '顺序消息',
+ 'DELAY' => '定时/延时消息',
+ 'NORMAL' => '普通消息',
+ ],
+ 'example' => 'NORMAL',
+ 'enum' => [
+ 'NORMAL',
+ 'FIFO',
+ 'DELAY',
+ 'TRANSACTION',
+ ],
+ ],
+ 'status' => [
+ 'title' => 'Topic状态,TopicStatusEnum[CREATING(创建中),RUNNING(运行中),code,desc]',
+ 'description' => '主题的状态。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'RUNNING' => '运行中',
+ 'CREATING' => '创建中',
+ ],
+ 'example' => 'RUNNING',
+ 'enum' => [
+ 'CREATING',
+ 'RUNNING',
+ ],
+ ],
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '主题的备注信息。',
+ 'type' => 'string',
+ 'example' => 'This is the remark for test.',
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '主题的最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'maxSendTps' => [
+ 'description' => '发送消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1000',
+ ],
+ 'liteTopicExpiration' => [
+ 'title' => 'liteTopic过期时间,单位:分钟',
+ 'description' => 'lite类型Topic过期时间,单位:分钟',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The topic cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'TopicName',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'topicName',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 3,\\n \\"totalCount\\": 1,\\n \\"list\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageType\\": \\"NORMAL\\",\\n \\"status\\": \\"RUNNING\\",\\n \\"remark\\": \\"This is the remark for test.\\",\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\",\\n \\"maxSendTps\\": 1000,\\n \\"liteTopicExpiration\\": 20\\n }\\n ]\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The topic cannot be found.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"TopicName\\",\\n \\"dynamicMessage\\": \\"topicName\\"\\n}","type":"json"}]',
+ 'title' => '查询主题列表',
+ ],
+ 'GetTopic' => [
+ 'summary' => '获取某个指定主题的详细信息。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '144800',
+ 'abilityTreeNodes' => [
+ 'FEATUREons8BETJT',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待查询主题所属的实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '主题名称',
+ 'description' => '待查询主题的名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'topic_test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<TopicDTO>',
+ 'description' => 'Result<TopicDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '实例所属的地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '主题所属实例的ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'topicName' => [
+ 'title' => 'Topic编码',
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageType' => [
+ 'title' => '消息类型,MessageTypeEnum[UNSPECIFIED,NORMAL(普通),FIFO(顺序),DELAY(延迟),TRANSACTION(事务),UNRECOGNIZED(无法识别),code,desc]',
+ 'description' => '主题的消息类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'TRANSACTION' => '事务消息',
+ 'FIFO' => '顺序消息',
+ 'DELAY' => '定时消息/延时消息',
+ 'LITE' => '轻量主题消息',
+ 'NORMAL' => '普通消息',
+ ],
+ 'example' => 'NORMAL',
+ 'enum' => [
+ 'NORMAL',
+ 'FIFO',
+ 'DELAY',
+ 'TRANSACTION',
+ ],
+ ],
+ 'status' => [
+ 'title' => '主题状态',
+ 'description' => '主题的状态。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- RUNNING:运行中'."\n"
+ .'- CREATING:创建中',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'RUNNING' => '运行中',
+ 'CREATING' => '创建中',
+ ],
+ 'example' => 'RUNNING',
+ 'enum' => [
+ 'CREATING',
+ 'RUNNING',
+ ],
+ ],
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '主题的备注信息。',
+ 'type' => 'string',
+ 'example' => 'This is the remark for test.'."\n",
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '主题的创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '主题的最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'maxSendTps' => [
+ 'description' => '发送消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1000',
+ ],
+ 'liteTopicExpiration' => [
+ 'title' => 'liteTopic过期时间,单位:分钟',
+ 'description' => 'liteTopic过期时间,单位:分钟',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '60',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The topic cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'TopicName',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'topicName',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageType\\": \\"NORMAL\\",\\n \\"status\\": \\"RUNNING\\",\\n \\"remark\\": \\"This is the remark for test.\\\\n\\",\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\",\\n \\"maxSendTps\\": 1000,\\n \\"liteTopicExpiration\\": 60\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The topic cannot be found.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"TopicName\\",\\n \\"dynamicMessage\\": \\"topicName\\"\\n}","type":"json"}]',
+ 'title' => '获取指定主题的详情',
+ ],
+ 'CreateConsumerGroup' => [
+ 'summary' => '创建云消息队列 RocketMQ 版的消费者分组(ConsumerGroup)。消费者分组是云消息队列 RocketMQ 版系统中承载多个消费行为一致的消费者的负载均衡分组。消费者需要通过指定消费者分组订阅相关的主题来实现消息订阅。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsTT47IL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待创建的消费者分组所属的实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '消费组ID',
+ 'description' => '待创建的消费者分组的ID。用于标识消费者分组,全局唯一。'."\n"
+ ."\n"
+ .'取值说明如下:'."\n"
+ ."\n"
+ .'- 字符限制:支持字母a\\~z或A\\~Z、数字0\\~9以及下划线(_)、短划线(-)。'."\n"
+ .'- 长度限制:1~60个字符。'."\n"
+ ."\n"
+ .'保留字符限制,请参见[参数限制](~~440347~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'GID_test_groupId',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '待创建消费者分组的备注信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is the remark for test.',
+ ],
+ 'deliveryOrderType' => [
+ 'title' => '投递顺序性',
+ 'description' => '待创建消费者分组的投递顺序性。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- Concurrently:并发投递'."\n"
+ .'- Orderly:顺序投递',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Concurrently' => '并发投递',
+ 'Orderly' => '顺序投递',
+ ],
+ 'example' => 'Concurrently',
+ 'enum' => [
+ 'Orderly',
+ 'Concurrently',
+ ],
+ ],
+ 'consumeRetryPolicy' => [
+ 'title' => '消费重试策略',
+ 'description' => '待创建消费者分组的消费重试策略。更多信息,请参见'."\n"
+ .'[消费重试](~~440356~~)。',
+ 'type' => 'object',
+ 'properties' => [
+ 'maxRetryTimes' => [
+ 'title' => '最大重试次数',
+ 'description' => '最大重试次数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '16',
+ ],
+ 'retryPolicy' => [
+ 'title' => '重试策略类型',
+ 'description' => '重试策略类型。更多信息,请参见[消息重试](~~440356~~)。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- FixedRetryPolicy:固定间隔重试,仅支持顺序投递'."\n"
+ .'- DefaultRetryPolicy:阶梯退避重试,仅支持并发投递',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'FixedRetryPolicy' => '固定间隔重试',
+ 'DefaultRetryPolicy' => '阶梯退避重试',
+ ],
+ 'example' => 'DefaultRetryPolicy',
+ 'enum' => [
+ 'DefaultRetryPolicy',
+ 'FixedRetryPolicy',
+ ],
+ ],
+ 'deadLetterTargetTopic' => [
+ 'description' => '死信Topic。'."\n"
+ ."\n"
+ .'消费者出现异常消费某条消息失败,且消息重试后依然未成功,消息将被投递至死信Topic中,以便后续进行业务恢复或回溯。更多信息,请参见[消费重试与死信](~~440356~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DLQ_mqtest',
+ ],
+ 'fixedIntervalRetryTime' => [
+ 'description' => '固定重试间隔,单位:秒。重试策略为FixedRetryPolicy固定间隔重试策略时生效'."\n"
+ .'取值范围:'."\n"
+ .' - 并发投递:10-1800'."\n"
+ .' - 顺序投递:1-600',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'maxReceiveTps' => [
+ 'description' => '消费消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1000',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式',
+ 'description' => '消费者对消息的消费模式:'."\n"
+ .' - CLUSTERING'."\n"
+ .' - LITE_SELECTIVE',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'LITE_SELECTIVE',
+ 'default' => 'CLUSTERING',
+ 'enum' => [
+ 'CLUSTERING',
+ 'LITE_SELECTIVE',
+ ],
+ ],
+ 'topicName' => [
+ 'title' => 'lite类型的topicName',
+ 'description' => 'LITE_SELECTIVE 消费模式时,需要订阅的lite类型的topic名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'liteTopicTest',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'InvalidConsumerGroupId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter consumerGroupId is invalid.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'ConsumerGroupId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'consumerGroupId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"InvalidConsumerGroupId\\",\\n \\"message\\": \\"Parameter consumerGroupId is invalid.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"ConsumerGroupId\\",\\n \\"dynamicMessage\\": \\"consumerGroupId\\"\\n}","type":"json"}]',
+ 'title' => '创建消费者分组',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'UpdateConsumerGroup' => [
+ 'summary' => '更新消费者分组的基础信息和消费重试策略。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '144683',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsTBTXFL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待更新消费者分组所属的实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22on9****',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '消费组ID',
+ 'description' => '待更新的消费者分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '更新后的消费者分组的备注信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is the remark for test.',
+ ],
+ 'deliveryOrderType' => [
+ 'title' => '投递顺序性',
+ 'description' => '不支持修改',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'Concurrently',
+ 'enum' => [
+ 'Concurrently',
+ 'Orderly',
+ ],
+ ],
+ 'consumeRetryPolicy' => [
+ 'title' => '消费重试策略',
+ 'description' => '更新后的消费者分组的消费重试策略。更多信息,请参见'."\n"
+ .'[消费重试](~~440356~~)。',
+ 'type' => 'object',
+ 'properties' => [
+ 'retryPolicy' => [
+ 'title' => '重试策略类型',
+ 'description' => '重试策略类型。更多信息,请参见[消息重试](~~440356~~)。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- FixedRetryPolicy:固定间隔重试,仅支持顺序投递'."\n"
+ .'- DefaultRetryPolicy:阶梯退避重试,仅支持并发投递',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'FixedRetryPolicy' => '固定间隔重试',
+ 'DefaultRetryPolicy' => '阶梯退避重试',
+ ],
+ 'example' => 'DefaultRetryPolicy',
+ 'enum' => [
+ 'DefaultRetryPolicy',
+ 'FixedRetryPolicy',
+ ],
+ ],
+ 'maxRetryTimes' => [
+ 'title' => '最大重试次数',
+ 'description' => '最大重试次数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '16',
+ ],
+ 'deadLetterTargetTopic' => [
+ 'description' => '死信Topic。'."\n"
+ ."\n"
+ .'消费者出现异常消费某条消息失败,且消息重试后依然未成功,消息将被投递至死信Topic中,以便后续进行业务恢复或回溯。更多信息,请参见[消费重试与死信](~~440356~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DLQ_mqtest',
+ ],
+ 'fixedIntervalRetryTime' => [
+ 'description' => '固定重试间隔,单位:秒。重试策略为FixedRetryPolicy固定间隔重试策略时生效'."\n"
+ .'取值范围:'."\n"
+ .' - 并发投递:10-1800'."\n"
+ .' - 顺序投递:1-600',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'maxReceiveTps' => [
+ 'description' => '消费消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1000',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'C7F94090-3358-506A-97DC-34BC803C****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'InvalidDeliveryOrderType',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter deliveryOrderType is invalid.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'DeliveryOrderType',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'deliveryOrderType',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C7F94090-3358-506A-97DC-34BC803C****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"InvalidDeliveryOrderType\\",\\n \\"message\\": \\"Parameter deliveryOrderType is invalid.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"DeliveryOrderType\\",\\n \\"dynamicMessage\\": \\"deliveryOrderType\\"\\n}","type":"json"}]',
+ 'title' => '更新消费者分组',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'DeleteConsumerGroup' => [
+ 'summary' => '删除指定的消费者分组。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ 'http',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待删除的消费者分组所属的实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '消费组ID',
+ 'description' => '待删除的消费者分组的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'C7F94090-3358-506A-97DC-34BC803C****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'InvalidConsumerGroupId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter consumerGroupId is invalid.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'ConsumerGroupId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'consumerGroupId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C7F94090-3358-506A-97DC-34BC803C****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"InvalidConsumerGroupId\\",\\n \\"message\\": \\"Parameter consumerGroupId is invalid.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"ConsumerGroupId\\",\\n \\"dynamicMessage\\": \\"consumerGroupId\\"\\n}","type":"json"}]',
+ 'title' => '删除消费者分组',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>'."\n"
+ ."\n"
+ .'删除指定消费者分组后,由该消费者分组标识的消费者客户端将无法消费消息,请慎重调用本接口。',
+ ],
+ 'ListConsumerGroups' => [
+ 'summary' => '查询指定实例下消费者分组的列表信息。',
+ 'path' => '/instances/{instanceId}/consumerGroups',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '144685',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsYVMMCL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '指定需要获取哪个实例下的消费者分组列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '过滤条件',
+ 'description' => '查询的过滤条件,若不输入则查询指定实例下所有的消费者分组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页页码',
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小,每页最多显示的返回结果数量。'."\n"
+ ."\n"
+ .'取值范围:[10,100]。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<ConsumerGroupDTO>>',
+ 'description' => 'Result<MyPage<ConsumerGroupDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => '5503A460-98ED-5543-92CF-4853DE28****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '返回结果的总数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '实例所属的地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '消费组ID',
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'example' => 'GID-TEST',
+ ],
+ 'status' => [
+ 'title' => '消费组状态',
+ 'description' => '消费者分组的状态。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'RUNNING' => '运行中',
+ 'CREATING' => '创建中',
+ ],
+ 'example' => 'RUNNING',
+ 'enum' => [
+ 'CREATING',
+ 'RUNNING',
+ ],
+ ],
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '消费者分组的备注信息。',
+ 'type' => 'string',
+ 'example' => 'This is the remark for test.',
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '消费者分组的创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '消费者分组的最后更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'maxReceiveTps' => [
+ 'description' => '消费消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1000',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式',
+ 'description' => '消费模式',
+ 'type' => 'string',
+ 'example' => 'LITE_SELECTIVE',
+ ],
+ 'topicName' => [
+ 'title' => 'lite类型的topicName',
+ 'description' => 'lite类型的topicName',
+ 'type' => 'string',
+ 'example' => 'test1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter InstanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"5503A460-98ED-5543-92CF-4853DE28****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 1,\\n \\"list\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"consumerGroupId\\": \\"GID-TEST\\",\\n \\"status\\": \\"RUNNING\\",\\n \\"remark\\": \\"This is the remark for test.\\",\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\",\\n \\"maxReceiveTps\\": 1000,\\n \\"messageModel\\": \\"LITE_SELECTIVE\\",\\n \\"topicName\\": \\"test1\\"\\n }\\n ]\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter InstanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询消费者分组列表',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'GetConsumerGroup' => [
+ 'summary' => '获取某个指定消费者分组的详细信息。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '144684',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsJCXOZ6',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '待查询消费者分组所属的实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '消费者组ID',
+ 'description' => '待查询消费者分组的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<ConsumerGroupDTO>',
+ 'description' => 'Result<ConsumerGroupDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'C7F94090-3358-506A-97DC-34BC803C****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '实例所属的地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '消费者分组所属的实例的ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '消费组ID',
+ 'description' => '消费者分组的ID。',
+ 'type' => 'string',
+ 'example' => 'CID-TEST',
+ ],
+ 'status' => [
+ 'title' => '消费组状态',
+ 'description' => '消费者分组的状态。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'RUNNING' => '运行中',
+ 'CREATING' => '创建中',
+ ],
+ 'example' => 'RUNNING',
+ 'enum' => [
+ 'CREATING',
+ 'RUNNING',
+ ],
+ ],
+ 'remark' => [
+ 'title' => '备注',
+ 'description' => '消费者分组的备注信息。',
+ 'type' => 'string',
+ 'example' => 'This is the remark for test.',
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '消费者分组的创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '消费者分组的最后更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'deliveryOrderType' => [
+ 'title' => '投递顺序性',
+ 'description' => '消费者分组的投递顺序性。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Concurrently' => '并发投递',
+ 'Orderly' => '顺序投递',
+ ],
+ 'example' => 'Concurrently',
+ 'enum' => [
+ 'Orderly',
+ 'Concurrently',
+ ],
+ ],
+ 'consumeRetryPolicy' => [
+ 'title' => '消费重试策略',
+ 'description' => '消费者分组的消费重试策略。更多信息,请参见'."\n"
+ .'[消费重试](~~440356~~)。',
+ 'type' => 'object',
+ 'properties' => [
+ 'retryPolicy' => [
+ 'title' => '重试策略类型',
+ 'description' => '重试策略类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'FixedRetryPolicy' => '固定间隔重试',
+ 'DefaultRetryPolicy' => '阶梯退避重试',
+ ],
+ 'example' => 'DefaultRetryPolicy',
+ 'enum' => [
+ 'DefaultRetryPolicy',
+ 'FixedRetryPolicy',
+ ],
+ ],
+ 'maxRetryTimes' => [
+ 'title' => '最大重试次数',
+ 'description' => '最大重试次数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '16',
+ ],
+ 'deadLetterTargetTopic' => [
+ 'description' => '死信Topic。'."\n"
+ ."\n"
+ .'消费者出现异常消费某条消息失败,且消息重试后依然未成功,消息将被投递至死信Topic中,以便后续进行业务恢复或回溯。更多信息,请参见[消费重试与死信](~~440356~~)。',
+ 'type' => 'string',
+ 'example' => 'DLQ_mqtest',
+ ],
+ 'fixedIntervalRetryTime' => [
+ 'description' => '固定重试间隔,取之范围,单位:秒'."\n"
+ .' - Concurrently(并发投递):10-1800'."\n"
+ .' - Orderly(顺序投递): 1-600',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'maxReceiveTps' => [
+ 'description' => '消费消息tps上限',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2000',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式:'."\n"
+ .' CLUSTERING:集群消费'."\n"
+ .' LITE_SELECTIVE:LITE_SELECTIVE',
+ 'description' => '消费模式:'."\n"
+ .' - CLUSTERING:集群消费 '."\n"
+ .' - LITE_SELECTIVE:LITE_SELECTIVE',
+ 'type' => 'string',
+ 'example' => 'LITE_SELECTIVE',
+ ],
+ 'topicName' => [
+ 'title' => 'lite类型的topicName',
+ 'description' => 'lite类型的topicName',
+ 'type' => 'string',
+ 'example' => 'test1',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'InvalidConsumerGroupId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter consumerGroupId is invalid.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'ConsumerGroupId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'consumerGroupId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C7F94090-3358-506A-97DC-34BC803C****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"consumerGroupId\\": \\"CID-TEST\\",\\n \\"status\\": \\"RUNNING\\",\\n \\"remark\\": \\"This is the remark for test.\\",\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\",\\n \\"deliveryOrderType\\": \\"Concurrently\\",\\n \\"consumeRetryPolicy\\": {\\n \\"retryPolicy\\": \\"DefaultRetryPolicy\\",\\n \\"maxRetryTimes\\": 16,\\n \\"deadLetterTargetTopic\\": \\"DLQ_mqtest\\",\\n \\"fixedIntervalRetryTime\\": 20\\n },\\n \\"maxReceiveTps\\": 2000,\\n \\"messageModel\\": \\"LITE_SELECTIVE\\",\\n \\"topicName\\": \\"test1\\"\\n },\\n \\"code\\": \\"InvalidConsumerGroupId\\",\\n \\"message\\": \\"Parameter consumerGroupId is invalid.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"ConsumerGroupId\\",\\n \\"dynamicMessage\\": \\"consumerGroupId\\"\\n}","type":"json"}]',
+ 'title' => '获取指定消费者分组详情',
+ 'description' => '><notice>阿里云提供的OpenAPI属于管控类API,用于管理和查询阿里云服务的相关资源。仅推荐在管控链路集成,消息收发的核心数据链路中严禁依赖OpenAPI实现,否则可能会导致链路产生风险。></notice>',
+ ],
+ 'ListTopicSubscriptions' => [
+ 'summary' => '查询主题订阅关系列表。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}/subscriptions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-zpr34udri0w',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dev4-HMH_INSURANCE_NOMAL_TOPIC',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<List<SubscriptionDTO>>',
+ 'description' => 'Result<List<SubscriptionDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '92A9BE4E-B794-50C8-979C-0456E4D32943',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '主题订阅列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumerGroupId' => [
+ 'title' => '消费者组',
+ 'description' => '消费者组',
+ 'type' => 'string',
+ 'example' => 'CID-TEST',
+ ],
+ 'topicName' => [
+ 'title' => '订阅主题',
+ 'description' => '订阅主题',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式,ConsumptionModelEnum[BROADCASTING(广播模式),CLUSTERING(集群模式),code,desc]',
+ 'description' => '消费者分组的消费模式。'."\n"
+ .'- BROADCASTING:广播模式'."\n"
+ .'- CLUSTERING:集群模式',
+ 'type' => 'string',
+ 'example' => 'BROADCASTING',
+ ],
+ 'subscriptionStatus' => [
+ 'title' => '订阅状态,SubscriptionStatusEnum[ONLINE(在线),OFFLINE(离线),code,desc]',
+ 'description' => '订阅状态。'."\n"
+ .'- ONLINE:在线。消费者分组下如果有多个消费者,只要有一个消费者在线则显订阅状态为在线。'."\n"
+ .'- OFFLINE:离线。消费者分组下如果有多个消费者,所有消费者都处于离线时订阅状态才显示离线。',
+ 'type' => 'string',
+ 'example' => 'ONLINE',
+ ],
+ 'filterExpression' => [
+ 'title' => '过滤表达式',
+ 'description' => '过滤表达式',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'filterExpressionType' => [
+ 'title' => '过滤表达式类型,SubscriptionExpressionTypeEnum[SQL(SQL过滤),TAG(TAG过滤),UNSPECIFIED(FILTER_TYPE_UNSPECIFIED 过滤类型未指定),code,desc]',
+ 'description' => '过滤表达式类型。'."\n"
+ .'- SQL:SQL过滤'."\n"
+ .'- TAG:Tag过滤。',
+ 'type' => 'string',
+ 'example' => 'SQL',
+ ],
+ 'consistency' => [
+ 'description' => '订阅关系的一致性。'."\n"
+ .'- 订阅关系不一致为false。'."\n"
+ .'- 订阅关系一致为true。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'Topic',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"92A9BE4E-B794-50C8-979C-0456E4D32943\\",\\n \\"success\\": true,\\n \\"data\\": [\\n {\\n \\"consumerGroupId\\": \\"CID-TEST\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageModel\\": \\"BROADCASTING\\",\\n \\"subscriptionStatus\\": \\"ONLINE\\",\\n \\"filterExpression\\": \\"*\\",\\n \\"filterExpressionType\\": \\"SQL\\",\\n \\"consistency\\": \\"true\\"\\n }\\n ],\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"Topic\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询主题订阅关系列表',
+ ],
+ 'ListConsumerGroupSubscriptions' => [
+ 'summary' => '查询消费组订阅关系列表。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/subscriptions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '145821',
+ 'abilityTreeNodes' => [
+ 'FEATUREons0MOUAZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '云消息队列 RocketMQ 版的实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-tl32wwz1r05',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组ID,表示需要查询哪个消费者分组的订阅关系。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'PRINT_RETRY_CONSUMER',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '主题名称',
+ 'description' => '主题名称,不填则查询所有订阅关系。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'topic_test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<List<SubscriptionDTO>>',
+ 'description' => 'Result<List<SubscriptionDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5F4D9D5F-625B-59FF-BD4F-DA8284575DB4',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '消费者组订阅关系列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumerGroupId' => [
+ 'title' => '消费者组',
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'example' => 'CID-TEST',
+ ],
+ 'topicName' => [
+ 'title' => '订阅主题',
+ 'description' => '指定消费者分组订阅的主题。',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式,ConsumptionModelEnum[BROADCASTING(广播模式),CLUSTERING(集群模式),code,desc]',
+ 'description' => '消费者分组的消费模式。'."\n"
+ .'- BROADCASTING:广播模式'."\n"
+ .'- CLUSTERING:集群模式',
+ 'type' => 'string',
+ 'example' => 'CLUSTERING',
+ ],
+ 'subscriptionStatus' => [
+ 'title' => '订阅状态,SubscriptionStatusEnum[ONLINE(在线),OFFLINE(离线),code,desc]',
+ 'description' => '订阅状态。'."\n"
+ .'- ONLINE:在线。消费者分组下如果有多个消费者,只要有一个消费者在线则显订阅状态为在线。'."\n"
+ .'- OFFLINE:离线。消费者分组下如果有多个消费者,所有消费者都处于离线时订阅状态才显示离线。',
+ 'type' => 'string',
+ 'example' => 'ONLINE',
+ ],
+ 'filterExpression' => [
+ 'title' => '过滤表达式',
+ 'description' => '过滤表达式。',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'filterExpressionType' => [
+ 'title' => '过滤表达式类型,SubscriptionExpressionTypeEnum[SQL(SQL过滤),TAG(TAG过滤),UNSPECIFIED(FILTER_TYPE_UNSPECIFIED 过滤类型未指定),code,desc]',
+ 'description' => '过滤表达式类型。'."\n"
+ .'- SQL:SQL过滤'."\n"
+ .'- TAG:Tag过滤。',
+ 'type' => 'string',
+ 'example' => 'SQL',
+ ],
+ 'topicCreated' => [
+ 'description' => '是否创建了topic。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'consistency' => [
+ 'description' => '订阅关系的一致性。'."\n"
+ .'- 订阅关系不一致为false。'."\n"
+ .'- 订阅关系一致为true。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"5F4D9D5F-625B-59FF-BD4F-DA8284575DB4\\",\\n \\"success\\": true,\\n \\"data\\": [\\n {\\n \\"consumerGroupId\\": \\"CID-TEST\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageModel\\": \\"CLUSTERING\\",\\n \\"subscriptionStatus\\": \\"ONLINE\\",\\n \\"filterExpression\\": \\"*\\",\\n \\"filterExpressionType\\": \\"SQL\\",\\n \\"topicCreated\\": true,\\n \\"consistency\\": true\\n }\\n ],\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询消费者组订阅关系列表',
+ ],
+ 'GetConsumerGroupSubscription' => [
+ 'summary' => '获取消费组订阅关系详情,包括客户端分布等信息。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/subscriptions/{topicName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ 'http',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-uqm32kqyy11',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组ID,表示需要查询哪个消费者分组的订阅关系。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'common_dev',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组订阅的主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mq003',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<List<SubscriptionDetailDTO>>',
+ 'description' => 'Result<List<SubscriptionDetailDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '157DF7D4-53FB-58C6-BEBC-A9400E7EF68A',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '订阅信息列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'subscriptionDTO' => [
+ 'description' => '订阅信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumerGroupId' => [
+ 'title' => '消费者组',
+ 'description' => '消费者组',
+ 'type' => 'string',
+ 'example' => 'GID_inspector_group',
+ ],
+ 'topicName' => [
+ 'title' => '订阅主题',
+ 'description' => '订阅主题',
+ 'type' => 'string',
+ 'example' => 'Topic_normal_inspector',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式,ConsumptionModelEnum[BROADCASTING(广播模式),CLUSTERING(集群模式),code,desc]',
+ 'description' => '消费者分组的消费模式。'."\n"
+ .'- BROADCASTING:广播模式'."\n"
+ .'- CLUSTERING:集群模式',
+ 'type' => 'string',
+ 'example' => 'BROADCASTING',
+ ],
+ 'subscriptionStatus' => [
+ 'title' => '订阅状态,SubscriptionStatusEnum[ONLINE(在线),OFFLINE(离线),code,desc]',
+ 'description' => '订阅状态。'."\n"
+ .'- ONLINE:在线。消费者分组下如果有多个消费者,只要有一个消费者在线则显订阅状态为在线。'."\n"
+ .'- OFFLINE:离线。消费者分组下如果有多个消费者,所有消费者都处于离线时订阅状态才显示离线。',
+ 'type' => 'string',
+ 'example' => 'ONLINE',
+ ],
+ 'filterExpression' => [
+ 'title' => '过滤表达式',
+ 'description' => '过滤表达式',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'filterExpressionType' => [
+ 'title' => '过滤表达式类型,SubscriptionExpressionTypeEnum[SQL(SQL过滤),TAG(TAG过滤),UNSPECIFIED(FILTER_TYPE_UNSPECIFIED 过滤类型未指定),code,desc]',
+ 'description' => '过滤表达式类型。'."\n"
+ .'- SQL:SQL过滤'."\n"
+ .'- TAG:Tag过滤。',
+ 'type' => 'string',
+ 'example' => 'UNSPECIFIED',
+ ],
+ ],
+ ],
+ 'connectionDTO' => [
+ 'description' => '连接详情信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'clientId' => [
+ 'title' => '客户端ID',
+ 'description' => '客户端ID',
+ 'type' => 'string',
+ 'example' => '192.168.50.191@19908#-2093249153#1534215565#40385215750900',
+ ],
+ 'hostname' => [
+ 'title' => '主机名',
+ 'description' => '主机名',
+ 'type' => 'string',
+ 'example' => 'nginx',
+ ],
+ 'egressIp' => [
+ 'title' => '宿主机IP/公网出网IP',
+ 'description' => '宿主机IP/公网出网IP',
+ 'type' => 'string',
+ 'example' => 'xx.xx.xx.xx',
+ ],
+ 'language' => [
+ 'title' => '客户端语言',
+ 'description' => '客户端语言',
+ 'type' => 'string',
+ 'example' => 'zh',
+ ],
+ 'version' => [
+ 'title' => '客户端版本',
+ 'description' => '客户端版本',
+ 'type' => 'string',
+ 'example' => '1.0.0',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式,ConsumptionModelEnum[BROADCASTING(广播模式),CLUSTERING(集群模式),code,desc]',
+ 'description' => '消费者分组的消费模式。'."\n"
+ .'- BROADCASTING:广播模式'."\n"
+ .'- CLUSTERING:集群模式',
+ 'type' => 'string',
+ 'example' => 'BROADCASTING',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Instance.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"157DF7D4-53FB-58C6-BEBC-A9400E7EF68A\\",\\n \\"success\\": true,\\n \\"data\\": [\\n {\\n \\"subscriptionDTO\\": {\\n \\"consumerGroupId\\": \\"GID_inspector_group\\",\\n \\"topicName\\": \\"Topic_normal_inspector\\",\\n \\"messageModel\\": \\"BROADCASTING\\",\\n \\"subscriptionStatus\\": \\"ONLINE\\",\\n \\"filterExpression\\": \\"*\\",\\n \\"filterExpressionType\\": \\"UNSPECIFIED\\"\\n },\\n \\"connectionDTO\\": {\\n \\"clientId\\": \\"192.168.50.191@19908#-2093249153#1534215565#40385215750900\\",\\n \\"hostname\\": \\"nginx\\",\\n \\"egressIp\\": \\"xx.xx.xx.xx\\",\\n \\"language\\": \\"zh\\",\\n \\"version\\": \\"1.0.0\\",\\n \\"messageModel\\": \\"BROADCASTING\\"\\n }\\n }\\n ],\\n \\"code\\": \\"Instance.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '获取消费者组订阅关系详情',
+ ],
+ 'DeleteConsumerGroupSubscription' => [
+ 'summary' => '删除消费者组订阅关系。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/subscriptions',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '待删除的消费者分组的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'topic_test',
+ ],
+ ],
+ [
+ 'name' => 'filterType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '过滤表达式类型。'."\n"
+ ."\n"
+ .'- SQL:SQL过滤'."\n"
+ .'- TAG:Tag过滤。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'TAG' => 'TAG过滤',
+ 'SQL' => 'SQL过滤',
+ ],
+ 'example' => 'TAG',
+ ],
+ ],
+ [
+ 'name' => 'filterExpression',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '过滤表达式',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '*',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '723CDA5C-E25C-5EAF-9601-08C286DF8A4D',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"723CDA5C-E25C-5EAF-9601-08C286DF8A4D\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '删除消费者组订阅关系',
+ ],
+ 'ListConsumerConnections' => [
+ 'summary' => '获取指定消费者客户端的连接信息。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/connections',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREons0MOUAZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-uax32mf9h1f',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'GID_TEST_STOCK_OPEND_GW',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'lite类型的topic名称',
+ 'description' => 'lite类型的topic名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test1',
+ ],
+ ],
+ [
+ 'name' => 'liteTopicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Lite消息队列主题名称',
+ 'description' => 'Lite消息队列主题名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<ConsumerConnectionsDTO>',
+ 'description' => 'Result<ConsumerConnectionsDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'A3620115-6F1F-5CFB-AA3F-BBD4853B2EC4',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '主题名称',
+ 'description' => '消费者组ID',
+ 'type' => 'string',
+ 'example' => 'CID-TEST',
+ ],
+ 'connections' => [
+ 'title' => '客户端连接列表',
+ 'description' => '客户端连接列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '客户端连接列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'clientId' => [
+ 'title' => '客户端ID',
+ 'description' => '客户端ID',
+ 'type' => 'string',
+ 'example' => '172.17.135.197@17392#1936705963#551717232#9873695589062458',
+ ],
+ 'hostname' => [
+ 'title' => '客户端IP',
+ 'description' => '客户端IP',
+ 'type' => 'string',
+ 'example' => 'vos',
+ ],
+ 'egressIp' => [
+ 'title' => '宿主机IP/公网出网IP',
+ 'description' => '宿主机IP/公网出网IP',
+ 'type' => 'string',
+ 'example' => 'xx.xx.xx.xx',
+ ],
+ 'language' => [
+ 'title' => '客户端语言',
+ 'description' => '客户端语言',
+ 'type' => 'string',
+ 'example' => 'java',
+ ],
+ 'version' => [
+ 'title' => '客户端版本',
+ 'description' => '客户端版本',
+ 'type' => 'string',
+ 'example' => '1.0',
+ ],
+ 'messageModel' => [
+ 'title' => '消费模式,ConsumptionModelEnum[BROADCASTING(广播模式),CLUSTERING(集群模式),code,desc]',
+ 'description' => '消费者对消息的消费模式:'."\n"
+ .' - CLUSTERING'."\n"
+ .' - LITE_SELECTIVE'."\n"
+ .' - BROADCASTING',
+ 'type' => 'string',
+ 'example' => 'BROADCASTING',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingPageNumber',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A3620115-6F1F-5CFB-AA3F-BBD4853B2EC4\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"consumerGroupId\\": \\"CID-TEST\\",\\n \\"connections\\": [\\n {\\n \\"clientId\\": \\"172.17.135.197@17392#1936705963#551717232#9873695589062458\\",\\n \\"hostname\\": \\"vos\\",\\n \\"egressIp\\": \\"xx.xx.xx.xx\\",\\n \\"language\\": \\"java\\",\\n \\"version\\": \\"1.0\\",\\n \\"messageModel\\": \\"BROADCASTING\\"\\n }\\n ]\\n },\\n \\"code\\": \\"MissingPageNumber\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '获取消费者客户端连接信息',
+ ],
+ 'GetConsumerGroupLag' => [
+ 'summary' => '查询消费者组堆积信息。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/lag',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '145824',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsJCXOZ6',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-2r42vrvde0j',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消费者分组订阅的主题名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'normal-topic-1',
+ ],
+ ],
+ [
+ 'name' => 'liteTopicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '轻量主题名称',
+ 'description' => '轻量主题名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<ConsumerGroupLagDTO>',
+ 'description' => 'Result<ConsumerGroupLagDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'F5764C40-FB8C-53AE-B95D-96AB3D0E9375',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '消费组ID',
+ 'description' => '消费组ID',
+ 'type' => 'string',
+ 'example' => 'CID-TEST',
+ ],
+ 'totalLag' => [
+ 'title' => '整体堆积量',
+ 'description' => '整体堆积量',
+ 'type' => 'object',
+ 'properties' => [
+ 'readyCount' => [
+ 'title' => '就绪消息量',
+ 'description' => '就绪消息量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'inflightCount' => [
+ 'title' => '处理中消息量',
+ 'description' => '处理中消息量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'deliveryDuration' => [
+ 'title' => '投递延迟时间',
+ 'description' => '投递延迟时间,单位:秒',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'lastConsumeTimestamp' => [
+ 'title' => '最新消费时间',
+ 'description' => '最新消费时间',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1735629607846',
+ ],
+ ],
+ ],
+ 'topicLagMap' => [
+ 'title' => '各主题堆积量',
+ 'description' => '各主题堆积量',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'readyCount' => [
+ 'title' => '就绪消息量',
+ 'description' => '就绪消息量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'inflightCount' => [
+ 'title' => '处理中消息量',
+ 'description' => '处理中消息量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'deliveryDuration' => [
+ 'title' => '投递延迟时间',
+ 'description' => '投递延迟时间,单位:秒',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'lastConsumeTimestamp' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1735629607846',
+ 'description' => '最新消费时间',
+ ],
+ ],
+ 'description' => '整体消息量',
+ ],
+ ],
+ 'topicName' => [
+ 'title' => '订阅的topic名称',
+ 'description' => '订阅的topic名称',
+ 'type' => 'string',
+ 'example' => 'test1',
+ ],
+ 'liteTopicLagMap' => [
+ 'title' => '轻量主题的消费堆积',
+ 'description' => '轻量主题的消费堆积',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'title' => 'lite类型topic的消费堆积',
+ 'description' => 'lite类型topic的消费堆积',
+ 'type' => 'object',
+ 'properties' => [
+ 'readyCount' => [
+ 'title' => '堆积消息量',
+ 'description' => '堆积消息量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '300',
+ ],
+ 'deliveryDuration' => [
+ 'title' => '投递延迟时间,单位:秒',
+ 'description' => '投递延迟时间,单位:秒',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '30',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F5764C40-FB8C-53AE-B95D-96AB3D0E9375\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"consumerGroupId\\": \\"CID-TEST\\",\\n \\"totalLag\\": {\\n \\"readyCount\\": 1,\\n \\"inflightCount\\": 1,\\n \\"deliveryDuration\\": 12,\\n \\"lastConsumeTimestamp\\": 1735629607846\\n },\\n \\"topicLagMap\\": {\\n \\"key\\": {\\n \\"readyCount\\": 1,\\n \\"inflightCount\\": 1,\\n \\"deliveryDuration\\": 12,\\n \\"lastConsumeTimestamp\\": 1735629607846\\n }\\n },\\n \\"topicName\\": \\"test1\\",\\n \\"liteTopicLagMap\\": {\\n \\"key\\": {\\n \\"readyCount\\": 300,\\n \\"deliveryDuration\\": 30\\n }\\n }\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询消费者组堆积信息',
+ ],
+ 'GetConsumerStack' => [
+ 'summary' => '获取消费者堆栈信息。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/stack',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ 'http',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-tl32upjeb08',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'GID_TT_TASK',
+ ],
+ ],
+ [
+ 'name' => 'clientId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '客户端ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '172.26.76.48@Lqd7dImlp9KJ5V84',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<ConsumerJstackDTO>',
+ 'description' => 'Result<ConsumerJstackDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '30F2CBC7-F69D-5D78-9661-0254C9E1FBFA',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '主题名称',
+ 'description' => '消费者组ID',
+ 'type' => 'string',
+ 'example' => 'CID-TEST',
+ ],
+ 'stacks' => [
+ 'title' => '堆栈信息',
+ 'description' => '堆栈信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '消费堆栈信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'thread' => [
+ 'title' => '线程ID',
+ 'description' => '线程ID',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'tracks' => [
+ 'title' => '堆栈信息',
+ 'description' => '堆栈信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '堆栈信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"30F2CBC7-F69D-5D78-9661-0254C9E1FBFA\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"consumerGroupId\\": \\"CID-TEST\\",\\n \\"stacks\\": [\\n {\\n \\"thread\\": \\"123\\",\\n \\"tracks\\": [\\n \\"xxx\\"\\n ]\\n }\\n ]\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '获取消费者堆栈信息',
+ ],
+ 'ResetConsumeOffset' => [
+ 'summary' => '重置指定消费者分组的消费位点。重置消费位点是指改变订阅者当前的消费位置。当消费者出现故障或者消费错误数据时,您可通过重置消费位点将消费位置回滚到之前的某个位点重新开始消费,您也可以将消费位置移动至最新位点,暂时不处理堆积的消息。',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/consumeOffsets/{topicName}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'https',
+ 'http',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '云消息队列 RocketMQ 版的实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-tl32ue44x0g',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dolphin_status',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组订阅的主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'AMZN_REPORT_TOPIC',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'resetType' => [
+ 'title' => '重置方式,ConsumeOffsetResetTypeEnum[LATEST_OFFSET(最新位点),SPECIFIED_TIME(指定时间),code,desc]',
+ 'description' => '重置方式。'."\n"
+ .'- LATEST_OFFSET:从最新位点开始消费。'."\n"
+ ."\n"
+ .' Group ID消费指定Topic中的消息时,会跳过当前堆积(未被消费)的所有消息,从重置操作时间后发送的最新消息开始消费。'."\n"
+ .'- SPECIFIED_TIME:从指定时间的位点开始消费。'."\n"
+ .' '."\n"
+ .' - 消费者将从重置时间对应的消费位点之后的消息进行消费,不管这些消息是否已被消费过。'."\n"
+ ."\n"
+ .' - 可选时间范围中的起始和终止时间分别是该Topic中储存的最早的和最晚的一条消息的生产时间,不能选择超过可选时间范围的时间点。'."\n"
+ ."\n"
+ .' - 重置到某一时刻对应的消费位点,匹配位点时,服务端会根据自动匹配到该时刻最接近的消费位点。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'SPECIFIED_TIME' => '从指定时间的位点开始消费',
+ 'LATEST_OFFSET' => '从最新位点开始消费',
+ ],
+ 'example' => 'LATEST_OFFSET',
+ ],
+ 'resetTime' => [
+ 'title' => '重置时间',
+ 'description' => '指定重置时间。表示消费者将从该时间点对应的消费位点重新开始消费消息。'."\n"
+ ."\n"
+ .'仅当resetType(重置方式)选择SPECIFIED_TIME(指定时间)时需要填写该参数。'."\n"
+ ."\n"
+ .'格式为YYYY-MM-DD HH:mm:ss,例如:2023-11-23 10:00:00。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Void>',
+ 'description' => 'Result<Void>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'F9A95891-EAD4-5A2B-8A30-676CD18921AF',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F9A95891-EAD4-5A2B-8A30-676CD18921AF\\",\\n \\"success\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '重置消费位点',
+ ],
+ 'ListMessages' => [
+ 'summary' => '查询消息列表。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}/messages',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsNPGYUW',
+ 'FEATUREonsKQSI06',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-zvp2vtypu05',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test_delay_queue',
+ ],
+ ],
+ [
+ 'name' => 'messageId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消息ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '7F00000100207A4F0F294A938F7807AE',
+ ],
+ ],
+ [
+ 'name' => 'messageKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消息key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'XSCBillResult',
+ ],
+ ],
+ [
+ 'name' => 'startTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '查询时间范围:开始时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2024-09-09 08:00:00',
+ ],
+ ],
+ [
+ 'name' => 'endTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '查询时间范围:结束时间',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2024-09-09 09:00:00',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '当前页码,从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '20',
+ 'minimum' => '1',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'scrollId',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '请求滚动ID。'."\n"
+ ."\n"
+ .'第一页请求无需传递,后续分页请求根据第一页返回结果,带上该字段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'B13D0B07-F24B-4790-88D8-D47A38063D00',
+ ],
+ ],
+ [
+ 'name' => 'liteTopicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '轻量主题名称',
+ 'description' => '轻量主题名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<MessageDTO>>',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'A3531B6A-5A88-52BD-B3C4-A024C3D0AA2E',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '50',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '消息信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'topicName' => [
+ 'title' => '主题名称',
+ 'description' => '主题名称',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageId' => [
+ 'title' => '消息ID',
+ 'description' => '消息ID',
+ 'type' => 'string',
+ 'example' => '7F000001000114B4340C5ABF94500079',
+ ],
+ 'bornTime' => [
+ 'title' => '生成时间',
+ 'description' => '生成时间',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'storeTime' => [
+ 'title' => '存储时间',
+ 'description' => '存储时间',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'body' => [
+ 'title' => '消息体',
+ 'description' => '消息体',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'bodySize' => [
+ 'description' => '消息体大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'bornHost' => [
+ 'title' => '消息来自哪里',
+ 'description' => '消息生产客户端',
+ 'type' => 'string',
+ 'example' => 'xx.xx.xx.xx',
+ ],
+ 'storeHost' => [
+ 'title' => '消息存储位置',
+ 'description' => '消息存储服务端',
+ 'type' => 'string',
+ 'example' => 'xx.xx.xx.xx',
+ ],
+ 'messageType' => [
+ 'title' => '消息类型',
+ 'description' => '消息类型',
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'messageTag' => [
+ 'title' => '标签列表',
+ 'description' => '消息标签',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'messageGroup' => [
+ 'title' => '以前的shardingkey,顺序消息独有',
+ 'description' => '消息分组,顺序消息独有。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'messageKeys' => [
+ 'title' => '业务标识',
+ 'description' => '业务标识',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '业务标识。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ ],
+ 'userProperties' => [
+ 'title' => '用户属性',
+ 'description' => '用户属性',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '用户属性。',
+ 'example' => 'xx',
+ ],
+ ],
+ 'liteTopicName' => [
+ 'title' => '轻量主题名称',
+ 'description' => '轻量主题名称',
+ 'type' => 'string',
+ 'example' => 'abc',
+ ],
+ ],
+ ],
+ ],
+ 'scrollId' => [
+ 'description' => '请求滚动ID。'."\n"
+ ."\n"
+ .'系统自动生成,后续分页请求需要带上该返回结果,才能持续分页。',
+ 'type' => 'string',
+ 'example' => 'B13D0B07-F24B-4790-88D8-D47A38063D00',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A3531B6A-5A88-52BD-B3C4-A024C3D0AA2E\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 50,\\n \\"totalCount\\": 0,\\n \\"list\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageId\\": \\"7F000001000114B4340C5ABF94500079\\",\\n \\"bornTime\\": \\"2023-03-22 12:17:08\\",\\n \\"storeTime\\": \\"2023-03-22 12:17:08\\",\\n \\"body\\": \\"{}\\",\\n \\"bodySize\\": 100,\\n \\"bornHost\\": \\"xx.xx.xx.xx\\",\\n \\"storeHost\\": \\"xx.xx.xx.xx\\",\\n \\"messageType\\": \\"NORMAL\\",\\n \\"messageTag\\": \\"xx\\",\\n \\"messageGroup\\": \\"xx\\",\\n \\"messageKeys\\": [\\n \\"xx\\"\\n ],\\n \\"userProperties\\": {\\n \\"key\\": \\"xx\\"\\n },\\n \\"liteTopicName\\": \\"abc\\"\\n }\\n ],\\n \\"scrollId\\": \\"B13D0B07-F24B-4790-88D8-D47A38063D00\\"\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询消息列表',
+ ],
+ 'GetMessageDetail' => [
+ 'summary' => '获取指定消息的详情。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}/messages/{messageId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsNPGYUW',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-lbj31fs790d',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'flink_test',
+ ],
+ ],
+ [
+ 'name' => 'messageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消息ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0A792FDB001F7591083D30ADB1DA11D5',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MessageDTO>',
+ 'description' => 'Result<MessageDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'FAEBD71F-E839-52F9-BD7B-8F1290525841',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'topicName' => [
+ 'title' => '主题名称',
+ 'description' => '主题名称',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageId' => [
+ 'title' => '消息ID',
+ 'description' => '消息ID',
+ 'type' => 'string',
+ 'example' => '01BE87E485F0C7808C04543CAF00000001',
+ ],
+ 'bornTime' => [
+ 'title' => '生成时间',
+ 'description' => '生成时间',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'storeTime' => [
+ 'title' => '存储时间',
+ 'description' => '存储时间',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'body' => [
+ 'title' => '消息体',
+ 'description' => '消息体',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'bodySize' => [
+ 'description' => '消息体大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '123',
+ ],
+ 'bornHost' => [
+ 'title' => '消息来自哪里',
+ 'description' => '消息来自哪里',
+ 'type' => 'string',
+ 'example' => 'xxx.xx.xxx.xx',
+ ],
+ 'storeHost' => [
+ 'title' => '消息存储位置',
+ 'description' => '消息存储位置',
+ 'type' => 'string',
+ 'example' => 'xxx.xx.xxx.xx',
+ ],
+ 'messageType' => [
+ 'title' => '消息类型',
+ 'description' => '消息类型',
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'messageTag' => [
+ 'title' => '标签列表',
+ 'description' => '标签列表',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'messageGroup' => [
+ 'title' => '以前的shardingkey,顺序消息独有',
+ 'description' => '以前的shardingkey,顺序消息独有',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'messageKeys' => [
+ 'title' => '业务标识',
+ 'description' => '业务标识',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标识',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ ],
+ 'userProperties' => [
+ 'title' => '用户属性',
+ 'description' => '用户属性',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => 'xxx',
+ 'description' => '用户属性',
+ ],
+ ],
+ 'systemProperties' => [
+ 'description' => '系统默认属性',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => 'xx',
+ 'description' => '系统默认属性',
+ ],
+ ],
+ 'liteTopicName' => [
+ 'title' => '轻量主题名称',
+ 'description' => '轻量主题名称',
+ 'type' => 'string',
+ 'example' => 'abc',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FAEBD71F-E839-52F9-BD7B-8F1290525841\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageId\\": \\"01BE87E485F0C7808C04543CAF00000001\\",\\n \\"bornTime\\": \\"2023-03-22 12:17:08\\",\\n \\"storeTime\\": \\"2023-03-22 12:17:08\\",\\n \\"body\\": \\"{}\\",\\n \\"bodySize\\": 123,\\n \\"bornHost\\": \\"xxx.xx.xxx.xx\\",\\n \\"storeHost\\": \\"xxx.xx.xxx.xx\\",\\n \\"messageType\\": \\"NORMAL\\",\\n \\"messageTag\\": \\"xx\\",\\n \\"messageGroup\\": \\"xx\\",\\n \\"messageKeys\\": [\\n \\"xx\\"\\n ],\\n \\"userProperties\\": {\\n \\"key\\": \\"xxx\\"\\n },\\n \\"systemProperties\\": {\\n \\"key\\": \\"xx\\"\\n },\\n \\"liteTopicName\\": \\"abc\\"\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '获取消息详情',
+ ],
+ 'VerifySendMessage' => [
+ 'summary' => '验证指定实例下指定主题的消息发送功能。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}/messages',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsB0E8FD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-wwo32kqfm10',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'card_status_topic',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'message' => [
+ 'title' => '消息内容',
+ 'description' => '消息内容',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'successful',
+ ],
+ 'messageTag' => [
+ 'title' => '消息标签',
+ 'description' => '消息标签',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xx',
+ ],
+ 'messageKey' => [
+ 'title' => '业务标识',
+ 'description' => '业务标识',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xx',
+ ],
+ 'liteTopicName' => [
+ 'title' => '轻量主题名称',
+ 'description' => 'Lite消息队列主题名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<String>',
+ 'description' => 'Result<String>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '3BD2C19B-66DE-59C7-B2F6-FD1BE21DC8C1',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'string',
+ 'example' => '0A64228900207A4F0F2931A4E0D40BE5',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'InvalidConsumerGroupId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'ConsumerGroupId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'consumerGroupId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3BD2C19B-66DE-59C7-B2F6-FD1BE21DC8C1\\",\\n \\"success\\": true,\\n \\"data\\": \\"0A64228900207A4F0F2931A4E0D40BE5\\",\\n \\"code\\": \\"InvalidConsumerGroupId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"ConsumerGroupId\\",\\n \\"dynamicMessage\\": \\"consumerGroupId\\"\\n}","type":"json"}]',
+ 'title' => '消息发送验证',
+ ],
+ 'VerifyConsumeMessage' => [
+ 'summary' => '验证指定实例下指定主题的消息消费状态。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}/messages/{messageId}/action/verifyConsume',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-i7m2vc1vx01',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'delay_topic',
+ ],
+ ],
+ [
+ 'name' => 'messageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消息ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'A9FE190A59AA421ED014743DFDBF017D',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'TEST_FINANCE_STOCK_OUT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'clientId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '客户端ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'zeekr-settlement-server-dc555456f-v2lcg@1@1@qfvorazqns',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '5304143F-AB0E-5AB4-A227-7C5489216FD5',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"5304143F-AB0E-5AB4-A227-7C5489216FD5\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '消息消费验证',
+ ],
+ 'ListTraces' => [
+ 'summary' => '查询指定主题下的轨迹消息列表。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}/traces',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsNKYZ9K',
+ 'FEATUREonsJEU5XG',
+ 'FEATUREonsYT2OK3',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-tl32upjeb08',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'topic_hpms_product_price_change',
+ ],
+ ],
+ [
+ 'name' => 'startTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '开始时间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '2023-05-10 10:42:11',
+ ],
+ ],
+ [
+ 'name' => 'endTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '结束时间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '2023-05-19 10:10:09',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页做多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '10000',
+ 'minimum' => '1',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'queryType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'MESSAGE_ID' => 'MESSAGE_ID',
+ 'MESSAGE_KEY' => 'MESSAGE_KEY',
+ 'TOPIC' => 'TOPIC',
+ ],
+ 'example' => 'MESSAGE_ID',
+ ],
+ ],
+ [
+ 'name' => 'messageId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消息ID。'."\n"
+ ."\n"
+ .'queryType选择MESSAGE_ID时必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0100163E0EC1F1965C04C7906700000000',
+ ],
+ ],
+ [
+ 'name' => 'messageKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消息key。'."\n"
+ ."\n"
+ .'queryType选择MESSAGE_KEY时必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'order_ceating',
+ ],
+ ],
+ [
+ 'name' => 'liteTopicName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '轻量主题名称',
+ 'description' => '轻量主题名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'EDFF77E1-1ED1-5389-B6A8-651D9433BBE5',
+ ],
+ 'success' => [
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'description' => '返回结果的总数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'list' => [
+ 'description' => '分页数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '分页数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'topicName' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageId' => [
+ 'description' => '消息ID。',
+ 'type' => 'string',
+ 'example' => '7F00000100207A4F0F294A938F7807AE',
+ ],
+ 'bornTime' => [
+ 'description' => '生成时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'messageTag' => [
+ 'description' => '标签列表。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'messageKeys' => [
+ 'description' => '业务标识。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '业务标识。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"EDFF77E1-1ED1-5389-B6A8-651D9433BBE5\\",\\n \\"success\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 1,\\n \\"list\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageId\\": \\"7F00000100207A4F0F294A938F7807AE\\",\\n \\"bornTime\\": \\"2023-03-22 12:17:08\\",\\n \\"messageTag\\": \\"xx\\",\\n \\"messageKeys\\": [\\n \\"xx\\"\\n ]\\n }\\n ]\\n },\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询轨迹消息列表',
+ ],
+ 'GetTrace' => [
+ 'summary' => '获取指定主题下的指定消息轨迹。',
+ 'path' => '/instances/{instanceId}/topics/{topicName}/traces/{messageId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '172963',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsNKYZ9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '待查询实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-zvp2vtypu05',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '待查询主题的名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'linkedcare-image',
+ ],
+ ],
+ [
+ 'name' => 'messageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消息 id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '012A5AB0BBEC8A000104C6342B00001ECF',
+ ],
+ ],
+ [
+ 'name' => 'startTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '开始时间',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2023-05-10 10:42:11',
+ ],
+ ],
+ [
+ 'name' => 'endTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '结束时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2024-09-09 09:00:00',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'result',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => '7779A8FC-1BCD-5A1D-A603-C4A9BD8ADC49',
+ ],
+ 'success' => [
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'topicName' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'messageInfo' => [
+ 'description' => '消息信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-beijing',
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-u0t2ygjq505',
+ ],
+ 'topicName' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'example' => 'Topic_normal_inspector',
+ ],
+ 'messageId' => [
+ 'description' => '消息 id',
+ 'type' => 'string',
+ 'example' => '0A79275A00207A4F0F2916C92F9A0B94',
+ ],
+ 'bornTime' => [
+ 'description' => '生成时间',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'storeTime' => [
+ 'description' => '存储时间',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'body' => [
+ 'description' => '消息体。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'bornHost' => [
+ 'description' => '消息来自哪里。',
+ 'type' => 'string',
+ 'example' => 'x.x.x.x',
+ ],
+ 'storeHost' => [
+ 'description' => '消息存储位置',
+ 'type' => 'string',
+ 'example' => 'x.x.x.x',
+ ],
+ 'messageType' => [
+ 'description' => '消息类型。',
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'messageTag' => [
+ 'description' => '标签列表。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'messageGroup' => [
+ 'description' => '以前的shardingkey,顺序消息独有。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'messageKeys' => [
+ 'description' => '业务标识。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '业务标识。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ ],
+ 'userProperties' => [
+ 'description' => '用户属性。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => 'xx',
+ 'description' => '用户属性。',
+ ],
+ ],
+ 'transactionId' => [
+ 'description' => '事务标识。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'liteTopicName' => [
+ 'title' => '轻量主题名称',
+ 'description' => '轻量主题名称',
+ 'type' => 'string',
+ 'example' => 'abc',
+ ],
+ ],
+ ],
+ 'producerInfo' => [
+ 'description' => '生产者轨迹信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'records' => [
+ 'description' => '生产记录列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '生产记录列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'userName' => [
+ 'description' => '生产者名称。',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'clientHost' => [
+ 'description' => '主机名。',
+ 'type' => 'string',
+ 'example' => 'xx.xx.xx.xx',
+ ],
+ 'produceTime' => [
+ 'description' => '发送时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'produceDuration' => [
+ 'description' => '发送耗时。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100',
+ ],
+ 'produceStatus' => [
+ 'description' => '发送状态。',
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'arriveTime' => [
+ 'description' => '到达时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'messageSource' => [
+ 'description' => '消息来源。',
+ 'type' => 'string',
+ 'example' => 'CONSOLE',
+ ],
+ 'dlqOriginTopic' => [
+ 'description' => '死信队列主题。',
+ 'type' => 'string',
+ 'example' => 'test_topic',
+ ],
+ 'dlqOriginMessageId' => [
+ 'description' => '死信队列消息ID。',
+ 'type' => 'string',
+ 'example' => '0A79275A00207A4F0F2916C92F9A0B94',
+ ],
+ 'recallTime' => [
+ 'description' => '撤回请求发起的时间。当messageSource为“recall”时,该字段非空。',
+ 'type' => 'string',
+ 'example' => '空 | 2023-03-22 12:17:08',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'brokerInfo' => [
+ 'description' => 'Broker轨迹信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'presetDelayTime' => [
+ 'description' => '预设投递时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'delayStatus' => [
+ 'description' => '定时状态。',
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'operations' => [
+ 'description' => '操作列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '操作列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'operateType' => [
+ 'description' => '操作类型。',
+ 'type' => 'string',
+ 'example' => 'ADD',
+ ],
+ 'operateTime' => [
+ 'description' => '操作时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ ],
+ ],
+ ],
+ 'recallResult' => [
+ 'description' => '撤回结果。当存在撤回记录时,该字段非空。',
+ 'type' => 'string',
+ 'example' => '空 | RECALL_OK | RECALL_FAIL',
+ ],
+ ],
+ ],
+ 'consumerInfos' => [
+ 'description' => '消费者轨迹信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '消费者轨迹信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumerGroupId' => [
+ 'description' => '消费组ID。',
+ 'type' => 'string',
+ 'example' => 'GID_inspector_group',
+ ],
+ 'records' => [
+ 'description' => '消费记录列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '消费记录列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'userName' => [
+ 'description' => '消费者名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'clientHost' => [
+ 'description' => '主机名。',
+ 'type' => 'string',
+ 'example' => 'xx.xx.xx.xx',
+ ],
+ 'fifoEnable' => [
+ 'description' => '是否顺序消费。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'consumeStatus' => [
+ 'description' => '消费状态。',
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'operations' => [
+ 'description' => '操作列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '操作列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'operateType' => [
+ 'description' => '操作类型。',
+ 'type' => 'string',
+ 'example' => 'ADD',
+ ],
+ 'operateTime' => [
+ 'description' => '操作时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ 'invisibleTime' => [
+ 'description' => '不可见时间,毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100',
+ ],
+ 'deadMessage' => [
+ 'description' => '是否为死信。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ 'popCk' => [
+ 'description' => 'POP_CK',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ ],
+ ],
+ ],
+ 'consumeStatus' => [
+ 'description' => '消费状态。',
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'deadMessage' => [
+ 'description' => '是否为死信。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'deadLetterInfo' => [
+ 'description' => '死信信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'topicName' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'example' => 'Register_Sync',
+ ],
+ 'messageId' => [
+ 'description' => '消息ID。',
+ 'type' => 'string',
+ 'example' => '7F000001001F7A4F0F29463F0376047D',
+ ],
+ 'toDlqTime' => [
+ 'description' => '到达死信队列时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-22 12:17:08',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'InvalidConsumerGroupId',
+ ],
+ 'message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7779A8FC-1BCD-5A1D-A603-C4A9BD8ADC49\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"messageInfo\\": {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"instanceId\\": \\"rmq-cn-u0t2ygjq505\\",\\n \\"topicName\\": \\"Topic_normal_inspector\\",\\n \\"messageId\\": \\"0A79275A00207A4F0F2916C92F9A0B94\\",\\n \\"bornTime\\": \\"2023-03-22 12:17:08\\",\\n \\"storeTime\\": \\"2023-03-22 12:17:08\\",\\n \\"body\\": \\"{}\\",\\n \\"bornHost\\": \\"x.x.x.x\\",\\n \\"storeHost\\": \\"x.x.x.x\\",\\n \\"messageType\\": \\"NORMAL\\",\\n \\"messageTag\\": \\"xx\\",\\n \\"messageGroup\\": \\"xx\\",\\n \\"messageKeys\\": [\\n \\"xx\\"\\n ],\\n \\"userProperties\\": {\\n \\"key\\": \\"xx\\"\\n },\\n \\"transactionId\\": \\"xx\\",\\n \\"liteTopicName\\": \\"abc\\"\\n },\\n \\"producerInfo\\": {\\n \\"records\\": [\\n {\\n \\"userName\\": \\"xxx\\",\\n \\"clientHost\\": \\"xx.xx.xx.xx\\",\\n \\"produceTime\\": \\"2023-03-22 12:17:08\\",\\n \\"produceDuration\\": 100,\\n \\"produceStatus\\": \\"SUCCESS\\",\\n \\"arriveTime\\": \\"2023-03-22 12:17:08\\",\\n \\"messageSource\\": \\"CONSOLE\\",\\n \\"dlqOriginTopic\\": \\"test_topic\\",\\n \\"dlqOriginMessageId\\": \\"0A79275A00207A4F0F2916C92F9A0B94\\",\\n \\"recallTime\\": \\"空 | 2023-03-22 12:17:08\\"\\n }\\n ]\\n },\\n \\"brokerInfo\\": {\\n \\"presetDelayTime\\": \\"2023-03-22 12:17:08\\",\\n \\"delayStatus\\": \\"SUCCESS\\",\\n \\"operations\\": [\\n {\\n \\"operateType\\": \\"ADD\\",\\n \\"operateTime\\": \\"2023-03-22 12:17:08\\"\\n }\\n ],\\n \\"recallResult\\": \\"空 | RECALL_OK | RECALL_FAIL\\"\\n },\\n \\"consumerInfos\\": [\\n {\\n \\"consumerGroupId\\": \\"GID_inspector_group\\",\\n \\"records\\": [\\n {\\n \\"userName\\": \\"test\\",\\n \\"clientHost\\": \\"xx.xx.xx.xx\\",\\n \\"fifoEnable\\": true,\\n \\"consumeStatus\\": \\"SUCCESS\\",\\n \\"operations\\": [\\n {\\n \\"operateType\\": \\"ADD\\",\\n \\"operateTime\\": \\"2023-03-22 12:17:08\\",\\n \\"invisibleTime\\": 100,\\n \\"deadMessage\\": true\\n }\\n ],\\n \\"popCk\\": \\"123\\"\\n }\\n ],\\n \\"consumeStatus\\": \\"SUCCESS\\",\\n \\"deadMessage\\": true,\\n \\"deadLetterInfo\\": {\\n \\"topicName\\": \\"Register_Sync\\",\\n \\"messageId\\": \\"7F000001001F7A4F0F29463F0376047D\\",\\n \\"toDlqTime\\": \\"2023-03-22 12:17:08\\"\\n }\\n }\\n ]\\n },\\n \\"code\\": \\"InvalidConsumerGroupId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '获取消息轨迹',
+ ],
+ 'CreateInstanceAccount' => [
+ 'summary' => '创建实例的访问账号。',
+ 'path' => '/instances/{instanceId}/accounts',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'password' => [
+ 'title' => '用户密码',
+ 'description' => '账号密码',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'xxx',
+ ],
+ 'username' => [
+ 'description' => '账号名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'xxx',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '3AE0999C-8DBA-5CEE-8D9A-BE8D4A90DF8D',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3AE0999C-8DBA-5CEE-8D9A-BE8D4A90DF8D\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '创建访问账号',
+ ],
+ 'UpdateInstanceAccount' => [
+ 'summary' => '更新指定实例下指定账号的信息。',
+ 'path' => '/instances/{instanceId}/accounts/{username}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '209887',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsGA7IC4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '账号名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'accountStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '账号状态。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DISABLE' => '禁用',
+ 'ENABLE' => '启用',
+ ],
+ 'example' => 'ENABLE',
+ ],
+ ],
+ [
+ 'name' => 'password',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '账号密码。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Instance.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Instance.NotFound\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '更新访问账号',
+ ],
+ 'DeleteInstanceAccount' => [
+ 'summary' => '删除指定实例下的访问账号信息。',
+ 'path' => '/instances/{instanceId}/accounts/{username}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '账号名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '157DF7D4-53FB-58C6-BEBC-A9400E7EF68A',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Instance.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"157DF7D4-53FB-58C6-BEBC-A9400E7EF68A\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Instance.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '删除访问账号',
+ ],
+ 'ListInstanceAccount' => [
+ 'summary' => '查询指定实例下访问账号的列表。',
+ 'path' => '/instances/{instanceId}/accounts',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '209888',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsGA7IC4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页码,从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '账号名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'accountType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '账号类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'CUSTOMER' => '自定义账号',
+ 'DEFAULT' => '默认账号',
+ ],
+ 'example' => 'CUSTOMER',
+ ],
+ ],
+ [
+ 'name' => 'accountStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '账号状态',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DISABLE' => '禁用',
+ 'ENABLE' => '启用',
+ ],
+ 'example' => 'ENABLE',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<InstanceAccountDTO>>',
+ 'description' => 'Result<MyPage<InstanceAccountDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'C115601B-8736-5BBF-AC99-7FEAE1245A80',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '24',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '账号信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => 'regionId',
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例id',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'username' => [
+ 'title' => '用户名',
+ 'description' => '账号名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'accountType' => [
+ 'title' => '账号类型',
+ 'description' => '账号类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'CUSTOMER' => '自定义账号',
+ 'DEFAULT' => '默认账号',
+ ],
+ 'example' => 'CUSTOMER',
+ ],
+ 'accountStatus' => [
+ 'title' => '账号状态',
+ 'description' => '账号状态',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'DISABLE' => '禁用',
+ 'ENABLE' => '启用',
+ ],
+ 'example' => 'ENABLE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C115601B-8736-5BBF-AC99-7FEAE1245A80\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 24,\\n \\"list\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"username\\": \\"test\\",\\n \\"accountType\\": \\"CUSTOMER\\",\\n \\"accountStatus\\": \\"ENABLE\\"\\n }\\n ]\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询访问账号列表',
+ ],
+ 'GetInstanceAccount' => [
+ 'summary' => '获取指定实例的账号。',
+ 'path' => '/instances/{instanceId}/account',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '150942',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsGA7IC4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => 'A short description of struct',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-20p36ja4m0y',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '账号名称。'."\n"
+ ."\n"
+ .'不传则返回默认账号。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Result',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'B5C59E80-FCFC-5796-ABE4-D39EAAE578E4',
+ ],
+ 'success' => [
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'username' => [
+ 'description' => '账号名称。',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'password' => [
+ 'description' => '账号密码。',
+ 'type' => 'string',
+ 'example' => '*************',
+ ],
+ 'accountStatus' => [
+ 'description' => '账号状态'."\n"
+ .' - ENABLE(启用)'."\n"
+ .' - DISABLE(禁用)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'DISABLE' => '禁用',
+ 'ENABLE' => '启用',
+ ],
+ 'example' => 'ENABLE',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'ConsumerGroupId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"B5C59E80-FCFC-5796-ABE4-D39EAAE578E4\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"username\\": \\"xxx\\",\\n \\"password\\": \\"*************\\",\\n \\"accountStatus\\": \\"ENABLE\\"\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"ConsumerGroupId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '获取实例账号',
+ ],
+ 'CreateInstanceAcl' => [
+ 'summary' => '在指定实例下创建访问的权限信息。',
+ 'path' => '/instances/{instanceId}/acl/account/{username}',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '209893',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsO60XBD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '用户名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'abc',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'resourceType' => [
+ 'title' => '授权的资源列表',
+ 'description' => '授权的资源类型',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Group' => '消费者组',
+ 'Topic' => '主题',
+ ],
+ 'example' => 'Topic',
+ 'enum' => [
+ 'Topic',
+ 'Group',
+ ],
+ ],
+ 'resourceName' => [
+ 'title' => '授权资源名称',
+ 'description' => '授权的资源名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ 'decision' => [
+ 'title' => '决策,DecisionEnum[ALLOW,DENY,type,desc]',
+ 'description' => '授权的决策结果',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Deny' => '拒绝访问',
+ 'Allow' => '允许访问',
+ ],
+ 'example' => 'Allow',
+ 'enum' => [
+ 'Allow',
+ 'Deny',
+ ],
+ ],
+ 'actions' => [
+ 'description' => '授权的操作类型。'."\n"
+ ."\n"
+ .'针对不同的资源类型,支持的操作类型如下:'."\n"
+ .'- 主题(Topic):Pub、Sub、Pub|Sub'."\n"
+ .'- 消费者组(Group): Sub',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '授权的操作类型。'."\n"
+ ."\n"
+ .'针对不同的资源类型,支持的操作类型如下:'."\n"
+ .'- 主题(Topic):Pub、Sub、PubSub'."\n"
+ .'- 消费者组(Group): Sub',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Pub',
+ ],
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Sub' => '订阅',
+ 'Pub|Sub' => '发送订阅',
+ 'Pub' => '发送',
+ ],
+ 'example' => 'Pub',
+ ],
+ 'ipWhitelists' => [
+ 'description' => 'IP白名单列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单,支持IP和IP段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.0.0.0/0',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'C7E8AE3A-219B-52EE-BE32-4036F5F88833',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C7E8AE3A-219B-52EE-BE32-4036F5F88833\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '创建访问权限',
+ ],
+ 'UpdateInstanceAcl' => [
+ 'summary' => '更新指定实例下,指定用户和资源的访问权限。',
+ 'path' => '/instances/{instanceId}/acl/account/{username}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '209892',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsO60XBD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '用户名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'resourceType' => [
+ 'title' => '授权的资源列表,ResourceTypeEnum[TOPIC,GROUP,code,desc]',
+ 'description' => '授权的资源类型',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Group' => '消费者组',
+ 'Topic' => '主题',
+ ],
+ 'example' => 'Topic',
+ ],
+ 'resourceName' => [
+ 'title' => '授权资源名称',
+ 'description' => '授权的资源名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ 'actions' => [
+ 'description' => '针对不同的资源类型,支持的操作类型如下:'."\n"
+ ."\n"
+ .'- 主题(Topic):Pub、Sub、Pub|Sub'."\n"
+ .'- 消费者组(Group): Sub',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '针对不同的资源类型,支持的操作类型如下:'."\n"
+ ."\n"
+ .'- 主题(Topic):Pub、Sub、PubSub'."\n"
+ .'- 消费者组(Group): Sub',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Pub',
+ ],
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Sub' => '订阅',
+ 'Pub|Sub' => '发送订阅',
+ 'Pub' => '发送',
+ ],
+ 'example' => 'Pub',
+ ],
+ 'decision' => [
+ 'title' => '决策,DecisionEnum[ALLOW,DENY,type,desc]',
+ 'description' => '授权的决策结果',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Deny' => '拒绝访问',
+ 'Allow' => '允许访问',
+ ],
+ 'example' => 'Allow',
+ ],
+ 'ipWhitelists' => [
+ 'title' => 'ip白名单',
+ 'description' => 'IP白名单列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.0.0.0/0',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'C115601B-8736-5BBF-AC99-7FEAE1245A80',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C115601B-8736-5BBF-AC99-7FEAE1245A80\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '更新访问权限',
+ ],
+ 'DeleteInstanceAcl' => [
+ 'summary' => '删除指定实例下,指定账号和资源的权限。',
+ 'path' => '/instances/{instanceId}/acl/account/{username}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '用户名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权的资源类型',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Group' => '消费者组',
+ 'Topic' => '主题',
+ ],
+ 'example' => 'Topic',
+ ],
+ ],
+ [
+ 'name' => 'resourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权的资源名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '7358418D-83BD-507A-8079-611C63E05674',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7358418D-83BD-507A-8079-611C63E05674\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '删除访问权限',
+ ],
+ 'ListInstanceAcl' => [
+ 'summary' => '查询指定实例下的访问权限列表。',
+ 'path' => '/instances/{instanceId}/acl',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '209895',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsO60XBD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页码,从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询的过滤条件,若不输入则查询所有权限。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<InstanceAclDTO>>',
+ 'description' => 'Result',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'DA4D2F89-E2C8-5F04-936B-60D55B055FA7',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '24',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '权限信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => '区域ID',
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'aclType' => [
+ 'title' => '访问类型',
+ 'description' => '访问类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'APACHE' => '开源ACL',
+ ],
+ 'example' => 'APACHE',
+ ],
+ 'username' => [
+ 'title' => '访问秘钥',
+ 'description' => '用户名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'resourceType' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Group' => '消费者组',
+ 'Topic' => '主题',
+ ],
+ 'example' => 'Topic',
+ ],
+ 'resourceName' => [
+ 'title' => '资源名称',
+ 'description' => '资源名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'decision' => [
+ 'title' => '决策,DecisionEnum[ALLOW,DENY,type,desc]',
+ 'description' => '决策结果',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Deny' => '拒绝访问',
+ 'Allow' => '允许访问',
+ ],
+ 'example' => 'Allow',
+ ],
+ 'actions' => [
+ 'description' => '操作类型',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '操作类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Sub' => '订阅',
+ 'Pub' => '发送',
+ ],
+ 'example' => 'Pub',
+ ],
+ ],
+ 'ipWhitelists' => [
+ 'title' => 'ip白名单',
+ 'description' => 'IP白名单列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单',
+ 'type' => 'string',
+ 'example' => '0.0.0.0/0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"DA4D2F89-E2C8-5F04-936B-60D55B055FA7\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 24,\\n \\"list\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"aclType\\": \\"APACHE\\",\\n \\"username\\": \\"test\\",\\n \\"resourceType\\": \\"Topic\\",\\n \\"resourceName\\": \\"test\\",\\n \\"decision\\": \\"Allow\\",\\n \\"actions\\": [\\n \\"Pub\\"\\n ],\\n \\"ipWhitelists\\": [\\n \\"0.0.0.0/0\\"\\n ]\\n }\\n ]\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询访问权限列表',
+ ],
+ 'GetInstanceAcl' => [
+ 'summary' => '查询访问权限信息详情。',
+ 'path' => '/instances/{instanceId}/acl/account/{username}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '263406',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsO60XBD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'username',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '用户名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'abc',
+ ],
+ ],
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权的资源类型',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Group' => '消费者组',
+ 'Topic' => '主题',
+ ],
+ 'example' => 'Topic',
+ ],
+ ],
+ [
+ 'name' => 'resourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权的资源名称',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求id,每次请求都是唯一值,便于后续排查问题',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'aclType' => [
+ 'description' => '实例的鉴权类型。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .' '."\n"
+ .'- apache_acl:开源ACL'."\n"
+ .'- default:实例默认账号',
+ 'type' => 'string',
+ 'example' => 'apache_acl',
+ ],
+ 'username' => [
+ 'description' => '用户名称',
+ 'type' => 'string',
+ 'example' => 'abc',
+ ],
+ 'resourceType' => [
+ 'description' => '授权的资源类型',
+ 'type' => 'string',
+ 'example' => 'Topic',
+ ],
+ 'resourceName' => [
+ 'description' => '授权的资源名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'decision' => [
+ 'description' => '授权的决策结果',
+ 'type' => 'string',
+ 'example' => 'Allow',
+ ],
+ 'actions' => [
+ 'description' => '授权的操作类型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '授权的操作类型。',
+ 'type' => 'string',
+ 'example' => 'Pub',
+ ],
+ ],
+ 'ipWhitelists' => [
+ 'description' => 'IP白名单列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单,支持IP和IP段。',
+ 'type' => 'string',
+ 'example' => '0.0.0.0/0',
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"aclType\\": \\"apache_acl\\",\\n \\"username\\": \\"abc\\",\\n \\"resourceType\\": \\"Topic\\",\\n \\"resourceName\\": \\"test\\",\\n \\"decision\\": \\"Allow\\",\\n \\"actions\\": [\\n \\"Pub\\"\\n ],\\n \\"ipWhitelists\\": [\\n \\"0.0.0.0/0\\"\\n ]\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询访问权限详情',
+ ],
+ 'CreateInstanceIpWhitelist' => [
+ 'summary' => '创建访问控制IP白名单。',
+ 'path' => '/instances/{instanceId}/ip/whitelist',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ipWhitelists' => [
+ 'description' => 'IP白名单列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0.0.0.0/0',
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'A07B41BD-6DD3-5349-9E76-00303DF04BBE',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A07B41BD-6DD3-5349-9E76-00303DF04BBE\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '创建IP白名单',
+ ],
+ 'DeleteInstanceIpWhitelist' => [
+ 'summary' => '删除指定实例下的指定全局IP白名单。',
+ 'path' => '/instances/{instanceId}/ip/whitelist',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '209878',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsO60XBD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'ipWhitelist',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'IP白名单。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '0.0.0.0/0',
+ ],
+ ],
+ [
+ 'name' => 'ipWhitelists',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => 'ip白名单列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'ip白名单',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.0.0.0/0',
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '16425867-C948-5A0C-9A24-5259727BE727',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"16425867-C948-5A0C-9A24-5259727BE727\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '删除IP白名单',
+ ],
+ 'ListInstanceIpWhitelist' => [
+ 'summary' => '查询访问控制IP白名单列表。',
+ 'path' => '/instances/{instanceId}/ip/whitelist',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '209879',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsO60XBD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页码,从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'ipWhitelist',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '过滤条件,IP白名单。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.0.0.0/0',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<String>>',
+ 'description' => 'Result',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '7358418D-83BD-507A-8079-611C63E05674',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '5',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单',
+ 'type' => 'string',
+ 'example' => '0.0.0.0/0',
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Instance.NotFound'."\n",
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7358418D-83BD-507A-8079-611C63E05674\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 5,\\n \\"list\\": [\\n \\"0.0.0.0/0\\"\\n ]\\n },\\n \\"code\\": \\"Instance.NotFound\\\\n\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询IP白名单列表',
+ ],
+ 'GetInstanceIpWhitelist' => [
+ 'summary' => '查询访问控制IP白名单详情。',
+ 'path' => '/instances/{instanceId}/ip/whitelists',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '260123',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsO60XBD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'ipWhitelists',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => 'IP白名单过滤列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.0.0.0/0',
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '0B962390-D84B-5D44-8C11-79DF40299D41',
+ ],
+ 'success' => [
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回数据对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'ipWhitelists' => [
+ 'description' => 'IP白名单列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP白名单',
+ 'type' => 'string',
+ 'example' => '0.0.0.0/0',
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Instance.NotFound',
+ ],
+ 'message' => [
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B962390-D84B-5D44-8C11-79DF40299D41\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"ipWhitelists\\": [\\n \\"0.0.0.0/0\\"\\n ]\\n },\\n \\"code\\": \\"Instance.NotFound\\",\\n \\"message\\": \\"xxx\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询IP白名单详情',
+ ],
+ 'ListMigrations' => [
+ 'summary' => '查询迁移任务列表。',
+ 'path' => '/migrations',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ 'http',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询的过滤条件。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xx',
+ ],
+ ],
+ [
+ 'name' => 'migrationType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '迁移类型:'."\n"
+ .' - INSTANCE_MIGRATION(实例迁移)',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'INSTANCE_MIGRATION' => '实例迁移',
+ ],
+ 'example' => 'INSTANCE_MIGRATION',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfm4goe2ckfiva',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<MigrationDTO>>',
+ 'description' => 'Result<MyPage<MigrationDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'E5897B2E-C3AC-56DC-A482-F0E9E53F48D5',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '迁移任务列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'migrationId' => [
+ 'title' => '迁移ID',
+ 'description' => '迁移ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '21',
+ ],
+ 'migrationName' => [
+ 'title' => '迁移名称',
+ 'description' => '迁移名称',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'migrationType' => [
+ 'title' => '迁移类型,MigrationTypeEnum[RESOURCE_IMPORT(资源导入),INSTANCE_MIGRATION(实例迁移),code(编码),desc(描述)]',
+ 'description' => '迁移类型:'."\n"
+ .' - INSTANCE_MIGRATION(实例迁移)',
+ 'type' => 'string',
+ 'example' => 'INSTANCE_MIGRATION',
+ ],
+ 'migrationStatus' => [
+ 'title' => '迁移状态,MigrationStatusEnum[CREATED(已创建),MIGRATING(迁移中),COMPLETED(已完成),code(编码),desc(描述)]',
+ 'description' => '迁移状态:'."\n"
+ .' - CREATED(已创建)'."\n"
+ .' - MIGRATING(迁移中)'."\n"
+ .' - COMPLETED(已完成)'."\n"
+ .' - CANCELLED(已取消)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'CANCELLED' => '已取消',
+ 'CREATED' => '已创建',
+ 'COMPLETED' => '已完成',
+ 'MIGRATING' => '迁移中',
+ ],
+ 'example' => 'MIGRATING',
+ ],
+ 'userId' => [
+ 'title' => '用户ID',
+ 'description' => '用户ID',
+ 'type' => 'string',
+ 'example' => '111',
+ ],
+ 'currentStage' => [
+ 'title' => '当前阶段,MigrationStageTypeEnum[CONNECT_NETWORK(网络打通),MIGRATE_METADATA(迁移元数据),REPLACE_ENDPOINT(更换接入点),MIGRATE_MESSAGE(消息迁移),code(编码),desc(描述),type(类型)]',
+ 'description' => '当前迁移阶段',
+ 'type' => 'object',
+ 'properties' => [
+ 'stageType' => [
+ 'title' => '阶段类型,MigrationStageTypeEnum[CONNECT_NETWORK(网络打通),MIGRATE_METADATA(迁移元数据),REPLACE_ENDPOINT(更换接入点),MIGRATE_MESSAGE(消息迁移),code(编码),desc(描述),type(类型)]',
+ 'description' => '阶段类型'."\n"
+ .' - CONNECT_NETWORK(网络打通)'."\n"
+ .' - MIGRATE_METADATA(迁移元数据)'."\n"
+ .' - REPLACE_ENDPOINT(更换接入点)'."\n"
+ .' - MIGRATE_MESSAGE(消息迁移)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'REPLACE_ENDPOINT' => '更换接入点',
+ 'MIGRATE_METADATA' => '迁移元数据',
+ 'CONNECT_NETWOR' => '网络打通',
+ 'MIGRATE_MESSAGE' => '消息迁移',
+ ],
+ 'example' => 'MIGRATE_METADATA',
+ ],
+ 'stageStatus' => [
+ 'title' => '阶段状态,MigrationStageStatusEnum[INIT(未开始),DOING(执行中),DONE(已完成),code(编码),desc(描述)]',
+ 'description' => '阶段状态:'."\n"
+ .' - INIT(未开始)'."\n"
+ .' - DOING(执行中)'."\n"
+ .' - DONE(已完成)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'INIT' => '未开始',
+ 'DONE' => '已完成',
+ 'DOING' => '执行中',
+ ],
+ 'example' => 'DOING',
+ ],
+ 'stageData' => [
+ 'title' => '阶段数据',
+ 'description' => '阶段数据',
+ 'type' => 'any',
+ 'example' => '[]',
+ ],
+ ],
+ ],
+ 'migrationSource' => [
+ 'title' => '迁移来源',
+ 'description' => '迁移来源',
+ 'type' => 'object',
+ 'properties' => [
+ 'sourceType' => [
+ 'title' => '迁移来源类型,MigrationSourceTypeEnum[EXTERNAL_INSTANCE(外部实例),UPLOADED_FILE(上传文件),code(编码),desc(描述),type(类型)]',
+ 'description' => '迁移来源类型:'."\n"
+ .' - EXTERNAL_INSTANCE(外部实例)'."\n"
+ .' - INTERNAL_INSTANCE(阿里云5.0实例)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'EXTERNAL_INSTANCE' => '外部实例',
+ 'INTERNAL_INSTANCE' => '阿里云5.0实例',
+ ],
+ 'example' => 'EXTERNAL_INSTANCE',
+ ],
+ 'sourceData' => [
+ 'title' => '迁移来源数据',
+ 'description' => '迁移来源数据',
+ 'type' => 'any',
+ 'example' => '{'."\n"
+ .'"clusterType":"INTERNET_NETWORK",'."\n"
+ .'"aclType":"NONE",'."\n"
+ .'"clusterName":"test",'."\n"
+ .'"namesrvAddrList":"47.110.248.xxx:9876"],'."\n"
+ .'"brokerObtainMethod":"AUTO_OBTAIN"'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'migrationTarget' => [
+ 'title' => '迁移目标',
+ 'description' => '迁移目标',
+ 'type' => 'object',
+ 'properties' => [
+ 'targetType' => [
+ 'title' => '迁移目标类型,MigrationTargetTypeEnum[INTERNAL_INSTANCE(内部实例),code(编码),desc(描述),type(类型)]',
+ 'description' => '迁移来源类型:'."\n"
+ .' - INTERNAL_INSTANCE(阿里云5.0实例)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'INTERNAL_INSTANCE' => '阿里云5.0实例',
+ ],
+ 'example' => 'INTERNAL_INSTANCE',
+ ],
+ 'targetData' => [
+ 'title' => '迁移目标数据',
+ 'description' => '迁移目标数据',
+ 'type' => 'any',
+ 'example' => '{'."\n"
+ .'"clusterType":"ROCKETMQ_V5",'."\n"
+ .'"instanceId":"rmq-cn-778429mp301",'."\n"
+ .'"regionId":"cn-hangzhou"'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 00:00:00',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"E5897B2E-C3AC-56DC-A482-F0E9E53F48D5\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 3,\\n \\"totalCount\\": 1,\\n \\"list\\": [\\n {\\n \\"migrationId\\": 21,\\n \\"migrationName\\": \\"xxx\\",\\n \\"migrationType\\": \\"INSTANCE_MIGRATION\\",\\n \\"migrationStatus\\": \\"MIGRATING\\",\\n \\"userId\\": \\"111\\",\\n \\"currentStage\\": {\\n \\"stageType\\": \\"MIGRATE_METADATA\\",\\n \\"stageStatus\\": \\"DOING\\",\\n \\"stageData\\": \\"[]\\"\\n },\\n \\"migrationSource\\": {\\n \\"sourceType\\": \\"EXTERNAL_INSTANCE\\",\\n \\"sourceData\\": \\"{\\\\n\\\\\\"clusterType\\\\\\":\\\\\\"INTERNET_NETWORK\\\\\\",\\\\n\\\\\\"aclType\\\\\\":\\\\\\"NONE\\\\\\",\\\\n\\\\\\"clusterName\\\\\\":\\\\\\"test\\\\\\",\\\\n\\\\\\"namesrvAddrList\\\\\\":\\\\\\"47.110.248.xxx:9876\\\\\\"],\\\\n\\\\\\"brokerObtainMethod\\\\\\":\\\\\\"AUTO_OBTAIN\\\\\\"\\\\n}\\"\\n },\\n \\"migrationTarget\\": {\\n \\"targetType\\": \\"INTERNAL_INSTANCE\\",\\n \\"targetData\\": \\"{\\\\n\\\\\\"clusterType\\\\\\":\\\\\\"ROCKETMQ_V5\\\\\\",\\\\n\\\\\\"instanceId\\\\\\":\\\\\\"rmq-cn-778429mp301\\\\\\",\\\\n\\\\\\"regionId\\\\\\":\\\\\\"cn-hangzhou\\\\\\"\\\\n}\\"\\n },\\n \\"createTime\\": \\"2022-08-01 00:00:00\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\"\\n }\\n ]\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询迁移任务列表',
+ ],
+ 'ListMigrationOperations' => [
+ 'summary' => '查询迁移操作列表。',
+ 'path' => '/migrations/{migrationId}/stages/{stageType}/operations',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'migrationId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '迁移ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '135',
+ ],
+ ],
+ [
+ 'name' => 'stageType',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '迁移阶段类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'MIGRATE_MESSAGE' => '消息迁移',
+ ],
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ ],
+ [
+ 'name' => 'operationType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'MIGRATE_MESSAGE' => '迁移消息',
+ ],
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ ],
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询的过滤条件。'."\n"
+ ."\n"
+ .'>'."\n"
+ .'> - 支持基于operationKey,即Topic名称进行过滤',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xx',
+ ],
+ ],
+ [
+ 'name' => 'instanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-zxu37eiqq0x',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<MigrationOperationDTO>>',
+ 'description' => 'Result<MyPage<MigrationOperationDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'C7E8AE3A-219B-52EE-BE32-4036F5F88833',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '迁移操作列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'operationId' => [
+ 'title' => '迁移操作ID',
+ 'description' => '迁移操作ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '183',
+ ],
+ 'migrationId' => [
+ 'title' => '迁移ID',
+ 'description' => '迁移ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'stageType' => [
+ 'title' => '迁移阶段类型',
+ 'description' => '迁移阶段类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'MIGRATE_MESSAGE' => '消息迁移',
+ ],
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ 'operationType' => [
+ 'title' => '操作类型,MigrationOperationTypeEnum[IMPORT_TOPIC(导入主题),IMPORT_CONSUMER_GROUP(导入消费者组),CONNECT_NETWORK(网络打通),REPLACE_ENDPOINT(更换接入点),MIGRATE_MESSAGE(迁移消息),code(编码),desc(描述),param(参数类型),result(结果类型)]',
+ 'description' => '操作类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'MIGRATE_MESSAGE' => '迁移消息',
+ ],
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ 'operationStatus' => [
+ 'title' => '操作状态,MigrationOperationStatusEnum[INIT(未开始),DOING(执行中),DONE(已完成),FAIL(已失败),code(编码),desc(描述)]',
+ 'description' => '操作状态:'."\n"
+ .' - INIT(未开始)'."\n"
+ .' - DOING(执行中)'."\n"
+ .' - DONE(已完成) '."\n"
+ .' - FAIL(已失败)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'INIT' => '未开始',
+ 'DONE' => '已完成',
+ 'DOING' => '执行中',
+ 'FAIL' => '已失败',
+ ],
+ 'example' => 'DOING',
+ ],
+ 'operationKey' => [
+ 'title' => '操作对象主键',
+ 'description' => '操作对象主键'."\n"
+ ."\n\n"
+ .'> '."\n"
+ .'> - 在消息迁移阶段,操作对象为Topic名称',
+ 'type' => 'string',
+ 'example' => 'normal-topic-1',
+ ],
+ 'businessStatus' => [
+ 'title' => '操作业务状态,ConnectNetworkBusinessStatusEnum[CONNECT_PENDING(等待打通),CONNECT_DOING(打通中),CONNECT_SUCCESS(打通成功),CONNECT_FAILURE(打通失败),code,desc]',
+ 'description' => '操作业务状态。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'MIGRATE_WAIT' => '读写源集群',
+ 'SWITCH_WRITE' => '写目标集群冗余读',
+ 'MIGRATE_FINISH' => '读写目标集群',
+ 'DOUBLE_READ' => '写源集群冗余读',
+ 'ALREADY_MIGRATED' => '已迁移',
+ ],
+ 'example' => 'DOUBLE_READ',
+ ],
+ 'operationParam' => [
+ 'title' => '操作参数',
+ 'description' => '操作参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'paramData' => [
+ 'title' => '参数信息',
+ 'description' => '参数信息',
+ 'type' => 'any',
+ 'example' => '{'."\n"
+ .' "action": "MIGRATE_FORWARD",'."\n"
+ .' "targetStage": "MIGRATE_FINISH"'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'operationResult' => [
+ 'title' => '操作结果',
+ 'description' => '操作结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'resultData' => [
+ 'title' => '操作结果',
+ 'description' => '操作结果',
+ 'type' => 'any',
+ 'example' => '{'."\n"
+ .' "checkStatus": "WAIT_CHECK",'."\n"
+ .' "sourceTopicStatus": "PERM_6",'."\n"
+ .' "targetTopicStatus": "PERM_4",'."\n"
+ .' "checkResult": {},'."\n"
+ .' "migrateStage": "DOUBLE_READ"'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 00:00:00',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Instance.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The topic already exists.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'consumerGroupId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C7E8AE3A-219B-52EE-BE32-4036F5F88833\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 1,\\n \\"list\\": [\\n {\\n \\"operationId\\": 183,\\n \\"migrationId\\": 1,\\n \\"stageType\\": \\"MIGRATE_MESSAGE\\",\\n \\"operationType\\": \\"MIGRATE_MESSAGE\\",\\n \\"operationStatus\\": \\"DOING\\",\\n \\"operationKey\\": \\"normal-topic-1\\",\\n \\"businessStatus\\": \\"DOUBLE_READ\\",\\n \\"operationParam\\": {\\n \\"paramData\\": \\"{\\\\n \\\\\\"action\\\\\\": \\\\\\"MIGRATE_FORWARD\\\\\\",\\\\n \\\\\\"targetStage\\\\\\": \\\\\\"MIGRATE_FINISH\\\\\\"\\\\n}\\"\\n },\\n \\"operationResult\\": {\\n \\"resultData\\": \\"{\\\\n \\\\\\"checkStatus\\\\\\": \\\\\\"WAIT_CHECK\\\\\\",\\\\n \\\\\\"sourceTopicStatus\\\\\\": \\\\\\"PERM_6\\\\\\",\\\\n \\\\\\"targetTopicStatus\\\\\\": \\\\\\"PERM_4\\\\\\",\\\\n \\\\\\"checkResult\\\\\\": {},\\\\n \\\\\\"migrateStage\\\\\\": \\\\\\"DOUBLE_READ\\\\\\"\\\\n}\\"\\n },\\n \\"createTime\\": \\"2022-08-01 00:00:00\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\"\\n }\\n ]\\n },\\n \\"code\\": \\"Instance.NotFound\\",\\n \\"message\\": \\"The topic already exists.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"consumerGroupId\\"\\n}","type":"json"}]',
+ 'title' => '查询迁移操作列表',
+ ],
+ 'ExecuteMigrationOperation' => [
+ 'summary' => '指定的迁移任务执行指定的操作。',
+ 'path' => '/migrations/{migrationId}/stages/{stageType}/operations/{operationId}/execute',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'migrationId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '迁移ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '44',
+ ],
+ ],
+ [
+ 'name' => 'instanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-x0r37kel***',
+ ],
+ ],
+ [
+ 'name' => 'stageType',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '迁移阶段类型,消息迁移(MIGRATE_MESSAGE)',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'MIGRATE_MESSAGE' => '消息迁移',
+ ],
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ ],
+ [
+ 'name' => 'operationId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '迁移操作ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '2729',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'operationParam' => [
+ 'title' => '操作参数',
+ 'description' => '操作参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'paramData' => [
+ 'title' => '参数信息',
+ 'description' => '参数信息,参数类型为json字符串,参考示例。'."\n"
+ ."\n"
+ .'action(操作)字段枚举值如下:'."\n"
+ .'- MIGRATE_FORWARD(迁移前进)'."\n"
+ .'- MIGRATE_BACKWARD(迁移回退)'."\n"
+ ."\n"
+ .'targetStage(目标阶段)字段枚举值如下:'."\n"
+ .' - MIGRATE_WAIT(读写源集群)'."\n"
+ .' - DOUBLE_READ(写源集群冗余读)'."\n"
+ .' - SWITCH_WRITE(写目标集群冗余读)'."\n"
+ .' - MIGRATE_FINISH(读写目标集群)'."\n"
+ ."\n\n"
+ .'> '."\n"
+ .'> - 关于迁移前进,只能按照顺序逐个阶段向前推进。'."\n"
+ .'> - 关于迁移回滚,可以回滚至之前的任何一个阶段。',
+ 'type' => 'any',
+ 'required' => false,
+ 'example' => '迁移前进:{"action":"MIGRATE_FORWARD","targetStage":"MIGRATE_FINISH"}'."\n"
+ ."\n"
+ .'迁移后退:{"action":"MIGRATE_BACKWARD","targetStage":"MIGRATE_WAIT"}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MigrationOperationDTO>',
+ 'description' => 'Result<MigrationOperationDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '814BCD66-2D76-5080-AAD2-E50E5BDB0995',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'operationId' => [
+ 'title' => '迁移操作ID',
+ 'description' => '迁移操作ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '110',
+ ],
+ 'migrationId' => [
+ 'title' => '迁移ID',
+ 'description' => '迁移ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '6',
+ ],
+ 'stageType' => [
+ 'title' => '迁移阶段类型',
+ 'description' => '迁移阶段类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'MIGRATE_MESSAGE' => '迁移消息',
+ ],
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ 'operationType' => [
+ 'title' => '操作类型,MigrationOperationTypeEnum[IMPORT_TOPIC(导入主题),IMPORT_CONSUMER_GROUP(导入消费者组),CONNECT_NETWORK(网络打通),REPLACE_ENDPOINT(更换接入点),MIGRATE_MESSAGE(迁移消息),code(编码),desc(描述),param(参数类型),result(结果类型)]',
+ 'description' => '操作类型:MIGRATE_MESSAGE(迁移消息)',
+ 'type' => 'string',
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ 'operationStatus' => [
+ 'title' => '操作状态,MigrationOperationStatusEnum[INIT(未开始),DOING(执行中),DONE(已完成),FAIL(已失败),code(编码),desc(描述)]',
+ 'description' => '操作状态:'."\n"
+ .' - INIT(未开始)'."\n"
+ .' - DOING(执行中)'."\n"
+ .' - DONE(已完成)'."\n"
+ .' - FAIL(已失败)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'INIT' => '未开始',
+ 'DONE' => '已完成',
+ 'DOING' => '执行中',
+ 'FAIL' => '已失败',
+ ],
+ 'example' => 'DOING',
+ ],
+ 'operationKey' => [
+ 'title' => '操作对象主键',
+ 'description' => '操作对象主键',
+ 'type' => 'string',
+ 'example' => 'normal-topic-1',
+ ],
+ 'businessStatus' => [
+ 'title' => '操作业务状态,ConnectNetworkBusinessStatusEnum[CONNECT_PENDING(等待打通),CONNECT_DOING(打通中),CONNECT_SUCCESS(打通成功),CONNECT_FAILURE(打通失败),code,desc]',
+ 'description' => '操作业务状态:'."\n"
+ .' - MIGRATE_WAIT(读写源集群)'."\n"
+ .' - DOUBLE_READ(写源集群冗余读)'."\n"
+ .' - SWITCH_WRITE(写目标集群冗余读)'."\n"
+ .' - MIGRATE_FINISH(读写目标集群)'."\n"
+ .' - ALREADY_MIGRATED(已迁移)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'MIGRATE_CHECK' => '读写源集群',
+ 'SWITCH_WRITE' => '写目标集群冗余读',
+ 'MIGRATE_FINISH' => '读写目标集群',
+ 'DOUBLE_READ' => '写源集群冗余读',
+ 'ALREADY_MIGRATED' => '已迁移',
+ ],
+ 'example' => 'MIGRATE_WAIT',
+ ],
+ 'operationParam' => [
+ 'title' => '操作参数',
+ 'description' => '操作参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'paramData' => [
+ 'title' => '参数信息',
+ 'description' => '参数信息',
+ 'type' => 'any',
+ 'example' => '{"action":"MIGRATE_FORWARD","targetStage":"MIGRATE_FINISH"}',
+ ],
+ ],
+ ],
+ 'operationResult' => [
+ 'title' => '操作结果',
+ 'description' => '操作结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'resultData' => [
+ 'title' => '操作结果',
+ 'description' => '操作结果',
+ 'type' => 'any',
+ 'example' => '{'."\n"
+ .' "checkStatus": "WAIT_CHECK",'."\n"
+ .' "sourceTopicStatus": "PERM_6",'."\n"
+ .' "targetTopicStatus": "PERM_4",'."\n"
+ .' "checkResult": {},'."\n"
+ .' "migrateStage": "DOUBLE_READ"'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The topic already exists.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"814BCD66-2D76-5080-AAD2-E50E5BDB0995\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"operationId\\": 110,\\n \\"migrationId\\": 6,\\n \\"stageType\\": \\"MIGRATE_MESSAGE\\",\\n \\"operationType\\": \\"MIGRATE_MESSAGE\\",\\n \\"operationStatus\\": \\"DOING\\",\\n \\"operationKey\\": \\"normal-topic-1\\",\\n \\"businessStatus\\": \\"MIGRATE_WAIT\\",\\n \\"operationParam\\": {\\n \\"paramData\\": \\"{\\\\\\"action\\\\\\":\\\\\\"MIGRATE_FORWARD\\\\\\",\\\\\\"targetStage\\\\\\":\\\\\\"MIGRATE_FINISH\\\\\\"}\\"\\n },\\n \\"operationResult\\": {\\n \\"resultData\\": \\"{\\\\n \\\\\\"checkStatus\\\\\\": \\\\\\"WAIT_CHECK\\\\\\",\\\\n \\\\\\"sourceTopicStatus\\\\\\": \\\\\\"PERM_6\\\\\\",\\\\n \\\\\\"targetTopicStatus\\\\\\": \\\\\\"PERM_4\\\\\\",\\\\n \\\\\\"checkResult\\\\\\": {},\\\\n \\\\\\"migrateStage\\\\\\": \\\\\\"DOUBLE_READ\\\\\\"\\\\n}\\"\\n },\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\"\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The topic already exists.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '执行迁移操作',
+ ],
+ 'FinishMigrationStage' => [
+ 'summary' => '指定的迁移任务完成当前迁移阶段。',
+ 'path' => '/migrations/{migrationId}/stages/{stageType}/finish',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'migrationId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '迁移ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'instanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-pe334f1nx04',
+ ],
+ ],
+ [
+ 'name' => 'stageType',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '迁移阶段类型,消息迁移(MIGRATE_MESSAGE)',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'MIGRATE_MESSAGE' => '消息迁移',
+ ],
+ 'example' => 'MIGRATE_MESSAGE',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '16425867-C948-5A0C-9A24-5259727BE727',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'InvalidConsumerGroupId',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"16425867-C948-5A0C-9A24-5259727BE727\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"InvalidConsumerGroupId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '完成当前迁移阶段',
+ ],
+ 'CreateDisasterRecoveryPlan' => [
+ 'summary' => '创建备份计划。',
+ 'path' => '/disaster_recovery',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225047',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ 'FEATUREonsU22PJL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'planName' => [
+ 'title' => '计划名称',
+ 'description' => '计划名称,必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'planDesc' => [
+ 'title' => '计划描述',
+ 'description' => '计划描述',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'planType' => [
+ 'title' => '计划类型',
+ 'description' => '备份计划类型,必填。请参见[Global Replicator](~~2843187~~)。'."\n"
+ .'参数取值如下:'."\n"
+ .' - ACTIVE_PASSIVE:单向备份'."\n"
+ .' - ACTIVE_ACTIVE:双向备份',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ACTIVE_ACTIVE' => '双向备份',
+ 'ACTIVE_PASSIVE' => '单向备份',
+ ],
+ 'example' => 'ACTIVE_ACTIVE',
+ ],
+ 'instances' => [
+ 'title' => '容灾计划参与实例',
+ 'description' => '备份计划参与实例。必填',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份计划参与实例',
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceType' => [
+ 'title' => '实例类型',
+ 'description' => '实例类型'."\n"
+ .' - ALIYUN_ROCKETMQ :阿里云实例'."\n"
+ .' - EXTERNAL_ROCKETMQ :外部实例,开源实例,开源集群',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ALIYUN_ROCKETMQ' => '阿里云mq实例',
+ 'EXTERNAL_ROCKETMQ' => '外部实例',
+ ],
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'regionId' => [
+ 'title' => '实例所在区域',
+ 'description' => '实例所在区域',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID,instanceType实例类型为EXTERNAL_ROCKETMQ无须填写,ALIYUN_ROCKETMQ必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-******',
+ ],
+ 'instanceRole' => [
+ 'title' => '实例角色',
+ 'description' => '实例角色,主或者备'."\n"
+ .' - ACTIVE:主'."\n"
+ .' - PASSIVE:备',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PASSIVE' => '备',
+ 'ACTIVE' => '主',
+ ],
+ 'example' => 'PASSIVE',
+ ],
+ 'authType' => [
+ 'title' => '认证方式',
+ 'description' => '认证方式。instanceType实例类型为ALIYUN_ROCKETMQ,实例版本为4.0无须填写'."\n"
+ .' - NO_AUTH:无需认证'."\n"
+ .' - ACL_AUTH:acl认证',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'NO_AUTH' => '无须认证',
+ 'ACL_AUTH' => 'acl认证',
+ ],
+ 'example' => 'ACL_AUTH',
+ ],
+ 'username' => [
+ 'title' => '认证用户名',
+ 'description' => '认证用户名,authType为ACL_AUTH时必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'password' => [
+ 'title' => '认证密码',
+ 'description' => '认证密码,authType为ACL_AUTH时必填。instanceType实例类型为ALIYUN_ROCKETMQ无须填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'endpointUrl' => [
+ 'title' => '接入点地址',
+ 'description' => '接入点地址,instanceType实例类型为ALIYUN_ROCKETMQ无须填写,EXTERNAL_ROCKETMQ需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'networkType' => [
+ 'title' => '网络类型',
+ 'description' => '网络类型,instanceType实例类型为ALIYUN_ROCKETMQ无须填写,EXTERNAL_ROCKETMQ需要填写'."\n"
+ .'参数取值如下:'."\n"
+ .' - TCP_INTERNET:tcp公网'."\n"
+ .' - TCP_VPC:tcp专有网络',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'TCP_VPC' => 'tcp专有网络',
+ 'TCP_INTERNET' => 'tcp公网',
+ ],
+ 'example' => 'TCP_INTERNET',
+ ],
+ 'vpcId' => [
+ 'title' => 'VPC ID',
+ 'description' => '创建实例所关联的专有网络的ID,instanceType实例类型仅为EXTERNAL_ROCKETMQ,networkType为TCP_VPC时需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-wz9qt50xhtj9krb******'."\n",
+ ],
+ 'vSwitchId' => [
+ 'title' => '交换机ID',
+ 'description' => '实例所关联的交换机ID,instanceType实例类型仅为EXTERNAL_ROCKETMQ,networkType为TCP_VPC时需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-uf6gwtbn6etadpv******'."\n",
+ ],
+ 'messageProperty' => [
+ 'description' => '消息过滤属性,消息同步到目标集群时,会自动添加上该属性,用于消息消费时进行SQL过滤。',
+ 'type' => 'object',
+ 'properties' => [
+ 'propertyKey' => [
+ 'description' => '属性key',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'aaa',
+ ],
+ 'propertyValue' => [
+ 'description' => '属性value',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'bbb',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'securityGroupId' => [
+ 'description' => '安全组id,instanceType实例类型仅为EXTERNAL_ROCKETMQ,networkType为TCP_VPC时需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sg-bp17hpmgz9******',
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者组ID,用于从源实例拉取消息。'."\n"
+ .'<notice>自建实例必须填写,阿里云实例会自动生成。</notice>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GID_DS_XXX_YYY',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'autoSyncCheckpoint' => [
+ 'title' => '自动消费进度同步开关',
+ 'description' => '是否开启消费进度自动同步。'."\n"
+ ."\n"
+ .'> 只有在开启消费进度同步时有效。即 `syncCheckpointEnabled`字段值为true。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ 'syncCheckpointEnabled' => [
+ 'description' => '同步消费进度开关',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Long>',
+ 'description' => 'Result<Long>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'C7E8AE3A-219B-52EE-BE32-4036F5xxxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果,备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1234',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C7E8AE3A-219B-52EE-BE32-4036F5xxxx\\",\\n \\"success\\": true,\\n \\"data\\": 1234,\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"xxx\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '创建备份计划',
+ ],
+ 'DeleteDisasterRecoveryPlan' => [
+ 'summary' => '删除备份计划。',
+ 'path' => '/disaster_recovery/{planId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****'."\n",
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'DisasterRecoveryPlanStatus.Error',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The current status of the disaster recovery plan does not support this operation.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\\\n\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"DisasterRecoveryPlanStatus.Error\\",\\n \\"message\\": \\"The current status of the disaster recovery plan does not support this operation.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '删除备份计划',
+ ],
+ 'UpdateDisasterRecoveryPlan' => [
+ 'summary' => '修改备份计划。',
+ 'path' => '/disaster_recovery/{planId}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225048',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsU22PJL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'planName' => [
+ 'title' => '计划名称',
+ 'description' => '计划名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'planDesc' => [
+ 'title' => '计划描述',
+ 'description' => '计划描述',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'planType' => [
+ 'title' => '计划类型',
+ 'description' => '备份任务类,不支持修改。参数取值如下:'."\n"
+ .' - ACTIVE_PASSIVE:单向备份'."\n"
+ .' - ACTIVE_ACTIVE:双向备份',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ACTIVE_ACTIVE' => '单向备份',
+ 'ACTIVE_PASSIVE' => '双向备份',
+ ],
+ 'example' => 'ACTIVE_PASSIVE',
+ ],
+ 'instances' => [
+ 'title' => '容灾计划参与实例',
+ 'description' => '备份计划参与实例。不支持修改实例,只支持修改实例下面messageProperty消息过滤条件,auth认证方式',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份计划参与实例',
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceType' => [
+ 'title' => '实例类型',
+ 'description' => '实例类型:'."\n"
+ .' - ALIYUN_ROCKETMQ :阿里云实例'."\n"
+ .' - EXTERNAL_ROCKETMQ :外部实例,开源实例,开源集群',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ALIYUN_ROCKETMQ' => '阿里云实例',
+ 'EXTERNAL_ROCKETMQ' => '外部实例',
+ ],
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'regionId' => [
+ 'title' => '实例所在区域',
+ 'description' => '实例所在区域',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-83l3r0xxxx',
+ ],
+ 'instanceRole' => [
+ 'title' => '实例角色',
+ 'description' => '实例角色,主或者备'."\n"
+ .' - ACTIVE:主'."\n"
+ .' - PASSIVE:备',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PASSIVE' => '备',
+ 'ACTIVE' => '主',
+ ],
+ 'example' => 'ACTIVE',
+ ],
+ 'authType' => [
+ 'title' => '认证方式',
+ 'description' => '认证方式'."\n"
+ .' - NO_AUTH:无需认证'."\n"
+ .' - ACL_AUTH:acl认证',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'NO_AUTH' => '无须认证',
+ 'ACL_AUTH' => 'acl认证',
+ ],
+ 'example' => 'NO_AUTH',
+ ],
+ 'username' => [
+ 'title' => '认证用户名',
+ 'description' => '认证用户名,authType为ACL_AUTH时必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'password' => [
+ 'title' => '认证密码',
+ 'description' => '认证密码,authType为ACL_AUTH时必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'endpointUrl' => [
+ 'title' => '接入点地址',
+ 'description' => '接入点地址,instanceType实例类型为ALIYUN_ROCKETMQ无须填写,EXTERNAL_ROCKETMQ需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ 'networkType' => [
+ 'title' => '网络类型',
+ 'description' => '网络类型,instanceType实例类型为ALIYUN_ROCKETMQ无须填写,EXTERNAL_ROCKETMQ需要填写 参数取值如下:'."\n"
+ .' - TCP_INTERNET:tcp公网'."\n"
+ .' - TCP_VPC:tcp专有网络',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'TCP_VPC' => 'tcp专有网络',
+ 'TCP_INTERNET' => 'tcp公网',
+ ],
+ 'example' => 'TCP_INTERNET',
+ ],
+ 'vpcId' => [
+ 'title' => 'VPC ID',
+ 'description' => '创建实例所关联的专有网络的ID,nstanceType实例类型仅为EXTERNAL_ROCKETMQ,networkType为TCP_VPC时需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-wz9qt50xhtj9krb******'."\n",
+ ],
+ 'vSwitchId' => [
+ 'title' => '交换机ID',
+ 'description' => '实例所关联的交换机ID,nstanceType实例类型仅为EXTERNAL_ROCKETMQ,networkType为TCP_VPC时需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-uf6gwtbn6etadpv******'."\n",
+ ],
+ 'messageProperty' => [
+ 'description' => '消息过滤属性,消息同步到目标集群时,会自动添加上该属性,用于消息消费时进行SQL过滤。',
+ 'type' => 'object',
+ 'properties' => [
+ 'propertyKey' => [
+ 'description' => '属性key',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'aaa',
+ ],
+ 'propertyValue' => [
+ 'description' => '属性value',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'bbb',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'securityGroupId' => [
+ 'description' => '安全组id,nstanceType实例类型仅为EXTERNAL_ROCKETMQ,networkType为TCP_VPC时需要填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sg-bp17hpmgz9******'."\n",
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者组ID,用于从源实例拉取消息。'."\n"
+ .'<notice>自建实例必须填写,阿里云实例会自动生成。</notice>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GID_DS_XXX_YYY',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'autoSyncCheckpoint' => [
+ 'title' => '自动消费进度同步开关',
+ 'description' => '是否开启消费进度自动同步。'."\n"
+ ."\n"
+ .'> 只有在开启消费进度同步时有效。即 `syncCheckpointEnabled`字段值为true。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ 'syncCheckpointEnabled' => [
+ 'description' => '同步消费进度开关',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'A07B41BD-6DD3-5349-9E76-00303Dxxxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'DisasterRecoveryPlanStatus.Error',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The current status of the disaster recovery plan does not support this operation.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A07B41BD-6DD3-5349-9E76-00303Dxxxx\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"DisasterRecoveryPlanStatus.Error\\",\\n \\"message\\": \\"The current status of the disaster recovery plan does not support this operation.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '修改备份计划',
+ ],
+ 'ListDisasterRecoveryPlans' => [
+ 'summary' => '查询备份计划列表。',
+ 'path' => '/disaster_recovery',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225050',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-c97xxx',
+ ],
+ ],
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '过滤条件,根据备份名称,备份描述进行过滤',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxx',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ 'default' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '10',
+ 'default' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<DisasterRecoveryPlanDTO>>',
+ 'description' => 'Result<MyPage<DisasterRecoveryPlanDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '855EF8E6-9C1D-5DE2-9E84-924E13Exxxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'scrollId' => [
+ 'title' => '滚动标识',
+ 'description' => '请求滚动ID。'."\n"
+ .'系统自动生成,后续分页请求需要带上该返回结果,才能持续分页。',
+ 'type' => 'string',
+ 'example' => 'B13D0B07-F24B-4790-88D8-D47A38063D00'."\n",
+ ],
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '28',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '分页数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'planId' => [
+ 'title' => '计划ID',
+ 'description' => '计划ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1300000016',
+ ],
+ 'planName' => [
+ 'title' => '计划名称',
+ 'description' => '计划名称',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'planDesc' => [
+ 'title' => '计划描述',
+ 'description' => '计划描述',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'planType' => [
+ 'title' => '计划类型,DisasterRecoveryTypeEnum[ACTIVE_PASSIVE(灾备),ACTIVE_ACTIVE(双活),code,desc]',
+ 'description' => '计划类型:'."\n"
+ .' - ACTIVE_PASSIVE(单向备份)'."\n"
+ .' - ACTIVE_ACTIVE(双向备份)',
+ 'type' => 'string',
+ 'example' => 'ACTIVE_PASSIVE',
+ ],
+ 'planStatus' => [
+ 'title' => '计划状态,DisasterRecoveryStatusEnum[CREATED(已创建),DELETED(已删除),code,desc]',
+ 'description' => '计划状态:'."\n"
+ .' - CREATED(已创建)'."\n"
+ .' - RUNNING(运行中)'."\n"
+ .' - DELETED(已删除)',
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'extInfo' => [
+ 'title' => '扩展信息',
+ 'description' => '扩展信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '扩展信息',
+ 'example' => 'xxx',
+ ],
+ ],
+ 'instances' => [
+ 'title' => '容灾计划参与实例',
+ 'description' => '备份计划参与实例',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份计划参与实例',
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceType' => [
+ 'title' => '实例类型',
+ 'description' => '实例类型',
+ 'type' => 'string',
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'regionId' => [
+ 'title' => '实例所在区域',
+ 'description' => '实例所在区域',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-ot93rbxxx',
+ ],
+ 'instanceRole' => [
+ 'title' => '实例角色',
+ 'description' => '实例角色',
+ 'type' => 'string',
+ 'example' => 'ACTIVE',
+ ],
+ 'authType' => [
+ 'title' => '认证方式',
+ 'description' => '认证方式',
+ 'type' => 'string',
+ 'example' => 'NO_AUTH',
+ ],
+ 'username' => [
+ 'title' => '认证用户名',
+ 'description' => '认证用户名',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'password' => [
+ 'title' => '认证密码',
+ 'description' => '认证密码',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'endpointUrl' => [
+ 'title' => '接入点地址',
+ 'description' => '接入点地址',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'networkType' => [
+ 'title' => '网络类型',
+ 'description' => '网络类型',
+ 'type' => 'string',
+ 'example' => 'TCP_INTERNET',
+ ],
+ 'vpcId' => [
+ 'title' => 'VPC ID',
+ 'description' => 'VPC ID',
+ 'type' => 'string',
+ 'example' => 'vpc-bp13docqysrgxtbxxxx',
+ ],
+ 'vSwitchId' => [
+ 'title' => '交换机ID',
+ 'description' => '交换机ID',
+ 'type' => 'string',
+ 'example' => 'vsw-uf6gwtbn6etadpv******'."\n",
+ ],
+ 'messageProperty' => [
+ 'description' => '消息属性',
+ 'type' => 'object',
+ 'properties' => [
+ 'propertyKey' => [
+ 'description' => '属性key',
+ 'type' => 'string',
+ 'example' => 'aaa',
+ ],
+ 'propertyValue' => [
+ 'description' => '属性value',
+ 'type' => 'string',
+ 'example' => 'bbb',
+ ],
+ ],
+ ],
+ 'securityGroupId' => [
+ 'description' => '安全组id',
+ 'type' => 'string',
+ 'example' => 'sg-bp17hpmgz9******'."\n",
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者组ID,用于从源实例拉取消息。',
+ 'type' => 'string',
+ 'example' => 'GID_xxx',
+ ],
+ ],
+ ],
+ ],
+ 'syncCheckpointEnabled' => [
+ 'title' => '同步消费进度开关',
+ 'description' => '同步消费进度开关',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'autoSyncCheckpoint' => [
+ 'title' => '是否自动同步消费进度',
+ 'description' => '是否自动同步消费进度',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"855EF8E6-9C1D-5DE2-9E84-924E13Exxxx\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"scrollId\\": \\"B13D0B07-F24B-4790-88D8-D47A38063D00\\\\n\\",\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 28,\\n \\"list\\": [\\n {\\n \\"planId\\": 1300000016,\\n \\"planName\\": \\"xxx\\",\\n \\"planDesc\\": \\"xxx\\",\\n \\"planType\\": \\"ACTIVE_PASSIVE\\",\\n \\"planStatus\\": \\"RUNNING\\",\\n \\"extInfo\\": {\\n \\"key\\": \\"xxx\\"\\n },\\n \\"instances\\": [\\n {\\n \\"instanceType\\": \\"ALIYUN_ROCKETMQ\\",\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-ot93rbxxx\\",\\n \\"instanceRole\\": \\"ACTIVE\\",\\n \\"authType\\": \\"NO_AUTH\\",\\n \\"username\\": \\"xxx\\",\\n \\"password\\": \\"xxx\\",\\n \\"endpointUrl\\": \\"xxx\\",\\n \\"networkType\\": \\"TCP_INTERNET\\",\\n \\"vpcId\\": \\"vpc-bp13docqysrgxtbxxxx\\",\\n \\"vSwitchId\\": \\"vsw-uf6gwtbn6etadpv******\\\\n\\",\\n \\"messageProperty\\": {\\n \\"propertyKey\\": \\"aaa\\",\\n \\"propertyValue\\": \\"bbb\\"\\n },\\n \\"securityGroupId\\": \\"sg-bp17hpmgz9******\\\\n\\",\\n \\"consumerGroupId\\": \\"GID_xxx\\"\\n }\\n ],\\n \\"syncCheckpointEnabled\\": true,\\n \\"autoSyncCheckpoint\\": true,\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\"\\n }\\n ]\\n },\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"xxx\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询备份计划列表',
+ ],
+ 'GetDisasterRecoveryPlan' => [
+ 'summary' => '查询备份计划详情。',
+ 'path' => '/disaster_recovery/{planId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225054',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1234',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<DisasterRecoveryPlanDTO>',
+ 'description' => 'Result<DisasterRecoveryPlanDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '7358418D-83BD-507A-8079-611C63E0xxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'planId' => [
+ 'title' => '计划ID',
+ 'description' => '计划ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1300000016',
+ ],
+ 'planName' => [
+ 'title' => '计划名称',
+ 'description' => '计划名称',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'planDesc' => [
+ 'title' => '计划描述',
+ 'description' => '计划描述',
+ 'type' => 'string',
+ 'example' => 'xxxx',
+ ],
+ 'planType' => [
+ 'title' => '计划类型,DisasterRecoveryTypeEnum[ACTIVE_PASSIVE(灾备),ACTIVE_ACTIVE(双活),code,desc]',
+ 'description' => '计划类型:'."\n"
+ .' - ACTIVE_PASSIVE(单向备份)'."\n"
+ .' - ACTIVE_ACTIVE(双向备份)',
+ 'type' => 'string',
+ 'example' => 'ACTIVE_PASSIVE',
+ ],
+ 'planStatus' => [
+ 'title' => '计划状态,DisasterRecoveryStatusEnum[CREATED(已创建),DELETED(已删除),code,desc]',
+ 'description' => '计划状态:'."\n"
+ .' - CREATED(已创建)'."\n"
+ .' - RUNNING(运行中)'."\n"
+ .' - DELETED(已删除)',
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'extInfo' => [
+ 'title' => '扩展信息',
+ 'description' => '扩展信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => 'xxxx',
+ 'description' => '扩展信息',
+ ],
+ ],
+ 'instances' => [
+ 'title' => '容灾计划参与实例',
+ 'description' => '备份计划参与实例',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份计划参与实例',
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceType' => [
+ 'title' => '实例类型',
+ 'description' => '实例类型',
+ 'type' => 'string',
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'regionId' => [
+ 'title' => '实例所在区域',
+ 'description' => '实例所在区域',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-gpz3qtcdxxx',
+ ],
+ 'instanceRole' => [
+ 'title' => '实例角色',
+ 'description' => '实例角色',
+ 'type' => 'string',
+ 'example' => 'ACTIVE',
+ ],
+ 'authType' => [
+ 'title' => '认证方式',
+ 'description' => '认证方式',
+ 'type' => 'string',
+ 'example' => 'ACL_AUTH',
+ ],
+ 'username' => [
+ 'title' => '认证用户名',
+ 'description' => '认证用户名',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'password' => [
+ 'title' => '认证密码',
+ 'description' => '认证密码',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'endpointUrl' => [
+ 'title' => '接入点地址',
+ 'description' => '接入点地址',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'networkType' => [
+ 'title' => '网络类型',
+ 'description' => '网络类型',
+ 'type' => 'string',
+ 'example' => 'TCP_INTERNET',
+ ],
+ 'vpcId' => [
+ 'title' => 'VPC ID',
+ 'description' => 'VPC ID',
+ 'type' => 'string',
+ 'example' => 'vpc-wz9qt50xhtj9krb******'."\n",
+ ],
+ 'vSwitchId' => [
+ 'title' => '交换机ID',
+ 'description' => '交换机ID',
+ 'type' => 'string',
+ 'example' => 'vsw-uf6gwtbn6etadpv******'."\n",
+ ],
+ 'messageProperty' => [
+ 'description' => '消息过滤属性',
+ 'type' => 'object',
+ 'properties' => [
+ 'propertyKey' => [
+ 'description' => '属性key',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'propertyValue' => [
+ 'description' => '属性value',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ 'securityGroupId' => [
+ 'description' => '安全组id',
+ 'type' => 'string',
+ 'example' => 'sg-bp17hpmgz9******'."\n",
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者组ID,用于从源实例拉取消息。',
+ 'type' => 'string',
+ 'example' => 'GID_DS_XXX_YYY',
+ ],
+ ],
+ ],
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'autoSyncCheckpoint' => [
+ 'description' => '是否开启消费进度自动同步。'."\n"
+ ."\n"
+ .'> 只有在开启消费进度同步时有效。即 `syncCheckpointEnabled`字段值为true。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ 'syncCheckpointEnabled' => [
+ 'description' => '同步消费进度开关',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7358418D-83BD-507A-8079-611C63E0xxx\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"planId\\": 1300000016,\\n \\"planName\\": \\"xxx\\",\\n \\"planDesc\\": \\"xxxx\\",\\n \\"planType\\": \\"ACTIVE_PASSIVE\\",\\n \\"planStatus\\": \\"RUNNING\\",\\n \\"extInfo\\": {\\n \\"key\\": \\"xxxx\\"\\n },\\n \\"instances\\": [\\n {\\n \\"instanceType\\": \\"ALIYUN_ROCKETMQ\\",\\n \\"regionId\\": \\"cn-shanghai\\",\\n \\"instanceId\\": \\"rmq-cn-gpz3qtcdxxx\\",\\n \\"instanceRole\\": \\"ACTIVE\\",\\n \\"authType\\": \\"ACL_AUTH\\",\\n \\"username\\": \\"xxx\\",\\n \\"password\\": \\"xxx\\",\\n \\"endpointUrl\\": \\"xxx\\",\\n \\"networkType\\": \\"TCP_INTERNET\\",\\n \\"vpcId\\": \\"vpc-wz9qt50xhtj9krb******\\\\n\\",\\n \\"vSwitchId\\": \\"vsw-uf6gwtbn6etadpv******\\\\n\\",\\n \\"messageProperty\\": {\\n \\"propertyKey\\": \\"xxx\\",\\n \\"propertyValue\\": \\"xxx\\"\\n },\\n \\"securityGroupId\\": \\"sg-bp17hpmgz9******\\\\n\\",\\n \\"consumerGroupId\\": \\"GID_DS_XXX_YYY\\"\\n }\\n ],\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\",\\n \\"autoSyncCheckpoint\\": true,\\n \\"syncCheckpointEnabled\\": true\\n },\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"xxx\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询备份计划详情',
+ ],
+ 'AddDisasterRecoveryItem' => [
+ 'summary' => '添加备份映射任务',
+ 'path' => '/disaster_recovery/{planId}/items',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225043',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ 'FEATUREonsU22PJL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。必填',
+ 'type' => 'object',
+ 'properties' => [
+ 'topics' => [
+ 'title' => '容灾Item所包含的容灾主题',
+ 'description' => '备份映射所包含的主题,必填',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份映射所包含的主题',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceType' => [
+ 'title' => '实例类型',
+ 'description' => '实例类型'."\n"
+ .' - ALIYUN_ROCKETMQ :阿里云实例'."\n"
+ .' - EXTERNAL_ROCKETMQ :外部实例,开源实例,开源集群',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ALIYUN_ROCKETMQ' => '阿里云实例',
+ 'EXTERNAL_ROCKETMQ' => '外部实例',
+ ],
+ 'example' => 'ALIYUN_ROCKETMQ'."\n",
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID,instanceType为EXTERNAL_ROCKETMQ会自动生成个实例ID,可以通过查询备份计划获取该ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-em93y94xxx',
+ ],
+ 'topicName' => [
+ 'title' => '容灾主题名称',
+ 'description' => '容灾主题名称,必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Topic_xxx',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '消费者组ID',
+ 'description' => '消费者组ID,ACTIVE_ACTIVE双向备份时必填',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'GID_xxx',
+ ],
+ 'deliveryOrderType' => [
+ 'description' => '消息投递到目标实例的顺序性。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- Concurrently:并发投递'."\n"
+ .'- Orderly:顺序投递',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Concurrently' => '并发投递',
+ 'Orderly' => '顺序投递',
+ ],
+ 'example' => 'Concurrently',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果,映射任务id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1300000016',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": 1300000016,\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"xxx\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '添加备份映射任务',
+ ],
+ 'UpdateDisasterRecoveryItem' => [
+ 'summary' => '更新备份映射任务。',
+ 'path' => '/disaster_recovery/{planId}/items/{itemId}',
+ 'methods' => [
+ 'patch',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '263691',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ 'FEATUREonsU22PJL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'itemId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '映射任务id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '100070284',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'topics' => [
+ 'description' => '备份映射所包含的主题列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份映射所包含的主题',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceType' => [
+ 'description' => '实例类型'."\n"
+ .' - ALIYUN_ROCKETMQ :阿里云实例'."\n"
+ .' - EXTERNAL_ROCKETMQ :外部实例,开源实例,开源集群',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ALIYUN_ROCKETMQ' => '阿里云实例',
+ 'EXTERNAL_ROCKETMQ' => '外部实例',
+ ],
+ 'example' => 'ALIYUN_ROCKETMQ'."\n",
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID,instanceType为EXTERNAL_ROCKETMQ会自动生成个实例ID,可以通过查询备份计划获取该ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rmq-cn-em93y94xxx',
+ ],
+ 'topicName' => [
+ 'description' => '容灾主题名称,必填',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Topic_xxx',
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者组ID,ACTIVE_ACTIVE双向备份时必填',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'GID_xxx',
+ ],
+ 'deliveryOrderType' => [
+ 'description' => '消息投递到目标实例的顺序性。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- Concurrently:并发投递'."\n"
+ .'- Orderly:顺序投递',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Concurrently' => '并发投递',
+ 'Orderly' => '顺序投递',
+ ],
+ 'example' => 'Concurrently',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '0C32BED2-FA9F-50AD-9DA7-8B70E26C9D0D',
+ ],
+ 'success' => [
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0C32BED2-FA9F-50AD-9DA7-8B70E26C9D0D\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '更新备份映射任务',
+ ],
+ 'DeleteDisasterRecoveryItem' => [
+ 'summary' => '删除备份映射任务。',
+ 'path' => '/disaster_recovery/{planId}/items/{itemId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'itemId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '映射任务id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '100000650',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '0B962390-D84B-5D44-8C11-79DFxxxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'DisasterRecoveryItemStatus.Error',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The current status of the disaster recovery item does not support this operation.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B962390-D84B-5D44-8C11-79DFxxxx\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"DisasterRecoveryItemStatus.Error\\",\\n \\"message\\": \\"The current status of the disaster recovery item does not support this operation.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '删除备份映射任务',
+ ],
+ 'StartDisasterRecoveryItem' => [
+ 'summary' => '启用备份映射任务。',
+ 'path' => '/disaster_recovery/{planId}/items/{itemId}/start',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'itemId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '映射任务id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '100000704',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'C7E8AE3A-219B-52EE-BE32-4036Fxxxxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'DisasterRecoveryItemStatus.Error',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The current status of the disaster recovery item does not support this operation.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C7E8AE3A-219B-52EE-BE32-4036Fxxxxx\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"DisasterRecoveryItemStatus.Error\\",\\n \\"message\\": \\"The current status of the disaster recovery item does not support this operation.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '启用备份映射任务',
+ ],
+ 'StopDisasterRecoveryItem' => [
+ 'summary' => '停用备份映射任务。',
+ 'path' => '/disaster_recovery/{planId}/items/{itemId}/stop',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'itemId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '映射任务id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '100070284',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'A07B41BD-6DD3-5349-9E76-00303xxxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'DisasterRecoveryItemStatus.Error',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The current status of the disaster recovery item does not support this operation.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A07B41BD-6DD3-5349-9E76-00303xxxx\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"DisasterRecoveryItemStatus.Error\\",\\n \\"message\\": \\"The current status of the disaster recovery item does not support this operation.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '停用备份映射任务',
+ ],
+ 'ListDisasterRecoveryItems' => [
+ 'summary' => '查询备份映射任务列表。',
+ 'path' => '/disaster_recovery/{planId}/items',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225046',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ 'FEATUREonsU22PJL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1234',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'description' => '主题名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'topic-test284',
+ ],
+ ],
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '过滤条件,根据topicName过滤',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'topic_test',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ 'default' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '10000',
+ 'minimum' => '10',
+ 'example' => '10',
+ 'default' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<DisasterRecoveryItemDTO>>',
+ 'description' => 'Result<MyPage<DisasterRecoveryItemDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'C115601B-8736-5BBF-AC99-7FEAE12xxxx',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'scrollId' => [
+ 'title' => '滚动标识',
+ 'description' => '请求滚动ID。'."\n"
+ .'系统自动生成,后续分页请求需要带上该返回结果,才能持续分页。',
+ 'type' => 'string',
+ 'example' => 'B13D0B07-F24B-4790-88D8-D47A38063D00'."\n",
+ ],
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '49',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '分页数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'itemId' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100070284',
+ ],
+ 'planId' => [
+ 'title' => '容灾Item所在容灾计划ID',
+ 'description' => '映射id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1300000016',
+ ],
+ 'itemStatus' => [
+ 'title' => '容灾Item状态,DisasterRecoveryItemStatusEnum[CREATING(创建中),CHANGING(变更中),RUNNING(运行中),MANUAL_STOPPED(人工停用),OVERDUE_STOPPED(欠费停用),code,desc]',
+ 'description' => '备份映射状态:'."\n"
+ .' - CREATING(创建中)'."\n"
+ .' - CHANGING(变更中)'."\n"
+ .' - RUNNING(运行中)'."\n"
+ .' - MANUAL_STOPPED(人工停用)'."\n"
+ .' - OVERDUE_STOPPED(欠费停用)',
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'topics' => [
+ 'title' => '容灾Item所包含的容灾主题',
+ 'description' => '备份映射所包含的主题',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份映射所包含的主题',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => 'regionId',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceType' => [
+ 'title' => '实例类型',
+ 'description' => '实例类型',
+ 'type' => 'string',
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-kh43w0olz0c',
+ ],
+ 'topicName' => [
+ 'title' => '容灾主题名称',
+ 'description' => '主题名称',
+ 'type' => 'string',
+ 'example' => 'topic-test',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '消费者组ID',
+ 'description' => '消费者组ID',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'example' => 'group-test',
+ ],
+ 'deliveryOrderType' => [
+ 'description' => '消息投递到目标实例的顺序性。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- Concurrently:并发投递'."\n"
+ .'- Orderly:顺序投递',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Concurrently' => '并发投递',
+ 'Orderly' => '顺序投递',
+ ],
+ 'example' => 'Concurrently',
+ ],
+ ],
+ ],
+ ],
+ 'extInfo' => [
+ 'title' => '扩展信息',
+ 'description' => '扩展信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '扩展信息',
+ 'example' => '{}',
+ ],
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2024-09-20 03:38:28',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2024-10-04 02:19:44',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C115601B-8736-5BBF-AC99-7FEAE12xxxx\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"scrollId\\": \\"B13D0B07-F24B-4790-88D8-D47A38063D00\\\\n\\",\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 49,\\n \\"list\\": [\\n {\\n \\"itemId\\": 100070284,\\n \\"planId\\": 1300000016,\\n \\"itemStatus\\": \\"RUNNING\\",\\n \\"topics\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceType\\": \\"ALIYUN_ROCKETMQ\\",\\n \\"instanceId\\": \\"rmq-cn-kh43w0olz0c\\",\\n \\"topicName\\": \\"topic-test\\",\\n \\"consumerGroupId\\": \\"group-test\\",\\n \\"deliveryOrderType\\": \\"Concurrently\\"\\n }\\n ],\\n \\"extInfo\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"createTime\\": \\"2024-09-20 03:38:28\\",\\n \\"updateTime\\": \\"2024-10-04 02:19:44\\"\\n }\\n ]\\n },\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"xxx\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询备份映射列表',
+ ],
+ 'GetDisasterRecoveryItem' => [
+ 'summary' => '查询备份计划映射详情。',
+ 'path' => '/disaster_recovery/{planId}/items/{itemId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225053',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'itemId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '映射任务id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '100070284',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<DisasterRecoveryItemDTO>',
+ 'description' => 'Result<DisasterRecoveryItemDTO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'itemId' => [
+ 'description' => '备份计划id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100070284',
+ ],
+ 'planId' => [
+ 'title' => '容灾Item所在容灾计划ID',
+ 'description' => '映射id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1300000016',
+ ],
+ 'itemStatus' => [
+ 'title' => '容灾Item状态,DisasterRecoveryItemStatusEnum[CREATING(创建中),CHANGING(变更中),RUNNING(运行中),MANUAL_STOPPED(人工停用),OVERDUE_STOPPED(欠费停用),code,desc]',
+ 'description' => '备份映射状态:'."\n"
+ .' - CREATING(创建中)'."\n"
+ .' - CHANGING(变更中)'."\n"
+ .' - RUNNING(运行中)'."\n"
+ .' - MANUAL_STOPPED(人工停用)'."\n"
+ .' - OVERDUE_STOPPED(欠费停用)',
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'topics' => [
+ 'title' => '容灾Item所包含的容灾主题',
+ 'description' => '备份映射所包含的主题',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '备份映射所包含的主题',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => 'regionId',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceType' => [
+ 'title' => '实例类型',
+ 'description' => '实例类型',
+ 'type' => 'string',
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'instanceId' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-wwo3xxx',
+ ],
+ 'topicName' => [
+ 'title' => '容灾主题名称',
+ 'description' => '主题名称',
+ 'type' => 'string',
+ 'example' => 'order_push_xxx',
+ ],
+ 'consumerGroupId' => [
+ 'title' => '消费者组ID',
+ 'description' => '消费者组ID',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'example' => 'xxx_reserve_group',
+ ],
+ 'deliveryOrderType' => [
+ 'description' => '消息投递到目标实例的顺序性。'."\n"
+ ."\n"
+ .'参数取值如下:'."\n"
+ .'- Concurrently:并发投递'."\n"
+ .'- Orderly:顺序投递',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Concurrently' => '并发投递',
+ 'Orderly' => '顺序投递',
+ ],
+ 'example' => 'Concurrently',
+ ],
+ ],
+ ],
+ ],
+ 'extInfo' => [
+ 'title' => '扩展信息',
+ 'description' => '扩展信息',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '{}',
+ 'description' => '扩展信息',
+ ],
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2024-06-24 02:57:31',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2024-09-26 02:13:10',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'accessDeniedDetail' => [
+ 'title' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'description' => '访问拒绝详细信息,有且仅有在因RAM无权限拒绝用户访问的场景',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"itemId\\": 100070284,\\n \\"planId\\": 1300000016,\\n \\"itemStatus\\": \\"RUNNING\\",\\n \\"topics\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceType\\": \\"ALIYUN_ROCKETMQ\\",\\n \\"instanceId\\": \\"rmq-cn-wwo3xxx\\",\\n \\"topicName\\": \\"order_push_xxx\\",\\n \\"consumerGroupId\\": \\"xxx_reserve_group\\",\\n \\"deliveryOrderType\\": \\"Concurrently\\"\\n }\\n ],\\n \\"extInfo\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"createTime\\": \\"2024-06-24 02:57:31\\",\\n \\"updateTime\\": \\"2024-09-26 02:13:10\\"\\n },\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"xxx\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\",\\n \\"accessDeniedDetail\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询备份映射详情',
+ ],
+ 'ListDisasterRecoveryCheckpoints' => [
+ 'summary' => '查询消费进度同步列表。',
+ 'path' => '/disaster_recovery/{planId}/items/{itemId}/checkpoints',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '251690',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '备份计划ID',
+ 'description' => '备份计划ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1300000016',
+ ],
+ ],
+ [
+ 'name' => 'itemId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '备份映射ID',
+ 'description' => '备份映射ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '100070284',
+ ],
+ ],
+ [
+ 'name' => 'instanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '源实例ID',
+ 'description' => '源实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '过滤条件',
+ 'description' => '过滤条件',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'topic_test',
+ ],
+ ],
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页码,从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页最多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'list' => [
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '分页数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'planId' => [
+ 'description' => '备份计划ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '13000000xx',
+ ],
+ 'itemId' => [
+ 'description' => '备份映射ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10000000xx',
+ ],
+ 'checkpointId' => [
+ 'description' => '消费进度ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10000000xx',
+ ],
+ 'lastSyncTime' => [
+ 'description' => '最近同步时间',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1740724080343',
+ ],
+ 'sourceProgress' => [
+ 'description' => '源消费进度',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-3mp3vblzxxx',
+ ],
+ 'instanceType' => [
+ 'description' => '实例类型'."\n"
+ .' - ALIYUN_ROCKETMQ :阿里云实例'."\n"
+ .' - EXTERNAL_ROCKETMQ :外部实例,开源实例,开源集群',
+ 'type' => 'string',
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者组ID',
+ 'type' => 'string',
+ 'example' => 'GID_TEST',
+ ],
+ 'topicName' => [
+ 'description' => '主题名称',
+ 'type' => 'string',
+ 'example' => 'TOPIC_TEST',
+ ],
+ 'lastFetchTime' => [
+ 'description' => '最近获取时间',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1740724080343',
+ ],
+ 'progressData' => [
+ 'description' => '消费进度数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumeTimestamp' => [
+ 'description' => '最新消费时间',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1740724080343',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'targetProgress' => [
+ 'description' => '目标消费进度',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'description' => '区域ID',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'instanceId' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-nwy3i065xxx',
+ ],
+ 'instanceType' => [
+ 'description' => '实例类型'."\n"
+ .' - ALIYUN_ROCKETMQ :阿里云实例'."\n"
+ .' - EXTERNAL_ROCKETMQ :外部实例,开源实例,开源集群',
+ 'type' => 'string',
+ 'example' => 'ALIYUN_ROCKETMQ',
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者组ID',
+ 'type' => 'string',
+ 'example' => 'GID_TEST',
+ ],
+ 'topicName' => [
+ 'description' => '主题名称',
+ 'type' => 'string',
+ 'example' => 'TOPIC_TEST',
+ ],
+ 'lastFetchTime' => [
+ 'description' => '最新获取时间',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1740724080343',
+ ],
+ 'progressData' => [
+ 'description' => '消费进度数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'consumeTimestamp' => [
+ 'description' => '最新消费时间',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1740724080343',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'message' => [
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 1,\\n \\"list\\": [\\n {\\n \\"planId\\": 0,\\n \\"itemId\\": 0,\\n \\"checkpointId\\": 0,\\n \\"lastSyncTime\\": 1740724080343,\\n \\"sourceProgress\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-3mp3vblzxxx\\",\\n \\"instanceType\\": \\"ALIYUN_ROCKETMQ\\",\\n \\"consumerGroupId\\": \\"GID_TEST\\",\\n \\"topicName\\": \\"TOPIC_TEST\\",\\n \\"lastFetchTime\\": 1740724080343,\\n \\"progressData\\": {\\n \\"consumeTimestamp\\": 1740724080343\\n }\\n },\\n \\"targetProgress\\": {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"instanceId\\": \\"rmq-cn-nwy3i065xxx\\",\\n \\"instanceType\\": \\"ALIYUN_ROCKETMQ\\",\\n \\"consumerGroupId\\": \\"GID_TEST\\",\\n \\"topicName\\": \\"TOPIC_TEST\\",\\n \\"lastFetchTime\\": 1740724080343,\\n \\"progressData\\": {\\n \\"consumeTimestamp\\": 1740724080343\\n }\\n }\\n }\\n ]\\n },\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询消费进度同步列表',
+ ],
+ 'SyncDisasterRecoveryCheckpoint' => [
+ 'summary' => '同步消费进度信息到目标实例。',
+ 'path' => '/disaster_recovery/{planId}/items/{itemId}/checkpoints/{checkpointId}',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '251695',
+ 'abilityTreeNodes' => [
+ 'FEATUREonsOVRH1R',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'planId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '备份计划ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '13000000xx',
+ ],
+ ],
+ [
+ 'name' => 'itemId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '映射ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '13000000xx',
+ ],
+ ],
+ [
+ 'name' => 'checkpointId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费进度ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '13000000xx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '7358418D-83BD-507A-8079-611C63E05674',
+ ],
+ 'success' => [
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7358418D-83BD-507A-8079-611C63E05674\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '同步消费进度信息',
+ ],
+ 'ListTagResources' => [
+ 'summary' => '查询可见的资源标签关系。',
+ 'path' => '/resourceTag/list',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'regionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域ID。',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型。',
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'instance',
+ ],
+ ],
+ [
+ 'name' => 'resourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源ID列表,JSON格式。',
+ 'description' => '资源ID列表,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '["rmq-cn-pe334n08h08"]',
+ ],
+ ],
+ [
+ 'name' => 'tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '标签列表,JSON格式。',
+ 'description' => '标签列表,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[{"key": "rmq-test", "value": "test"}]',
+ ],
+ ],
+ [
+ 'name' => 'nextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '下一个查询开始的位置。',
+ 'description' => '下一个查询开始的位置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd09e2b63e1b12d905b7080ff70',
+ ],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfmx7caj******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<InnerListTagResourcesResponse>',
+ 'description' => 'Result<InnerListTagResourcesResponse>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'F00C6A70-C782-5DD6-9D11-0CFC710100C7',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'nextToken' => [
+ 'description' => '下一个查询开始的位置。',
+ 'type' => 'string',
+ 'example' => 'd09e2b63e1b12d905b7080ff70',
+ ],
+ 'requestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'F00C6A70-C782-5DD6-9D11-0CFC710100C7',
+ ],
+ 'tagResources' => [
+ 'description' => '资源标签关系。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源标签关系。',
+ 'type' => 'object',
+ 'properties' => [
+ 'resourceType' => [
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'example' => 'instance',
+ ],
+ 'tagValue' => [
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'example' => 'value',
+ ],
+ 'resourceId' => [
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-pe334n08h08',
+ ],
+ 'tagKey' => [
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'example' => 'key',
+ ],
+ 'category' => [
+ 'description' => '标签类型。',
+ 'type' => 'string',
+ 'example' => 'custom',
+ ],
+ 'scope' => [
+ 'description' => '可见范围。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'aliUid' => [
+ 'description' => '资源归属uid。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1876441048322426',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The topic already exists.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F00C6A70-C782-5DD6-9D11-0CFC710100C7\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"nextToken\\": \\"d09e2b63e1b12d905b7080ff70\\",\\n \\"requestId\\": \\"F00C6A70-C782-5DD6-9D11-0CFC710100C7\\",\\n \\"tagResources\\": [\\n {\\n \\"resourceType\\": \\"instance\\",\\n \\"tagValue\\": \\"value\\",\\n \\"resourceId\\": \\"rmq-cn-pe334n08h08\\",\\n \\"tagKey\\": \\"key\\",\\n \\"category\\": \\"custom\\",\\n \\"scope\\": \\"public\\",\\n \\"aliUid\\": 1876441048322426\\n }\\n ]\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The topic already exists.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询资源标签关系',
+ ],
+ 'TagResources' => [
+ 'summary' => '用户创建标签资源关系。',
+ 'path' => '/resourceTag/create',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'regionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域ID。',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型。',
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'instance',
+ ],
+ ],
+ [
+ 'name' => 'resourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源ID列表,JSON格式。',
+ 'description' => '资源ID列表,JSON格式。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '["rmq-cn-pe3355cs707"]',
+ ],
+ ],
+ [
+ 'name' => 'tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '标签列表,JSON格式。',
+ 'description' => '标签列表,JSON格式。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '[{"key": "rmq-test", "value": "test"}]',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '0B962390-D84B-5D44-8C11-79DF40299D41',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B962390-D84B-5D44-8C11-79DF40299D41\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '创建标签资源关系',
+ ],
+ 'UntagResources' => [
+ 'summary' => '用户删除标签资源关系。',
+ 'path' => '/resourceTag/delete',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'regionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域ID。',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型。',
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'instance',
+ ],
+ ],
+ [
+ 'name' => 'resourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源ID列表,JSON格式。',
+ 'description' => '资源ID列表,JSON格式。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '["rmq-cn-pe3355cs707"]',
+ ],
+ ],
+ [
+ 'name' => 'tagKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '标签键列表,JSON格式。',
+ 'description' => '标签键列表,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '["key1", "key2"]',
+ ],
+ ],
+ [
+ 'name' => 'all',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否删除所有标签。',
+ 'description' => '是否删除所有标签。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<Boolean>',
+ 'description' => 'Result<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'A07B41BD-6DD3-5349-9E76-00303DF04BBE',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter deliveryOrderType is invalid.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A07B41BD-6DD3-5349-9E76-00303DF04BBE\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"Parameter deliveryOrderType is invalid.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '删除标签资源关系',
+ ],
+ 'ChangeResourceGroup' => [
+ 'summary' => '修改实例所属的资源组。',
+ 'path' => '/resourceGroup/change',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'resourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源ID,即云消息队列 RocketMQ 版实例的ID。表示需要为哪个实例修改所属的资源组。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'c2c5d1274a8d4317a13bc5b0d4******',
+ ],
+ ],
+ [
+ 'name' => 'regionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例所属的地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'resourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型。'."\n"
+ ."\n"
+ .'该参数固定取值为**instance**,表述资源的类型为实例。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'instance' => '实例',
+ ],
+ 'example' => 'instance',
+ ],
+ ],
+ [
+ 'name' => 'resourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID,表示需要将指定实例转入到哪个资源组下。'."\n"
+ ."\n"
+ .'您可以通过<props="china">[ListResourceGroups](https://help.aliyun.com/document_detail/158855.html)</props><props="intl">[ListResourceGroups](https://www.alibabacloud.com/help/resource-management/latest/listresourcegroups)</props>接口查询已有资源组。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rg-9gLOoK****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID,每个请求ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Instance.NotFound',
+ ],
+ 'message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The instance cannot be found.',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": true,\\n \\"code\\": \\"Instance.NotFound\\",\\n \\"message\\": \\"The instance cannot be found.\\",\\n \\"httpStatusCode\\": 400,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '修改资源组',
+ ],
+ 'GetConsumeTimespan' => [
+ 'summary' => '查询topic可重置时间范围',
+ 'path' => '/instances/{instanceId}/consumerGroups/{consumerGroupId}/consumeTimespan/{topicName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREons0MOUAZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'instanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ ],
+ [
+ 'name' => 'consumerGroupId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CID-TEST',
+ ],
+ ],
+ [
+ 'name' => 'topicName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '消费者分组订阅的主题名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'topicxxx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Result',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID,每个请求的ID都是唯一的,可用于排查和定位问题。',
+ 'type' => 'string',
+ 'example' => 'C115601B-8736-5BBF-AC99-7FEAE1245A80',
+ ],
+ 'success' => [
+ 'description' => '执行结果是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceId' => [
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'example' => 'rmq-cn-7e22ody****',
+ ],
+ 'topicName' => [
+ 'description' => '指定消费者分组订阅的主题。',
+ 'type' => 'string',
+ 'example' => 'topic_test',
+ ],
+ 'consumerGroupId' => [
+ 'description' => '消费者分组的ID。',
+ 'type' => 'string',
+ 'example' => 'CID-TEST',
+ ],
+ 'minTimestamp' => [
+ 'description' => '整个 Topic 目前最早存储的消息的生产时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1570761026222',
+ ],
+ 'maxTimestamp' => [
+ 'description' => '整个 Topic 目前最新存储的消息的生产时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1570761026833',
+ ],
+ 'consumeTimestamp' => [
+ 'description' => '当前 Group 消费该 Topic 的最新时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1570761026400',
+ ],
+ ],
+ ],
+ 'code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MissingInstanceId',
+ ],
+ 'message' => [
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'description' => '动态错误码。',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ 'dynamicMessage' => [
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C115601B-8736-5BBF-AC99-7FEAE1245A80\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"instanceId\\": \\"rmq-cn-7e22ody****\\",\\n \\"topicName\\": \\"topic_test\\",\\n \\"consumerGroupId\\": \\"CID-TEST\\",\\n \\"minTimestamp\\": 1570761026222,\\n \\"maxTimestamp\\": 1570761026833,\\n \\"consumeTimestamp\\": 1570761026400\\n },\\n \\"code\\": \\"MissingInstanceId\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"xxx\\",\\n \\"dynamicMessage\\": \\"xxx\\"\\n}","type":"json"}]',
+ 'title' => '查询Topic可重置时间范围',
+ ],
+ 'ListRegions' => [
+ 'summary' => '查询地域列表。',
+ 'path' => '/regions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<List<RegionDTO>>',
+ 'description' => 'Result<List<RegionDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '0B962390-D84B-5D44-8C11-79DF40299D41',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '区域列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'regionId' => [
+ 'title' => 'regionId,类似 cn-hangzhou',
+ 'description' => 'regionId,类似 cn-hangzhou',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'regionName' => [
+ 'title' => '中文region,类似杭州',
+ 'description' => '中文region,类似杭州',
+ 'type' => 'string',
+ 'example' => '杭州',
+ ],
+ 'supportRocketmqV5' => [
+ 'title' => '是否开通新服 v5版本',
+ 'description' => '是否开通新服 v5版本',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'supportRocketmqV4' => [
+ 'title' => '是否开通旧服 v4版本',
+ 'description' => '是否开通旧服 v4版本',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'tags' => [
+ 'description' => '地域标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '地域标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'tagCode' => [
+ 'description' => '标签Code。',
+ 'type' => 'string',
+ 'example' => 'xx',
+ ],
+ 'tagValue' => [
+ 'description' => '标签的值。',
+ 'type' => 'any',
+ 'example' => 'xx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'MissingPageNumber',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'ConsumerGroupId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0B962390-D84B-5D44-8C11-79DF40299D41\\",\\n \\"success\\": true,\\n \\"data\\": [\\n {\\n \\"regionId\\": \\"cn-hangzhou\\",\\n \\"regionName\\": \\"杭州\\",\\n \\"supportRocketmqV5\\": true,\\n \\"supportRocketmqV4\\": true,\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\",\\n \\"tags\\": [\\n {\\n \\"tagCode\\": \\"xx\\",\\n \\"tagValue\\": \\"xx\\"\\n }\\n ]\\n }\\n ],\\n \\"code\\": \\"MissingPageNumber\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"ConsumerGroupId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询地域列表',
+ ],
+ 'ListAvailableZones' => [
+ 'summary' => '查询支持的可用区。',
+ 'path' => '/zones',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<List<ZoneDTO>>',
+ 'description' => 'Result<List<ZoneDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'AF9A8B10-C426-530F-A0DD-96320B39****',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'zoneId' => [
+ 'title' => '可用区id',
+ 'description' => '可用区id',
+ 'type' => 'string',
+ 'example' => 'cn-qingdao-b',
+ ],
+ 'zoneName' => [
+ 'title' => '可用区名称',
+ 'description' => '可用区名称',
+ 'type' => 'string',
+ 'example' => 'ha-cn-t9b30w902vm_qrs',
+ ],
+ 'createTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ 'updateTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-01 20:05:50',
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'Parameter instanceId is mandatory for this action .',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"AF9A8B10-C426-530F-A0DD-96320B39****\\",\\n \\"success\\": true,\\n \\"data\\": [\\n {\\n \\"zoneId\\": \\"cn-qingdao-b\\",\\n \\"zoneName\\": \\"ha-cn-t9b30w902vm_qrs\\",\\n \\"createTime\\": \\"2022-08-01 20:05:50\\",\\n \\"updateTime\\": \\"2022-08-01 20:05:50\\"\\n }\\n ],\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"Parameter instanceId is mandatory for this action .\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"InstanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询支持的可用区',
+ ],
+ 'ListMetricMeta' => [
+ 'summary' => '查询监控项列表。',
+ 'path' => '/monitor/metrics/meta',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'pageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页页码,查询第几页的返回结果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '100000000',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'pageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,每页做多显示的返回结果数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '100',
+ 'minimum' => '10',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Result<MyPage<MetricMetaDTO>>',
+ 'description' => 'Result<MyPage<MetricMetaDTO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '8B459455-4A35-5796-BA9D-98EF1AB9A931',
+ ],
+ 'success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'data' => [
+ 'title' => '返回结果',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'pageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'pageSize' => [
+ 'title' => '分页大小',
+ 'description' => '分页大小',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'totalCount' => [
+ 'title' => '总记录数',
+ 'description' => '总记录数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'list' => [
+ 'title' => '分页数据',
+ 'description' => '分页数据',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '监控项列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'metricName' => [
+ 'title' => '监控项名称',
+ 'description' => '监控项名称',
+ 'type' => 'string',
+ 'example' => 'SendMessageCountPerInstance',
+ ],
+ 'description' => [
+ 'title' => '监控项描述',
+ 'description' => '监控项描述',
+ 'type' => 'string',
+ 'example' => 'Using Serverless Devs to deploy the infrastructure of project:get-userinfo-v1-infrastructure-as-template-project',
+ ],
+ 'category' => [
+ 'title' => '监控项标签',
+ 'description' => '监控项标签',
+ 'type' => 'string',
+ 'example' => 'Bug',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'code' => [
+ 'title' => '错误码',
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'Topic.NotFound',
+ ],
+ 'message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息',
+ 'type' => 'string',
+ 'example' => 'The topic already exists.',
+ ],
+ 'httpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'dynamicCode' => [
+ 'title' => '动态错误码',
+ 'description' => '动态错误码',
+ 'type' => 'string',
+ 'example' => 'InstanceId',
+ ],
+ 'dynamicMessage' => [
+ 'title' => '动态错误信息',
+ 'description' => '动态错误信息',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B459455-4A35-5796-BA9D-98EF1AB9A931\\",\\n \\"success\\": true,\\n \\"data\\": {\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalCount\\": 1,\\n \\"list\\": [\\n {\\n \\"metricName\\": \\"SendMessageCountPerInstance\\",\\n \\"description\\": \\"Using Serverless Devs to deploy the infrastructure of project:get-userinfo-v1-infrastructure-as-template-project\\",\\n \\"category\\": \\"Bug\\"\\n }\\n ]\\n },\\n \\"code\\": \\"Topic.NotFound\\",\\n \\"message\\": \\"The topic already exists.\\",\\n \\"httpStatusCode\\": 200,\\n \\"dynamicCode\\": \\"InstanceId\\",\\n \\"dynamicMessage\\": \\"instanceId\\"\\n}","type":"json"}]',
+ 'title' => '查询监控项列表',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'rocketmq.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'rocketmq.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'rocketmq.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-jva',
+ 'endpoint' => 'rocketmq.cn-zhengzhou-jva.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'rocketmq.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'rocketmq.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'rocketmq.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'rocketmq.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-nanjing',
+ 'endpoint' => 'rocketmq.cn-nanjing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fuzhou',
+ 'endpoint' => 'rocketmq.cn-fuzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'rocketmq.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'rocketmq.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'rocketmq.cn-guangzhou.aliyuncs.com ',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'rocketmq.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'rocketmq.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'rocketmq.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'rocketmq.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'rocketmq.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-2',
+ 'endpoint' => 'rocketmq.ap-southeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'rocketmq.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'rocketmq.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-6',
+ 'endpoint' => 'rocketmq.ap-southeast-6.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'rocketmq.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'rocketmq.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'rocketmq.eu-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'rocketmq.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'rocketmq.ap-south-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'rocketmq.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'rocketmq.cn-hangzhou-finance.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'rocketmq.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'rocketmq.cn-shenzhen-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'rocketmq.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'rocketmq.cn-beijing-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'rocketmq.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'na-south-1',
+ 'endpoint' => 'rocketmq.na-south-1.aliyuncs.com',
+ ],
+ ],
+];