summaryrefslogtreecommitdiff
path: root/data/zh_cn/mse/2019-05-31/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
committerZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
commit7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch)
tree0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/zh_cn/mse/2019-05-31/api-docs.php
downloadacs-metadata-full-1.0.0+20260212.tar.gz
acs-metadata-full-1.0.0+20260212.zip
Diffstat (limited to 'data/zh_cn/mse/2019-05-31/api-docs.php')
-rw-r--r--data/zh_cn/mse/2019-05-31/api-docs.php65968
1 files changed, 65968 insertions, 0 deletions
diff --git a/data/zh_cn/mse/2019-05-31/api-docs.php b/data/zh_cn/mse/2019-05-31/api-docs.php
new file mode 100644
index 0000000..7006c7c
--- /dev/null
+++ b/data/zh_cn/mse/2019-05-31/api-docs.php
@@ -0,0 +1,65968 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'mse',
+ 'version' => '2019-05-31',
+ ],
+ 'directories' => [
+ [
+ 'id' => 365620,
+ 'title' => '标签',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListTagResources',
+ 'UntagResources',
+ 'TagResources',
+ ],
+ ],
+ [
+ 'id' => 365624,
+ 'title' => '注册配置中心',
+ 'type' => 'directory',
+ 'children' => [
+ [
+ 'id' => 365625,
+ 'title' => '迁移上云',
+ 'type' => 'directory',
+ 'children' => [
+ 'UpdateMigrationTask',
+ 'AddMigrationTask',
+ 'ListMigrationTask',
+ 'DeleteMigrationTask',
+ ],
+ ],
+ [
+ 'id' => 365630,
+ 'title' => '风险评估',
+ 'type' => 'directory',
+ 'children' => [
+ 'PutClusterHealthCheckTask',
+ 'OrderClusterHealthCheckRiskNotice',
+ 'ListClusterHealthCheckTask',
+ ],
+ ],
+ [
+ 'id' => 365634,
+ 'title' => 'Nacos配置',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListConfigTrack',
+ 'CreateNacosConfig',
+ 'DeleteNacosConfig',
+ 'DeleteNacosConfigs',
+ 'UpdateNacosConfig',
+ 'ListListenersByConfig',
+ 'ListListenersByIp',
+ 'GetNacosConfig',
+ 'GetNacosHistoryConfig',
+ 'ListNacosConfigs',
+ 'ListNacosHistoryConfigs',
+ 'CloneNacosConfig',
+ 'ExportNacosConfig',
+ 'GetImportFileUrl',
+ 'ImportNacosConfig',
+ ],
+ ],
+ [
+ 'id' => 365650,
+ 'title' => 'Nacos服务',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListNamingTrack',
+ 'CreateNacosService',
+ 'ListAnsServices',
+ 'DeleteNacosService',
+ 'UpdateNacosService',
+ 'UpdateNacosCluster',
+ 'ListAnsServiceClusters',
+ 'CreateNacosInstance',
+ 'DeleteNacosInstance',
+ 'UpdateNacosInstance',
+ 'ListAnsInstances',
+ 'GetServiceListeners',
+ ],
+ ],
+ [
+ 'id' => 365663,
+ 'title' => 'Eureka服务',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListEurekaServices',
+ 'ListEurekaInstances',
+ ],
+ ],
+ [
+ 'id' => 365666,
+ 'title' => '监控管理',
+ 'type' => 'directory',
+ 'children' => [
+ 'QueryMonitor',
+ ],
+ ],
+ [
+ 'id' => 365668,
+ 'title' => '公网白名单管理',
+ 'type' => 'directory',
+ 'children' => [
+ 'UpdateAcl',
+ ],
+ ],
+ [
+ 'id' => 365670,
+ 'title' => '集群管理',
+ 'type' => 'directory',
+ 'children' => [
+ 'QueryInstancesInfo',
+ 'QueryClusterInfo',
+ 'QueryClusterDetail',
+ 'CreateCluster',
+ 'DeleteCluster',
+ 'UpdateCluster',
+ 'UpdateConfig',
+ 'ListClusters',
+ 'ListClusterTypes',
+ 'ListClusterVersions',
+ 'QueryClusterSpecification',
+ 'QueryClusterDiskSpecification',
+ 'ListInstanceCount',
+ 'QueryConfig',
+ 'GetImage',
+ 'UpdateImage',
+ 'GetMseFeatureSwitch',
+ 'QueryBusinessLocations',
+ 'ListClusterConnectionTypes',
+ 'QuerySlbSpec',
+ 'UpdateClusterSpec',
+ 'RestartCluster',
+ 'RetryCluster',
+ 'UpgradeCluster',
+ ],
+ ],
+ [
+ 'id' => 365695,
+ 'title' => '命名空间',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateEngineNamespace',
+ 'DeleteEngineNamespace',
+ 'UpdateEngineNamespace',
+ 'GetEngineNamepace',
+ 'ListEngineNamespaces',
+ ],
+ ],
+ [
+ 'id' => 365701,
+ 'title' => 'Zookeeper数据节点',
+ 'type' => 'directory',
+ 'children' => [
+ 'ImportZookeeperData',
+ 'GetZookeeperDataImportUrl',
+ 'ExportZookeeperData',
+ 'ListExportZookeeperData',
+ 'CreateZnode',
+ 'DeleteZnode',
+ 'UpdateZnode',
+ 'ListZnodeChildren',
+ 'QueryZnodeDetail',
+ 'ListZkTrack',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'id' => 365712,
+ 'title' => '微服务治理中心',
+ 'type' => 'directory',
+ 'children' => [
+ [
+ 'id' => 365713,
+ 'title' => '流量防护',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListSentinelBlockFallbackDefinitions',
+ 'BindSentinelBlockFallbackDefinition',
+ 'ListIsolationRules',
+ 'CreateIsolationRule',
+ 'DeleteIsolationRules',
+ 'UpdateIsolationRule',
+ 'DeleteCircuitBreakerRules',
+ 'DeleteFlowRules',
+ 'UpdateFlowRule',
+ 'ListFlowRules',
+ 'CreateFlowRule',
+ 'CreateCircuitBreakerRule',
+ 'ListCircuitBreakerRules',
+ 'UpdateCircuitBreakerRule',
+ 'ListWebFlowRules',
+ 'CreateWebFlowRule',
+ 'DeleteWebFlowRules',
+ 'UpdateWebFlowRule',
+ ],
+ ],
+ [
+ 'id' => 365732,
+ 'title' => '服务鉴权',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListAuthPolicy',
+ 'UpdateAuthPolicy',
+ 'AddAuthPolicy',
+ 'RemoveAuthPolicy',
+ ],
+ ],
+ [
+ 'id' => 365737,
+ 'title' => '服务查询',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetServiceMethodPage',
+ 'GetServiceListPage',
+ 'GetServiceList',
+ ],
+ ],
+ [
+ 'id' => 365741,
+ 'title' => '全链路灰度',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateOrUpdateSwimmingLaneGroup',
+ 'DeleteSwimmingLaneGroup',
+ 'CreateOrUpdateSwimmingLane',
+ 'DeleteSwimmingLane',
+ 'QueryAllSwimmingLaneGroup',
+ 'QueryAllSwimmingLane',
+ 'GetTagsBySwimmingLaneGroupId',
+ 'QuerySwimmingLaneById',
+ 'ListAppBySwimmingLaneGroupTags',
+ 'ListAppBySwimmingLaneGroupTag',
+ ],
+ ],
+ [
+ 'id' => 365752,
+ 'title' => '无损上下线',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetLosslessRuleByApp',
+ 'ModifyLosslessRule',
+ 'FetchLosslessRuleList',
+ ],
+ ],
+ [
+ 'id' => 365756,
+ 'title' => '同可用区优先',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetLocalityRule',
+ 'UpdateLocalityRule',
+ ],
+ ],
+ [
+ 'id' => 365759,
+ 'title' => '应用治理',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetApplicationList',
+ 'CreateMseServiceApplication',
+ 'CreateApplication',
+ 'GetOverview',
+ 'RemoveApplication',
+ 'GetApplicationInstanceList',
+ ],
+ ],
+ [
+ 'id' => 365766,
+ 'title' => '运维中心',
+ 'type' => 'directory',
+ 'children' => [
+ [
+ 'id' => 365767,
+ 'title' => 'K8s集群管理',
+ 'type' => 'directory',
+ 'children' => [
+ 'QueryGovernanceKubernetesCluster',
+ 'ModifyGovernanceKubernetesCluster',
+ 'GetGovernanceKubernetesCluster',
+ ],
+ ],
+ [
+ 'id' => 365771,
+ 'title' => '微服务命名空间管理',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListNamespaces',
+ 'CreateNamespace',
+ 'DeleteNamespace',
+ 'QueryNamespace',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'id' => 365776,
+ 'title' => '标签路由',
+ 'type' => 'directory',
+ 'children' => [
+ 'ApplyTagPolicies',
+ 'ListApplicationsWithTagRules',
+ ],
+ ],
+ [
+ 'id' => 365779,
+ 'title' => '消息灰度',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetAppMessageQueueRoute',
+ 'UpdateMessageQueueRoute',
+ ],
+ ],
+ [
+ 'id' => 365782,
+ 'title' => 'Mock规则',
+ 'type' => 'directory',
+ 'children' => [
+ 'AddMockRule',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'id' => 365784,
+ 'title' => '云原生网关',
+ 'type' => 'directory',
+ 'children' => [
+ [
+ 'id' => 365785,
+ 'title' => '插件市场',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetPlugins',
+ 'GetPluginConfig',
+ 'CreatePluginConfig',
+ 'UpdatePluginConfig',
+ 'DeletePluginConfig',
+ ],
+ ],
+ [
+ 'id' => 365791,
+ 'title' => '域名证书',
+ 'type' => 'directory',
+ 'children' => [
+ 'AddSSLCert',
+ 'AddGatewayDomain',
+ 'DeleteGatewayDomain',
+ 'UpdateSSLCert',
+ 'UpdateGatewayDomain',
+ 'ListSSLCert',
+ 'ListGatewayDomain',
+ 'GetGatewayDomainDetail',
+ ],
+ ],
+ [
+ 'id' => 365800,
+ 'title' => '网关管理',
+ 'type' => 'directory',
+ 'children' => [
+ 'AddGateway',
+ 'ListGatewayZone',
+ 'AddGatewaySlb',
+ 'AddSecurityGroupRule',
+ 'DeleteGateway',
+ 'DeleteGatewaySlb',
+ 'DeleteSecurityGroupRule',
+ 'UpdateGatewayOption',
+ 'UpdateGatewayName',
+ 'QueryGatewayRegion',
+ 'QueryGatewayType',
+ 'GetGateway',
+ 'ListGateway',
+ 'ListGatewaySlb',
+ 'GetGatewayOption',
+ 'ListSecurityGroupRule',
+ 'ListSecurityGroup',
+ 'UpdateGatewaySpec',
+ 'SelectGatewaySlb',
+ ],
+ ],
+ [
+ 'id' => 365820,
+ 'title' => '服务管理',
+ 'type' => 'directory',
+ 'children' => [
+ 'AddServiceSource',
+ 'AddGatewayServiceVersion',
+ 'DeleteServiceSource',
+ 'DeleteGatewayServiceVersion',
+ 'DeleteGatewayService',
+ 'UpdateGatewayServiceTrafficPolicy',
+ 'UpdateGatewayServiceVersion',
+ 'ListServiceSource',
+ 'ListGatewayService',
+ 'GetMseSource',
+ 'GetKubernetesSource',
+ 'GetGatewayServiceDetail',
+ 'UpdateServiceSource',
+ 'ImportServices',
+ 'UpdateGatewayService',
+ 'PullServices',
+ 'UpdateGatewayServiceCheck',
+ ],
+ ],
+ [
+ 'id' => 365838,
+ 'title' => '安全能力',
+ 'type' => 'directory',
+ 'children' => [
+ 'UpdateGatewayRouteAuth',
+ 'ListGatewayAuthConsumerResource',
+ 'UpdateGatewayAuthConsumer',
+ 'ListGatewayRouteOnAuth',
+ 'ListGatewayAuthConsumer',
+ 'UpdateGatewayAuthConsumerResource',
+ 'UpdateGatewayAuthConsumerStatus',
+ 'AddGatewayAuthConsumer',
+ 'DeleteGatewayAuthConsumerResource',
+ 'UpdateGatewayAuthConsumerResourceStatus',
+ 'DeleteGatewayAuthConsumer',
+ 'GetGatewayAuthConsumerDetail',
+ 'AddBlackWhiteList',
+ 'UpdateBlackWhiteList',
+ 'GatewayBlackWhiteList',
+ 'DeleteBlackWhiteList',
+ 'GetBlackWhiteList',
+ 'AddGatewayAuth',
+ 'UpdateGatewayAuth',
+ 'GetGatewayAuthDetail',
+ 'ListGatewayAuth',
+ 'DeleteGatewayAuth',
+ 'AddAuthResource',
+ 'DeleteAuthResource',
+ ],
+ ],
+ [
+ 'id' => 365863,
+ 'title' => '路由配置',
+ 'type' => 'directory',
+ 'children' => [
+ 'AddGatewayRoute',
+ 'DeleteGatewayRoute',
+ 'UpdateGatewayRouteHTTPRewrite',
+ 'UpdateGatewayRoute',
+ 'UpdateGatewayRouteCORS',
+ 'UpdateGatewayRouteHeaderOp',
+ 'UpdateGatewayRouteTimeout',
+ 'UpdateGatewayRouteRetry',
+ 'GetGatewayRouteDetail',
+ 'ListGatewayRoute',
+ 'UpdateGatewayRouteWafStatus',
+ 'ApplyGatewayRoute',
+ 'OfflineGatewayRoute',
+ ],
+ ],
+ [
+ 'id' => 365877,
+ 'title' => '参数配置',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetGatewayConfig',
+ 'EnableProxyProtocol',
+ 'EnableHttp2',
+ 'PreserveHeaderFormat',
+ ],
+ ],
+ [
+ 'id' => 365882,
+ 'title' => '策略配置',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateGatewayFlowRule',
+ 'DeleteGatewayFlowRule',
+ 'UpdateGatewayFlowRule',
+ 'ListGatewayFlowRule',
+ 'CreateGatewayCircuitBreakerRule',
+ 'DeleteGatewayCircuitBreakerRule',
+ 'UpdateGatewayCircuitBreakerRule',
+ 'ListGatewayCircuitBreakerRule',
+ 'CreateGatewayIsolationRule',
+ 'DeleteGatewayIsolationRule',
+ 'UpdateGatewayIsolationRule',
+ 'ListGatewayIsolationRule',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'id' => 365895,
+ 'title' => '其他',
+ 'type' => 'directory',
+ 'children' => [
+ 'InitializeServiceLinkRole',
+ 'CloneSentinelRuleFromAhas',
+ 'ChangeResourceGroup',
+ 'UpdateNacosGrayConfig',
+ 'UpdateGatewayConfig',
+ 'CreateSentinelBlockFallbackDefinition',
+ 'CreateNacosMcpServer',
+ 'DeleteNacosMcpServer',
+ 'GetNacosMcpServer',
+ 'ListNacosMcpServers',
+ 'QueryNacosGrayConfig',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [
+ 'GatewayDomain' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'A short description of struct',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => 'Domain Id',
+ 'description' => 'Domain Id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '36',
+ ],
+ 'Name' => [
+ 'title' => 'Domain Name',
+ 'description' => 'Domain Name',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'Protocol' => [
+ 'title' => 'domainn的协议',
+ 'description' => 'domainn的协议',
+ 'type' => 'string',
+ 'example' => 'HTTPS',
+ ],
+ 'MustHttps' => [
+ 'title' => '是否强制跳转',
+ 'description' => '是否强制HTTPS',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'CertIdentifier' => [
+ 'title' => '使用的证书Id',
+ 'description' => '使用的证书Id',
+ 'type' => 'string',
+ 'example' => '595xx36-cn-hangzhou',
+ ],
+ 'GatewayId' => [
+ 'title' => '网关ID',
+ 'description' => '网关ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'GatewayUniqueId' => [
+ 'title' => '网关唯一标识',
+ 'description' => '网关唯一标识',
+ 'type' => 'string',
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491****',
+ ],
+ 'GmtCreate' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-07-31 10:16:46',
+ ],
+ 'GmtModified' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-08-11 15:28:47',
+ ],
+ 'GatewayName' => [
+ 'title' => '网关名称',
+ 'description' => '网关名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'GatewayOption' => [
+ 'title' => 'A short description of struct',
+ 'description' => '网关选项描述。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TraceDetails' => [
+ 'title' => 'xtrace config option',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TraceEnabled' => [
+ 'title' => 'trace是否开启',
+ 'description' => '是否开通XTrace。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'false' => '关闭xtrace',
+ 'true' => '开启xtrace',
+ ],
+ 'example' => 'true',
+ ],
+ 'Sample' => [
+ 'title' => 'trace采样率,默认为10',
+ 'description' => 'XTrace的采样率。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'enumValueTitles' => [],
+ 'example' => '10',
+ 'default' => '10',
+ ],
+ 'TraceType' => [
+ 'title' => 'trace类型,可选XTRACE和SKYWALKING',
+ 'description' => 'trace类型,可选XTRACE和SKYWALKING',
+ 'type' => 'string',
+ 'example' => 'XTRACE',
+ 'default' => 'XTRACE',
+ ],
+ 'ServiceId' => [
+ 'title' => 'SkyWalking服务Id,trace类型为SKYWALKING时必填',
+ 'description' => 'SkyWalking服务Id,trace类型为SKYWALKING时必填',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10458',
+ ],
+ 'ServicePort' => [
+ 'title' => 'SkyWalking服务端口,trace类型为SKYWALKING时必填',
+ 'description' => 'SkyWalking服务端口,trace类型为SKYWALKING时必填',
+ 'type' => 'string',
+ 'example' => '80',
+ ],
+ ],
+ ],
+ 'LogConfigDetails' => [
+ 'title' => '日志配置详情',
+ 'description' => '日志投递服务描述。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LogEnabled' => [
+ 'title' => '是否开启日志投递',
+ 'description' => '是否开启日志投递SLS服务。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'true' => '开启日志投递',
+ 'false' => '关闭日志投递',
+ ],
+ 'example' => 'true',
+ ],
+ 'ProjectName' => [
+ 'title' => '投递的目标project',
+ 'description' => '日志投递的目的。',
+ 'type' => 'string',
+ 'example' => 'project',
+ ],
+ 'LogStoreName' => [
+ 'title' => '投递的目标logstore',
+ 'description' => '日志存储名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ ],
+ ],
+ 'EnableHardwareAcceleration' => [
+ 'title' => '是否开启硬件加速',
+ 'description' => '是否开启硬件加速',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'DisableHttp2Alpn' => [
+ 'title' => '是否禁用http',
+ 'description' => '是否关闭HTTP 2.0协议',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'EnableWaf' => [
+ 'title' => '是否开启waf',
+ 'description' => '是否开启waf',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'GatewayService' => [
+ 'title' => 'A short description of struct',
+ 'description' => '网关服务描述',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => '服务id',
+ 'description' => '服务id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Name' => [
+ 'title' => '服务名',
+ 'description' => '服务名',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'SourceType' => [
+ 'title' => '服务来源',
+ 'description' => '服务来源',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'GatewayTrafficPolicy' => [
+ 'title' => '服务的策略',
+ 'description' => '服务的策略',
+ '$ref' => '#/components/schemas/TrafficPolicy',
+ ],
+ 'GatewayUniqueId' => [
+ 'title' => '网关uniqueId',
+ 'description' => '网关实例id',
+ 'type' => 'string',
+ 'example' => 'gw-913a49bab6c5461187a3305fb8da****',
+ ],
+ 'MetaInfo' => [
+ 'title' => '元信息',
+ 'description' => '服务地址信息(当服务来源为DNS或固定地址时)',
+ 'type' => 'string',
+ 'example' => '[\\"192.168.0.xxx:80\\"]',
+ ],
+ 'Namespace' => [
+ 'title' => '服务所属namesapce',
+ 'description' => '服务所属namesapce',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'GroupName' => [
+ 'title' => '服务所属group',
+ 'description' => '服务所属group',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ ],
+ 'TrafficPolicy' => [
+ 'title' => 'A short description of struct',
+ 'description' => '服务流量管理。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TlsSetting' => [
+ 'title' => 'tls相关配置',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TlsMode' => [
+ 'title' => 'tls模式。为枚举类,可为NONE, SIMPLE, MUITUAL',
+ 'description' => '到后端服务的TLS模式。'."\n"
+ .'- DISABLE(明文,不使用TLS)。'."\n"
+ .'- SIMPLE(开启TLS)。'."\n"
+ .'- MUTUAL(双向TLS)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [],
+ 'example' => 'SIMPLE',
+ ],
+ 'CertId' => [
+ 'title' => '使用的证书id,仅当为mutual时需要填写',
+ 'description' => '在云盾托管的证书ID。',
+ 'type' => 'string',
+ 'example' => '6456988-cn-hangzhou',
+ ],
+ 'CaCertContent' => [
+ 'title' => 'ca证书内容',
+ 'description' => '信任的CA证书链,在双向TLS中,如果后端证书为私有CA签发,需要将其CA证书添加到该信任链中。',
+ 'type' => 'string',
+ 'example' => '-----BEGIN CERTIFICATE----- MIIH0zCCBbugAwIBAgIIXsO3pkN/pOAwDQYJKoZIhvcNAQEFBQAwQjESMBAGA1UE AwwJQUNDVlJBSVoxMRAwDgYDVQQLDAdQS0lBQ0NWMQ0wCwYDVQQKDARBQ0NWMQsw CQYDVQQGEwJFUzAeFw0xMTA1MDUwOTM3MzdaFw0zMDEyMzEwOTM3MzdaMEIxEjAQ BgNVBAMMCUFDQ1ZSQUlaMTEQMA4GA1UECwwHUEtJQUNDVjENMAsGA1UECgwEQUND VjELMAkGA1UEBhMCRVMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCb qau/YUqXry+XZpp0X9DZlv3P4uRm7x8fRzPCRKPfmt4ftVTdFXxpNRFvu8gMjmoY HtiP2Ra8EEg2XPBjs5BaXCQ316PWywlxufEBcoSwfdtNgM3802/J+Nq2DoLSRYWo G2ioPej0RGy9ocLLA76MPhMAhN9KSMDjIgro6TenGEyxCQ0jVn8ETdkXhBilyNpA lHPrzg5XPAOBOp0KoVdDaaxXbXmQeOW1tDvYvEyNKKGno6e6Ak4l0Squ7a4DIrhr IA8wKFSVf+DuzgpmndFALW4ir50awQUZ0m/A8p/4e7MCQvtQqR0tkw8jq8bBD5L/ 0KIV9VMJcRz/RROE5iZe+OCIHAr8Fraocwa48GOEAqDGWuzndN9wrqODJerWx5eH k6fGioozl2A3ED6XPm4pFdahD9GILBKfb6qkxkLrQaLjlUPTAYVtjrs78yM2x/47 4KElB0iryYl0/wiPgL/AlmXz7uxLaL2diMMxs0Dx6M/2OLuc5NF/1OVYm3z61PMO m3WR5LpSLhl+0fXNWhn8ugb2+1KoS5kE3fj5tItQo05iifCHJPqDQsGH+tUtKSpa cXpkatcnYGMN285J9Y0fkIkyF/hzQ7jSWpOGYdbhdQrqeWZ2iE9x6wQl1gpaepPl uUsXQA+xtrn13k/c4LOsOxFwYIRKQ26ZIMApcQrAZQIDAQABo4ICyzCCAscwfQYI KwYBBQUHAQEEcTBvMEwGCCsGAQUFBzAChkBodHRwOi8vd3d3LmFjY3YuZXMvZmls ZWFkbWluL0FyY2hpdm9zL2NlcnRpZmljYWRvcy9yYWl6YWNjdjEuY3J0MB8GCCsG AQUFBzABhhNodHRwOi8vb2NzcC5hY2N2LmVzMB0GA1UdDgQWBBTSh7Tj3zcnk1X2 VuqB5TbMjB4/vTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNKHtOPfNyeT VfZW6oHlNsyMHj+9MIIBcwYDVR0gBIIBajCCAWYwggFiBgRVHSAAMIIBWDCCASIG CCsGAQUFBwICMIIBFB6CARAAQQB1AHQAbwByAGkAZABhAGQAIABkAGUAIABDAGUA cgB0AGkAZgBpAGMAYQBjAGkA8wBuACAAUgBhAO0AegAgAGQAZQAgAGwAYQAgAEEA QwBDAFYAIAAoAEEAZwBlAG4AYwBpAGEAIABkAGUAIABUAGUAYwBuAG8AbABvAGcA 7QBhACAAeQAgAEMAZQByAHQAaQBmAGkAYwBhAGMAaQDzAG4AIABFAGwAZQBjAHQA cgDzAG4AaQBjAGEALAAgAEMASQBGACAAUQA0ADYAMAAxADEANQA2AEUAKQAuACAA QwBQAFMAIABlAG4AIABoAHQAdABwADoALwAvAHcAdwB3AC4AYQBjAGMAdgAuAGUA czAwBggrBgEFBQcCARYkaHR0cDovL3d3dy5hY2N2LmVzL2xlZ2lzbGFjaW9uX2Mu aHRtMFUGA1UdHwROMEwwSqBIoEaGRGh0dHA6Ly93d3cuYWNjdi5lcy9maWxlYWRt aW4vQXJjaGl2b3MvY2VydGlmaWNhZG9zL3JhaXphY2N2MV9kZXIuY3JsMA4GA1Ud DwEB/wQEAwIBBjAXBgNVHREEEDAOgQxhY2N2QGFjY3YuZXMwDQYJKoZIhvcNAQEF BQADggIBAJcxAp/n/UNnSEQU5CmH7UwoZtCPNdpNYbdKl02125DgBS4OxnnQ8pdp D70ER9m+27Up2pvZrqmZ1dM8MJP1jaGo/AaNRPTKFpV8M9xii6g3+CfYCS0b78gU JyCpZET/LtZ1qmxNYEAZSUNUY9rizLpm5U9EelvZaoErQNV/+QEnWCzI7UiRfD+m AM/EKXMRNt6GGT6d7hmKG9Ww7Y49nCrADdg9ZuM8Db3VlFzi4qc1GwQA9j9ajepD vV+JHanBsMyZ4k0ACtrJJ1vnE5Bc5PUzolVt3OAJTS+xJlsndQAJxGJ3KQhfnlms tn6tn1QwIgPBHnFk/vk4CpYY3QIUrCPLBhwepH2NDd4nQeit2hW3sCPdK6jT2iWH 7ehVRE2I9DZ+hJp4rPcOVkkO1jMl1oRQQmwgEh0q1b688nCBpHBgvgW1m54ERL5h I6zppSSMEYCUWqKiuUnSwdzRp+0xESyeGabu4VXhwOrPDYTkF7eifKXeVSUG7szA h1xA2syVP1XgNce4hL60Xc16gwFy7ofmXx2utYXGJt/mwZrpHgJHnyqobalbz+xF d3+YJ5oyXSrjhO7FmGYvliAd3djDJ9ew+f7Zfc3Qn48LFFhRny+Lwzgt3uiP1o2H pPVWQxaZLPSkVrQ0uGE3ycJYgBugl6H8WY3pEfbRD0tVNEYqi4Y7 -----END CERTIFICATE-----',
+ ],
+ 'Sni' => [
+ 'title' => '到后端服务些带',
+ 'description' => '建立TLS链接时使用的SNI。',
+ 'type' => 'string',
+ 'example' => 'www.aliyun.com',
+ ],
+ ],
+ ],
+ 'LoadBalancerSettings' => [
+ 'title' => '负载均衡相关配置',
+ 'description' => '负载均衡相关配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LoadbalancerType' => [
+ 'title' => '负载均衡类型,枚举类可为ROUND_ROBIN, LEAST_CONN,RANDOM, CONSISTENT_HASH',
+ 'description' => '负载均衡类型:'."\n"
+ ."\n"
+ .'- ROUND_ROBIN:轮询。'."\n"
+ .'- LEAST_CONN:最少连接数。'."\n"
+ .'- RANDOM:随机。'."\n"
+ .'- CONSISTENT_HASH:一致性Hash。',
+ 'type' => 'string',
+ 'enumValueTitles' => [],
+ 'example' => 'RANDOM',
+ ],
+ 'ConsistentHashLBConfig' => [
+ 'title' => '一致性hash相关配置',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ParameterName' => [
+ 'title' => '使用根据header和参数路由时生效',
+ 'description' => '使用一致性Hash时的基于参数,如果是基于参数则为URL参数名,如果是基于Header则是Header名。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'HttpCookie' => [
+ 'title' => '使用cookie时配置',
+ 'description' => '仅当ConsistentHashLBType需要填写Cookie相关的详细配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => 'cookie名',
+ 'description' => 'Cookie名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Path' => [
+ 'title' => 'cookie path',
+ 'description' => 'Cookie所在Path路径。',
+ 'type' => 'string',
+ 'example' => '/path',
+ ],
+ 'TTL' => [
+ 'title' => 'cookie生命周期',
+ 'description' => 'Cookie设置的生命周期。',
+ 'type' => 'string',
+ 'example' => '10s',
+ ],
+ ],
+ ],
+ 'ConsistentHashLBType' => [
+ 'title' => 'HEADER, COOKIE, SOURCE_IP, QUERY_PARAMETER',
+ 'description' => '一致性Hash基于的参数类型。'."\n"
+ ."\n"
+ .'- QUERY_PARAMETER:请求参数。'."\n"
+ .'- COOKIE:Cookie。'."\n"
+ .'- SOURCE_IP:源IP。'."\n"
+ .'- HEADER:请求头。',
+ 'type' => 'string',
+ 'enumValueTitles' => [],
+ 'example' => 'QUERY_PARAMETER',
+ ],
+ ],
+ ],
+ 'WarmupDuration' => [
+ 'title' => '预热时间(单位/s)',
+ 'description' => '预热时间(单位/s)。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '5',
+ ],
+ ],
+ 'enumValueTitles' => [],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'apis' => [
+ 'ListTagResources' => [
+ 'summary' => '查标签接口。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域',
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '下一个查询开始Token',
+ 'description' => '下一个查询开始Token。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AAAAAV3MpHK1AP0pfERHZN5pu6kywps2Ezza3n8HAAzCCqsi',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型:'."\n"
+ ."\n"
+ .'- CLUSTER注册配置中心。'."\n"
+ ."\n"
+ .'- GATEWAY云原生网关。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CLUSTER',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => '资源ID,最多 50个子项',
+ 'description' => '资源ID,最多 50个子项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-7pp2st29t16',
+ ],
+ 'required' => false,
+ 'maxItems' => 51,
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => '标签列表,最多包含20个子项',
+ 'description' => '标签列表,最多包含20个子项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签组合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => '标签键',
+ 'description' => '标签键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'env',
+ ],
+ 'Value' => [
+ 'title' => '标签值',
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prd',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'NextToken' => [
+ 'title' => '下一个查询开始Token,NextToken为空说明没有下一个',
+ 'description' => '下一个查询开始Token,NextToken为空说明没有下一个。',
+ 'type' => 'string',
+ 'example' => 'AAAAAV3MpHK1AP0pfERHZN5pu6ng3BeUyo2zbY5wgL1DBa2T',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '92ED7C9C-84A2-595F-87FE-354F84C0F739',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'TagResources' => [
+ 'type' => 'object',
+ 'itemNode' => true,
+ 'properties' => [
+ 'TagResource' => [
+ 'title' => '资源列表',
+ 'description' => '资源列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '由资源及其标签组成的集合,包含了资源ID、资源类型和标签键值等信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceId' => [
+ 'title' => '资源ID',
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-7pp2st29t16',
+ ],
+ 'ResourceType' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'example' => 'cluster',
+ ],
+ 'TagValue' => [
+ 'title' => '标签值',
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'example' => 'prd',
+ ],
+ 'TagKey' => [
+ 'title' => '标签键',
+ 'description' => '标签键。',
+ 'type' => 'string',
+ 'example' => 'env',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"AAAAAV3MpHK1AP0pfERHZN5pu6ng3BeUyo2zbY5wgL1DBa2T\\",\\n \\"RequestId\\": \\"92ED7C9C-84A2-595F-87FE-354F84C0F739\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true,\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"ResourceId\\": \\"mse-cn-7pp2st29t16\\",\\n \\"ResourceType\\": \\"cluster\\",\\n \\"TagValue\\": \\"prd\\",\\n \\"TagKey\\": \\"env\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取标签列表',
+ ],
+ 'UntagResources' => [
+ 'summary' => '删标签接口。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域',
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型:'."\n"
+ ."\n"
+ .'- CLUSTER注册配置中心。'."\n"
+ ."\n"
+ .'- GATEWAY云原生网关。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CLUSTER',
+ ],
+ ],
+ [
+ 'name' => 'All',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false',
+ 'description' => '是否全部删除,只针对TagKey.N为空时有效。 '."\n"
+ .'取值范围:'."\n"
+ .'- true'."\n"
+ .'- false'."\n"
+ ."\n"
+ .'默认取值为false。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => '资源ID,最多50个子项',
+ 'description' => '资源ID,最多50个子项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例ID。'."\n"
+ .'>表示传入第几个实例ID。例如: '."\n"
+ .'- **ResourceId.0**表示传入第一个实例ID。'."\n"
+ .' - **ResourceId.1**表示传入第二个实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-7pp2st29t16',
+ ],
+ 'required' => true,
+ 'maxItems' => 51,
+ ],
+ ],
+ [
+ 'name' => 'TagKey',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => '标签键,最多20个子项',
+ 'description' => '标签键,最多20个子项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源的标签键。N的取值范围:1~20。一旦传入该值,则不允许为空字符串。最多支持128个字符,不能以aliyun和acs:开头,不能包含***http://*** 或者 ***https://***。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'env',
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '58E06A0A-BD2C-47A0-99C2-B100F353****',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"58E06A0A-BD2C-47A0-99C2-B100F353****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '删除标签',
+ ],
+ 'TagResources' => [
+ 'summary' => '为指定的资源打上标签。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '143129',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseHJJ9Z1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域',
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型:'."\n"
+ ."\n"
+ .'- CLUSTER 注册配置中心。'."\n"
+ .'- GATEWAY 云原生网关。'."\n"
+ .'- GOVERNANCEAPPLICATION 微服务治理应用',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'CLUSTER、GATEWAY、GOVERNANCEAPPLICATION',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '资源ID。'."\n"
+ ."\n"
+ .'- *注册配置中心*:实例ID'."\n"
+ .'- *云原生网关*:网关唯一ID'."\n"
+ .'- *微服务治理应用*:微服务治理应用AppID(注意不是LicenseKey)'."\n"
+ ."\n"
+ .'>表示传入第几个实例ID。例如: '."\n"
+ .'- **ResourceId.0**表示传入第一个实例ID。'."\n"
+ .' - **ResourceId.1**表示传入第二个实例ID。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-7pp2st29t16'."\n"
+ .'hkhon1****@0932f4959f8****',
+ ],
+ 'required' => false,
+ 'maxItems' => 51,
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => '标签列表,最多包含20个子项',
+ 'description' => '标签列表,最多包含20个子项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签信息集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => '标签键',
+ 'description' => '资源的标签键。N的取值范围:1~20。一旦传入该值,则不允许为空字符串。最多支持128个字符,不能以aliyun和acs:开头,不能包含http://或者https://。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'env',
+ ],
+ 'Value' => [
+ 'title' => '标签值',
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prd',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'E0A79810-9396-521C-A09D-E757B3E2BAF4',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E0A79810-9396-521C-A09D-E757B3E2BAF4\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '添加标签',
+ ],
+ 'UpdateMigrationTask' => [
+ 'summary' => '调用接口更新迁移上云任务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '155125',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKDDXNL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ClusterType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群类型。'."\n"
+ ."\n"
+ .'- Nacos-Ans'."\n"
+ .'- ZooKeeper'."\n"
+ .'- Eureka',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Nacos-Ans',
+ ],
+ ],
+ [
+ 'name' => 'OriginInstanceAddress',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '源实例节点地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '192.168.1.1:8848',
+ ],
+ ],
+ [
+ 'name' => 'OriginInstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '源实例名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '来源集群',
+ ],
+ ],
+ [
+ 'name' => 'OriginInstanceNamespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间列表,当来源集群是Nacos时选填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'namesapceId1,namesapceId2',
+ ],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-ud82*****',
+ ],
+ ],
+ [
+ 'name' => 'TargetClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标实例名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '目标集群',
+ ],
+ ],
+ [
+ 'name' => 'TargetClusterUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标实例Url。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-66*****-nacos-ans.mse.aliyuncs.com:8848',
+ ],
+ ],
+ [
+ 'name' => 'ProjectDesc',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '这是一段描述',
+ ],
+ ],
+ [
+ 'name' => 'SyncType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '同步类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'All' => 'All',
+ 'Config' => 'Config',
+ 'Service' => 'Service',
+ ],
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '任务ID。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'UserId' => [
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '183876217*****',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型。'."\n"
+ ."\n"
+ .'- Nacos-Ans'."\n"
+ .'- ZooKeeper'."\n"
+ .'- Eureka',
+ 'type' => 'string',
+ 'example' => 'Nacos-Ans',
+ ],
+ 'OriginInstanceAddress' => [
+ 'description' => '源实例节点地址。',
+ 'type' => 'string',
+ 'example' => '192.168.100.2:2181',
+ ],
+ 'OriginInstanceName' => [
+ 'description' => '源实例名称。',
+ 'type' => 'string',
+ 'example' => 'src',
+ ],
+ 'OriginInstanceNamespace' => [
+ 'description' => '命名空间列表,当来源集群是Nacos时选填。',
+ 'type' => 'string',
+ 'example' => 'fsdfsdfdsf',
+ ],
+ 'TargetInstanceId' => [
+ 'description' => '目标实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-zvp2u*****',
+ ],
+ 'TargetClusterName' => [
+ 'description' => '目标实例名称。',
+ 'type' => 'string',
+ 'example' => 'multiple-nacos',
+ ],
+ 'TargetClusterUrl' => [
+ 'description' => '目标实例Url。',
+ 'type' => 'string',
+ 'example' => 'mse-0b*****-nacos-ans.mse.aliyuncs.com:8848',
+ ],
+ 'ProjectDesc' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => '1232345',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改日期。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'SyncType' => [
+ 'description' => '同步类型',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AF21683A-29C7-4853-AC0F-B5ADEE4****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Data\\": {\\n \\"Id\\": \\"1\\",\\n \\"UserId\\": \\"183876217*****\\",\\n \\"ClusterType\\": \\"Nacos-Ans\\",\\n \\"OriginInstanceAddress\\": \\"192.168.100.2:2181\\",\\n \\"OriginInstanceName\\": \\"src\\",\\n \\"OriginInstanceNamespace\\": \\"fsdfsdfdsf\\",\\n \\"TargetInstanceId\\": \\"mse-cn-zvp2u*****\\",\\n \\"TargetClusterName\\": \\"multiple-nacos\\",\\n \\"TargetClusterUrl\\": \\"mse-0b*****-nacos-ans.mse.aliyuncs.com:8848\\",\\n \\"ProjectDesc\\": \\"1232345\\",\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"SyncType\\": \\"All\\"\\n },\\n \\"RequestId\\": \\"AF21683A-29C7-4853-AC0F-B5ADEE4****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新迁移上云任务',
+ ],
+ 'AddMigrationTask' => [
+ 'summary' => '调用接口添加迁移任务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '155122',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKDDXNL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ClusterType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群类型。'."\n"
+ ."\n"
+ .'- Nacos-Ans'."\n"
+ .'- ZooKeeper'."\n"
+ .'- Eureka',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Nacos-Ans',
+ ],
+ ],
+ [
+ 'name' => 'OriginInstanceAddress',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '源实例节点地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '192.168.1.1:8848',
+ ],
+ ],
+ [
+ 'name' => 'OriginInstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '源实例名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '来源集群',
+ ],
+ ],
+ [
+ 'name' => 'OriginInstanceNamespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间列表,当来源集群是Nacos时选填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'namesapceId1,namesapceId2',
+ ],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-ud82*****',
+ ],
+ ],
+ [
+ 'name' => 'TargetClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标实例名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '目标集群',
+ ],
+ ],
+ [
+ 'name' => 'TargetClusterUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标实例Url。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-66*****-nacos-ans.mse.aliyuncs.com:8848',
+ ],
+ ],
+ [
+ 'name' => 'ProjectDesc',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '这是一段描述',
+ ],
+ ],
+ [
+ 'name' => 'SyncType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '同步类型,配置同步,服务同步,或者全部同步',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'All' => 'All',
+ 'Config' => 'Config',
+ 'Service' => 'Service',
+ ],
+ 'example' => 'Service',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '任务ID。',
+ 'type' => 'string',
+ 'example' => '12',
+ ],
+ 'UserId' => [
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '183876217*****',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型。'."\n"
+ ."\n"
+ .'- Nacos-Ans'."\n"
+ .'- ZooKeeper'."\n"
+ .'- Eureka',
+ 'type' => 'string',
+ 'example' => 'Nacos-Ans',
+ ],
+ 'OriginInstanceAddress' => [
+ 'description' => '源实例节点地址。',
+ 'type' => 'string',
+ 'example' => '192.168.1.1:8848'."\n",
+ ],
+ 'OriginInstanceName' => [
+ 'description' => '源实例名称。',
+ 'type' => 'string',
+ 'example' => '来源集群',
+ ],
+ 'OriginInstanceNamespace' => [
+ 'description' => '命名空间列表,当来源集群是Nacos时选填。',
+ 'type' => 'string',
+ 'example' => 'namesapceId1,namesapceId2',
+ ],
+ 'TargetInstanceId' => [
+ 'description' => '目标实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-7pp2w*****',
+ ],
+ 'TargetClusterName' => [
+ 'description' => '目标实例名称。',
+ 'type' => 'string',
+ 'example' => '目标集群',
+ ],
+ 'TargetClusterUrl' => [
+ 'description' => '目标实例Url。',
+ 'type' => 'string',
+ 'example' => 'mse-94d****-nacos-ans.mse.aliyuncs.com:8848',
+ ],
+ 'ProjectDesc' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => 'testsdfsdfsd',
+ ],
+ 'SyncType' => [
+ 'description' => '同步类型',
+ 'type' => 'string',
+ 'example' => 'Service',
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7466566F-F30F-4A29-965D-3E0AF21D****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => 'The request is processed successfully.',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Id\\": \\"12\\",\\n \\"UserId\\": \\"183876217*****\\",\\n \\"ClusterType\\": \\"Nacos-Ans\\",\\n \\"OriginInstanceAddress\\": \\"192.168.1.1:8848\\\\n\\",\\n \\"OriginInstanceName\\": \\"来源集群\\",\\n \\"OriginInstanceNamespace\\": \\"namesapceId1,namesapceId2\\",\\n \\"TargetInstanceId\\": \\"mse-cn-7pp2w*****\\",\\n \\"TargetClusterName\\": \\"目标集群\\",\\n \\"TargetClusterUrl\\": \\"mse-94d****-nacos-ans.mse.aliyuncs.com:8848\\",\\n \\"ProjectDesc\\": \\"testsdfsdfsd\\",\\n \\"SyncType\\": \\"Service\\"\\n },\\n \\"RequestId\\": \\"7466566F-F30F-4A29-965D-3E0AF21D****\\",\\n \\"Message\\": \\"The request is processed successfully.\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '添加迁移上云任务',
+ ],
+ 'ListMigrationTask' => [
+ 'summary' => '调用接口查询迁移上云任务。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '155119',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKDDXNL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'OriginInstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '源实例名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'whdc',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '数组结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'UserId' => [
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '2',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型。'."\n"
+ ."\n"
+ .'- Nacos-Ans'."\n"
+ .'- ZooKeeper'."\n"
+ .'- Eureka',
+ 'type' => 'string',
+ 'example' => 'Nacos-Ans',
+ ],
+ 'OriginInstanceAddress' => [
+ 'description' => '源实例节点地址。',
+ 'type' => 'string',
+ 'example' => '192.168.1.1:8848',
+ ],
+ 'OriginInstanceName' => [
+ 'description' => '源实例名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'OriginInstanceNamespace' => [
+ 'description' => '命名空间列表,当来源集群是Nacos时选填。',
+ 'type' => 'string',
+ 'example' => 'fsdfsdfdsf',
+ ],
+ 'TargetInstanceId' => [
+ 'description' => '目标实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-zv*****',
+ ],
+ 'TargetClusterName' => [
+ 'description' => '目标实例名称。',
+ 'type' => 'string',
+ 'example' => 'multiple-nacos',
+ ],
+ 'TargetClusterUrl' => [
+ 'description' => '目标实例Url。',
+ 'type' => 'string',
+ 'example' => 'mse-f1******-nacos-ans.mse.aliyuncs.com:8848',
+ ],
+ 'ProjectDesc' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-12-30T06:41:52.000+0000',
+ ],
+ 'SyncType' => [
+ 'description' => '同步类型',
+ 'type' => 'string',
+ 'example' => 'Service',
+ ],
+ ],
+ ],
+ ],
+ 'PageSize' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'description' => '总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '451EBE59-5F33-5B15-83C1-78593B9*****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Data\\": [\\n {\\n \\"Id\\": 1,\\n \\"UserId\\": \\"2\\",\\n \\"ClusterType\\": \\"Nacos-Ans\\",\\n \\"OriginInstanceAddress\\": \\"192.168.1.1:8848\\",\\n \\"OriginInstanceName\\": \\"test\\",\\n \\"OriginInstanceNamespace\\": \\"fsdfsdfdsf\\",\\n \\"TargetInstanceId\\": \\"mse-cn-zv*****\\",\\n \\"TargetClusterName\\": \\"multiple-nacos\\",\\n \\"TargetClusterUrl\\": \\"mse-f1******-nacos-ans.mse.aliyuncs.com:8848\\",\\n \\"ProjectDesc\\": \\"test\\",\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2021-12-30T06:41:52.000+0000\\",\\n \\"SyncType\\": \\"Service\\"\\n }\\n ],\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"451EBE59-5F33-5B15-83C1-78593B9*****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询迁移上云任务',
+ ],
+ 'DeleteMigrationTask' => [
+ 'summary' => '调用接口删除迁移上云任务。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '删除结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8BD1E58D-0755-42AC-A599-E6B55112****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Data\\": true,\\n \\"RequestId\\": \\"8BD1E58D-0755-42AC-A599-E6B55112****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '删除迁移上云任务',
+ ],
+ 'PutClusterHealthCheckTask' => [
+ 'summary' => '对当前集群发起一次风险评估的检查任务。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-2r42o83h506',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5B170A0D-2C5D-4CF8-B808-03966B86****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因,例如:TaskId not found。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '执行结果信息。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5B170A0D-2C5D-4CF8-B808-03966B86****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '发起风险评估检查任务',
+ ],
+ 'OrderClusterHealthCheckRiskNotice' => [
+ 'summary' => '是否订阅风险项通知功能。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '150983',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseZDUZ1K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'RiskCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '风险编码。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '30010010001',
+ ],
+ ],
+ [
+ 'name' => 'Mute',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否禁用此风险项通知功能。'."\n"
+ ."\n"
+ .'- true 禁用风险项通知'."\n"
+ .'- false 开启风险项通知',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'NoticeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '预留参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'null',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型。'."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AF21683A-29C7-4853-AC0F-B5ADEE4D****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因,例如:TaskId not found。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。'."\n",
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '是否订阅成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AF21683A-29C7-4853-AC0F-B5ADEE4D****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '订阅风险项通知',
+ ],
+ 'ListClusterHealthCheckTask' => [
+ 'summary' => '获取历史风险评估任务列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '150980',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseZDUZ1K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-7pp2o4wfx01',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询第几页',
+ 'description' => '查询第几页',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页展示条数',
+ 'description' => '每页展示条数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<PageResult<ClusterHealthCheckTaskModel>>',
+ 'description' => 'RestResult<PageResult<ClusterHealthCheckTaskModel>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'Code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。取值说明如下:'."\n"
+ ."\n"
+ .'- 请求成功:不返回**ErrorCode**字段。'."\n"
+ .'- 请求失败:返回**ErrorCode**字段。具体信息,请参见本文的**错误码**目录。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。'."\n",
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'title' => '实例列表的页码',
+ 'description' => '列表的页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalSize' => [
+ 'title' => '查询到的实例总数',
+ 'description' => '查询到的总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '9',
+ ],
+ 'PageSize' => [
+ 'title' => '输入时设置的每页行数',
+ 'description' => '输入时设置的每页行数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '风险评估任务列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '风险评估任务。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Score' => [
+ 'description' => '总得分。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '60',
+ ],
+ 'TotalItem' => [
+ 'description' => '总检查项数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalRisk' => [
+ 'description' => '总风险项数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse_ingresspost-cn-0jbvrcex****',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型。',
+ 'type' => 'string',
+ 'example' => 'Nacos-Ans',
+ ],
+ 'Type' => [
+ 'description' => '冗余字段。',
+ 'type' => 'string',
+ 'example' => 'null'."\n",
+ ],
+ 'Status' => [
+ 'description' => '任务状态。',
+ 'type' => 'string',
+ 'example' => 'FINISH',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '集群归属用户ID。',
+ 'type' => 'string',
+ 'example' => '123456',
+ ],
+ 'Spec' => [
+ 'description' => '规格。',
+ 'type' => 'string',
+ 'example' => 'MSE_SC_2_4_200_c',
+ ],
+ 'Replica' => [
+ 'description' => '集群节点数量。',
+ 'type' => 'string',
+ 'example' => '3',
+ ],
+ 'VersionCode' => [
+ 'description' => '版本号。',
+ 'type' => 'string',
+ 'example' => 'NACOS_ANS_1_2_1_3',
+ ],
+ 'AppVersion' => [
+ 'description' => '完整版本号。',
+ 'type' => 'string',
+ 'example' => '1.2.1',
+ ],
+ 'ImageVersion' => [
+ 'description' => '冗余字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'CreateTime' => [
+ 'description' => '任务创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-06-20T06:51:46Z',
+ ],
+ 'UpdateTime' => [
+ 'description' => '最后更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-11-12 15:07:55',
+ ],
+ 'RiskList' => [
+ 'description' => '风险项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '风险项信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3426',
+ ],
+ 'TaskId' => [
+ 'description' => '关联的父任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'RiskName' => [
+ 'description' => '风险名称。',
+ 'type' => 'string',
+ 'example' => '引擎版本过低',
+ ],
+ 'RiskCode' => [
+ 'description' => '风险编码。',
+ 'type' => 'string',
+ 'example' => '22020010001',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '集群归属用户ID。',
+ 'type' => 'string',
+ 'example' => '123456',
+ ],
+ 'Type' => [
+ 'description' => '冗余字段。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => 'null',
+ ],
+ 'Values' => [
+ 'description' => '冗余字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'Module' => [
+ 'description' => '冗余字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'RiskType' => [
+ 'description' => '风险类型。',
+ 'type' => 'string',
+ 'example' => '版本风险',
+ ],
+ 'RiskLevel' => [
+ 'title' => 'HIGH, MID, LOW, NONE',
+ 'description' => '风险等级,取值:'."\n"
+ .'- HIGH 高风险'."\n"
+ .'- MID 中风险'."\n"
+ .'- LOW 低风险',
+ 'type' => 'string',
+ 'example' => 'MID',
+ ],
+ 'Suggestion' => [
+ 'description' => '建议。',
+ 'type' => 'string',
+ 'example' => '{\\"desc\\":\\"请尽快升级至最新版本\\",\\"links\\":[{\\"type\\":\\"upgrade\\",\\"desc\\":\\"点击升级\\"}]}',
+ ],
+ 'Situation' => [
+ 'description' => '现状。',
+ 'type' => 'string',
+ 'example' => '{\\"desc\\":\\"当前引擎版本过低,有大量功能缺失\\",\\"links\\":[{\\"type\\":\\"url\\",\\"value\\":\\"https://xxxx"\\",\\"desc\\":\\"版本说明\\"}]}',
+ ],
+ 'Description' => [
+ 'description' => '描述说明。',
+ 'type' => 'string',
+ 'example' => '{\\"desc\\":\\"引擎版本过低,有大量功能缺失,请尽快升级至最新版本!\\"}',
+ ],
+ 'Mute' => [
+ 'description' => '是否禁用此风险项通知功能。'."\n"
+ ."\n"
+ .'- true 禁用风险项通知'."\n"
+ .'- false 开启风险项通知',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'NoticeFeature' => [
+ 'description' => '冗余字段。',
+ 'type' => 'boolean',
+ 'example' => 'null',
+ ],
+ 'RiskNameEn' => [
+ 'description' => '风险英文名',
+ 'type' => 'string',
+ 'example' => 'Low engine version',
+ ],
+ 'SuggestionEn' => [
+ 'description' => '建议的英文描述',
+ 'type' => 'string',
+ 'example' => 'Upgrade to the latest version',
+ ],
+ 'SituationEn' => [
+ 'description' => '现状的英文描述',
+ 'type' => 'string',
+ 'example' => 'The current engine version is low, and there are many missing features',
+ ],
+ 'DescriptionEn' => [
+ 'description' => '风险描述的英文描述',
+ 'type' => 'string',
+ 'example' => 'Upgrade to the latest version to ensure that all features are available!',
+ ],
+ ],
+ ],
+ ],
+ 'ChargeType' => [
+ 'description' => '付费类型。',
+ 'type' => 'string',
+ 'example' => 'PREPAY',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"TotalSize\\": 9,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"Id\\": 1,\\n \\"Score\\": 60,\\n \\"TotalItem\\": 10,\\n \\"TotalRisk\\": 3,\\n \\"InstanceId\\": \\"mse_ingresspost-cn-0jbvrcex****\\",\\n \\"ClusterType\\": \\"Nacos-Ans\\",\\n \\"Type\\": \\"null\\\\n\\",\\n \\"Status\\": \\"FINISH\\",\\n \\"PrimaryUser\\": \\"123456\\",\\n \\"Spec\\": \\"MSE_SC_2_4_200_c\\",\\n \\"Replica\\": \\"3\\",\\n \\"VersionCode\\": \\"NACOS_ANS_1_2_1_3\\",\\n \\"AppVersion\\": \\"1.2.1\\",\\n \\"ImageVersion\\": \\"null\\",\\n \\"CreateTime\\": \\"2022-06-20T06:51:46Z\\",\\n \\"UpdateTime\\": \\"2022-11-12 15:07:55\\",\\n \\"RiskList\\": [\\n {\\n \\"Id\\": 3426,\\n \\"TaskId\\": 1,\\n \\"RiskName\\": \\"引擎版本过低\\",\\n \\"RiskCode\\": \\"22020010001\\",\\n \\"PrimaryUser\\": \\"123456\\",\\n \\"Type\\": 0,\\n \\"Values\\": \\"null\\",\\n \\"Module\\": \\"null\\",\\n \\"RiskType\\": \\"版本风险\\",\\n \\"RiskLevel\\": \\"MID\\",\\n \\"Suggestion\\": \\"{\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"请尽快升级至最新版本\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"links\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"upgrade\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"点击升级\\\\\\\\\\\\\\"}]}\\",\\n \\"Situation\\": \\"{\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"当前引擎版本过低,有大量功能缺失\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"links\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"url\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"https://xxxx\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"版本说明\\\\\\\\\\\\\\"}]}\\",\\n \\"Description\\": \\"{\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"引擎版本过低,有大量功能缺失,请尽快升级至最新版本!\\\\\\\\\\\\\\"}\\",\\n \\"Mute\\": false,\\n \\"NoticeFeature\\": true,\\n \\"RiskNameEn\\": \\"Low engine version\\",\\n \\"SuggestionEn\\": \\"Upgrade to the latest version\\",\\n \\"SituationEn\\": \\"The current engine version is low, and there are many missing features\\",\\n \\"DescriptionEn\\": \\"Upgrade to the latest version to ensure that all features are available!\\"\\n }\\n ],\\n \\"ChargeType\\": \\"PREPAY\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取风险评估任务列表',
+ ],
+ 'ListConfigTrack' => [
+ 'summary' => '获取Nacos配置中心的轨迹数据。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '139046',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU19WQV',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse_prepaid_public_cn-i7m2ne****',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询的配置的dataId,默认为不按照dataId进行筛选查询',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ballot',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置分组,默认为不按照配置分组进行筛选查询',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'f3a510e2-df52-4fad-9815-42d8bc40****',
+ ],
+ ],
+ [
+ 'name' => 'StartTs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '开始时间戳,单位秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1671010148',
+ ],
+ ],
+ [
+ 'name' => 'EndTs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '结束时间戳,单位秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1657178373',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Reverse',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否倒序,默认为false'."\n"
+ ."\n"
+ .'- true'."\n"
+ .'- false',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '监听IP地址,默认为不按照ip进行筛选查询',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '192.168.22.2',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Traces' => [
+ 'description' => '信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LogDate' => [
+ 'description' => '记录时间。',
+ 'type' => 'string',
+ 'example' => '2022-11-28 15:09:15',
+ ],
+ 'Ts' => [
+ 'description' => '监控指标值对应的时间戳。'."\n"
+ ."\n"
+ .'单位:秒。',
+ 'type' => 'string',
+ 'example' => '1659666529',
+ ],
+ 'RequestIp' => [
+ 'description' => '请求来源IP。',
+ 'type' => 'string',
+ 'example' => '192.168.1.2',
+ ],
+ 'ResponseIp' => [
+ 'description' => '响应节点。',
+ 'type' => 'string',
+ 'example' => 'mse-1973b9a0-1670834*****-reg-center-0-2',
+ ],
+ 'DataId' => [
+ 'description' => '配置ID。',
+ 'type' => 'string',
+ 'example' => 'eir-server.properties',
+ ],
+ 'Group' => [
+ 'description' => '配置组。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ 'Event' => [
+ 'description' => '事件。'."\n"
+ ."\n"
+ .'- 配置获取事件:pull'."\n"
+ .'- 持久化事件:persist',
+ 'type' => 'string',
+ 'example' => 'pull',
+ ],
+ 'Result' => [
+ 'description' => '结果。',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'Delay' => [
+ 'description' => '延迟,单位为ms。',
+ 'type' => 'string',
+ 'example' => '0',
+ ],
+ 'Md5' => [
+ 'description' => '配置MD5值。',
+ 'type' => 'string',
+ 'example' => 'd21c9091c60daa0ff7ee2f420141e5a0',
+ ],
+ 'Type' => [
+ 'description' => '发布类型。'."\n"
+ ."\n"
+ .'- beta发布:beta'."\n"
+ .'- 灰度发布:tag'."\n"
+ .'- 分批发布:batch',
+ 'type' => 'string',
+ 'example' => 'beta',
+ ],
+ 'Push' => [
+ 'description' => '是否是服务端推送。'."\n"
+ ."\n"
+ .'- true'."\n"
+ .'- false',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Client' => [
+ 'description' => '是否是客户端的请求。'."\n"
+ ."\n"
+ .'- true'."\n"
+ .'- false',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ ],
+ 'PageSize' => [
+ 'description' => '当前页的大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'description' => '数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '0CE3ABD2-1E04-561F-A9B4-0423D50****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Traces\\": [\\n {\\n \\"LogDate\\": \\"2022-11-28 15:09:15\\",\\n \\"Ts\\": \\"1659666529\\",\\n \\"RequestIp\\": \\"192.168.1.2\\",\\n \\"ResponseIp\\": \\"mse-1973b9a0-1670834*****-reg-center-0-2\\",\\n \\"DataId\\": \\"eir-server.properties\\",\\n \\"Group\\": \\"DEFAULT_GROUP\\",\\n \\"Event\\": \\"pull\\",\\n \\"Result\\": \\"ok\\",\\n \\"Delay\\": \\"0\\",\\n \\"Md5\\": \\"d21c9091c60daa0ff7ee2f420141e5a0\\",\\n \\"Type\\": \\"beta\\",\\n \\"Push\\": false,\\n \\"Client\\": false\\n }\\n ],\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 3,\\n \\"RequestId\\": \\"0CE3ABD2-1E04-561F-A9B4-0423D50****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取Nacos配置中心推送轨迹',
+ ],
+ 'CreateNacosConfig' => [
+ 'summary' => '创建一个Nacos配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17005',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse0BR2XQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-tl32****',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'common.yaml',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'alime-bridge-aliyun',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'saledatacenter-task',
+ ],
+ ],
+ [
+ 'name' => 'Tags',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置的标签。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '基本配置',
+ ],
+ ],
+ [
+ 'name' => 'Desc',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置的描述信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '基础模块配置',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置格式,包括text、json、xml等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'Content',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '配置的内容。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '547fd2a0-d0d6-****-80db2a1afb82',
+ ],
+ ],
+ [
+ 'name' => 'BetaIps',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Beta发布的IP列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '100.117.XX.XX,100.117.XX.XX',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '673DBD43-569E-510F-B3DE-20BB8DFEB20A',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '返回代码。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'Nacos.Intercepted',
+ 'errorMessage' => 'The request is blocked by the security barrier detection. Check the request content and modify the retry.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"RequestId\\": \\"673DBD43-569E-510F-B3DE-20BB8DFEB20A\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": \\"1\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'DeleteNacosConfig' => [
+ 'summary' => '删除Nacos配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17011',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse0BR2XQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-tl32epfyu18',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'user-ds.yml',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'HALVIE_MICRO_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '0e9d849b-****-8435da6c21ad',
+ ],
+ ],
+ [
+ 'name' => 'Beta',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否Beta发布。默认为false'."\n"
+ ."\n"
+ .'- `true`:是'."\n"
+ .'- `false`:否',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4FEFC13F-EB50-51E1-97D8-C5CBA8CD1B84',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"RequestId\\": \\"4FEFC13F-EB50-51E1-97D8-C5CBA8CD1B84\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '删除Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'DeleteNacosConfigs' => [
+ 'summary' => '批量删除多个Nacos配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17012',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse0BR2XQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-i7m2e32pd0n',
+ ],
+ ],
+ [
+ 'name' => 'Ids',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置列表ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '20024,20025,20026,20027,20034,20104,20394',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1ef93a21-3487-4367-a859-857d8****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '73EB5563-CBB3-5F48-999D-512F4EFB7377',
+ ],
+ 'Message' => [
+ 'description' => '请求消息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"RequestId\\": \\"73EB5563-CBB3-5F48-999D-512F4EFB7377\\",\\n \\"Message\\": \\"success\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '批量删除Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'UpdateNacosConfig' => [
+ 'summary' => '更新一个Nacos配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '17102',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse0BR2XQ',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-7pp2a****',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ky-check-****.yml',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'resource',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'postoffice',
+ ],
+ ],
+ [
+ 'name' => 'Tags',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Tag列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '2021-10-20',
+ ],
+ ],
+ [
+ 'name' => 'Desc',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置的描述信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '基础配置',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置格式,包括text、json、xml、html等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'Content',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '配置内容',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '78b7af66-d15f-4541-b886-11ed81ecb6c0',
+ ],
+ ],
+ [
+ 'name' => 'Md5',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'md5信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '045439703a273a94306422b****',
+ ],
+ ],
+ [
+ 'name' => 'BetaIps',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Beta发布的IP列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '196.168.XX.XX',
+ ],
+ ],
+ [
+ 'name' => 'EncryptedDataKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '加密密钥。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '122wdwe****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NoPermission',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'Nacos.Intercepted',
+ 'errorMessage' => 'The request is blocked by the security barrier detection. Check the request content and modify the retry.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"ErrorCode\\": \\"NoPermission\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ListListenersByConfig' => [
+ 'summary' => '根据配置信息查询监听者。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17070',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseHU6B10',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '参数弃用,无需填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '...',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-m7r1yurp00e',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zeekr-clueboss.yml',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'prod',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'aaeb4d28-c9eb-4fa2-85f5-d03ce7ee8df1',
+ ],
+ ],
+ [
+ 'name' => 'ExtGrayRules',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '额外的灰度规则列表,在进行listener匹配时会将额外的灰度规则和现有的规则合并进行匹配',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '灰度规则项',
+ 'type' => 'object',
+ 'properties' => [
+ 'GrayRuleType' => [
+ 'description' => '灰度规则类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Tags',
+ 'enum' => [
+ 'Tags',
+ 'Beta',
+ ],
+ ],
+ 'GrayRuleName' => [
+ 'description' => '灰度版本名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'GrayRule' => [
+ 'description' => '灰度规则,如果是Beta灰度,此处是灰度的客户端的ip,使用逗号分隔;如果是标签灰度,此处是 标签名=标签值,多个标签值使用逗号分隔',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '127.0.0.1',
+ ],
+ 'GrayRulePriority' => [
+ 'description' => '灰度版本优先级',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'Listeners' => [
+ 'description' => '监听者信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Ip' => [
+ 'description' => 'IP。',
+ 'type' => 'string',
+ 'example' => '1.1.1.1',
+ ],
+ 'Md5' => [
+ 'description' => '校验串。',
+ 'type' => 'string',
+ 'example' => '23sdfdf',
+ ],
+ 'Status' => [
+ 'description' => '是否推送成功',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'Labels' => [
+ 'description' => '监听者所带的标签',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '标签的键值对',
+ 'example' => 'a=b',
+ ],
+ ],
+ 'Version' => [
+ 'description' => '监听者当前的版本,gray(灰度版本)或者nromal(正式版本)',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ 'MatchRuleName' => [
+ 'title' => '当前Listener匹配的灰度规则名称',
+ 'description' => '当前Listener匹配的灰度规则名称',
+ 'type' => 'string',
+ 'example' => '匹配到的灰度规则的名称',
+ ],
+ 'MatchRuleType' => [
+ 'description' => '匹配到的灰度规则的类型',
+ 'type' => 'string',
+ 'example' => 'Beta',
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '75E1442F-11EC-567A-9CF0-5A36F7904F39',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageSize' => [
+ 'description' => '当前页的大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 7,\\n \\"Listeners\\": [\\n {\\n \\"Ip\\": \\"1.1.1.1\\",\\n \\"Md5\\": \\"23sdfdf\\",\\n \\"Status\\": \\"true\\",\\n \\"Labels\\": {\\n \\"key\\": \\"a=b\\"\\n },\\n \\"Version\\": \\"gray\\",\\n \\"MatchRuleName\\": \\"匹配到的灰度规则的名称\\",\\n \\"MatchRuleType\\": \\"Beta\\"\\n }\\n ],\\n \\"RequestId\\": \\"75E1442F-11EC-567A-9CF0-5A36F7904F39\\",\\n \\"Message\\": \\"success\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 2,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询配置监听者',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ListListenersByIp' => [
+ 'summary' => '根据IP查询监听者列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17071',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseHU6B10',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-i7m2cecji09',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '监听IP地址。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '172.22.0.240',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'ea02a522-9482-4255-bb65-dc0636d783f2',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '6',
+ ],
+ 'Listeners' => [
+ 'description' => '监听信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Md5' => [
+ 'description' => '校验串。',
+ 'type' => 'string',
+ 'example' => '23sdfdf',
+ ],
+ 'DataId' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'example' => 'test.yaml',
+ ],
+ 'Group' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'NamespaceId' => [
+ 'description' => '命名空间ID',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '54973C90-F379-4372-9AA5-053A3F7****',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '当前页的大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'MSE-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 6,\\n \\"Listeners\\": [\\n {\\n \\"Md5\\": \\"23sdfdf\\",\\n \\"DataId\\": \\"test.yaml\\",\\n \\"Group\\": \\"default\\",\\n \\"NamespaceId\\": \\"test\\"\\n }\\n ],\\n \\"RequestId\\": \\"54973C90-F379-4372-9AA5-053A3F7****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"ErrorCode\\": \\"MSE-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '根据IP查询监听者列表',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'GetNacosConfig' => [
+ 'summary' => '获取Nacos配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17035',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseEUE1FY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-i7m2h0****',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'halvie-mp-item****',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置组信息。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'common',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'ddaf8f12-****-b1c1-86e7c72e266b',
+ ],
+ ],
+ [
+ 'name' => 'Beta',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否Beta发布,默认为false'."\n"
+ ."\n"
+ .'- `true`:是'."\n"
+ .'- `false`:否',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'B4EAB48C-BB4B-5B8D-B33B-35D69606C5AD',
+ ],
+ 'Configuration' => [
+ 'description' => '配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => '配置内容的格式。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Tags' => [
+ 'description' => '配置的标签。',
+ 'type' => 'string',
+ 'example' => 'context',
+ ],
+ 'Md5' => [
+ 'description' => '配置的消息摘要。',
+ 'type' => 'string',
+ 'example' => '123rfsdf3',
+ ],
+ 'DataId' => [
+ 'description' => '配置ID。',
+ 'type' => 'string',
+ 'example' => 'log.yaml',
+ ],
+ 'Content' => [
+ 'description' => '配置内容。',
+ 'type' => 'string',
+ 'example' => 'log.level=error',
+ ],
+ 'Group' => [
+ 'description' => '配置组名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Desc' => [
+ 'description' => '配置描述。',
+ 'type' => 'string',
+ 'example' => '测试专用',
+ ],
+ 'EncryptedDataKey' => [
+ 'description' => '加密密钥。',
+ 'type' => 'string',
+ 'example' => 'key',
+ ],
+ 'BetaIps' => [
+ 'description' => 'Beta发布的IP列表。',
+ 'type' => 'string',
+ 'example' => '1.1.XX.XX,2.2.XX.XX',
+ ],
+ 'GrayVersions' => [
+ 'title' => '当前配置的灰度版本信息',
+ 'description' => '当前配置的灰度版本信息',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'title' => '灰度类型',
+ 'description' => '灰度类型',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Tags' => 'Tags',
+ 'Beta' => 'Beta',
+ ],
+ 'example' => 'Beta',
+ ],
+ 'Name' => [
+ 'title' => '灰度版本名称',
+ 'description' => '灰度版本名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Rule' => [
+ 'title' => '当前灰度版本的规则',
+ 'description' => '当前灰度版本的规则',
+ 'type' => 'string',
+ 'example' => 'a=b',
+ ],
+ 'Priority' => [
+ 'title' => '当前灰度规则的优先级',
+ 'description' => '当前灰度规则的优先级',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"B4EAB48C-BB4B-5B8D-B33B-35D69606C5AD\\",\\n \\"Configuration\\": {\\n \\"Type\\": \\"text\\",\\n \\"AppName\\": \\"test\\",\\n \\"Tags\\": \\"context\\",\\n \\"Md5\\": \\"123rfsdf3\\",\\n \\"DataId\\": \\"log.yaml\\",\\n \\"Content\\": \\"log.level=error\\",\\n \\"Group\\": \\"test\\",\\n \\"Desc\\": \\"测试专用\\",\\n \\"EncryptedDataKey\\": \\"key\\",\\n \\"BetaIps\\": \\"1.1.XX.XX,2.2.XX.XX\\",\\n \\"GrayVersions\\": [\\n {\\n \\"Type\\": \\"Beta\\",\\n \\"Name\\": \\"test\\",\\n \\"Rule\\": \\"a=b\\",\\n \\"Priority\\": 20\\n }\\n ]\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'GetNacosHistoryConfig' => [
+ 'summary' => '查询Nacos配置变更历史列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-st220g9ka02',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'msg-center.main.yaml',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '6cf708a5-****-89f2-3ba62c5ee9ba',
+ ],
+ ],
+ [
+ 'name' => 'Nid',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置单ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '40****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Configuration' => [
+ 'description' => '配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Md5' => [
+ 'description' => '配置的消息摘要。',
+ 'type' => 'string',
+ 'example' => '23sdf32f****',
+ ],
+ 'DataId' => [
+ 'description' => '配置ID。',
+ 'type' => 'string',
+ 'example' => 'test.yaml',
+ ],
+ 'Content' => [
+ 'description' => '配置内容。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Group' => [
+ 'description' => '配置组名称。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'OpType' => [
+ 'description' => '配置类型。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'EncryptedDataKey' => [
+ 'description' => '加密密钥。',
+ 'type' => 'string',
+ 'example' => '23fds****',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NoPermission',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Configuration\\": {\\n \\"AppName\\": \\"test\\",\\n \\"Md5\\": \\"23sdf32f****\\",\\n \\"DataId\\": \\"test.yaml\\",\\n \\"Content\\": \\"test\\",\\n \\"Group\\": \\"public\\",\\n \\"OpType\\": \\"text\\",\\n \\"EncryptedDataKey\\": \\"23fds****\\"\\n },\\n \\"ErrorCode\\": \\"NoPermission\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询Nacos配置历史',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ListNacosConfigs' => [
+ 'summary' => '查询Nacos配置列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17072',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse8153EN',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '参数弃用,无需填写',
+ 'description' => '扩展请求参数,支持JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{\\"appGroup\\":\\"sm_zk_asi_na610\\",\\"appName\\":\\"sm-zk\\",\\"appStage\\":\\"PUBLISH\\",\\"appUnit\\":\\"center\\",\\"bucId\\":\\"193554\\",\\"bucName\\":\\"阿里移动事业群-UC\\",\\"provider\\":\\"aliyun\\"}',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '5',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '200',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-7mz2fj****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,MSE支持的地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'zeekr-*',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组类型,默认为`default`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crm',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'fpx-pds-pns',
+ ],
+ ],
+ [
+ 'name' => 'Tags',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'billing',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'fad732a7-ff1a-4f21-8126-4edd4****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '12',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4081087F-3429-5873-A1E7-D4B5479D0B84',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Configurations' => [
+ 'description' => '配置列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'DataId' => [
+ 'description' => '配置ID。',
+ 'type' => 'string',
+ 'example' => 'log.yaml',
+ ],
+ 'Id' => [
+ 'description' => '应用ID',
+ 'type' => 'string',
+ 'example' => '132****',
+ ],
+ 'Group' => [
+ 'description' => '分组ID。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'Description' => [
+ 'type' => 'string',
+ ],
+ 'ConfigTags' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '返回代码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'OperationNotSupport',
+ 'errorMessage' => 'The current cluster does not support this operation, %s.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"TotalCount\\": 12,\\n \\"RequestId\\": \\"4081087F-3429-5873-A1E7-D4B5479D0B84\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Configurations\\": [\\n {\\n \\"AppName\\": \\"test\\",\\n \\"DataId\\": \\"log.yaml\\",\\n \\"Id\\": \\"132****\\",\\n \\"Group\\": \\"public\\",\\n \\"Description\\": \\"\\",\\n \\"ConfigTags\\": \\"\\"\\n }\\n ],\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询Nacos配置列表',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ListNacosHistoryConfigs' => [
+ 'summary' => '查询Nacos配置历史列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17073',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseEUE1FY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{\\"appGroup\\":\\"aliyun-phecda-service-staging\\",\\"appName\\":\\"aliyun-phecda-service\\",\\"appStage\\":\\"DAILY\\",\\"appUnit\\":\\"center\\",\\"bucId\\":\\"250858\\",\\"bucName\\":\\"阿里云\\",\\"provider\\":\\"aliyun\\"}',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页显示记录条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-2r42e3bk20n',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,MSE支持的地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'user-prod.yaml',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'fc-dev-cluster-1',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'fc0f6e40-****-946b-45e3af313707',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例配置信息总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '53338ECA-F880-54D8-A9B3-5606355A1B89',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HistoryItems' => [
+ 'description' => '配置项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'AppName' => [
+ 'description' => '应用标签。',
+ 'type' => 'string',
+ 'example' => 'gateway',
+ ],
+ 'DataId' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'example' => 'test.yaml',
+ ],
+ 'Group' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'LastModifiedTime' => [
+ 'description' => '最后更新时间戳。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1643440066000',
+ ],
+ 'Id' => [
+ 'description' => '配置ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '23fdsf',
+ ],
+ 'OpType' => [
+ 'description' => '配置文本类型。',
+ 'type' => 'string',
+ 'example' => 'yaml',
+ ],
+ 'SrcUser' => [
+ 'description' => '此版本对应的修改用户',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"53338ECA-F880-54D8-A9B3-5606355A1B89\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true,\\n \\"HistoryItems\\": [\\n {\\n \\"AppName\\": \\"gateway\\",\\n \\"DataId\\": \\"test.yaml\\",\\n \\"Group\\": \\"default\\",\\n \\"LastModifiedTime\\": 1643440066000,\\n \\"Id\\": 0,\\n \\"OpType\\": \\"yaml\\",\\n \\"SrcUser\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询Nacos配置历史列表',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'CloneNacosConfig' => [
+ 'summary' => '将已有的Nacos配置克隆到其他命名空间。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '76154',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYJ44D3',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-i7m25igg403',
+ ],
+ ],
+ [
+ 'name' => 'OriginNamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '源命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'be821963-6d48-4ea5-9910-6057d****',
+ ],
+ ],
+ [
+ 'name' => 'TargetNamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '08be4b5d-2d1c-4e6e-aa85-83b9****',
+ ],
+ ],
+ [
+ 'name' => 'Policy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当写入冲突时,使用的策略。'."\n"
+ ."\n"
+ .'- ABORT'."\n"
+ .'- SKIP'."\n"
+ .'- OVERWRITE',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'enumValueTitles' => [
+ 'ABORT' => '终止',
+ 'OVERWRITE' => '覆盖',
+ 'SKIP' => '跳过',
+ ],
+ 'example' => 'OVERWRITE',
+ ],
+ ],
+ [
+ 'name' => 'Ids',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置ID列表。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '253661,253662',
+ ],
+ ],
+ [
+ 'name' => 'DataIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '需要克隆的配置项,格式为 dataId+group,多个配置项使用 , 分隔',
+ 'description' => '需要克隆的配置项,格式为 dataId+group,多个配置项使用 , 分隔',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'test+test,test1+test1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '6678DBA9-5600-5948-ACF8-ED3105B288A3',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'Clone Completed Successfully',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SuccCount' => [
+ 'description' => '成功数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'SkipCount' => [
+ 'description' => '跳过数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'SkipData' => [
+ 'description' => '跳过配置信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataId' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'example' => 'test.yaml',
+ ],
+ 'Group' => [
+ 'description' => '分组ID。',
+ 'type' => 'string',
+ 'example' => 'public ',
+ ],
+ ],
+ ],
+ ],
+ 'FailData' => [
+ 'description' => '配置失败信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataId' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'example' => 'test2.yaml',
+ ],
+ 'Group' => [
+ 'description' => '分组ID。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Reason' => [
+ 'description' => '错误原因。',
+ 'type' => 'string',
+ 'example' => '当前导入配置格式非法',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"6678DBA9-5600-5948-ACF8-ED3105B288A3\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"Clone Completed Successfully\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"SuccCount\\": 100,\\n \\"SkipCount\\": 1,\\n \\"SkipData\\": [\\n {\\n \\"DataId\\": \\"test.yaml\\",\\n \\"Group\\": \\"public \\"\\n }\\n ],\\n \\"FailData\\": [\\n {\\n \\"DataId\\": \\"test2.yaml\\",\\n \\"Group\\": \\"test\\",\\n \\"Reason\\": \\"当前导入配置格式非法\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '克隆Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ExportNacosConfig' => [
+ 'summary' => '导出指定的Nacos配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '76155',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse8153EN',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-2r42ddc****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ae77c258-4d4f-478f-baaa-084aee0****',
+ ],
+ ],
+ [
+ 'name' => 'Ids',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置项主键ID。'."\n"
+ ."\n"
+ .'><notice>'."\n"
+ .'- 支持多种导出方式。当选择导出多个配置时,此参数必填。'."\n"
+ .'- 此参数可通过ListNacosConfigs接口获取。'."\n"
+ .'- 当配置此参数时,表示选择导出多个配置,DataId和Group参数无效。'."\n"
+ .'></notice>'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '1709,1710',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '待导出的数据ID。'."\n"
+ ."\n"
+ .'<notice>'."\n"
+ ."\n"
+ .'- 支持多种导出方式。'."\n"
+ .'- 当选择导出单个配置时,参数Ids必须为空,DataID以及Group必填。></notice>',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'demo-develop',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置组名称。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'COMMON_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用标签。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'gateway-openapi',
+ ],
+ ],
+ [
+ 'name' => 'DataIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '需要导出的数据的 dataId+groupName, 多个配置使用 "," 分隔',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'testDataId1+testGroup1,testDataId2+testGroup',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '92245803-49B7-54CF-8D49-01A34A0E1CD6',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的 **%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Url' => [
+ 'description' => '导出配置的下载地址。',
+ 'type' => 'string',
+ 'example' => 'http://xxxxxxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"92245803-49B7-54CF-8D49-01A34A0E1CD6\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://xxxxxxxxx\\"\\n }\\n}","type":"json"}]',
+ 'title' => '导出Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'GetImportFileUrl' => [
+ 'summary' => '获取Nacos配置导入时获取文件的上传地址。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '76156',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseEPOTV0',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ContentType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '文件类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'application/zip',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-7pp2b****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12788f73-9848-4388-98f1-507778f2****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '19488A00-4AF5-55E1-A689-98BA9F5E7441',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。'."\n",
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Url' => [
+ 'description' => '文件上传地址。',
+ 'type' => 'string',
+ 'example' => 'http://xxxxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"19488A00-4AF5-55E1-A689-98BA9F5E7441\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://xxxxxxx\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取文件上传地址',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ImportNacosConfig' => [
+ 'summary' => '使用配置文件导入Nacos配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '76157',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseEPOTV0',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'f5cdc80a-****-8094-282f5650fc00',
+ ],
+ ],
+ [
+ 'name' => 'Policy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '策略。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'enumValueTitles' => [
+ 'ABORT' => 'ABORT',
+ 'OVERWRITE' => 'OVERWRITE',
+ 'SKIP' => 'SKIP',
+ ],
+ 'example' => 'OVERWRITE',
+ ],
+ ],
+ [
+ 'name' => 'FileUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '导入文件地址必须为MSE生成的地址(否则提示无权限)。'."\n"
+ .'获取步骤:'."\n"
+ ."\n"
+ .'1.GetImportFileUrl API获取到地址。'."\n"
+ ."\n"
+ .'2.通过标准的HTTP PUT方法将文件上传到上述API返回的HTTP地址。'."\n"
+ ."\n"
+ .'3.调用ImportNacosConfig API导入。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'http://mse-shared.oss-xxx.aliyuncs.com/cfg/import/xxxx/2021/01/11/xxxx.zip',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AF21683A-29C7-4853-AC0F-B5ADEE4****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-100',
+ ],
+ 'Code' => [
+ 'description' => '代码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的 **%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SuccCount' => [
+ 'description' => '导入成功的实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'SkipCount' => [
+ 'description' => '跳过消息数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'SkipData' => [
+ 'description' => '跳过的配置列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataId' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'example' => 'test.yaml',
+ ],
+ 'Group' => [
+ 'description' => '分组ID。',
+ 'type' => 'string',
+ 'example' => 'public ',
+ ],
+ ],
+ ],
+ ],
+ 'FailData' => [
+ 'description' => '导入失败列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataId' => [
+ 'description' => '数据ID。',
+ 'type' => 'string',
+ 'example' => 'test2.yaml',
+ ],
+ 'Group' => [
+ 'description' => '分组ID。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Reason' => [
+ 'description' => '失败原因',
+ 'type' => 'string',
+ 'example' => '导入配置格式错误',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"AF21683A-29C7-4853-AC0F-B5ADEE4****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-100\\",\\n \\"Code\\": 1,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"SuccCount\\": 100,\\n \\"SkipCount\\": 10,\\n \\"SkipData\\": [\\n {\\n \\"DataId\\": \\"test.yaml\\",\\n \\"Group\\": \\"public \\"\\n }\\n ],\\n \\"FailData\\": [\\n {\\n \\"DataId\\": \\"test2.yaml\\",\\n \\"Group\\": \\"test\\",\\n \\"Reason\\": \\"导入配置格式错误\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '导入Nacos配置',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ListNamingTrack' => [
+ 'summary' => '获取Nacos注册中心的轨迹数据。',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '137915',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseN8I3PF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse_prepaid_public_cn-tl32d*****',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'fpx-xms-baseinfo',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'group',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cd4d3703-e2a6-46b5-85c6-4447e4f****',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '客户端IP。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '172.16.183.232',
+ ],
+ ],
+ [
+ 'name' => 'StartTs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '开始时间戳,单位秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1660238450',
+ ],
+ ],
+ [
+ 'name' => 'EndTs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '结束时间戳,单位秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1665299698',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页的大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Reverse',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '按照时间正序或者倒序排列。默认值为`false`。'."\n"
+ ."\n"
+ .'- `true`:表示倒序'."\n"
+ .'- `false`:表示正序'."\n"
+ ."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Traces' => [
+ 'description' => '信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PushTime' => [
+ 'description' => '推送时间。',
+ 'type' => 'string',
+ 'example' => '2022-12-16 11:48:07',
+ ],
+ 'NodeName' => [
+ 'description' => '节点名称。',
+ 'type' => 'string',
+ 'example' => 'mse-197*****-167083******-reg-center-0-0',
+ ],
+ 'ClientIp' => [
+ 'description' => '客户端IP。',
+ 'type' => 'string',
+ 'example' => '120.40.32.235',
+ ],
+ 'ServerName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'fpx-xms-baseinfo',
+ ],
+ 'Group' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'example' => 'prod',
+ ],
+ 'InstanceSize' => [
+ 'description' => '实例个数。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'PushTimeAll' => [
+ 'description' => '总推送耗时。',
+ 'type' => 'string',
+ 'example' => '628ms',
+ ],
+ 'PushTimeNetwork' => [
+ 'description' => '推送网络耗时。',
+ 'type' => 'string',
+ 'example' => '37ms',
+ ],
+ 'SlaTime' => [
+ 'description' => 'SLA时间。',
+ 'type' => 'string',
+ 'example' => '628ms',
+ ],
+ ],
+ ],
+ ],
+ 'PageSize' => [
+ 'description' => '当前页的大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'description' => '总记录条数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9916CBED-B2D5-5685-9129-4592FE1*****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 202 => [
+ [
+ 'errorCode' => 'TrackRegionNotSupport',
+ 'errorMessage' => '推送轨迹功能在当前Region暂未开放',
+ ],
+ ],
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Traces\\": [\\n {\\n \\"PushTime\\": \\"2022-12-16 11:48:07\\",\\n \\"NodeName\\": \\"mse-197*****-167083******-reg-center-0-0\\",\\n \\"ClientIp\\": \\"120.40.32.235\\",\\n \\"ServerName\\": \\"fpx-xms-baseinfo\\",\\n \\"Group\\": \\"prod\\",\\n \\"InstanceSize\\": \\"1\\",\\n \\"PushTimeAll\\": \\"628ms\\",\\n \\"PushTimeNetwork\\": \\"37ms\\",\\n \\"SlaTime\\": \\"628ms\\"\\n }\\n ],\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"9916CBED-B2D5-5685-9129-4592FE1*****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取Nacos注册中心推送轨迹',
+ ],
+ 'CreateNacosService' => [
+ 'summary' => '创建Nacos服务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '104937',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。'."\n"
+ .'> 此接口同时有InstanceId与ClusterId,则其中一项必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'com.alibabacloud.hipstershop.cartserviceapi.service.CartService',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'production',
+ ],
+ ],
+ [
+ 'name' => 'ProtectThreshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保护阈值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'Ephemeral',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否临时节点标志,取值如下:'."\n"
+ .'- `true`:是。'."\n"
+ .'- `false`:否。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。'."\n"
+ .'> 此接口同时有InstanceId与ClusterId,则其中一项必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-3691a080',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5B170A0D-2C5D-4CF8-B808-03966B86****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'example' => 'data',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5B170A0D-2C5D-4CF8-B808-03966B86****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"data\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => '创建Nacos服务',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ListAnsServices' => [
+ 'summary' => '查询Nacos服务详情。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '17058',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询指定的服务名信息',
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务所在的分组',
+ 'description' => '联系人组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务所在的 namespace',
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12233****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询服务下某个集群的实例列表是所需要的参数',
+ 'description' => '查询服务下某个集群的实例列表时所需要的参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ [
+ 'name' => 'HasIpCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询服务实例数量。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'false' => '不需要',
+ 'true' => '需要',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '不推荐使用,请使用 InstanceId',
+ 'description' => '集群ID。'."\n"
+ ."\n"
+ .'> 此接口同时有InstanceId与ClusterId,则其中一项必填。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '集群实例Id',
+ 'description' => '实例ID。'."\n"
+ ."\n"
+ .'> 此接口同时有InstanceId与ClusterId,则其中一项必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-st21v5****',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询第几页',
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页展示条数',
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HealthyInstanceCount' => [
+ 'description' => '健康心跳的服务实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'GroupName' => [
+ 'description' => '联系人组名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'IpCount' => [
+ 'description' => '当前服务的实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Name' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'ClusterCount' => [
+ 'description' => '集群总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Source' => [
+ 'description' => '服务类型,取值如下:'."\n"
+ .'* console:控制台注册。'."\n"
+ .'* sdk:SDK注册。'."\n"
+ .'* governance:服务治理注册。',
+ 'type' => 'string',
+ 'example' => 'console',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'OperationNotSupport',
+ 'errorMessage' => 'The current cluster does not support this operation, %s.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Data\\": [\\n {\\n \\"HealthyInstanceCount\\": 1,\\n \\"GroupName\\": \\"name\\",\\n \\"IpCount\\": 1,\\n \\"Name\\": \\"name\\",\\n \\"ClusterCount\\": 1,\\n \\"Source\\": \\"console\\"\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListAnsServicesResponse>\\n<HttpCode>202</HttpCode>\\n<TotalCount>7</TotalCount>\\n<PageSize>10</PageSize>\\n<Message>请求处理成功</Message>\\n<RequestId>52BA6DA6-A702-4362-A32F-DFF79655****</RequestId>\\n<PageNumber>1</PageNumber>\\n<Data>\\n <GroupName>name</GroupName>\\n <IpCount>1</IpCount>\\n <HealthyInstanceCount>1</HealthyInstanceCount>\\n <ClusterCount>1</ClusterCount>\\n <Name>name</Name>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</ListAnsServicesResponse>","errorExample":""}]',
+ 'title' => '查询Nacos服务详情',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteNacosService' => [
+ 'summary' => '删除一个Nacos服务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '18547',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-123456',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'hello_service',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '字符串对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'title' => 'http状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87d3dec',
+ ],
+ 'Message' => [
+ 'title' => '响应信息',
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求成功',
+ ],
+ 'Code' => [
+ 'title' => '响应码',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'title' => '成功标志',
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '删除服务的结果',
+ 'description' => '删除结果。',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"9e78a671-4b9b-4dd4-99c1-0b9da87d3dec\\",\\n \\"Message\\": \\"请求成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"ok\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteNacosServiceResponse>\\n <HttpStatusCode>200</HttpStatusCode>\\n <RequestId>9e78a671-4b9b-4dd4-99c1-0b9da87d3dec</RequestId>\\n <Message>请求成功</Message>\\n <Code>200</Code>\\n <Success>true</Success>\\n <Data>ok</Data>\\n</DeleteNacosServiceResponse>","errorExample":""}]',
+ 'title' => '删除Nacos服务',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'UpdateNacosService' => [
+ 'summary' => '更新Nacos服务。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '105086',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。'."\n"
+ .'> 此接口同时有InstanceId与ClusterId,则其中一项必填。'."\n"
+ .'>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'com.dingtalk.doc.thumbnails.pdf.ThumbnailService',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '5e3ee449-b5c0-4aee-b857-32c0acbebf26',
+ ],
+ ],
+ [
+ 'name' => 'ProtectThreshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保护阈值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。'."\n"
+ .'> 此接口同时有InstanceId与ClusterId,则其中一项必填。'."\n"
+ .'>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'string',
+ 'example' => '6',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": \\"6\\",\\n \\"Code\\": 1,\\n \\"Success\\": true,\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => '更新Nacos服务',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'UpdateNacosCluster' => [
+ 'summary' => '更新Nacos集群信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '105189',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例id',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-123456',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务名',
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'hello_service',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分组名',
+ 'description' => '分组名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '命名空间id',
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87d3dec',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Nacos集群名',
+ 'description' => 'Nacos集群名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ [
+ 'name' => 'CheckPort',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查端口',
+ 'description' => '健康检查端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ ],
+ [
+ 'name' => 'UseInstancePortForCheck',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否使用实例端口进行健康检查',
+ 'description' => '是否使用实例端口进行健康检查。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'HealthChecker',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查类型',
+ 'description' => '健康检查类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"type":"none"}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'title' => 'http状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87d3dec',
+ ],
+ 'Message' => [
+ 'title' => '响应信息',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求成功',
+ ],
+ 'Code' => [
+ 'title' => '响应码',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'title' => '成功标志',
+ 'description' => '成功标志。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '修改结果',
+ 'description' => '返回结果。',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"9e78a671-4b9b-4dd4-99c1-0b9da87d3dec\\",\\n \\"Message\\": \\"请求成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"ok\\"\\n}","type":"json"}]',
+ 'title' => '更新Nacos集群',
+ ],
+ 'ListAnsServiceClusters' => [
+ 'summary' => '查询Nacos服务的集群列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '17057',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MSE集群ID。'."\n"
+ .'> 此处的集群与nacos服务下的集群概念不同,勿混淆。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'mse-09k1q110q01',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nacos.test.3',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12233****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群别名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-7413****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-tl32a6****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ProtectThreshold' => [
+ 'description' => '保护阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0',
+ ],
+ 'GroupName' => [
+ 'description' => '服务所属服务组。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ 'Clusters' => [
+ 'description' => '集群信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DefaultCheckPort' => [
+ 'description' => '默认检查端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'HealthCheckerType' => [
+ 'description' => '健康检查类型。',
+ 'type' => 'string',
+ 'example' => 'connection:链接存活检查'."\n"
+ .'tcp: TCP连接检查'."\n"
+ .'http:HTTP连接检查',
+ ],
+ 'UseIPPort4Check' => [
+ 'description' => '服务端是否主动发起端到端健康状态检查,当服务为非临时服务时此值有效。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ServiceName' => [
+ 'description' => '全量服务名。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP@@nacos.test.3',
+ ],
+ 'Name' => [
+ 'description' => '集群名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'DefaultPort' => [
+ 'description' => '默认端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'Metadata' => [
+ 'description' => '集群元数据。',
+ 'type' => 'object',
+ 'example' => '111',
+ ],
+ ],
+ ],
+ ],
+ 'Name' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'nacos.test.3',
+ ],
+ 'SelectorType' => [
+ 'description' => '选举模式。',
+ 'type' => 'string',
+ 'example' => 'none',
+ ],
+ 'Metadata' => [
+ 'description' => '服务元数据。',
+ 'type' => 'object',
+ 'example' => '111',
+ ],
+ 'Ephemeral' => [
+ 'description' => '是否临时节点,取值如下:'."\n"
+ .'- `true`:是。'."\n"
+ .'- `false`:否。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Source' => [
+ 'description' => '服务类型,取值如下:'."\n"
+ .'* console:控制台注册。'."\n"
+ .'* sdk:SDK注册。'."\n"
+ .'* governance:服务治理注册。',
+ 'type' => 'string',
+ 'example' => 'console',
+ ],
+ 'AppDetail' => [
+ 'description' => '服务类型为服务治理注册时,服务所关联的服务治理应用信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AppId' => [
+ 'description' => '服务治理应用id。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@904cba2c0xxxxxx',
+ ],
+ 'AppName' => [
+ 'description' => '服务治理应用名。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-b',
+ ],
+ 'Port' => [
+ 'description' => '服务治理应用端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '6001',
+ ],
+ 'CheckType' => [
+ 'description' => '健康检查协议,取值如下:'."\n"
+ .'* connection:链接存活检查。'."\n"
+ .'* tcp: TCP连接检查。'."\n"
+ .'* http:HTTP连接检查。',
+ 'type' => 'string',
+ 'example' => 'connection',
+ ],
+ 'CheckPath' => [
+ 'description' => '健康检查路径(健康检查类型为http时携带)。',
+ 'type' => 'string',
+ 'example' => '/health',
+ ],
+ 'CheckTimeout' => [
+ 'description' => '健康检查响应超时时间,单位:秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'CheckInternal' => [
+ 'description' => '健康检查间隔,单位:秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'HealthyCheckTimes' => [
+ 'description' => '健康检查健康阈值,指实例从不健康变为健康过程中健康探测重试次数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'UnhealthyCheckTimes' => [
+ 'description' => '健康检查不健康阈值,指实例从健康变为不健康过程中健康探测重试次数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Data\\": {\\n \\"ProtectThreshold\\": 0,\\n \\"GroupName\\": \\"DEFAULT_GROUP\\",\\n \\"Clusters\\": [\\n {\\n \\"DefaultCheckPort\\": 80,\\n \\"HealthCheckerType\\": \\"connection:链接存活检查\\\\ntcp: TCP连接检查\\\\nhttp:HTTP连接检查\\",\\n \\"UseIPPort4Check\\": true,\\n \\"ServiceName\\": \\"DEFAULT_GROUP@@nacos.test.3\\",\\n \\"Name\\": \\"test\\",\\n \\"DefaultPort\\": 80,\\n \\"Metadata\\": 111\\n }\\n ],\\n \\"Name\\": \\"nacos.test.3\\",\\n \\"SelectorType\\": \\"none\\",\\n \\"Metadata\\": 111,\\n \\"Ephemeral\\": true,\\n \\"Source\\": \\"console\\",\\n \\"AppDetail\\": {\\n \\"AppId\\": \\"hkhon1po62@904cba2c0xxxxxx\\",\\n \\"AppName\\": \\"spring-cloud-b\\",\\n \\"Port\\": 6001,\\n \\"CheckType\\": \\"connection\\",\\n \\"CheckPath\\": \\"/health\\",\\n \\"CheckTimeout\\": 5,\\n \\"CheckInternal\\": 2,\\n \\"HealthyCheckTimes\\": 2,\\n \\"UnhealthyCheckTimes\\": 2\\n }\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true,\\n \\"HttpCode\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"<ListAnsServiceClustersResponse>\\n<Message>请求处理成功</Message>\\n<RequestId>52BA6DA6-A702-4362-A32F-DFF79655****</RequestId>\\n<Data>\\n <GroupName>DEFAULT_GROUP</GroupName>\\n <SelectorType>none</SelectorType>\\n <Metadata>111</Metadata>\\n <ProtectThreshold>0</ProtectThreshold>\\n <Name>DEFAULT</Name>\\n <Clusters>\\n <UseIPPort4Check>true</UseIPPort4Check>\\n <DefaultCheckPort>80</DefaultCheckPort>\\n <ServiceName>DEFAULT_GROUP@@consumers:com.alibaba.edas.IHelloService::</ServiceName>\\n <Metadata>111</Metadata>\\n <HealthCheckerType>心跳上报</HealthCheckerType>\\n <DefaultPort>80</DefaultPort>\\n <Name>test</Name>\\n </Clusters>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</ListAnsServiceClustersResponse>","errorExample":""}]',
+ 'title' => '查询集群服务详情',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateNacosInstance' => [
+ 'summary' => '创建Nacos实例。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '105182',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例id',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-123456',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务名',
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'hello_service',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分组名',
+ 'description' => '分组名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '命名空间id',
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Nacos集群名',
+ 'description' => 'Nacos集群名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Nacos实例ip',
+ 'description' => 'Nacos实例IP。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1.2.xx.xx',
+ ],
+ ],
+ [
+ 'name' => 'Port',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Nacos实例端口',
+ 'description' => 'Nacos实例端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '65535',
+ 'exclusiveMaximum' => true,
+ 'minimum' => '0',
+ 'exclusiveMinimum' => true,
+ 'example' => '12281',
+ ],
+ ],
+ [
+ 'name' => 'Ephemeral',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '临时节点标志',
+ 'description' => '临时节点标志。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Weight',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '权重',
+ 'description' => '权重,为范围0~10000的整数。值越大,访问到该实例的频率越高。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Enabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务禁用标志',
+ 'description' => '服务禁用标志。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Metadata',
+ 'in' => 'formData',
+ 'schema' => [
+ 'title' => '节点元数据',
+ 'description' => '节点元数据。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{\\"grayversion\\":\\"1.0\\",\\"preserved.register.source\\":\\"SPRING_CLOUD\\",\\"management.context-path\\":\\"\\"}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'title' => 'http状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87d3dec',
+ ],
+ 'Message' => [
+ 'title' => '响应信息',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求成功',
+ ],
+ 'Code' => [
+ 'title' => '响应码',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'title' => '成功标志',
+ 'description' => '成功标志。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '修改结果',
+ 'description' => '返回结果。',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"9e78a671-4b9b-4dd4-99c1-0b9da87d3dec\\",\\n \\"Message\\": \\"请求成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"ok\\"\\n}","type":"json"}]',
+ 'title' => '创建Nacos实例',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'DeleteNacosInstance' => [
+ 'summary' => '删除Nacos服务下持久化实例。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '121118',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse-cn-st21v5****',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'hello_service',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87****',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群别名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT',
+ 'default' => 'DEFAULT',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Nacos实例IP。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '10.237.1.32',
+ ],
+ ],
+ [
+ 'name' => 'Port',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Nacos实例端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '8080',
+ ],
+ ],
+ [
+ 'name' => 'Ephemeral',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否临时节点标志,取值如下:'."\n"
+ .'- `true`:是。'."\n"
+ .'- `false`:否。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<String>',
+ 'description' => 'RestResult<String>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8BD1E58D-0755-42AC-A599-E6B55112****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'Code仅仅用来和Success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8BD1E58D-0755-42AC-A599-E6B55112****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": \\"OK\\"\\n}","type":"json"}]',
+ 'title' => '删除Nacos实例',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'UpdateNacosInstance' => [
+ 'summary' => '更新注册在Nacos中的实例信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '18554',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例id',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-123456',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务名',
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'hello_service',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分组名',
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '命名空间id',
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Nacos集群名',
+ 'description' => 'Nacos集群名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Nacos实例ip',
+ 'description' => 'Nacos实例IP。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1.2.X.X',
+ ],
+ ],
+ [
+ 'name' => 'Port',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Nacos实例端口',
+ 'description' => 'Nacos实例端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '12281',
+ ],
+ ],
+ [
+ 'name' => 'Ephemeral',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '临时节点标志',
+ 'description' => '是否为非持久化节点,取值如下:'."\n"
+ .'- `true`:是。'."\n"
+ .'- `false`:否。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Weight',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '权重',
+ 'description' => '权重,为范围0~10000的整数。值越大,访问到该实例的频率越高。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Enabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务禁用标志',
+ 'description' => '是否启用此服务,取值如下:'."\n"
+ ."\n"
+ .'- `true`:是。'."\n"
+ .'- `false`:否。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Metadata',
+ 'in' => 'formData',
+ 'schema' => [
+ 'title' => '节点元数据',
+ 'description' => '节点元数据。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[int]',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '字符串对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'title' => 'http状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87d3dec',
+ ],
+ 'Message' => [
+ 'title' => '响应信息',
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求成功',
+ ],
+ 'Code' => [
+ 'title' => '响应码',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'title' => '成功标志',
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '修改结果',
+ 'description' => '修改结果。',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"9e78a671-4b9b-4dd4-99c1-0b9da87d3dec\\",\\n \\"Message\\": \\"请求成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"ok\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateNacosInstanceResponse>\\n <HttpStatusCode>200</HttpStatusCode>\\n <RequestId>9e78a671-4b9b-4dd4-99c1-0b9da87d3dec</RequestId>\\n <Message>请求成功</Message>\\n <Code>200</Code>\\n <Success>true</Success>\\n <Data>ok</Data>\\n</UpdateNacosInstanceResponse>","errorExample":""}]',
+ 'title' => '更新Nacos实例信息',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ ],
+ 'ListAnsInstances' => [
+ 'summary' => '查询Nacos服务实例列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '17056',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseAPH368',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。><notice>此接口同时有InstanceId与ClusterId,则其中一项必填。></notice>'."\n",
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '联系人组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12233****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群别名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。><notice>此接口同时有InstanceId与ClusterId,则其中一项必填。></notice>'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-tl327w****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DefaultKey' => [
+ 'description' => '缺省键。',
+ 'type' => 'string',
+ 'example' => '30.5.XX.XX:unknown',
+ ],
+ 'Ephemeral' => [
+ 'description' => '临时节点,取值如下:'."\n"
+ .'- `true`:获取成功。'."\n"
+ .'- `false`:获取失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Marked' => [
+ 'description' => '标记,取值如下:'."\n"
+ .'- `true`:标记成功。'."\n"
+ .'- `false`:标记失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Ip' => [
+ 'description' => '公网IP。',
+ 'type' => 'string',
+ 'example' => '30.5.XX.XX',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => '30.5.XX.XX#0#DEFAULT#DEFAULT_GROUP@@consumers:com.alibaba.edas.IHelloService',
+ ],
+ 'Port' => [
+ 'description' => '端口号',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8080',
+ ],
+ 'LastBeat' => [
+ 'description' => '最近一次的心跳时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20201010',
+ ],
+ 'OkCount' => [
+ 'description' => '成功计数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Weight' => [
+ 'description' => '权重。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'InstanceHeartBeatInterval' => [
+ 'description' => '实例心跳间隔,单位:秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5000',
+ ],
+ 'IpDeleteTimeout' => [
+ 'description' => 'IP删除超时。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30000',
+ ],
+ 'App' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'example' => 'app',
+ ],
+ 'FailCount' => [
+ 'description' => '失败计数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Healthy' => [
+ 'description' => '实例健康状态,取值如下:'."\n"
+ .'- `true`:实例健康。'."\n"
+ .'- `false`:实例不健康。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Enabled' => [
+ 'description' => '生效状态,取值如下:'."\n"
+ .'- `true`:生效。'."\n"
+ .'- `false`:不生效。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'DatumKey' => [
+ 'description' => '基准键。',
+ 'type' => 'string',
+ 'example' => '30.5.XX.XX:unknown:DEFAULT',
+ ],
+ 'ClusterName' => [
+ 'description' => '集群名称。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT',
+ ],
+ 'InstanceHeartBeatTimeOut' => [
+ 'description' => '实例心跳超时。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '15000',
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP@@consumers:com.alibaba.edas.IHelloService::',
+ ],
+ 'Metadata' => [
+ 'description' => '元数据。',
+ 'type' => 'object',
+ 'example' => '[int]',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Data\\": [\\n {\\n \\"DefaultKey\\": \\"30.5.XX.XX:unknown\\",\\n \\"Ephemeral\\": true,\\n \\"Marked\\": true,\\n \\"Ip\\": \\"30.5.XX.XX\\",\\n \\"InstanceId\\": \\"30.5.XX.XX#0#DEFAULT#DEFAULT_GROUP@@consumers:com.alibaba.edas.IHelloService\\",\\n \\"Port\\": 8080,\\n \\"LastBeat\\": 20201010,\\n \\"OkCount\\": 0,\\n \\"Weight\\": 1,\\n \\"InstanceHeartBeatInterval\\": 5000,\\n \\"IpDeleteTimeout\\": 30000,\\n \\"App\\": \\"app\\",\\n \\"FailCount\\": 0,\\n \\"Healthy\\": true,\\n \\"Enabled\\": true,\\n \\"DatumKey\\": \\"30.5.XX.XX:unknown:DEFAULT\\",\\n \\"ClusterName\\": \\"DEFAULT\\",\\n \\"InstanceHeartBeatTimeOut\\": 15000,\\n \\"ServiceName\\": \\"DEFAULT_GROUP@@consumers:com.alibaba.edas.IHelloService::\\",\\n \\"Metadata\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListAnsInstancesResponse>\\n<HttpCode>202</HttpCode>\\n<TotalCount>7</TotalCount>\\n<PageSize>10</PageSize>\\n<Message>请求处理成功</Message>\\n<RequestId>52BA6DA6-A702-4362-A32F-DFF79655****</RequestId>\\n<PageNumber>1</PageNumber>\\n<Data>\\n <App>app</App>\\n <InstanceId>30.5.XX.XX#0#DEFAULT#DEFAULT_GROUP@@consumers:com.alibaba.edas.IHelloService</InstanceId>\\n <Ip>30.5.XX.XX</Ip>\\n <Port>8080</Port>\\n <Metadata>[int]</Metadata>\\n <Enabled>true</Enabled>\\n <Weight>1</Weight>\\n <DatumKey>30.5.XX.XX:unknown:DEFAULT</DatumKey>\\n <OkCount>0</OkCount>\\n <ServiceName>DEFAULT_GROUP@@consumers:com.alibaba.edas.IHelloService::</ServiceName>\\n <FailCount>0</FailCount>\\n <ClusterName>DEFAULT</ClusterName>\\n <LastBeat>20201010</LastBeat>\\n <DefaultKey>30.5.XX.XX:unknown</DefaultKey>\\n <InstanceHeartBeatTimeOut>15000</InstanceHeartBeatTimeOut>\\n <Ephemeral>true</Ephemeral>\\n <IpDeleteTimeout>30000</IpDeleteTimeout>\\n <Marked>true</Marked>\\n <Healthy>true</Healthy>\\n <InstanceHeartBeatInterval>5000</InstanceHeartBeatInterval>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</ListAnsInstancesResponse>","errorExample":""}]',
+ 'title' => '查询Nacos服务实例列表',
+ 'description' => '> 当前的OpenAPI并非是Nacos-SDK API,Nacos-SDK API相关内容,请参见[官方文档](https://nacos.io/zh-cn/docs/sdk.html)。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetServiceListeners' => [
+ 'summary' => '获取目标服务的监听者列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '137871',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXDLQRG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询指定的服务名信息',
+ 'description' => '查询指定的服务名信息。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zeekr-orderboss',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务所在的分组',
+ 'description' => '服务所在的分组。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'WEB_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务所在的 namespace',
+ 'description' => '服务所在的 namespace。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ddaf8f12-****-b1c1-86e7c72e266b',
+ ],
+ ],
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询服务下某个集群的实例列表是所需要的参数',
+ 'description' => '服务所属集群名字。'."\n"
+ .'> 此处集群为nacos服务中的概念,非MSE集群。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ [
+ 'name' => 'HasIpCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保留字段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'none',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '当前查询服务的集群标识',
+ 'description' => '待查询服务所属的MSE集群ID。'."\n"
+ .'> InstanceId与ClusterId其中一个必填。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '当前查询服务的集群标识',
+ 'description' => '当前查询服务的集群ID。'."\n"
+ .'> InstanceId与ClusterId其中一个必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-tl32odtt20j',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询第几页',
+ 'description' => '查询第几页。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页展示条数',
+ 'description' => '每页展示条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RegCenterOperatorResult',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Addr' => [
+ 'title' => '地址',
+ 'description' => '监听者的地址。',
+ 'type' => 'string',
+ 'example' => '119.23.84.102',
+ ],
+ 'Agent' => [
+ 'title' => '客户端版本',
+ 'description' => '监听者客户端版本。',
+ 'type' => 'string',
+ 'example' => 'Nacos-Java-Client:v2.1.1',
+ ],
+ 'App' => [
+ 'title' => '应用',
+ 'description' => '监听者的应用名称。',
+ 'type' => 'string',
+ 'example' => 'app',
+ ],
+ 'IP' => [
+ 'title' => 'ip地址',
+ 'description' => '被监听服务的IP地址。',
+ 'type' => 'string',
+ 'example' => '172.16.1.5',
+ ],
+ 'Port' => [
+ 'title' => '端口号',
+ 'description' => '被监听服务的端口号。',
+ 'type' => 'string',
+ 'example' => '8080',
+ ],
+ 'NamespaceId' => [
+ 'title' => '命名空间id',
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'example' => '0ba53825-b183-414f-a6a0-288e4f1c467e',
+ ],
+ 'ServiceName' => [
+ 'title' => '服务名称',
+ 'description' => '被监听服务的名称。',
+ 'type' => 'string',
+ 'example' => 'zeekr-orderboss',
+ ],
+ 'Cluster' => [
+ 'title' => '集群名称',
+ 'description' => '被监听服务所属集群名字。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ ],
+ ],
+ 'PageNumber' => [
+ 'title' => '实例列表的页码',
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'title' => '查询到的实例总数',
+ 'description' => '查询到的监听者数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'PageSize' => [
+ 'title' => '输入时设置的每页行数',
+ 'description' => '每页行数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '54973C90-F379-4372-9AA5-053A3F7****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"Addr\\": \\"119.23.84.102\\",\\n \\"Agent\\": \\"Nacos-Java-Client:v2.1.1\\",\\n \\"App\\": \\"app\\",\\n \\"IP\\": \\"172.16.1.5\\",\\n \\"Port\\": \\"8080\\",\\n \\"NamespaceId\\": \\"0ba53825-b183-414f-a6a0-288e4f1c467e\\",\\n \\"ServiceName\\": \\"zeekr-orderboss\\",\\n \\"Cluster\\": \\"DEFAULT\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 2,\\n \\"PageSize\\": 10,\\n \\"Success\\": true,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"54973C90-F379-4372-9AA5-053A3F7****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpCode\\": \\"202\\"\\n}","type":"json"}]',
+ 'title' => '获取nacos服务监听者',
+ ],
+ 'ListEurekaServices' => [
+ 'summary' => '查询Eureka服务列表。',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17068',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKQ13CA',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstancesId' => [
+ 'description' => '实例信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ 'Name' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'CONTACTINFO',
+ ],
+ 'UpStatus' => [
+ 'description' => '服务提供者数量,健康实例数/总实例数。',
+ 'type' => 'string',
+ 'example' => '1/1',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Data\\": [\\n {\\n \\"InstancesId\\": [\\n \\"mse-cn-st21ri2****\\"\\n ],\\n \\"Name\\": \\"CONTACTINFO\\",\\n \\"UpStatus\\": \\"1/1\\"\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListEurekaServicesResponse>\\n<HttpCode>202</HttpCode>\\n<TotalCount>7</TotalCount>\\n<PageSize>10</PageSize>\\n<Message>请求处理成功</Message>\\n<RequestId>316F5F64-F73D-42DC-8632-01E308B6****</RequestId>\\n<PageNumber>1</PageNumber>\\n<Data>\\n <UpStatus>1/1</UpStatus>\\n <Name>CONTACTINFO</Name>\\n <InstancesId>mse-cn-st21ri2****</InstancesId>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</ListEurekaServicesResponse>","errorExample":""}]',
+ 'title' => '查询Eureka服务列表',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListEurekaInstances' => [
+ 'summary' => '查询Eureka实例列表。',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17067',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKQ13CA',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '服务提供者数量,健康实例数/总实例数。',
+ 'type' => 'string',
+ 'example' => '1/1',
+ ],
+ 'LastDirtyTimestamp' => [
+ 'description' => '实例属性最后更新的时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20201009115543',
+ ],
+ 'IpAddr' => [
+ 'description' => 'IP地址。',
+ 'type' => 'string',
+ 'example' => '30.5.XX.XX',
+ ],
+ 'HomePageUrl' => [
+ 'description' => '主页地址。',
+ 'type' => 'string',
+ 'example' => 'http://30.5.XX.XX:8091/',
+ ],
+ 'HostName' => [
+ 'description' => '主机名。',
+ 'type' => 'string',
+ 'example' => '30.5.XX.XX',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'L-PC1A6A28-****.hz.ali.com:contactinfo:8091',
+ ],
+ 'Port' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8091',
+ ],
+ 'SecurePort' => [
+ 'description' => '安全端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '443',
+ ],
+ 'App' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'example' => 'CONTACTINFO',
+ ],
+ 'DurationInSecs' => [
+ 'description' => '实例超时时间。 '."\n"
+ .'超过这个时间后,服务默认不可用,将会被删除。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '90',
+ ],
+ 'LastUpdatedTimestamp' => [
+ 'description' => '最近一次心跳时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20201010071203',
+ ],
+ 'RenewalIntervalInSecs' => [
+ 'description' => '心跳执行器在续约过程中超时后再次执行续约的最大延迟倍数。 '."\n"
+ .'默认最大延迟倍数为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'VipAddress' => [
+ 'description' => 'VIP地址。',
+ 'type' => 'string',
+ 'example' => 'contactinfo',
+ ],
+ 'Metadata' => [
+ 'description' => '元数据。',
+ 'type' => 'object',
+ 'example' => '[string]',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Data\\": [\\n {\\n \\"Status\\": \\"1/1\\",\\n \\"LastDirtyTimestamp\\": 20201009115543,\\n \\"IpAddr\\": \\"30.5.XX.XX\\",\\n \\"HomePageUrl\\": \\"http://30.5.XX.XX:8091/\\",\\n \\"HostName\\": \\"30.5.XX.XX\\",\\n \\"InstanceId\\": \\"L-PC1A6A28-****.hz.ali.com:contactinfo:8091\\",\\n \\"Port\\": 8091,\\n \\"SecurePort\\": 443,\\n \\"App\\": \\"CONTACTINFO\\",\\n \\"DurationInSecs\\": 90,\\n \\"LastUpdatedTimestamp\\": 20201010071203,\\n \\"RenewalIntervalInSecs\\": 10,\\n \\"VipAddress\\": \\"contactinfo\\",\\n \\"Metadata\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListEurekaInstancesResponse>\\n<HttpCode>202</HttpCode>\\n<TotalCount>7</TotalCount>\\n<PageSize>10</PageSize>\\n<Message>请求处理成功</Message>\\n<RequestId>316F5F64-F73D-42DC-8632-01E308B6****</RequestId>\\n<PageNumber>1</PageNumber>\\n<Data>\\n <Status>1/1</Status>\\n <App>CONTACTINFO</App>\\n <RenewalIntervalInSecs>10</RenewalIntervalInSecs>\\n <SecurePort>443</SecurePort>\\n <IpAddr>30.5.XX.XX</IpAddr>\\n <InstanceId>L-PC1A6A28-****.hz.ali.com:contactinfo:8091</InstanceId>\\n <DurationInSecs>90</DurationInSecs>\\n <VipAddress>contactinfo</VipAddress>\\n <LastUpdatedTimestamp>20201010071203</LastUpdatedTimestamp>\\n <Port>8091</Port>\\n <Metadata>[string]</Metadata>\\n <LastDirtyTimestamp>20201009115543</LastDirtyTimestamp>\\n <HomePageUrl>http://30.5.XX.XX:8091/</HomePageUrl>\\n <HostName>30.5.XX.XX</HostName>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</ListEurekaInstancesResponse>","errorExample":""}]',
+ 'title' => '查询Eureka实例列表',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'QueryMonitor' => [
+ 'summary' => '查询监控信息。此接口只支持查询基础版实例的监控信息,专业版,开发版,serverless 版本监控数据已经投递到用户自己的云产品多租prometheus实例中,可以直接通过prometheus接口进行访问。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17082',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseZAXYAZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'MonitorType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '监控类型如下:'."\n"
+ ."\n"
+ .'[基础系统指标]'."\n"
+ .'- cpu使用量 cpuUsage'."\n"
+ .'- 内存使用量 memoryUsage'."\n"
+ .'- 磁盘使用量 diskUsage'."\n"
+ .'- gc次数(每分钟) gcCount'."\n"
+ .'- gc时间(每分钟) gcTime'."\n"
+ ."\n"
+ .'[nacos 注册中心]'."\n"
+ .'- 服务数 serviceCount'."\n"
+ .'- 写接口的平均请求耗时 writeCostTime'."\n"
+ .'- 读接口的平均请求耗时 readCostTime'."\n"
+ .'- TPS regCenterTps'."\n"
+ .'- QPS regCenterQps'."\n"
+ ."\n"
+ .'[nacos 配置中心]'."\n"
+ .'- 配置数 publish'."\n"
+ .'- 配置监听者数 getConfig'."\n"
+ ."\n"
+ .'[zookeeper]'."\n"
+ .'- TPS zk_TpsCount'."\n"
+ .'- QPS zk_QpsCount'."\n"
+ .'- 平均RT zookeeper_AvgRequestLatency',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'regCenterQps',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '监控开始时间戳。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1666678376',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '监控结束时间戳。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1666678376',
+ ],
+ ],
+ [
+ 'name' => 'Step',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据点间隔,单位:s。 ',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '7',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ADDD8AB7-8D1C-4697-A83E-410D2607****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'podName' => [
+ 'description' => 'pod名称。',
+ 'type' => 'string',
+ 'example' => 'mse-xxxxxx-xxxxxx-reg-center-0-0',
+ ],
+ 'clusterNamePrefix' => [
+ 'description' => '名称前缀。',
+ 'type' => 'string',
+ 'example' => 'mse-xxxx-xxxxxx',
+ ],
+ 'values' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据内容。',
+ 'type' => 'object',
+ ],
+ ],
+ ],
+ ],
+ 'example' => '6',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"ADDD8AB7-8D1C-4697-A83E-410D2607****\\",\\n \\"Data\\": [\\n {\\n \\"podName\\": \\"mse-xxxxxx-xxxxxx-reg-center-0-0\\",\\n \\"clusterNamePrefix\\": \\"mse-xxxx-xxxxxx\\",\\n \\"values\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<QueryMonitorResponse>\\n<RequestId>ADDD8AB7-8D1C-4697-A83E-410D2607****</RequestId>\\n<Message>请求处理成功</Message>\\n<Data>6</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</QueryMonitorResponse>","errorExample":""}]',
+ 'title' => '查询监控信息',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateAcl' => [
+ 'summary' => '修改白名单。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '17096',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse3FEC0V',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AclEntryList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '白名单列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '192.168.0.0/XX,192.168.0.0/XX',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-78v1l83****',
+ ],
+ ],
+ [
+ 'name' => 'NetworkType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'default' => 'Public',
+ 'enum' => [
+ 'Private',
+ 'Public',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7466566F-F30F-4A29-965D-3E0AF21D****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-100',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'OperationNotSupport',
+ 'errorMessage' => 'The current cluster does not support this operation, %s.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"7466566F-F30F-4A29-965D-3E0AF21D****\\",\\n \\"ErrorCode\\": \\"mse-100-100\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<UpdateAclResponse>\\n<Message>请求处理成功</Message>\\n<RequestId>7466566F-F30F-4A29-965D-3E0AF21D****</RequestId>\\n<ErrorCode>mse-100-100</ErrorCode>\\n<Success>true</Success>\\n</UpdateAclResponse>","errorExample":""}]',
+ 'title' => '更新白名单',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'QueryInstancesInfo' => [
+ 'summary' => '查询指定集群的运行时数据。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '129092',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-tl32g1u9k01',
+ ],
+ ],
+ [
+ 'name' => 'OrderId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '订单ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20574710974****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例所属地域的ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'BaseResult',
+ 'description' => 'BaseResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '54973C90-F379-4372-9AA5-053A3F7****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HealthStatus' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'Role' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'PodName' => [
+ 'description' => 'POD名称。',
+ 'type' => 'string',
+ 'example' => 'mse-xxxxx-xxxxx-reg-center-0-1',
+ ],
+ 'Ip' => [
+ 'description' => 'POD的IP。',
+ 'type' => 'string',
+ 'example' => '25.24.91.x',
+ ],
+ 'InternetIp' => [
+ 'description' => '公网IP。',
+ 'type' => 'string',
+ 'example' => '120.55.71.x',
+ ],
+ 'SingleTunnelVip' => [
+ 'description' => '内网IP。',
+ 'type' => 'string',
+ 'example' => '172.16.66.x',
+ ],
+ 'CreationTimestamp' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-12-15T02:02:15Z',
+ ],
+ 'ClientPort' => [
+ 'description' => '启用的端口。',
+ 'type' => 'string',
+ 'example' => '8848',
+ ],
+ 'Zone' => [
+ 'description' => '可用区。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou-k',
+ ],
+ 'ZoneDistributed' => [
+ 'description' => '所有Pod是否已满足多可用区分布。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"54973C90-F379-4372-9AA5-053A3F7****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpCode\\": \\"202\\",\\n \\"Data\\": [\\n {\\n \\"HealthStatus\\": \\"null\\",\\n \\"Role\\": \\"null\\",\\n \\"PodName\\": \\"mse-xxxxx-xxxxx-reg-center-0-1\\",\\n \\"Ip\\": \\"25.24.91.x\\",\\n \\"InternetIp\\": \\"120.55.71.x\\",\\n \\"SingleTunnelVip\\": \\"172.16.66.x\\",\\n \\"CreationTimestamp\\": \\"2022-12-15T02:02:15Z\\",\\n \\"ClientPort\\": \\"8848\\",\\n \\"Zone\\": \\"cn-hangzhou-k\\",\\n \\"ZoneDistributed\\": true\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询集群静态信息',
+ ],
+ 'QueryClusterInfo' => [
+ 'summary' => '查询集群的静态信息。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '129315',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-7mz2t63ci03',
+ ],
+ ],
+ [
+ 'name' => 'OrderId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '订单ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20574710974****',
+ ],
+ ],
+ [
+ 'name' => 'AclSwitch',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询公网白名单配置。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'default' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '415088B3-A7BE-56F6-9CD9-C42DE895CD41',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => '集群所处的VPC ID。',
+ 'type' => 'string',
+ 'example' => 'vpc-bp1v5nbauzh8xxxxxxx',
+ ],
+ 'CreateTime' => [
+ 'description' => '集群创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-12-15 10:02:07',
+ ],
+ 'IntranetAddress' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'DiskType' => [
+ 'description' => '废弃字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'PubNetworkFlow' => [
+ 'description' => '公网带宽,单位:Mbps。 '."\n"
+ .'取值范围:0~5000,其中0表示不接入公网。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'DiskCapacity' => [
+ 'description' => '废弃字段。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => 'null',
+ ],
+ 'MemoryCapacity' => [
+ 'description' => '废弃字段。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => 'null',
+ ],
+ 'ClusterAliasName' => [
+ 'description' => '集群别名。',
+ 'type' => 'string',
+ 'example' => '开发环境',
+ ],
+ 'InstanceCount' => [
+ 'description' => '集群实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'IntranetPort' => [
+ 'description' => '集群内网开放的端口。',
+ 'type' => 'string',
+ 'example' => '8848,6443,9848,8761',
+ ],
+ 'InstanceModels' => [
+ 'description' => '预留结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '预留结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PodName' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'SingleTunnelVip' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'InternetIp' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'Ip' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'Role' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'HealthStatus' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'CreationTimestamp' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'Zone' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ ],
+ ],
+ ],
+ 'IntranetDomain' => [
+ 'description' => '内网域名。',
+ 'type' => 'string',
+ 'example' => 'mse-xxxxx-nacos-ans.mse.aliyuncs.com',
+ ],
+ 'InternetDomain' => [
+ 'description' => '公网域名。',
+ 'type' => 'string',
+ 'example' => 'mse-xxxxxx-p.nacos-ans.mse.aliyuncs.com',
+ ],
+ 'PayInfo' => [
+ 'description' => '付费方式。',
+ 'type' => 'string',
+ 'example' => '按量付费',
+ ],
+ 'InternetAddress' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'AclEntryList' => [
+ 'description' => '公网白名单。',
+ 'type' => 'string',
+ 'example' => '["127.0.0.0/32"]',
+ ],
+ 'HealthStatus' => [
+ 'description' => '集群状态。',
+ 'type' => 'string',
+ 'example' => 'INIT_SUCCESS',
+ ],
+ 'InitCostTime' => [
+ 'description' => '集群初始化所用的时间(毫秒)。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '53353',
+ ],
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'AclId' => [
+ 'description' => '公网白名单实例ID',
+ 'type' => 'string',
+ 'example' => 'acl-bp144q24cgqvzckmxxxx',
+ ],
+ 'Cpu' => [
+ 'description' => '废弃字段。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => 'null',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型,包括ZooKeeper、Nacos-Ans和Eureka。',
+ 'type' => 'string',
+ 'example' => 'Nacos-Ans',
+ ],
+ 'ClusterName' => [
+ 'description' => '集群完整名称。',
+ 'type' => 'string',
+ 'example' => 'mse-74355150-xxxxxxx',
+ ],
+ 'InitStatus' => [
+ 'description' => '初始化状态。',
+ 'type' => 'string',
+ 'example' => 'INIT_SUCCESS',
+ ],
+ 'InternetPort' => [
+ 'description' => '公网集群开放端口。',
+ 'type' => 'string',
+ 'example' => '8848,6443,9848,8761',
+ ],
+ 'AppVersion' => [
+ 'description' => '集群版本号。',
+ 'type' => 'string',
+ 'example' => '2.1.0',
+ ],
+ 'NetType' => [
+ 'description' => '集群网络连接类型。',
+ 'type' => 'string',
+ 'example' => 'privatenet',
+ ],
+ 'ClusterVersion' => [
+ 'description' => '订单版本。',
+ 'type' => 'string',
+ 'example' => 'NACOS_2_0_0',
+ ],
+ 'ClusterSpecification' => [
+ 'description' => '引擎规格。',
+ 'type' => 'string',
+ 'example' => 'MSE_SC_2_4_60_c',
+ ],
+ 'VSwitchId' => [
+ 'description' => '交换机ID。',
+ 'type' => 'string',
+ 'example' => 'vsw-bp1egfakxxxxx',
+ ],
+ 'ConnectionType' => [
+ 'description' => '废弃字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'MseVersion' => [
+ 'description' => '集群版本。',
+ 'type' => 'string',
+ 'example' => 'mse_pro',
+ ],
+ 'ChargeType' => [
+ 'title' => '',
+ 'description' => '付费模式,包括包年包月和按量付费。',
+ 'type' => 'string',
+ 'example' => 'POSTPAY',
+ ],
+ 'Tags' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ ],
+ 'ExpectZones' => [
+ 'description' => '当前集群可打散到的可用区列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '可用区ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou-k',
+ ],
+ ],
+ 'MaintenancePeriod' => [
+ 'description' => '运维时间窗口',
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => [
+ 'description' => '运维时间窗口开始时间',
+ 'type' => 'string',
+ 'example' => '02:00',
+ ],
+ 'StartTime' => [
+ 'description' => '运维时间窗口结束时间',
+ 'type' => 'string',
+ 'example' => '06:00',
+ ],
+ ],
+ ],
+ 'EndDate' => [
+ 'title' => '到期时间(包年包月)',
+ 'description' => '到期时间(包年包月)',
+ 'type' => 'string',
+ 'example' => '2021-08-01 00:00:00',
+ ],
+ 'SecurityGroupId' => [
+ 'title' => 'ENI网络接入的安全组ID',
+ 'description' => 'ENI网络接入的安全组ID',
+ 'type' => 'string',
+ 'example' => 'sg-uf6hgwe067prhg68agfa',
+ ],
+ 'SecurityGroupType' => [
+ 'title' => 'ENI网络接入的安全组类型',
+ 'description' => 'ENI网络接入的安全组类型',
+ 'type' => 'string',
+ 'example' => 'enterprise',
+ 'enum' => [
+ 'enterprise',
+ 'normal',
+ ],
+ ],
+ 'EipInstanceId' => [
+ 'title' => '弹性公网IP(EIP)的实例ID',
+ 'description' => '弹性公网IP(EIP)的实例ID',
+ 'type' => 'string',
+ 'example' => 'eip-bp1uujshd5funmyy8rcl9',
+ ],
+ 'CanUpdate' => [
+ 'description' => '集群是否有小版本可以升级',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'VersionCode' => [
+ 'description' => '集群当前版本Code',
+ 'type' => 'string',
+ 'example' => 'NACOS_2_1_0_1',
+ ],
+ 'VersionLifecycle' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"415088B3-A7BE-56F6-9CD9-C42DE895CD41\\",\\n \\"Data\\": {\\n \\"VpcId\\": \\"vpc-bp1v5nbauzh8xxxxxxx\\",\\n \\"CreateTime\\": \\"2022-12-15 10:02:07\\",\\n \\"IntranetAddress\\": \\"null\\",\\n \\"DiskType\\": \\"null\\",\\n \\"PubNetworkFlow\\": \\"1\\",\\n \\"DiskCapacity\\": 0,\\n \\"MemoryCapacity\\": 0,\\n \\"ClusterAliasName\\": \\"开发环境\\",\\n \\"InstanceCount\\": 3,\\n \\"IntranetPort\\": \\"8848,6443,9848,8761\\",\\n \\"InstanceModels\\": [\\n {\\n \\"PodName\\": \\"null\\",\\n \\"SingleTunnelVip\\": \\"null\\",\\n \\"InternetIp\\": \\"null\\",\\n \\"Ip\\": \\"null\\",\\n \\"Role\\": \\"null\\",\\n \\"HealthStatus\\": \\"null\\",\\n \\"CreationTimestamp\\": \\"null\\",\\n \\"Zone\\": \\"null\\"\\n }\\n ],\\n \\"IntranetDomain\\": \\"mse-xxxxx-nacos-ans.mse.aliyuncs.com\\",\\n \\"InternetDomain\\": \\"mse-xxxxxx-p.nacos-ans.mse.aliyuncs.com\\",\\n \\"PayInfo\\": \\"按量付费\\",\\n \\"InternetAddress\\": \\"null\\",\\n \\"InstanceId\\": \\"mse-cn-st21ri2****\\",\\n \\"AclEntryList\\": \\"[\\\\\\"127.0.0.0/32\\\\\\"]\\",\\n \\"HealthStatus\\": \\"INIT_SUCCESS\\",\\n \\"InitCostTime\\": 53353,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"AclId\\": \\"acl-bp144q24cgqvzckmxxxx\\",\\n \\"Cpu\\": 0,\\n \\"ClusterType\\": \\"Nacos-Ans\\",\\n \\"ClusterName\\": \\"mse-74355150-xxxxxxx\\",\\n \\"InitStatus\\": \\"INIT_SUCCESS\\",\\n \\"InternetPort\\": \\"8848,6443,9848,8761\\",\\n \\"AppVersion\\": \\"2.1.0\\",\\n \\"NetType\\": \\"privatenet\\",\\n \\"ClusterVersion\\": \\"NACOS_2_0_0\\",\\n \\"ClusterSpecification\\": \\"MSE_SC_2_4_60_c\\",\\n \\"VSwitchId\\": \\"vsw-bp1egfakxxxxx\\",\\n \\"ConnectionType\\": \\"null\\",\\n \\"MseVersion\\": \\"mse_pro\\",\\n \\"ChargeType\\": \\"POSTPAY\\",\\n \\"Tags\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ExpectZones\\": [\\n \\"cn-hangzhou-k\\"\\n ],\\n \\"MaintenancePeriod\\": {\\n \\"EndTime\\": \\"02:00\\",\\n \\"StartTime\\": \\"06:00\\"\\n },\\n \\"EndDate\\": \\"2021-08-01 00:00:00\\",\\n \\"SecurityGroupId\\": \\"sg-uf6hgwe067prhg68agfa\\",\\n \\"SecurityGroupType\\": \\"enterprise\\",\\n \\"EipInstanceId\\": \\"eip-bp1uujshd5funmyy8rcl9\\",\\n \\"CanUpdate\\": true,\\n \\"VersionCode\\": \\"NACOS_2_1_0_1\\",\\n \\"VersionLifecycle\\": \\"\\"\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询集群静态信息',
+ ],
+ 'QueryClusterDetail' => [
+ 'summary' => '接口查询集群详情。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17078',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'OrderId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '订单ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '20576750143****',
+ ],
+ ],
+ [
+ 'name' => 'AclSwitch',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询ACL。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '字符串对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9515ACA4-E94D-440D-989E-C379FCED****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => 'VPC ID。',
+ 'type' => 'string',
+ 'example' => 'vpc-bp1hcg467ekqsv0zr****',
+ ],
+ 'CreateTime' => [
+ 'description' => '集群创建时间。',
+ 'type' => 'string',
+ 'example' => '2020-07-31 11:36:08',
+ ],
+ 'IntranetAddress' => [
+ 'description' => '私网地址。',
+ 'type' => 'string',
+ 'example' => '192.168.XX.XX',
+ ],
+ 'DiskType' => [
+ 'description' => '磁盘类型。',
+ 'type' => 'string',
+ 'example' => 'alicloud-disk-ssd-multi-zone',
+ ],
+ 'PubNetworkFlow' => [
+ 'description' => '公网带宽,单位:Mbps。 '."\n"
+ .'取值范围:0~5000,其中0表示不接入公网。',
+ 'type' => 'string',
+ 'example' => '3',
+ ],
+ 'DiskCapacity' => [
+ 'description' => '磁盘容量,单位:G。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '60',
+ ],
+ 'MemoryCapacity' => [
+ 'description' => '内存大小,单位:G。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'ClusterAliasName' => [
+ 'description' => '集群别名。',
+ 'type' => 'string',
+ 'example' => 'mse-7413****',
+ ],
+ 'InstanceCount' => [
+ 'description' => '集群实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'IntranetPort' => [
+ 'description' => '私网端口。',
+ 'type' => 'string',
+ 'example' => '8761',
+ ],
+ 'InstanceModels' => [
+ 'description' => '实例列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '字符串对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PodName' => [
+ 'description' => 'Pod名称。',
+ 'type' => 'string',
+ 'example' => 'mse-7413****-159616656****-reg-center-0-0',
+ ],
+ 'SingleTunnelVip' => [
+ 'description' => '单线程IP。',
+ 'type' => 'string',
+ 'example' => '192.168.XX.XX',
+ ],
+ 'InternetIp' => [
+ 'description' => '公网IP。',
+ 'type' => 'string',
+ 'example' => '47.98.XX.XX',
+ ],
+ 'Ip' => [
+ 'description' => '实例IP。',
+ 'type' => 'string',
+ 'example' => '10.12.XX.XX',
+ ],
+ 'Role' => [
+ 'description' => '角色。',
+ 'type' => 'string',
+ 'example' => 'Peer',
+ ],
+ 'HealthStatus' => [
+ 'description' => '实例健康状态。',
+ 'type' => 'string',
+ 'example' => 'Running',
+ ],
+ 'CreationTimestamp' => [
+ 'description' => '创建时间戳。',
+ 'type' => 'string',
+ 'example' => '1578575377732',
+ ],
+ 'Zone' => [
+ 'description' => '可用区。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai-f',
+ ],
+ ],
+ ],
+ ],
+ 'IntranetDomain' => [
+ 'description' => '私网域名。',
+ 'type' => 'string',
+ 'example' => 'mse-7413****-eureka.mse.aliyuncs.com',
+ ],
+ 'InternetDomain' => [
+ 'description' => '公网域名。',
+ 'type' => 'string',
+ 'example' => 'mse-7413****-p.eureka.mse.aliyuncs.com',
+ ],
+ 'PayInfo' => [
+ 'description' => '付费类型,包括包年包月和按量付费类型。',
+ 'type' => 'string',
+ 'example' => '按量付费',
+ ],
+ 'InternetAddress' => [
+ 'description' => '公网地址。',
+ 'type' => 'string',
+ 'example' => '47.98.XX.XX',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'AclEntryList' => [
+ 'description' => '白名单列表。',
+ 'type' => 'string',
+ 'example' => '[]',
+ ],
+ 'HealthStatus' => [
+ 'description' => '集群健康状态。',
+ 'type' => 'string',
+ 'example' => 'RESTART_SUCCESS',
+ ],
+ 'InitCostTime' => [
+ 'description' => '集群创建耗时,单位:ms。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '98408',
+ ],
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'AclId' => [
+ 'description' => '白名单ID。',
+ 'type' => 'string',
+ 'example' => 'acl-bp17020kiqvzutwwj****',
+ ],
+ 'Cpu' => [
+ 'description' => 'CPU数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型,包括ZooKeeper、Nacos-Ans和Eureka。',
+ 'type' => 'string',
+ 'example' => 'Nacos-Ans',
+ ],
+ 'ClusterName' => [
+ 'description' => '集群名称。',
+ 'type' => 'string',
+ 'example' => 'mse-bc1a29b0-160230875****',
+ ],
+ 'InitStatus' => [
+ 'description' => '集群创建状态。',
+ 'type' => 'string',
+ 'example' => 'RESTART_SUCCESS',
+ ],
+ 'InternetPort' => [
+ 'description' => '私网端口。',
+ 'type' => 'string',
+ 'example' => '8761',
+ ],
+ 'AppVersion' => [
+ 'description' => 'APP版本。',
+ 'type' => 'string',
+ 'example' => '1.2.1',
+ ],
+ 'NetType' => [
+ 'description' => '网络类型,取值如下:'."\n"
+ ."\n"
+ .'- `privatenet`:表示专有网络。'."\n"
+ .'- `pubnet`:表示公网。',
+ 'type' => 'string',
+ 'example' => 'privatenet',
+ ],
+ 'ClusterVersion' => [
+ 'description' => '集群版本。',
+ 'type' => 'string',
+ 'example' => '1.2.1',
+ ],
+ 'ClusterSpecification' => [
+ 'description' => '引擎规格。',
+ 'type' => 'string',
+ 'example' => 'MSE_SC_1_2_200_c',
+ ],
+ 'VSwitchId' => [
+ 'description' => '交换机ID。',
+ 'type' => 'string',
+ 'example' => 'vsw-xxx-xxxx',
+ ],
+ 'ConnectionType' => [
+ 'description' => '网络连接类型,取值如下:'."\n"
+ ."\n"
+ .'- slb'."\n"
+ .'- eni',
+ 'type' => 'string',
+ 'example' => 'slb',
+ ],
+ 'MseVersion' => [
+ 'description' => 'MSE版本号',
+ 'type' => 'string',
+ 'example' => 'mse_basic',
+ ],
+ 'ChargeType' => [
+ 'description' => '付费模式,包括包年包月和按量付费。',
+ 'type' => 'string',
+ 'example' => '按量付费',
+ ],
+ 'OrderClusterVersion' => [
+ 'description' => '原始订单版本号。',
+ 'type' => 'string',
+ 'example' => '1.2.0',
+ ],
+ 'Tags' => [
+ 'description' => '实例所绑定的标签。',
+ 'type' => 'object',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => '资源组 ID。',
+ 'type' => 'string',
+ 'example' => 'rg-aek2dhgysj*****',
+ ],
+ 'VersionLifecycle' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"9515ACA4-E94D-440D-989E-C379FCED****\\",\\n \\"Data\\": {\\n \\"VpcId\\": \\"vpc-bp1hcg467ekqsv0zr****\\",\\n \\"CreateTime\\": \\"2020-07-31 11:36:08\\",\\n \\"IntranetAddress\\": \\"192.168.XX.XX\\",\\n \\"DiskType\\": \\"alicloud-disk-ssd-multi-zone\\",\\n \\"PubNetworkFlow\\": \\"3\\",\\n \\"DiskCapacity\\": 60,\\n \\"MemoryCapacity\\": 2,\\n \\"ClusterAliasName\\": \\"mse-7413****\\",\\n \\"InstanceCount\\": 3,\\n \\"IntranetPort\\": \\"8761\\",\\n \\"InstanceModels\\": [\\n {\\n \\"PodName\\": \\"mse-7413****-159616656****-reg-center-0-0\\",\\n \\"SingleTunnelVip\\": \\"192.168.XX.XX\\",\\n \\"InternetIp\\": \\"47.98.XX.XX\\",\\n \\"Ip\\": \\"10.12.XX.XX\\",\\n \\"Role\\": \\"Peer\\",\\n \\"HealthStatus\\": \\"Running\\",\\n \\"CreationTimestamp\\": \\"1578575377732\\",\\n \\"Zone\\": \\"cn-shanghai-f\\"\\n }\\n ],\\n \\"IntranetDomain\\": \\"mse-7413****-eureka.mse.aliyuncs.com\\",\\n \\"InternetDomain\\": \\"mse-7413****-p.eureka.mse.aliyuncs.com\\",\\n \\"PayInfo\\": \\"按量付费\\",\\n \\"InternetAddress\\": \\"47.98.XX.XX\\",\\n \\"InstanceId\\": \\"mse-cn-st21ri2****\\",\\n \\"AclEntryList\\": \\"[]\\",\\n \\"HealthStatus\\": \\"RESTART_SUCCESS\\",\\n \\"InitCostTime\\": 98408,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"AclId\\": \\"acl-bp17020kiqvzutwwj****\\",\\n \\"Cpu\\": 1,\\n \\"ClusterType\\": \\"Nacos-Ans\\",\\n \\"ClusterName\\": \\"mse-bc1a29b0-160230875****\\",\\n \\"InitStatus\\": \\"RESTART_SUCCESS\\",\\n \\"InternetPort\\": \\"8761\\",\\n \\"AppVersion\\": \\"1.2.1\\",\\n \\"NetType\\": \\"privatenet\\",\\n \\"ClusterVersion\\": \\"1.2.1\\",\\n \\"ClusterSpecification\\": \\"MSE_SC_1_2_200_c\\",\\n \\"VSwitchId\\": \\"vsw-xxx-xxxx\\",\\n \\"ConnectionType\\": \\"slb\\",\\n \\"MseVersion\\": \\"mse_basic\\",\\n \\"ChargeType\\": \\"按量付费\\",\\n \\"OrderClusterVersion\\": \\"1.2.0\\",\\n \\"Tags\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ResourceGroupId\\": \\"rg-aek2dhgysj*****\\",\\n \\"VersionLifecycle\\": \\"\\"\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<QueryClusterDetailResponse>\\n<RequestId>E7744898-AF7E-4FBC-9123-EAF01CFA****</RequestId>\\n<Message>请求处理成功</Message>\\n<Data>\\n <InternetAddress>47.98.XX.XX</InternetAddress>\\n <AclEntryList>[]</AclEntryList>\\n <Cpu>1</Cpu>\\n <InternetPort>8761</InternetPort>\\n <IntranetPort>8761</IntranetPort>\\n <AppVersion>1.9.3</AppVersion>\\n <DiskType>alicloud-disk-ssd-multi-zone</DiskType>\\n <PayInfo>按量付费</PayInfo>\\n <InitCostTime>98408</InitCostTime>\\n <ClusterName>mse-74131be0-159616656****</ClusterName>\\n <IntranetDomain>mse-7413****-eureka.mse.aliyuncs.com</IntranetDomain>\\n <ClusterId>mse-7413****</ClusterId>\\n <InstanceId>mse-cn-st21ri2****</InstanceId>\\n <InternetDomain>mse-7413****-p.eureka.mse.aliyuncs.com</InternetDomain>\\n <CreateTime>2020-07-31 11:36:08</CreateTime>\\n <AclId>acl-bp17020kiqvzutwwj****</AclId>\\n <HealthStatus>RESTART_SUCCESS</HealthStatus>\\n <ClusterType>Eureka</ClusterType>\\n <MemoryCapacity>2</MemoryCapacity>\\n <ClusterAliasName>mse-7413****</ClusterAliasName>\\n <InstanceModels>\\n <Role>Peer</Role>\\n <PodName>mse-7413****-159616656****-reg-center-0-0</PodName>\\n <InternetIp>47.98.XX.XX</InternetIp>\\n <InstanceId>mse-cn-st21ri2****</InstanceId>\\n <ClusterId>mse-7413****</ClusterId>\\n <SingleTunnelVip>192.168.XX.XX</SingleTunnelVip>\\n <Ip>10.12.XX.XX</Ip>\\n <HealthStatus>Running</HealthStatus>\\n <InstanceType>xxx</InstanceType>\\n <Vip>XXX</Vip>\\n <ZkClientPort>2181</ZkClientPort>\\n </InstanceModels>\\n <InstanceCount>3</InstanceCount>\\n <IntranetAddress>192.168.XX.XX</IntranetAddress>\\n <DiskCapacity>60</DiskCapacity>\\n <VpcId>vpc-bp1hcg467ekqsv0zr****</VpcId>\\n <PubNetworkFlow>3</PubNetworkFlow>\\n <RegionId>cn-hangzhou</RegionId>\\n <InitStatus>RESTART_SUCCESS</InitStatus>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</QueryClusterDetailResponse>","errorExample":""}]',
+ 'title' => '查询集群详情',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateCluster' => [
+ 'summary' => '创建一个注册配置中心(ZooKeeper、Nacos等)集群。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '17002',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PubNetworkFlow',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'ConnectionType为`slb`时有效,0表示不创建公网接入SLB,1以上值表示公网接入SLB的带宽固定值;单位Mbps',
+ 'description' => 'ConnectionType为`slb`时有效,0表示不创建公网接入SLB,1以上值表示公网接入SLB的带宽固定值;单位Mbps。'."\n"
+ ."\n"
+ .'取值范围:0~5000。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'PubSlbSpecification',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '不再使用',
+ 'description' => '不再使用',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'docRequired' => false,
+ ],
+ ],
+ [
+ 'name' => 'DiskType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '不再使用',
+ 'description' => '不再使用',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'docRequired' => false,
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'VPC ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'vpc-bp1t50e045b5g7i3p****',
+ ],
+ ],
+ [
+ 'name' => 'NetType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网络类型,取值如下:'."\n"
+ .'- `privatenet`:表示专有网络。'."\n"
+ .'- `pubnet`:表示公网。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'privatenet',
+ ],
+ ],
+ [
+ 'name' => 'VSwitchId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '交换机ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'vsw-bp17opt4v18sto39k****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例节点数,开发版仅支持1节点,其它版本支持3-9单数节点',
+ 'description' => '实例节点数,范围限制:1~9个。'."\n"
+ ."\n"
+ .'[专业版] '."\n"
+ .'- 实例数大于等于3,且必须为奇数。'."\n"
+ ."\n"
+ .'[开发版] '."\n"
+ .'- 实例数只能为1。'."\n"
+ ."\n"
+ .'[Serverless版]'."\n"
+ ."\n"
+ .'忽略该参数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '3',
+ ],
+ ],
+ [
+ 'name' => 'ClusterSpecification',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '引擎规格,取值如下:'."\n"
+ ."\n"
+ .'[专业版] '."\n"
+ ."\n"
+ .'- `MSE_SC_2_4_60_c`:2核4G'."\n"
+ .'- `MSE_SC_1_2_60_c`:1核2G'."\n"
+ .'- `MSE_SC_4_8_60_c`:4核8G'."\n"
+ .'- `MSE_SC_8_16_60_c`:8核16G'."\n"
+ .'- `MSE_SC_16_32_60_c`:16核32G'."\n"
+ ."\n"
+ .'[开发版] '."\n"
+ ."\n"
+ .'- `MSE_SC_1_2_60_c`:1核2G'."\n"
+ .'- `MSE_SC_2_4_60_c`:2核4G'."\n"
+ ."\n"
+ .'[Serverless版]'."\n"
+ ."\n"
+ .'忽略该参数,也可填`MSE_SC_SERVERLESS`。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'MSE_SC_2_4_60_c',
+ ],
+ ],
+ [
+ 'name' => 'ClusterVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群版本,取值如下:'."\n"
+ ."\n"
+ .'[专业版] '."\n"
+ ."\n"
+ .'- `NACOS_2_0_0`:表示Nacos 2.x.x 版本。'."\n"
+ .'- `ZooKeeper_3_8_0`:表示ZooKeeper 3.8.x 版本。'."\n"
+ ."\n"
+ .'[开发版] '."\n"
+ ."\n"
+ .'- `NACOS_2_0_0`:表示Nacos 2.x 版本。'."\n"
+ .'- `ZooKeeper_3_8_0`:表示ZooKeeper 3.8.x 版本。'."\n"
+ ."\n"
+ .'[Serverless版]'."\n"
+ ."\n"
+ .'- `NACOS_2_0_0`:表示Nacos 2.x 版本。'."\n"
+ .'- `ZooKeeper_3_8_0`:表示ZooKeeper 3.8.x 版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'NACOS_2_0_0',
+ ],
+ ],
+ [
+ 'name' => 'ClusterType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群类型,包括ZooKeeper、Nacos-Ans。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'Nacos-Ans',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,包括但不限于如下地域:'."\n"
+ .'- `cn-hangzhou`:杭州'."\n"
+ .'- `cn-beijing`:北京'."\n"
+ .'- `cn-shanghai`:上海'."\n"
+ .'- `cn-zhangjiakou`:张家口'."\n"
+ .'- `cn-shenzhen`:深圳',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'PrivateSlbSpecification',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '不再使用',
+ 'description' => '不再使用',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'docRequired' => false,
+ ],
+ ],
+ [
+ 'name' => 'ConnectionType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网络接入类型,`slb`或`single_eni`;部分Region开发版只支持`single_eni`类型',
+ 'description' => '网络接入类型,`slb`或`single_eni`;部分Region开发版只支持`single_eni`类型。',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'MseVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例版本:开发版mse_dev、基础版mse_basic、专业版mse_pro',
+ 'description' => '非特殊情况必填,取值如下:'."\n"
+ ."\n"
+ .'- `mse_pro`:表示专业版。'."\n"
+ .'- `mse_dev`:表示开发版。'."\n"
+ .'- `mse_serverless`:表示Serverless版。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'mse_dev' => '开发版',
+ 'mse_serverless' => 'Serverless版',
+ 'mse_pro' => '专业版',
+ ],
+ 'example' => 'mse_pro',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例别名',
+ 'description' => '实例自定义名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tanshuyingtest001',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。资源组详情请参见查看[资源组基本信息](~~457230~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-aekzcqmoay3dlyq',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => '标签列表,最多包含20个子项',
+ 'description' => '待添加的标签列表。最多包含20个子项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => '标签键',
+ 'description' => '标签KEY。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'env',
+ ],
+ 'Value' => [
+ 'title' => '标签值',
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prd',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'ChargeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '付费类型',
+ 'description' => '付费模式,包括PREPAY(包年包月)和POSTPAY(按量付费)。'."\n"
+ ."\n"
+ .'Serverless版忽略该参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PREPAY' => '包年包月',
+ 'POSTPAY' => '按量付费',
+ ],
+ 'example' => 'POSTPAY',
+ ],
+ ],
+ [
+ 'name' => 'SecurityGroupType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'ConnectionType为`single_eni`时有效,表示实例所在的安全组类型',
+ 'description' => 'ConnectionType为`single_eni`时有效,表示实例所在的安全组类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'enterprise',
+ 'default' => 'enterprise',
+ 'enum' => [
+ 'enterprise',
+ 'normal',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'EipEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'ConnectionType为`single_eni`时有效,表示是否开启公网访问(弹性公网IP)',
+ 'description' => 'ConnectionType为`single_eni`时有效,表示是否开启公网访问(弹性公网IP)',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '字符串对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'dc63-465d-8ef5-20dc18af****',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'OrderId' => [
+ 'description' => '订单ID。',
+ 'type' => 'string',
+ 'example' => '20574710974****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"dc63-465d-8ef5-20dc18af****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"InstanceId\\": \\"mse-cn-st21ri2****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"OrderId\\": \\"20574710974****\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateClusterResponse>\\n <RequestId>dc63-465d-8ef5-20dc18af****</RequestId>\\n <Message>请求处理成功</Message>\\n <InstanceId>mse-cn-st21ri2****</InstanceId>\\n <ErrorCode>mse-100-000</ErrorCode>\\n <OrderId>20574710974****</OrderId>\\n <Success>true</Success>\\n</CreateClusterResponse>","errorExample":""}]',
+ 'title' => '创建注册配置中心集群',
+ 'description' => '请确保在使用该接口前,已充分了解MSE(Microservice Engine)产品的收费方式和价格。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteCluster' => [
+ 'summary' => '删除一个注册配置中心集群。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17009',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-6ja1rgl****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '3369AD10-F1A6-4E6F-B99E-20F51826****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"3369AD10-F1A6-4E6F-B99E-20F51826****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteClusterResponse>\\n<HttpCode>202</HttpCode>\\n<RequestId>3369AD10-F1A6-4E6F-B99E-20F51826****</RequestId>\\n<Message>请求处理成功</Message>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</DeleteClusterResponse>","errorExample":""}]',
+ 'title' => '删除集群',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateCluster' => [
+ 'summary' => '修改集群信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '17098',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY3D6DK',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ClusterAliasName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群别名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'cluster-1',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-78v1l83****',
+ ],
+ ],
+ [
+ 'name' => 'MaintenanceStartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '运维窗口开始时间',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '02:00',
+ ],
+ ],
+ [
+ 'name' => 'MaintenanceEndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '运维窗口结束时间',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '06:00',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5B170A0D-2C5D-4CF8-B808-03966B86****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-100',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"5B170A0D-2C5D-4CF8-B808-03966B86****\\",\\n \\"ErrorCode\\": \\"mse-100-100\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateClusterResponse>\\n<Message>请求处理成功</Message>\\n<RequestId>5B170A0D-2C5D-4CF8-B808-03966B86****</RequestId>\\n<ErrorCode>mse-100-100</ErrorCode>\\n<Success>true</Success>\\n</UpdateClusterResponse>","errorExample":""}]',
+ 'title' => '更新集群信息',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateConfig' => [
+ 'summary' => '更新集群配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '17099',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY3D6DK',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'ConfigType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置格式,包括TEXT、JSON、XML、HTML等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'TEXT',
+ ],
+ ],
+ [
+ 'name' => 'TickTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'zookeeper配置,时间单元,默认为2000毫秒。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '2000',
+ ],
+ ],
+ [
+ 'name' => 'InitLimit',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'zookeeper配置,实例最长连接时间,单位:秒。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'SyncLimit',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'zookeeper配置,实例连接超时时间,单位:秒。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'MaxClientCnxns',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'zookeeper配置,单个客户端与单台服务器之间的连接数。 '."\n"
+ .'如果设置为0,表示不作任何限制。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'OpenSuperAcl',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => 'zookeeper配置,超级权限开关,取值如下:'."\n"
+ .'- `true`:打开'."\n"
+ .'- `false`:关闭',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'UserName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用户名称。'."\n"
+ .'> 当OpenSuperAcl为true时,需要填写此值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'PassWord',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用户密码。'."\n"
+ .'> 当OpenSuperAcl为true时,需要填写此值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'password',
+ ],
+ ],
+ [
+ 'name' => 'JuteMaxbuffer',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'zookeeper配置,每个节点最大数据量,默认是1M,单位:字节。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '1048575',
+ ],
+ ],
+ [
+ 'name' => 'AutopurgePurgeInterval',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保留字段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'none',
+ ],
+ ],
+ [
+ 'name' => 'AutopurgeSnapRetainCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保留字段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'none',
+ ],
+ ],
+ [
+ 'name' => 'ConfigAuthEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'nacos配置,是否开启配置中心ram鉴权:'."\n"
+ .'- `true`:开启'."\n"
+ .'- `false`:关闭'."\n"
+ ."\n"
+ .'> 设置此值前需要调用QueryConfig接口,获取ConfigAuthSupported参数,以查看当前集群是否支持此功能。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'NamingAuthEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'nacos配置,是否开启注册中心ram鉴权:'."\n"
+ .'- `true`:开启'."\n"
+ .'- `false`:关闭'."\n"
+ ."\n"
+ .'> 设置此值前需要调用QueryConfig接口,获取NamingAuthSupporte参数,以查看当前集群是否支持此功能。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'MCPEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'nacos配置,MCP是否生效,取值如下:'."\n"
+ .'- `true`:生效'."\n"
+ .'- `false`:不生效'."\n"
+ .'> 设置此值前需要调用QueryConfig接口,获取MCPSupported参数,以查看当前集群是否支持此功能。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-st2212****',
+ ],
+ ],
+ [
+ 'name' => 'ConfigSecretEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'nacos配置,是否打开配置中心配置加密功能,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n"
+ ."\n"
+ .'> 设置此值前需要调用QueryConfig接口,获取ConfigSecretSupported参数,以查看当前集群是否支持此功能。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'MinSessionTimeout',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '最小超时时间',
+ 'description' => 'zookeeper配置,最小超时时间,单位:秒。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'MaxSessionTimeout',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '最大超时时间',
+ 'description' => 'zookeeper配置,最大超时时间,单位:秒。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1000',
+ ],
+ ],
+ [
+ 'name' => 'SnapshotCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'zookeeper配置,生成快照的频率',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '100000',
+ ],
+ ],
+ [
+ 'name' => 'ExtendedTypesEnable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'zookeeper参数,是否开启TTL配置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'EurekaSupported',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Nacos是否开启支持Eurka协议',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'TLSEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Nacos是否开启TLS传输链路加密',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ConsoleUIEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启Nacos开源控制台',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Enable4lw',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启四字命令访问',
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AuthEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否启用强制SASL身份认证,启用之后,没有进行SASL身份认证的客户端将无法访问集群',
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8BD1E58D-0755-42AC-A599-E6B55112****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP返回码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"8BD1E58D-0755-42AC-A599-E6B55112****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"<UpdateConfigResponse>\\n<RequestId>CB889254-0C8B-49B2-8465-4CDAB08A****</RequestId>\\n<Message>请求处理成功</Message>\\n<ErrorCode>mse-100-100</ErrorCode>\\n<Success>true</Success>\\n</UpdateConfigResponse>","errorExample":""}]',
+ 'title' => '更新集群配置',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListClusters' => [
+ 'summary' => '查询注册配置中心集群列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17063',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示集群数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'ClusterAliasName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群名字,支持模糊匹配。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cluster',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,MSE支持的地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。资源组详情请参见查看资源组基本信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfmxbzafebvvfa',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '标签列表,最多包含20个子项',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'env',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prd',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'KeyId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '如果是nacos集群,查询绑定了指定keyId的实例',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key-hzz67774641bsp21vhj4h',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '字符串对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '字符串对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EndDate' => [
+ 'description' => '集群截止时间。',
+ 'type' => 'string',
+ 'example' => '2021-08-01 00:00:00',
+ ],
+ 'IntranetDomain' => [
+ 'description' => '私网域名。',
+ 'type' => 'string',
+ 'example' => 'mse-7413****-eureka.mse.aliyuncs.com',
+ ],
+ 'InternetDomain' => [
+ 'description' => '公网域名。',
+ 'type' => 'string',
+ 'example' => 'mse-7413****-p.eureka.mse.aliyuncs.com',
+ ],
+ 'CreateTime' => [
+ 'description' => '集群创建时间。',
+ 'type' => 'string',
+ 'example' => '2020-07-31 11:36:08',
+ ],
+ 'ChargeType' => [
+ 'description' => '付费模式,包括包年包月和按量付费。',
+ 'type' => 'string',
+ 'example' => '按量付费',
+ ],
+ 'IntranetAddress' => [
+ 'description' => '私网地址。',
+ 'type' => 'string',
+ 'example' => '192.168.XX.XX',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'InternetAddress' => [
+ 'description' => '公网地址。',
+ 'type' => 'string',
+ 'example' => '47.98.XX.XX',
+ ],
+ 'ClusterAliasName' => [
+ 'description' => '集群别名。',
+ 'type' => 'string',
+ 'example' => 'mse-7413****',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型,包括ZooKeeper、Nacos-Ans和Eureka。',
+ 'type' => 'string',
+ 'example' => 'Eureka',
+ ],
+ 'InitStatus' => [
+ 'description' => '初始化状态。',
+ 'type' => 'string',
+ 'example' => 'RESTART_SUCCESS',
+ ],
+ 'AppVersion' => [
+ 'description' => 'APP版本。',
+ 'type' => 'string',
+ 'example' => '1.9.3',
+ ],
+ 'CanUpdate' => [
+ 'description' => '是否能够升级。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'VersionCode' => [
+ 'description' => '版本信息。',
+ 'type' => 'string',
+ 'example' => 'EUREKA_1_9_3',
+ ],
+ 'InstanceCount' => [
+ 'description' => '集群数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'ClusterName' => [
+ 'description' => '集群名字。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'MseVersion' => [
+ 'description' => '集群所使用的版本类别。',
+ 'type' => 'string',
+ 'example' => 'mse_pro',
+ ],
+ 'Tags' => [
+ 'description' => '实例所绑定的标签。',
+ 'type' => 'object',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => '实例所属的资源组 ID。',
+ 'type' => 'string',
+ 'example' => 'rg-acfmv7jiavm4uxa',
+ ],
+ 'VpcId' => [
+ 'description' => '集群所处的VPC ID。',
+ 'type' => 'string',
+ 'example' => 'vpc-bp1hcg467ekqsv0zr****',
+ ],
+ 'MaintenancePeriod' => [
+ 'description' => '运维时间窗口',
+ 'type' => 'object',
+ 'properties' => [
+ 'StartTime' => [
+ 'description' => '运维时间窗口开始时间',
+ 'type' => 'string',
+ 'example' => '02:00',
+ ],
+ 'EndTime' => [
+ 'description' => '运维时间窗口结束时间',
+ 'type' => 'string',
+ 'example' => '06:00',
+ ],
+ ],
+ ],
+ 'VersionLifecycle' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Data\\": [\\n {\\n \\"EndDate\\": \\"2021-08-01 00:00:00\\",\\n \\"IntranetDomain\\": \\"mse-7413****-eureka.mse.aliyuncs.com\\",\\n \\"InternetDomain\\": \\"mse-7413****-p.eureka.mse.aliyuncs.com\\",\\n \\"CreateTime\\": \\"2020-07-31 11:36:08\\",\\n \\"ChargeType\\": \\"按量付费\\",\\n \\"IntranetAddress\\": \\"192.168.XX.XX\\",\\n \\"InstanceId\\": \\"mse-cn-st21ri2****\\",\\n \\"InternetAddress\\": \\"47.98.XX.XX\\",\\n \\"ClusterAliasName\\": \\"mse-7413****\\",\\n \\"ClusterType\\": \\"Eureka\\",\\n \\"InitStatus\\": \\"RESTART_SUCCESS\\",\\n \\"AppVersion\\": \\"1.9.3\\",\\n \\"CanUpdate\\": true,\\n \\"VersionCode\\": \\"EUREKA_1_9_3\\",\\n \\"InstanceCount\\": 2,\\n \\"ClusterName\\": \\"mse-cn-st21ri2****\\",\\n \\"MseVersion\\": \\"mse_pro\\",\\n \\"Tags\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ResourceGroupId\\": \\"rg-acfmv7jiavm4uxa\\",\\n \\"VpcId\\": \\"vpc-bp1hcg467ekqsv0zr****\\",\\n \\"MaintenancePeriod\\": {\\n \\"StartTime\\": \\"02:00\\",\\n \\"EndTime\\": \\"06:00\\"\\n },\\n \\"VersionLifecycle\\": \\"\\"\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListClustersResponse>\\n <HttpCode>202</HttpCode>\\n <TotalCount>7</TotalCount>\\n <RequestId>69AD2AA7-DB47-449B-941B-B14409DF****</RequestId>\\n <Message>请求处理成功</Message>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <Data>\\n <EndDate>2021-08-01 00:00:00</EndDate>\\n <IntranetDomain>mse-7413****-eureka.mse.aliyuncs.com</IntranetDomain>\\n <InternetDomain>mse-7413****-p.eureka.mse.aliyuncs.com</InternetDomain>\\n <CreateTime>2020-07-31 11:36:08</CreateTime>\\n <ChargeType>按量付费</ChargeType>\\n <IntranetAddress>192.168.XX.XX</IntranetAddress>\\n <InstanceId>mse-cn-st21ri2****</InstanceId>\\n <InternetAddress>47.98.XX.XX</InternetAddress>\\n <ClusterAliasName>mse-7413****</ClusterAliasName>\\n <ClusterType>Eureka</ClusterType>\\n <InitStatus>RESTART_SUCCESS</InitStatus>\\n <AppVersion>1.9.3</AppVersion>\\n </Data>\\n <ErrorCode>mse-100-000</ErrorCode>\\n <Success>true</Success>\\n</ListClustersResponse>","errorExample":""}]',
+ 'title' => '查询集群列表',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListClusterTypes' => [
+ 'summary' => '查询支持开通的引擎类型。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,MSE支持的地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ConnectType',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'title' => '网络连接类型',
+ 'description' => '网络类型,取值如下:'."\n"
+ ."\n"
+ .'- slb'."\n"
+ .'- eni',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'slb',
+ 'enum' => [
+ 'eni',
+ 'slb',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'MseVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '待开通的MSE集群版本。'."\n"
+ ."\n"
+ .'- mse_pro:表示专业版。'."\n"
+ .'- mse_dev:表示开发版。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_pro',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '821B5B05-8919-5FBB-BA75-417BFC093EB8',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '引擎类型Code',
+ 'type' => 'string',
+ 'example' => 'ZooKeeper',
+ ],
+ 'ShowName' => [
+ 'description' => '可开通的MSE引擎类型。',
+ 'type' => 'string',
+ 'example' => 'Zookeeper',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"821B5B05-8919-5FBB-BA75-417BFC093EB8\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": [\\n {\\n \\"Code\\": \\"ZooKeeper\\",\\n \\"ShowName\\": \\"Zookeeper\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询引擎类型',
+ ],
+ 'ListClusterVersions' => [
+ 'summary' => '查询支持的集群版本信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群类型,包括ZooKeeper、Nacos-Ans和Eureka。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'Nacos-Ans',
+ ],
+ ],
+ [
+ 'name' => 'MseVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '取值如下:'."\n"
+ ."\n"
+ .'- `mse_dev`:表示开发版。'."\n"
+ .'- `mse_pro`:表示专业版(默认取值)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_pro',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7717BE5B-C958-5F87-BF49-464AA276EDD1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '与本次请求相关的动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '集群类型编码。',
+ 'type' => 'string',
+ 'example' => 'NACOS_2_0_0',
+ ],
+ 'ShowName' => [
+ 'description' => '集群版本。',
+ 'type' => 'string',
+ 'example' => '2.1.0',
+ ],
+ 'ClusterType' => [
+ 'description' => '集群类型。',
+ 'type' => 'string',
+ 'example' => 'Nacos-Ans',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"7717BE5B-C958-5F87-BF49-464AA276EDD1\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": [\\n {\\n \\"Code\\": \\"NACOS_2_0_0\\",\\n \\"ShowName\\": \\"2.1.0\\",\\n \\"ClusterType\\": \\"Nacos-Ans\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询集群版本',
+ ],
+ 'QueryClusterSpecification' => [
+ 'summary' => '查询支持的集群规格列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'ConnectType',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'title' => '网络连接类型',
+ 'description' => '网络类型,取值如下:'."\n"
+ ."\n"
+ .'- slb'."\n"
+ .'- eni',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'slb',
+ 'pattern' => '',
+ 'enum' => [
+ 'eni',
+ 'slb',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'MseVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '待开通的MSE集群版本。'."\n"
+ ."\n"
+ .'- mse_pro:表示专业版。'."\n"
+ .'- mse_dev:表示开发版。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'mse_pro',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ClusterSpecificationName' => [
+ 'description' => '可使用的引擎规格。',
+ 'type' => 'string',
+ 'example' => 'MSE_SC_1_2_200_c',
+ ],
+ 'MemoryCapacity' => [
+ 'description' => '此规格下的内存大小,单位:G。',
+ 'type' => 'string',
+ 'example' => '2',
+ ],
+ 'CpuCapacity' => [
+ 'description' => '此规格下的CPU核数。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": [\\n {\\n \\"ClusterSpecificationName\\": \\"MSE_SC_1_2_200_c\\",\\n \\"MemoryCapacity\\": \\"2\\",\\n \\"CpuCapacity\\": \\"1\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<QueryClusterSpecificationResponse>\\n<Message>请求处理成功</Message>\\n<RequestId>EE5C32A1-BC0E-4B79-817C-103E4EDF****</RequestId>\\n<HttpStatusCode>200</HttpStatusCode>\\n<Data>\\n <MaxTps>5000</MaxTps>\\n <CpuCapacity>1</CpuCapacity>\\n <InstanceCount>1</InstanceCount>\\n <DiskCapacity>60</DiskCapacity>\\n <ClusterSpecificationName>MSE_SC_1_2_200_c</ClusterSpecificationName>\\n <MemoryCapacity>2</MemoryCapacity>\\n <MaxCon>3000</MaxCon>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Code>200</Code>\\n<Success>true</Success>\\n</QueryClusterSpecificationResponse>","errorExample":""}]',
+ 'title' => '查询集群规格',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'QueryClusterDiskSpecification' => [
+ 'summary' => '查询支持的集群磁盘规格信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '76161',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群类型,包括ZooKeeper、Nacos-Ans和Eureka。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'ZooKeeper',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => '请求返回码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'E13A3A34-7201-50C4-B2D0-0D7DB891811E',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Step' => [
+ 'description' => '磁盘大小步长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'Max' => [
+ 'description' => '磁盘允许最大值,单位:GB。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '500',
+ ],
+ 'Min' => [
+ 'description' => '磁盘允许最小值,单位:GB。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'An error occurred while processing your request.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E13A3A34-7201-50C4-B2D0-0D7DB891811E\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"Step\\": 2,\\n \\"Max\\": 500,\\n \\"Min\\": 1\\n }\\n}","type":"json"}]',
+ 'title' => '查询集群磁盘规格',
+ ],
+ 'ListInstanceCount' => [
+ 'summary' => '列举集群可开通的节点数。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群类型,包括ZooKeeper、Nacos-Ans。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Nacos-Ans',
+ ],
+ ],
+ [
+ 'name' => 'MseVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群版本类型,取值如下:'."\n"
+ ."\n"
+ .'- `mse_dev`:表示开发版。'."\n"
+ .'- `mse_pro`:表示专业版。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_pro',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,包括但不限于如下地域:'."\n"
+ ."\n"
+ .'- cn-hangzhou:杭州 '."\n"
+ .'- cn-beijing:北京 '."\n"
+ .'- cn-shanghai:上海 '."\n"
+ .'- cn-zhangjiakou:张家口 '."\n"
+ .'- cn-shenzhen:深圳',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型。'."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<Integer>>',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。当请求失败,返回ErrorCode字段。具体信息,请参见[本文的错误码列表](~~456441~~)。',
+ 'type' => 'string',
+ 'example' => 'mse-100-100',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。当请求成功时,返回成功信息;当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => '%s',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数 `ErrMessage` 错误信息中的 `%s`。'."\n"
+ ."\n"
+ .'> 如果`ErrMessage`返回`The Value of Input Parameter %s is not valid`,且`DynamicMessage`返回`DtsJobId`,则代表所传入的请求参数`DtsJobId`不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '当前版本下可开通的节点数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-100\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"%s\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": [\\n 3\\n ]\\n}","type":"json"}]',
+ 'title' => '集群可开通的节点数',
+ ],
+ 'QueryConfig' => [
+ 'summary' => '查询集群配置信息。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17081',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY3D6DK',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'ConfigType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '预留字段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'null',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse_prepaid_public_cn-st2212****',
+ ],
+ ],
+ [
+ 'name' => 'NeedRunningConf',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否需要运行时配置。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8BD1E58D-0755-42AC-A599-E6B55112EC53',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'MaxClientCnxns' => [
+ 'description' => 'zookeeper配置,单个客户端与单台服务器之间的连接数。 '."\n"
+ .'如果设置为0,表示不作任何限制。',
+ 'type' => 'string',
+ 'example' => '0',
+ ],
+ 'ConfigAuthSupported' => [
+ 'description' => 'nacos配置,当前集群的配置中心是否支持RAM鉴权,取值如下:'."\n"
+ .'- `true`:支持'."\n"
+ .'- `false`:不支持',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InitLimit' => [
+ 'description' => 'zookeeper配置,实例最长连接时间,单位:秒。',
+ 'type' => 'string',
+ 'example' => '100',
+ ],
+ 'MCPEnabled' => [
+ 'description' => 'nacos配置,MCP是否生效,取值如下:'."\n"
+ .'- `true`:生效'."\n"
+ .'- `false`:不生效',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'OpenSuperAcl' => [
+ 'description' => 'zookeeper配置,超级权限开关,取值如下:'."\n"
+ .'- `true`:打开'."\n"
+ .'- `false`:关闭',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RestartFlag' => [
+ 'description' => '当前集群是否已重启并应用新配置,取值如下:'."\n"
+ .'- `true`:重启成功。'."\n"
+ .'- `false`:重启失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'JvmFlagsCustom' => [
+ 'description' => '保留字段',
+ 'type' => 'string',
+ 'example' => 'none',
+ ],
+ 'AutopurgePurgeInterval' => [
+ 'description' => '保留字段。',
+ 'type' => 'string',
+ 'example' => 'none',
+ ],
+ 'AutopurgeSnapRetainCount' => [
+ 'description' => '保留字段。',
+ 'type' => 'string',
+ 'example' => 'none',
+ ],
+ 'SyncLimit' => [
+ 'description' => 'zookeeper配置,实例连接超时时间,单位:秒。',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'ConfigAuthEnabled' => [
+ 'description' => 'nacos配置,是否开启配置中心ram鉴权,取值如下:'."\n"
+ .'- `true`:生效'."\n"
+ .'- `false`:未生效',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ClusterName' => [
+ 'description' => '集群名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'MCPSupported' => [
+ 'description' => 'nacos配置,MCP是否支持,取值如下:'."\n"
+ .'- `true`:支持'."\n"
+ .'- `false`:不支持',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'JuteMaxbuffer' => [
+ 'description' => 'zookeeper配置,每个节点最大数据量,单位:字节。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'TickTime' => [
+ 'description' => 'zookeeper配置,引擎中的一个时间单元,默认为2000毫秒。',
+ 'type' => 'string',
+ 'example' => '2000',
+ ],
+ 'PassWord' => [
+ 'description' => '用户密码。当OpenSuperAcl为true时,展示此值。',
+ 'type' => 'string',
+ 'example' => 'password',
+ ],
+ 'UserName' => [
+ 'description' => '用户名称。当OpenSuperAcl为true时,展示此值。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'ConfigSecretSupported' => [
+ 'description' => 'nacos配置,当前集群是否支持配置中心配置加密,取值如下:'."\n"
+ .'- `true`:支持'."\n"
+ .'- `false`:不支持',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ConfigSecretEnabled' => [
+ 'description' => 'nacos配置,当前集群是否开启配置中心配置加密,取值如下:'."\n"
+ .'- `true`:开启'."\n"
+ .'- `false`:未开启',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'NamingAuthEnabled' => [
+ 'description' => 'nacos配置,是否开启注册中心ram鉴权:'."\n"
+ .'- `true`:开启'."\n"
+ .'- `false`:关闭',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'NamingAuthSupported' => [
+ 'description' => 'nacos配置,当前集群是否支持服务RAM鉴权,取值如下:'."\n"
+ .'- `true`:支持'."\n"
+ .'- `false`:不支持',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'NamingCreateServiceSupported' => [
+ 'description' => 'nacos配置,当前集群是否支持创建服务,取值如下:'."\n"
+ .'- `true`:支持'."\n"
+ .'- `false`:不支持',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'MinSessionTimeout' => [
+ 'title' => '最小超时时间',
+ 'description' => 'zookeeper配置,最小超时时间。',
+ 'type' => 'string',
+ 'example' => '-1',
+ ],
+ 'MaxSessionTimeout' => [
+ 'title' => '最大超时时间',
+ 'description' => 'zookeeper配置,最大超时时间。',
+ 'type' => 'string',
+ 'example' => '-1',
+ ],
+ 'SnapshotCount' => [
+ 'description' => 'zookeeper配置,生成快照的频率',
+ 'type' => 'string',
+ 'example' => '100000',
+ ],
+ 'ConfigContentLimit' => [
+ 'description' => '单个配置的配置内容大小上限(单位:KB)。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100',
+ ],
+ 'NacosRunningEnv' => [
+ 'description' => 'nacos运行时配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'emptyProtect' => [
+ 'description' => '推空保护开关。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'grayAuth' => [
+ 'type' => 'string',
+ ],
+ 'fenceEnabled' => [
+ 'type' => 'boolean',
+ ],
+ 'fencePolicy' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'interceptPolicy' => [
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'enabledModules' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'serviceName' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ExtendedTypesEnable' => [
+ 'description' => 'zookeeper参数,是否开启TTL配置。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'EurekaSupported' => [
+ 'description' => '是否打开Eureka协议的访问端口8761。关闭此端口,应用将无法使用Eureka协议进行服务注册发现。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'TLSEnabled' => [
+ 'description' => 'MSE Nacos从2.1.2.1版本开始支持TLS传输链路加密,nacos-client需升级至2.2.1及以上版本,开启TLS后,会有10%左右性能下降,请合理评估系统容量水位,操作指引详见Nacos TLS传输加密.',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ConsoleUIEnabled' => [
+ 'description' => '是否开始Nacos开源控制台',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Enable4lw' => [
+ 'description' => '是否开启四字命令',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AuthEnabled' => [
+ 'title' => 'ZooKeeper sasl 强制身份认证开关',
+ 'description' => 'ZooKeeper sasl 强制身份认证开关',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PrometheusSdProtocolEnabled' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'description' => ' '."\n"
+ .'返回结果码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"8BD1E58D-0755-42AC-A599-E6B55112EC53\\",\\n \\"Data\\": {\\n \\"MaxClientCnxns\\": \\"0\\",\\n \\"ConfigAuthSupported\\": true,\\n \\"InitLimit\\": \\"100\\",\\n \\"MCPEnabled\\": true,\\n \\"OpenSuperAcl\\": true,\\n \\"RestartFlag\\": true,\\n \\"JvmFlagsCustom\\": \\"none\\",\\n \\"AutopurgePurgeInterval\\": \\"none\\",\\n \\"AutopurgeSnapRetainCount\\": \\"none\\",\\n \\"SyncLimit\\": \\"10\\",\\n \\"ConfigAuthEnabled\\": true,\\n \\"ClusterName\\": \\"name\\",\\n \\"MCPSupported\\": true,\\n \\"JuteMaxbuffer\\": \\"1\\",\\n \\"TickTime\\": \\"2000\\",\\n \\"PassWord\\": \\"password\\",\\n \\"UserName\\": \\"name\\",\\n \\"ConfigSecretSupported\\": true,\\n \\"ConfigSecretEnabled\\": true,\\n \\"NamingAuthEnabled\\": false,\\n \\"NamingAuthSupported\\": true,\\n \\"NamingCreateServiceSupported\\": true,\\n \\"MinSessionTimeout\\": \\"-1\\",\\n \\"MaxSessionTimeout\\": \\"-1\\",\\n \\"SnapshotCount\\": \\"100000\\",\\n \\"ConfigContentLimit\\": 100,\\n \\"NacosRunningEnv\\": {\\n \\"emptyProtect\\": true,\\n \\"grayAuth\\": \\"\\",\\n \\"fenceEnabled\\": true,\\n \\"fencePolicy\\": {\\n \\"interceptPolicy\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"enabledModules\\": [\\n \\"\\"\\n ],\\n \\"serviceName\\": \\"\\"\\n }\\n },\\n \\"ExtendedTypesEnable\\": true,\\n \\"EurekaSupported\\": true,\\n \\"TLSEnabled\\": true,\\n \\"ConsoleUIEnabled\\": true,\\n \\"Enable4lw\\": true,\\n \\"AuthEnabled\\": true,\\n \\"PrometheusSdProtocolEnabled\\": \\"\\"\\n },\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"HttpStatusCode\\": 200\\n}","errorExample":""},{"type":"xml","example":"<QueryConfigResponse>\\n<Message>请求处理成功</Message>\\n<RequestId>8BD1E58D-0755-42AC-A599-E6B55112EC53</RequestId>\\n<Data>\\n <MCPEnabled>true</MCPEnabled>\\n <MaxClientCnxns>0</MaxClientCnxns>\\n <UserName>name</UserName>\\n <OpenSuperAcl>true</OpenSuperAcl>\\n <TickTime>2000</TickTime>\\n <AutopurgeSnapRetainCount>none</AutopurgeSnapRetainCount>\\n <PassWord>password</PassWord>\\n <InitLimit>100</InitLimit>\\n <ConfigAuthEnabled>true</ConfigAuthEnabled>\\n <JvmFlagsCustom>none</JvmFlagsCustom>\\n <RestartFlag>true</RestartFlag>\\n <AutopurgePurgeInterval>none</AutopurgePurgeInterval>\\n <JuteMaxbuffer>1</JuteMaxbuffer>\\n <MCPSupported>true</MCPSupported>\\n <ClusterName>name</ClusterName>\\n <ConfigAuthSupported>true</ConfigAuthSupported>\\n <SyncLimit>10</SyncLimit>\\n</Data>\\n<ErrorCode>mse-100-100</ErrorCode>\\n<Success>true</Success>\\n</QueryConfigResponse>","errorExample":""}]',
+ 'title' => '查询集群配置',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetImage' => [
+ 'summary' => '查询当前版本可升级的最大版本号。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '43433',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseLINUSD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'VersionCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '集群版本',
+ 'description' => '当前集群所在的版本号。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ZooKeeper_3_5_5',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型。'."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '25EA0A83-9007-4E87-808C-637BE1A****',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CurrentVersionFullShowName' => [
+ 'title' => '当前集群镜像版本的4位全名',
+ 'description' => '当前集群镜像版本的4位全名',
+ 'type' => 'string',
+ 'example' => '3.5.5.0',
+ ],
+ 'MaxVersionCode' => [
+ 'title' => '可升级的增量版本Code',
+ 'description' => '可升级的增量版本Code',
+ 'type' => 'string',
+ 'example' => 'ZooKeeper_3_6_3',
+ ],
+ 'MaxVersionFullShowName' => [
+ 'title' => '可升级的增量版本全名',
+ 'description' => '可升级的增量版本全名',
+ 'type' => 'string',
+ 'example' => '3.6.3.0',
+ ],
+ 'MaxVersionChangelogUrl' => [
+ 'title' => '可升级的最大版本变更日志url',
+ 'description' => '可升级的最大版本变更日志url',
+ 'type' => 'string',
+ 'example' => 'https://xxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"25EA0A83-9007-4E87-808C-637BE1A****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true,\\n \\"HttpCode\\": \\"200\\",\\n \\"Data\\": {\\n \\"CurrentVersionFullShowName\\": \\"3.5.5.0\\",\\n \\"MaxVersionCode\\": \\"ZooKeeper_3_6_3\\",\\n \\"MaxVersionFullShowName\\": \\"3.6.3.0\\",\\n \\"MaxVersionChangelogUrl\\": \\"https://xxxxx\\"\\n }\\n}","type":"json"}]',
+ 'title' => '查询本地单个镜像信息',
+ ],
+ 'UpdateImage' => [
+ 'summary' => '升级目标集群的版本号。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '43431',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseLINUSD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '目标集群的id',
+ 'description' => '目标集群的ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse-8e8e9060',
+ ],
+ ],
+ [
+ 'name' => 'VersionCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '想修改的镜像版本code',
+ 'description' => '目标版本号。'."\n"
+ ."\n"
+ .'> 需调用GetImage接口获取可升级的版本号MaxVersionCode。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ZooKeeper_3_5_5',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '3855D475-2B66-5CFF-9A51-3D698E52C472',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3855D475-2B66-5CFF-9A51-3D698E52C472\\",\\n \\"Message\\": \\"success\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新集群镜像',
+ ],
+ 'GetMseFeatureSwitch' => [
+ 'summary' => '获取MSE能力开关。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '6B4653A3-8D9C-5FDC-BB0C-936D40E9794B',
+ ],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'example' => '{\'nacos_config_encrypt\': False}',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NoPermission',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"6B4653A3-8D9C-5FDC-BB0C-936D40E9794B\\",\\n \\"Result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ErrorCode\\": \\"NoPermission\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取MSE能力开关',
+ ],
+ 'QueryBusinessLocations' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'common',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '参数不合法',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '3369AD10-F1A6-4E6F-B99E-20F51826****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Ordering' => [
+ 'description' => '订购。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '6',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'region',
+ ],
+ 'DistrictEnName' => [
+ 'description' => '地域英语名称。',
+ 'type' => 'string',
+ 'example' => 'Asia Pacific',
+ ],
+ 'ShowName' => [
+ 'description' => '显示名称。',
+ 'type' => 'string',
+ 'example' => '华东2(上海)',
+ ],
+ 'DistrictCnName' => [
+ 'description' => '地域中文名称。',
+ 'type' => 'string',
+ 'example' => '亚太',
+ ],
+ 'EnName' => [
+ 'description' => '英语名称。',
+ 'type' => 'string',
+ 'example' => 'China (Shanghai)',
+ ],
+ 'DistrictId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'asia-pacific',
+ ],
+ 'DistrictShowName' => [
+ 'description' => '地域展示名称。',
+ 'type' => 'string',
+ 'example' => '亚太',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => '华东 2',
+ ],
+ 'EnDescription' => [
+ 'description' => '英语描述。',
+ 'type' => 'string',
+ 'example' => 'China East 2 (Shanghai)',
+ ],
+ 'CnName' => [
+ 'description' => '中文名称。',
+ 'type' => 'string',
+ 'example' => '华东2(上海)',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'DistrictOrdering' => [
+ 'description' => '地区订购。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '101',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"参数不合法\\",\\n \\"RequestId\\": \\"3369AD10-F1A6-4E6F-B99E-20F51826****\\",\\n \\"Data\\": [\\n {\\n \\"Ordering\\": 6,\\n \\"Type\\": \\"region\\",\\n \\"DistrictEnName\\": \\"Asia Pacific\\",\\n \\"ShowName\\": \\"华东2(上海)\\",\\n \\"DistrictCnName\\": \\"亚太\\",\\n \\"EnName\\": \\"China (Shanghai)\\",\\n \\"DistrictId\\": \\"asia-pacific\\",\\n \\"DistrictShowName\\": \\"亚太\\",\\n \\"Description\\": \\"华东 2\\",\\n \\"EnDescription\\": \\"China East 2 (Shanghai)\\",\\n \\"CnName\\": \\"华东2(上海)\\",\\n \\"Name\\": \\"cn-shanghai\\",\\n \\"DistrictOrdering\\": 101\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": \\"true\\"\\n}","errorExample":""},{"type":"xml","example":"<QueryBusinessLocationsResponse>\\n<RequestId>3369AD10-F1A6-4E6F-B99E-20F51826****</RequestId>\\n<Message>参数不合法</Message>\\n<Data>\\n <Description>111</Description>\\n <DistrictShowName>111</DistrictShowName>\\n <EnName>111</EnName>\\n <DistrictId>111</DistrictId>\\n <ShowName>111</ShowName>\\n <DistrictCnName>111</DistrictCnName>\\n <Name>111</Name>\\n <CnName>111</CnName>\\n <Type>111</Type>\\n <DistrictEnName>111</DistrictEnName>\\n <EnDescription>111</EnDescription>\\n <Ordering>111</Ordering>\\n <DistrictOrdering>111</DistrictOrdering>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</QueryBusinessLocationsResponse>","errorExample":""}]',
+ 'title' => '查询地域信息',
+ 'summary' => '查询地域信息。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListClusterConnectionTypes' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '76158',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8625467C-27DD-5711-878E-6857E3074937',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的%**s**。'."\n"
+ ."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则表示所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ShowName' => [
+ 'description' => '连接类型。',
+ 'type' => 'string',
+ 'example' => 'slb',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'An error occurred while processing your request.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"8625467C-27DD-5711-878E-6857E3074937\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": [\\n {\\n \\"ShowName\\": \\"slb\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询集群连接信息',
+ 'summary' => '查询支持的集群连接类型。',
+ ],
+ 'QuerySlbSpec' => [
+ 'summary' => '查询SLB类型。',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。当请求成功时,返回成功信息;当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '返回数据ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'Spec' => [
+ 'description' => '规格。',
+ 'type' => 'string',
+ 'example' => 'slb.s2.small',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => '标准型I',
+ ],
+ 'MaxConnection' => [
+ 'description' => '最大连接数。',
+ 'type' => 'string',
+ 'example' => '50,000',
+ ],
+ 'NewConnectionPerSecond' => [
+ 'description' => '每秒连接数。',
+ 'type' => 'string',
+ 'example' => '50,000',
+ ],
+ 'Qps' => [
+ 'description' => '每秒查询率。',
+ 'type' => 'string',
+ 'example' => '50,000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Id\\": 2,\\n \\"Spec\\": \\"slb.s2.small\\",\\n \\"Name\\": \\"标准型I\\",\\n \\"MaxConnection\\": \\"50,000\\",\\n \\"NewConnectionPerSecond\\": \\"50,000\\",\\n \\"Qps\\": \\"50,000\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询SLB类型',
+ ],
+ 'UpdateClusterSpec' => [
+ 'summary' => '更新注册配置中心集群节点数或规格(支持按量付费和包年包月)。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'chargeType' => 'paid',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关名称',
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '节点规格',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '节点数量',
+ 'description' => '目标节点数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '3',
+ ],
+ ],
+ [
+ 'name' => 'ClusterSpecification',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标引擎规格。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'MSE_SC_4_8_200_c' => 'MSE_SC_4_8_200_c',
+ 'MSE_SC_16_32_200_c' => 'MSE_SC_16_32_200_c',
+ 'MSE_SC_2_4_200_c' => 'MSE_SC_2_4_200_c',
+ 'MSE_SC_8_16_200_c' => 'MSE_SC_8_16_200_c',
+ ],
+ 'example' => 'MSE_SC_2_4_200_c',
+ ],
+ ],
+ [
+ 'name' => 'MseVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MSE版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_pro'."\n",
+ ],
+ ],
+ [
+ 'name' => 'PubNetworkFlow',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '公网带宽',
+ 'description' => '公网带宽',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'minimum' => '0',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AutoPay',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否下单之后自动支付,如果此值为false,此接口将会返回订单支付url,可手动确认支付',
+ 'description' => '是否下单之后自动支付,如果此值为false,此接口将会返回订单支付url,可手动确认支付',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5B170A0D-2C5D-4CF8-B808-03966B86****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '如果AutoPay设置为false,则此值为订单支付的URL',
+ 'description' => '保留字段。',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。取值说明如下:'."\n"
+ ."\n"
+ .'- 请求成功:不返回**ErrorCode**字段。'."\n"
+ .'- 请求失败:返回**ErrorCode**字段。具体信息,请参见本文的**错误码**目录。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5B170A0D-2C5D-4CF8-B808-03966B86****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"null\\",\\n \\"ErrorCode\\": \\"mse-100-000\\"\\n}","type":"json"}]',
+ 'title' => '更新集群规格',
+ 'description' => '更新注册配置中心集群节点数或规格(支持按量付费和包年包月,增加节点或升级规格会产生相应资费,具体详情,请参见[价格说明]([`~~1806469~~`]))。',
+ ],
+ 'RestartCluster' => [
+ 'summary' => '重启注册配置中心集群。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '17093',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-78v1l83****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'PodNameList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'PodName,支持多个podName传入,多个用英文"," 分隔;'."\n"
+ .'如:"mse-a8aba010-1629719288255-reg-center-0-1,mse-a8aba010-1629719288255-reg-center-0-2"'."\n"
+ ."\n"
+ .'传入的Pod必须属于当前集群,与instanceId绑定,否则重启异常'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-a8aba010-1629719288255-reg-center-0-1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5B170A0D-2C5D-4CF8-B808-03966B86****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"5B170A0D-2C5D-4CF8-B808-03966B86****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<RestartClusterResponse>\\n<Message>请求成功</Message>\\n<RequestId>5B170A0D-2C5D-4CF8-B808-03966B86****</RequestId>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</RestartClusterResponse>","errorExample":""}]',
+ 'title' => '重启集群',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'RetryCluster' => [
+ 'summary' => '创建超时时,调用RetryCluster接口重试集群。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '17094',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NoPermission',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"ErrorCode\\": \\"NoPermission\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '重试集群',
+ ],
+ 'UpgradeCluster' => [
+ 'summary' => '升级集群版本。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-nif1w51wi0c',
+ ],
+ ],
+ [
+ 'name' => 'UpgradeVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '升级目标版本',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1.2.1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'HttpCode' => [
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8D855418-177B-5FF8-A021-75B930AD890A',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"HttpCode\\": \\"202\\",\\n \\"RequestId\\": \\"8D855418-177B-5FF8-A021-75B930AD890A\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '升级集群',
+ ],
+ 'CreateEngineNamespace' => [
+ 'summary' => '创建一个Nacos命名空间。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '17003',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseL2AGED',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'mse-98s****',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间展示名字。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'dev',
+ ],
+ ],
+ [
+ 'name' => 'Desc',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '开发环境',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'ServiceCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前命名空间下运行的最大服务数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间自定义ID,如果填写,将返回填写的namespaceId, 如果不填写,则自动生成,但是返回中将不包含namespaceId。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'f4fa5b81-2f26-4900-833a-7516b315ebb2',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'F6092602-C357-4750-89D9-E572FBEA****',
+ ],
+ 'ClusterId' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'example' => 'mse-892k****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => '命名空间类型,取值如下:'."\n"
+ .'- `0`:全局配置'."\n"
+ .'- `1`:默认命名空间'."\n"
+ .'- `2`:自定义命名空间',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'NamespaceShowName' => [
+ 'description' => '命名空间展示名称。',
+ 'type' => 'string',
+ 'example' => 'dev',
+ ],
+ 'Quota' => [
+ 'description' => '配额。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'example' => 'f4fa5b81-2f26-4900-833a-7516b315ebb2',
+ ],
+ 'NamespaceDesc' => [
+ 'description' => '命名空间描述。',
+ 'type' => 'string',
+ 'example' => 'mytest',
+ ],
+ 'ConfigCount' => [
+ 'description' => '配置数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ServiceCount' => [
+ 'description' => '活跃服务数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"F6092602-C357-4750-89D9-E572FBEA****\\",\\n \\"ClusterId\\": \\"mse-892k****\\",\\n \\"Data\\": {\\n \\"Type\\": 1,\\n \\"NamespaceShowName\\": \\"dev\\",\\n \\"Quota\\": 1,\\n \\"Namespace\\": \\"f4fa5b81-2f26-4900-833a-7516b315ebb2\\",\\n \\"NamespaceDesc\\": \\"mytest\\",\\n \\"ConfigCount\\": 1,\\n \\"ServiceCount\\": 3\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateEngineNamespaceResponse>\\n<RequestId>F6092602-C357-4750-89D9-E572FBEA****</RequestId>\\n<Message>请求处理成功</Message>\\n<ClusterId>mse-892k****</ClusterId>\\n<Data>\\n <Type>1</Type>\\n <Quota>1</Quota>\\n <ConfigCount>1</ConfigCount>\\n <NamespaceShowName>public</NamespaceShowName>\\n <ServiceCount>3</ServiceCount>\\n <NamespaceDesc>mytest</NamespaceDesc>\\n <Namespace>DEFAULT</Namespace>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</CreateEngineNamespaceResponse>","errorExample":""}]',
+ 'title' => '创建引擎命名空间',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteEngineNamespace' => [
+ 'summary' => '删除Nacos命名空间。',
+ 'methods' => [
+ 'post',
+ 'get',
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17010',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseL2AGED',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '678ca857-****-b1bf-d0a98c5ca84b',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-7pp2d1****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'mse-0c738****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'Message' => [
+ 'description' => '响应描述。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A73AC37C-C617-4E3A-8049-372CF49C****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"A73AC37C-C617-4E3A-8049-372CF49C****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '删除引擎命名空间',
+ ],
+ 'UpdateEngineNamespace' => [
+ 'summary' => '更新引擎命名空间。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '17100',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseL2AGED',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'Desc',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'public',
+ ],
+ ],
+ [
+ 'name' => 'ServiceCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '活跃服务数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '3',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '33ff74b6-d21e-4f9b-91a8-bc1ea4ef****',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => '命名空间类型,取值如下:'."\n"
+ .'- `0`:全局配置'."\n"
+ .'- `1`:默认命名空间'."\n"
+ .'- `2`:自定义命名空间',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'NamespaceShowName' => [
+ 'description' => '命名空间描述名称。',
+ 'type' => 'string',
+ 'example' => 'mytestshowname',
+ ],
+ 'Quota' => [
+ 'description' => '配额。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'NamespaceDesc' => [
+ 'description' => '命名空间描述。',
+ 'type' => 'string',
+ 'example' => 'mytest',
+ ],
+ 'ConfigCount' => [
+ 'description' => '配额数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Data\\": {\\n \\"Type\\": 1,\\n \\"NamespaceShowName\\": \\"mytestshowname\\",\\n \\"Quota\\": 1,\\n \\"Namespace\\": \\"public\\",\\n \\"NamespaceDesc\\": \\"mytest\\",\\n \\"ConfigCount\\": 1\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<UpdateEngineNamespaceResponse>\\n<RequestId>4E9FDCFE-0738-493B-B801-82BDFBCB****</RequestId>\\n<Message>请求处理成功</Message>\\n<Data>\\n <Type>1</Type>\\n <Quota>1</Quota>\\n <ConfigCount>1</ConfigCount>\\n <NamespaceShowName>mytestshowname</NamespaceShowName>\\n <NamespaceDesc>mytest</NamespaceDesc>\\n <Namespace>public</Namespace>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</UpdateEngineNamespaceResponse>","errorExample":""}]',
+ 'title' => '更新引擎命名空间',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetEngineNamepace' => [
+ 'summary' => '查询Nacos命名空间列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17029',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseL2AGED',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '0e958d79-****-b282-b702d66362b5',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse.cn-hangzhou.aliyuncs.com',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-98s****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'http状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'Type' => [
+ 'description' => '命名空间类型,取值如下:'."\n"
+ ."\n"
+ .'- 0:全局配置 '."\n"
+ .'- 1:默认命名空间 '."\n"
+ .'- 2:自定义命名空间',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Quota' => [
+ 'description' => '配额。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'FA8F966F-420C-52F5-B49E-6ED7CCE02697',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'ConfigCount' => [
+ 'description' => '配置数量。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'NamespaceShowName' => [
+ 'description' => '命名空间展示名称。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'NamespaceDesc' => [
+ 'description' => '命名空间描述。',
+ 'type' => 'string',
+ 'example' => 'mytest',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"Type\\": \\"1\\",\\n \\"Quota\\": \\"200\\",\\n \\"RequestId\\": \\"FA8F966F-420C-52F5-B49E-6ED7CCE02697\\",\\n \\"Message\\": \\"success\\",\\n \\"ConfigCount\\": \\"1\\",\\n \\"NamespaceShowName\\": \\"public\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true,\\n \\"NamespaceDesc\\": \\"mytest\\",\\n \\"Namespace\\": \\"public\\"\\n}","type":"json"}]',
+ 'title' => '查询引擎命名空间',
+ ],
+ 'ListEngineNamespaces' => [
+ 'summary' => '查询Nacos命名空间列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '17066',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseL2AGED',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'TotalCount' => [
+ 'description' => '实例总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '062D13C5-DEA3-4921-8918-C49A0F1B****',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'PageSize' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => '命名空间类型,取值如下:'."\n"
+ .'- `0`:全局配置'."\n"
+ .'- `1`:默认命名空间'."\n"
+ .'- `2`:自定义命名空间',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'NamespaceShowName' => [
+ 'description' => '命名空间名称。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'Quota' => [
+ 'description' => '配额。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT',
+ ],
+ 'NamespaceDesc' => [
+ 'description' => '命名空间描述。',
+ 'type' => 'string',
+ 'example' => 'mytest',
+ ],
+ 'ConfigCount' => [
+ 'description' => '配额数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ServiceCount' => [
+ 'description' => '活跃服务数。',
+ 'type' => 'string',
+ 'example' => '3',
+ ],
+ 'SourceType' => [
+ 'description' => '创建此空间的来源。',
+ 'type' => 'string',
+ 'example' => 'mse',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'OperationNotSupport',
+ 'errorMessage' => 'The current cluster does not support this operation, %s.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"202\\",\\n \\"TotalCount\\": 7,\\n \\"RequestId\\": \\"062D13C5-DEA3-4921-8918-C49A0F1B****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Data\\": [\\n {\\n \\"Type\\": 0,\\n \\"NamespaceShowName\\": \\"public\\",\\n \\"Quota\\": 200,\\n \\"Namespace\\": \\"DEFAULT\\",\\n \\"NamespaceDesc\\": \\"mytest\\",\\n \\"ConfigCount\\": 1,\\n \\"ServiceCount\\": \\"3\\",\\n \\"SourceType\\": \\"mse\\"\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListEngineNamespacesResponse>\\n<HttpCode>202</HttpCode>\\n<TotalCount>7</TotalCount>\\n<PageSize>10</PageSize>\\n<Message>请求处理成功</Message>\\n<RequestId>062D13C5-DEA3-4921-8918-C49A0F1B****</RequestId>\\n<PageNumber>1</PageNumber>\\n<Data>\\n <Type>0</Type>\\n <Quota>200</Quota>\\n <ConfigCount>1</ConfigCount>\\n <NamespaceShowName>public</NamespaceShowName>\\n <ServiceCount>3</ServiceCount>\\n <NamespaceDesc>mytest</NamespaceDesc>\\n <Namespace>DEFAULT</Namespace>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</ListEngineNamespacesResponse>","errorExample":""}]',
+ 'title' => '查询引擎命名空间列表',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ImportZookeeperData' => [
+ 'summary' => '发起Zookeeper数据导入任务,使Zookeeper集群开始导入目标URL内的数据。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '146919',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseBQYNCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-u0t2xzvxa06',
+ ],
+ ],
+ [
+ 'name' => 'FileUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '源数据链接。'."\n"
+ .'> 需要使用通过GetZookeeperDataImportUrl接口生成的URL',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'http://xxxxxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'FileName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '需导入的文件名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'snapshot.5',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'BaseResult',
+ 'description' => 'BaseResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '202',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'any',
+ 'example' => 'null',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpCode\\": \\"202\\",\\n \\"Data\\": \\"null\\"\\n}","type":"json"}]',
+ 'title' => '发起Zookeeper数据导入',
+ 'description' => '><danger>此操作会清空原有数据,请谨慎操作></danger>',
+ ],
+ 'GetZookeeperDataImportUrl' => [
+ 'summary' => '获取上传数据文件的URL,用户能通过此URL上传Zookeeper待导入的数据文件。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ 'wss',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '146920',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseBQYNCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-zvp2xzzkk06',
+ ],
+ ],
+ [
+ 'name' => 'ContentType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '文件类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zip',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<FileModel>',
+ 'description' => 'RestResult<FileModel>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'E4E2058F-C524-5C29-9BC7-5874EA8D7CE2',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'Code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Url' => [
+ 'description' => '文件上传地址。',
+ 'type' => 'string',
+ 'example' => 'http://xxxxxxxxx',
+ ],
+ 'MaxSize' => [
+ 'description' => '允许上传文件的最大大小(单位MB)。',
+ 'type' => 'string',
+ 'example' => '250000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E4E2058F-C524-5C29-9BC7-5874EA8D7CE2\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"You are not authorized to perform this operation.\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://xxxxxxxxx\\",\\n \\"MaxSize\\": \\"250000\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取Zookeeper数据导入URL',
+ ],
+ 'ExportZookeeperData' => [
+ 'summary' => '发起导出zookeeper数据任务。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '161337',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseBQYNCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-cn-78v1l83****',
+ ],
+ ],
+ [
+ 'name' => 'ExportType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '导出类型,取值:'."\n"
+ ."\n"
+ .'- transactionLog 事务日志'."\n"
+ .'- snapshot 快照文件',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'snapshot',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,MSE支持的地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'BaseResult<ExportTaskDO>',
+ 'description' => 'BaseResult<ExportTaskDO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。'."\n",
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '25EA0A83-9007-4E87-808C-637BE1A****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'ExportType' => [
+ 'description' => '导出类型,取值:'."\n"
+ ."\n"
+ .'- transactionLog 事务日志'."\n"
+ .'- snapshot 快照文件',
+ 'type' => 'string',
+ 'example' => 'snapshot',
+ ],
+ 'ContentMap' => [
+ 'description' => '任务内容。',
+ 'type' => 'object',
+ ],
+ 'Extend' => [
+ 'description' => '扩展信息。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Status' => [
+ 'description' => '任务状态,取值:'."\n"
+ .'- CREATE 创建中'."\n"
+ .' - RUNNING 执行中'."\n"
+ .' - FINISH 已完成'."\n"
+ .' - FAILED 失败'."\n"
+ .' - EXPIRE 已过期',
+ 'type' => 'string',
+ 'example' => 'FINISH',
+ ],
+ 'KubeoneTaskIds' => [
+ 'description' => '关联的底层taskId,仅作为失败时的排查使用。',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'Id' => [
+ 'description' => '任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1631001140913',
+ ],
+ 'UpdateTime' => [
+ 'description' => '最后更新时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1632979237663',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"RequestId\\": \\"25EA0A83-9007-4E87-808C-637BE1A****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": {\\n \\"InstanceId\\": \\"mse-cn-st21ri2****\\",\\n \\"ExportType\\": \\"snapshot\\",\\n \\"ContentMap\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Extend\\": \\"{}\\",\\n \\"Status\\": \\"FINISH\\",\\n \\"KubeoneTaskIds\\": \\"10\\",\\n \\"Id\\": 1,\\n \\"CreateTime\\": 1631001140913,\\n \\"UpdateTime\\": 1632979237663\\n }\\n}","type":"json"}]',
+ 'title' => 'zookeeper发起导出数据任务',
+ 'description' => '同时只有一个任务在运行中。',
+ ],
+ 'ListExportZookeeperData' => [
+ 'summary' => '列出Zookeeper的历史数据导出任务列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-7pp2d1****',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ 'default' => '5',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'BaseResult<List<ExportTaskDO>>',
+ 'description' => 'BaseResult<List<ExportTaskDO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8BD1E58D-0755-42AC-A599-E6B55112****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'ExportType' => [
+ 'description' => '导出类型,取值:'."\n"
+ ."\n"
+ .'- transactionLog 事务日志'."\n"
+ .'- snapshot 快照文件',
+ 'type' => 'string',
+ 'example' => 'snapshot',
+ ],
+ 'ContentMap' => [
+ 'description' => '任务详情。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Extend' => [
+ 'description' => '其他扩展信息,JSON结构,方便后续扩展参数。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Status' => [
+ 'description' => '任务状态,取值:'."\n"
+ .'- CREATE 创建中'."\n"
+ .' - RUNNING 执行中'."\n"
+ .' - FINISH 已完成'."\n"
+ .' - FAILED 失败'."\n"
+ .' - EXPIRE 已过期',
+ 'type' => 'string',
+ 'example' => 'FINISH',
+ ],
+ 'KubeoneTaskIds' => [
+ 'description' => '关联的底层taskId,仅作为失败时的排查使用。',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'Id' => [
+ 'description' => '任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'CreateTime' => [
+ 'description' => '任务创建时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1631001140913',
+ ],
+ 'UpdateTime' => [
+ 'description' => '更新时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1632979237663',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"RequestId\\": \\"8BD1E58D-0755-42AC-A599-E6B55112****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"Data\\": [\\n {\\n \\"InstanceId\\": \\"mse-cn-st21ri2****\\",\\n \\"ExportType\\": \\"snapshot\\",\\n \\"ContentMap\\": \\"{}\\",\\n \\"Extend\\": \\"{}\\",\\n \\"Status\\": \\"FINISH\\",\\n \\"KubeoneTaskIds\\": \\"10\\",\\n \\"Id\\": 1,\\n \\"CreateTime\\": 1631001140913,\\n \\"UpdateTime\\": 1632979237663\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'Zookeeper导出任务列表',
+ ],
+ 'CreateZnode' => [
+ 'summary' => '创建Zookeeper数据节点。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '17007',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseINOH9I',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '/zookeeper',
+ ],
+ ],
+ [
+ 'name' => 'Data',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'data',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'example' => 'cluster',
+ ],
+ 'Path' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ 'Dir' => [
+ 'description' => '节点列表信息,取值如下:'."\n"
+ .'- `true`:信息返回成功。'."\n"
+ .'- `false`:信息返回失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Name' => [
+ 'description' => '节点名称。',
+ 'type' => 'string',
+ 'example' => 'mse-bc1a29b0-160230875****-reg-center-0-1',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest',
+ 'errorMessage' => 'ZooKeeper operation is illegal.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoAuth',
+ 'errorMessage' => 'No permission to operate current Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NodeExist',
+ 'errorMessage' => 'The current instance already has this Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoNode',
+ 'errorMessage' => 'The current instance does not have this Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.Timeout',
+ 'errorMessage' => 'ZooKeeper operation timeout.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"Data\\": {\\n \\"Data\\": \\"cluster\\",\\n \\"Path\\": \\"/\\",\\n \\"Dir\\": true,\\n \\"Name\\": \\"mse-bc1a29b0-160230875****-reg-center-0-1\\"\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<CreateZnodeResponse>\\n<HttpCode>200</HttpCode>\\n<RequestId>DC34E4A3-5F1C-4E40-86EA-02EDF967****</RequestId>\\n<Message>请求处理成功</Message>\\n<Data>\\n <Path>/</Path>\\n <Data>cluster</Data>\\n <Dir>true</Dir>\\n <Name>mse-bc1a29b0-160230875****-reg-center-0-1</Name>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</CreateZnodeResponse>","errorExample":""}]',
+ 'title' => '创建ZooKeeper数据节点',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteZnode' => [
+ 'summary' => '释放Zookeeper数据节点。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17014',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseINOH9I',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/zookeeper',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '节点数据列表。',
+ 'type' => 'string',
+ 'example' => 'cluster',
+ ],
+ 'Path' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ 'Dir' => [
+ 'description' => '节点列表信息,取值如下:'."\n"
+ .'- `true`:信息返回成功。'."\n"
+ .'- `false`:信息返回失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Name' => [
+ 'description' => '节点名称。',
+ 'type' => 'string',
+ 'example' => 'mse-bc1a29b0-160230875****-reg-center-0-1',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'ZooKeeper.Timeout',
+ 'errorMessage' => 'ZooKeeper operation timeout.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoNode',
+ 'errorMessage' => 'The current instance does not have this Znode.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"Data\\": {\\n \\"Data\\": \\"cluster\\",\\n \\"Path\\": \\"/\\",\\n \\"Dir\\": true,\\n \\"Name\\": \\"mse-bc1a29b0-160230875****-reg-center-0-1\\"\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteZnodeResponse>\\n<HttpCode>200</HttpCode>\\n<RequestId>DC34E4A3-5F1C-4E40-86EA-02EDF967****</RequestId>\\n<Message>请求处理成功</Message>\\n<Data>\\n <Path>/</Path>\\n <Data>cluster</Data>\\n <Dir>true</Dir>\\n <Name>mse-bc1a29b0-160230875****-reg-center-0-1</Name>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</DeleteZnodeResponse>","errorExample":""}]',
+ 'title' => '删除ZooKeeper数据节点',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateZnode' => [
+ 'summary' => '更新Zookeeper数据节点。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '17105',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseINOH9I',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/zookeeper',
+ ],
+ ],
+ [
+ 'name' => 'Data',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'data',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest',
+ 'errorMessage' => 'ZooKeeper operation is illegal.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoAuth',
+ 'errorMessage' => 'No permission to operate current Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NodeExist',
+ 'errorMessage' => 'The current instance already has this Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoNode',
+ 'errorMessage' => 'The current instance does not have this Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.Timeout',
+ 'errorMessage' => 'ZooKeeper operation timeout.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<UpdateZnodeResponse>\\n<RequestId>316F5F64-F73D-42DC-8632-01E308B6****</RequestId>\\n<Message>请求处理成功</Message>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</UpdateZnodeResponse>","errorExample":""}]',
+ 'title' => '更新ZooKeeper数据节点',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListZnodeChildren' => [
+ 'summary' => '查询ZooKeeper数据子节点。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '17075',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseINOH9I',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/zookeeper',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'BDB6CE0B-9CAF-41B5-9FEA-E08BE8E2****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'example' => 'cluster',
+ ],
+ 'Path' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'example' => '/zookeeper',
+ ],
+ 'Dir' => [
+ 'description' => '节点列表信息,取值如下:'."\n"
+ .'- `true`:信息返回成功。'."\n"
+ .'- `false`:信息返回失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Name' => [
+ 'description' => '节点名称。',
+ 'type' => 'string',
+ 'example' => 'mse-bc1a29b0-160230875****-reg-center-0-1',
+ ],
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest',
+ 'errorMessage' => 'ZooKeeper operation is illegal.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoAuth',
+ 'errorMessage' => 'No permission to operate current Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NodeExist',
+ 'errorMessage' => 'The current instance already has this Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoNode',
+ 'errorMessage' => 'The current instance does not have this Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.Timeout',
+ 'errorMessage' => 'ZooKeeper operation timeout.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"BDB6CE0B-9CAF-41B5-9FEA-E08BE8E2****\\",\\n \\"Data\\": [\\n {\\n \\"Data\\": \\"cluster\\",\\n \\"Path\\": \\"/zookeeper\\",\\n \\"Dir\\": true,\\n \\"Name\\": \\"mse-bc1a29b0-160230875****-reg-center-0-1\\"\\n }\\n ],\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<ListZnodeChildrenResponse>\\n<Message>请求处理成功</Message>\\n<RequestId>BDB6CE0B-9CAF-41B5-9FEA-E08BE8E2****</RequestId>\\n<Data>\\n <Path>/zookeeper</Path>\\n <Data>cluster</Data>\\n <Dir>true</Dir>\\n <Name>mse-bc1a29b0-160230875****-reg-center-0-1</Name>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</ListZnodeChildrenResponse>","errorExample":""}]',
+ 'title' => '查询ZooKeeper子节点',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'QueryZnodeDetail' => [
+ 'summary' => '查询ZooKeeper数据节点信息。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17085',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseINOH9I',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'mse-09k1q11****',
+ ],
+ ],
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/zookeeper',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-5bffa4e8630',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '58E06A0A-BD2C-47A0-99C2-B100F353****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'example' => 'cluster',
+ ],
+ 'Path' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'example' => '/zookeeper',
+ ],
+ 'Dir' => [
+ 'description' => '节点列表信息,取值如下:'."\n"
+ .'- `true`:信息返回成功。'."\n"
+ .'- `false`:信息返回失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Name' => [
+ 'description' => '节点名称。',
+ 'type' => 'string',
+ 'example' => 'zookeeper',
+ ],
+ ],
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'ZooKeeper.Timeout',
+ 'errorMessage' => 'ZooKeeper operation timeout.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoNode',
+ 'errorMessage' => 'The current instance does not have this Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NoAuth',
+ 'errorMessage' => 'No permission to operate current Znode.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest',
+ 'errorMessage' => 'ZooKeeper operation is illegal.',
+ ],
+ [
+ 'errorCode' => 'ZooKeeper.IllegalRequest.NodeExist',
+ 'errorMessage' => 'The current instance already has this Znode.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"58E06A0A-BD2C-47A0-99C2-B100F353****\\",\\n \\"Data\\": {\\n \\"Data\\": \\"cluster\\",\\n \\"Path\\": \\"/zookeeper\\",\\n \\"Dir\\": true,\\n \\"Name\\": \\"zookeeper\\"\\n },\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": \\"true\\"\\n}","errorExample":""},{"type":"xml","example":"<QueryZnodeDetailResponse>\\n<Message>请求处理成功</Message>\\n<RequestId>58E06A0A-BD2C-47A0-99C2-B100F353****</RequestId>\\n<Data>\\n <Path>/zookeeper</Path>\\n <Data>cluster</Data>\\n <Dir>true</Dir>\\n <Name>zookeeper</Name>\\n</Data>\\n<ErrorCode>mse-100-000</ErrorCode>\\n<Success>true</Success>\\n</QueryZnodeDetailResponse>","errorExample":""}]',
+ 'title' => '查询ZooKeeper数据节点',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListZkTrack' => [
+ 'summary' => '获取ZooKeeper的轨迹数据。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '150858',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseN84UZV',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'RequestPars。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse-cn-0ju2yq****',
+ ],
+ ],
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/path',
+ ],
+ ],
+ [
+ 'name' => 'SessionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'SessionId。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0x301fdfbdbf00***',
+ ],
+ ],
+ [
+ 'name' => 'StartTs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '开始时间戳,单位秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1669618483',
+ ],
+ ],
+ [
+ 'name' => 'EndTs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '结束时间戳,单位秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1669619383',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Reverse',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否倒序。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ ."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Traces' => [
+ 'description' => '轨迹数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LogDate' => [
+ 'description' => '记录时间。',
+ 'type' => 'string',
+ 'example' => '2022-11-28 15:09:15,606',
+ ],
+ 'Timestamp' => [
+ 'description' => '时间戳(暂无)。',
+ 'type' => 'string',
+ 'example' => '1669619383000',
+ ],
+ 'SessionId' => [
+ 'description' => 'SessionId。',
+ 'type' => 'string',
+ 'example' => '0x301fdfbdbf00***',
+ ],
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/path',
+ ],
+ 'TraceType' => [
+ 'title' => '轨迹类型:push、pull、notify',
+ 'description' => '轨迹类型:'."\n"
+ ."\n"
+ .'- Push'."\n"
+ ."\n"
+ .'- Pull'."\n"
+ ."\n"
+ .'- Notify',
+ 'type' => 'string',
+ 'example' => 'Push',
+ ],
+ 'OpType' => [
+ 'title' => '操作类型'."\n"
+ .'对于Push'."\n"
+ .' ○ Create'."\n"
+ .' ○ Update'."\n"
+ .' ○ Delete'."\n"
+ .' ○ SetAcl'."\n"
+ .' ○ Multi'."\n"
+ .'对于Pull'."\n"
+ .' ○ GetData'."\n"
+ .' ○ GetChild'."\n"
+ .' ○ GetStat',
+ 'description' => '操作类型。'."\n"
+ .'对于Push:'."\n"
+ .' '."\n"
+ .'- Create'."\n"
+ ."\n"
+ .'- Update'."\n"
+ ."\n"
+ .'- Delete'."\n"
+ ."\n"
+ .'- SetAcl'."\n"
+ ."\n"
+ .'- Multi'."\n"
+ ."\n"
+ .'对于Pull:'."\n"
+ ."\n"
+ .'- GetData'."\n"
+ ."\n"
+ .'- GetChild'."\n"
+ ."\n"
+ .'- GetStat',
+ 'type' => 'string',
+ 'example' => 'Create',
+ ],
+ 'EventType' => [
+ 'title' => '事件类型'."\n"
+ .'对于notify:'."\n"
+ .' ○ NodeCreated'."\n"
+ .' ○ NodeDeleted'."\n"
+ .' ○ NodeDataChanged'."\n"
+ .' ○ NodeChildrenChanged',
+ 'description' => '事件类型。'."\n"
+ .'对于notify:'."\n"
+ ."\n"
+ .'- NodeCreated'."\n"
+ ."\n"
+ .'- NodeDeleted'."\n"
+ ."\n"
+ .'- NodeDataChanged'."\n"
+ ."\n"
+ .'- NodeChildrenChanged',
+ 'type' => 'string',
+ 'example' => 'NodeCreated',
+ ],
+ 'DataType' => [
+ 'title' => '数据类型:persist、ephemeral',
+ 'description' => '数据类型:'."\n"
+ ."\n"
+ .'- persist'."\n"
+ ."\n"
+ .'- ephemeral',
+ 'type' => 'string',
+ 'example' => 'persist',
+ ],
+ 'Watch' => [
+ 'title' => '监听',
+ 'description' => '是否监听。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Acl' => [
+ 'description' => 'ACL。',
+ 'type' => 'string',
+ 'example' => 'world:anyone:cdrwa',
+ ],
+ 'MultiSize' => [
+ 'description' => '事务大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3',
+ ],
+ 'Result' => [
+ 'description' => '结果。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Ttl' => [
+ 'description' => 'TTL。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ 'Finished' => [
+ 'description' => '业务是否结束。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ 'PageSize' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20',
+ ],
+ 'PageNumber' => [
+ 'description' => '当前页。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'description' => '总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****'."\n",
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- true:请求成功。'."\n"
+ ."\n"
+ .'- false:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpCode\\": \\"200\\",\\n \\"Traces\\": [\\n {\\n \\"LogDate\\": \\"2022-11-28 15:09:15,606\\",\\n \\"Timestamp\\": \\"1669619383000\\",\\n \\"SessionId\\": \\"0x301fdfbdbf00***\\",\\n \\"Path\\": \\"/path\\",\\n \\"TraceType\\": \\"Push\\",\\n \\"OpType\\": \\"Create\\",\\n \\"EventType\\": \\"NodeCreated\\",\\n \\"DataType\\": \\"persist\\",\\n \\"Watch\\": true,\\n \\"Acl\\": \\"world:anyone:cdrwa\\",\\n \\"MultiSize\\": 3,\\n \\"Result\\": \\"success\\",\\n \\"Ttl\\": 0,\\n \\"Finished\\": true\\n }\\n ],\\n \\"PageSize\\": 20,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 20,\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\\\n\\",\\n \\"Message\\": \\"ok\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询ZooKeeper轨迹数据',
+ ],
+ 'ListSentinelBlockFallbackDefinitions' => [
+ 'summary' => '获取流量防护自定义行为。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '163990',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClassificationSet',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '行为类型列表。',
+ 'description' => '行为类型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '行为类型。',
+ 'description' => '行为类型。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 1 => 'WEB行为',
+ 'RPC行为',
+ ],
+ 'example' => '1',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'title' => '状态码。',
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Data' => [
+ 'title' => '行为信息。',
+ 'description' => '行为信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => '行为ID。',
+ 'description' => '行为ID。',
+ 'type' => 'string',
+ 'example' => '12',
+ ],
+ 'Namespace' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'AppName' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Name' => [
+ 'title' => '行为名称。',
+ 'description' => '行为名称。',
+ 'type' => 'string',
+ 'example' => 'defaultFallback',
+ ],
+ 'ResourceClassification' => [
+ 'title' => '行为类型。',
+ 'description' => '行为类型。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'FallbackBehavior' => [
+ 'title' => '行为详情。',
+ 'description' => '行为详情。',
+ 'type' => 'object',
+ 'example' => '{"webRespStatusCode":429,"webRespMessage":"test","webFallbackMode":0,"webRespContentType":0}',
+ ],
+ 'TargetMap' => [
+ 'title' => '与该行为绑定的资源信息。',
+ 'description' => '与该行为绑定的资源信息。',
+ 'type' => 'object',
+ 'example' => '{"/params/{hot}":[1]}',
+ ],
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Data\\": [\\n {\\n \\"Id\\": \\"12\\",\\n \\"Namespace\\": \\"default\\",\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Name\\": \\"defaultFallback\\",\\n \\"ResourceClassification\\": \\"1\\",\\n \\"FallbackBehavior\\": {\\n \\"webRespStatusCode\\": 429,\\n \\"webRespMessage\\": \\"test\\",\\n \\"webFallbackMode\\": 0,\\n \\"webRespContentType\\": 0\\n },\\n \\"TargetMap\\": {\\n \\"/params/{hot}\\": [\\n 1\\n ]\\n }\\n }\\n ],\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取流量防护自定义行为',
+ ],
+ 'BindSentinelBlockFallbackDefinition' => [
+ 'summary' => '绑定流量防护行为。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '164017',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'prod',
+ ],
+ ],
+ [
+ 'name' => 'FallbackId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '行为ID。',
+ 'description' => '行为ID,其中0表示默认行为。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '21',
+ ],
+ ],
+ [
+ 'name' => 'TargetType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '目标规则类型。',
+ 'description' => '目标规则类型。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 1 => '接口流控',
+ '熔断规则',
+ 4 => '热点参数防护(RPC)',
+ 6 => '并发隔离',
+ 11 => '热点参数防护(HTTP 请求)',
+ ],
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Data' => [
+ 'title' => '返回详情。',
+ 'description' => '返回详情。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => '状态码。',
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'title' => '状态码。',
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Data\\": true,\\n \\"Code\\": 200,\\n \\"Success\\": \\"true\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '绑定流量防护行为',
+ ],
+ 'ListIsolationRules' => [
+ 'summary' => '查询隔离规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '163572',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'ResourceSearchKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查找包含接口关键字的防护规则。',
+ 'description' => '查找包含接口关键字的防护规则。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'a',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查找指定接口的防护规则。',
+ 'description' => '查找指定接口的防护规则。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'PageIndex',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '起始页。默认值为1。',
+ 'description' => '起始页。默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页大小。默认值为6。',
+ 'description' => '页大小。默认值为6。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'title' => '响应码。',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '规则信息。',
+ 'description' => '规则信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'title' => '返回结果。',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'RuleId' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'Threshold' => [
+ 'title' => '隔离规则并发数阈值。',
+ 'description' => '隔离规则并发数阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'Enable' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ 'RegionId' => [
+ 'title' => '集群所在地域。',
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'FallbackObject' => [
+ 'title' => '规则绑定的行为。',
+ 'description' => '规则绑定的行为。',
+ 'type' => 'string',
+ 'example' => '"{\\"appName\\":\\"spring-cloud-a\\",\\"fallbackBehavior\\":{\\"webFallbackMode\\":0,\\"webRespContentType\\":0,\\"webRespMessage\\":\\"Blocked\\",\\"webRespStatusCode\\":429},\\"id\\":977,\\"name\\":\\"Fallback\\",\\"namespace\\":\\"default\\",\\"resourceClassification\\":1}"',
+ ],
+ 'LimitApp' => [
+ 'description' => '请求来源应用。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ ],
+ ],
+ 'PageNumber' => [
+ 'title' => '起始页。',
+ 'description' => '起始页。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '页大小。',
+ 'description' => '页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalSize' => [
+ 'title' => '规则总数。',
+ 'description' => '规则总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ ],
+ ],
+ 'HttpStatusCode' => [
+ 'title' => '状态码。',
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Namespace\\": \\"default\\",\\n \\"RuleId\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/a\\",\\n \\"Threshold\\": 3,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hkhon1po62@c3df23522bXXXXX\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"FallbackObject\\": \\"\\\\\\"{\\\\\\\\\\\\\\"appName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"spring-cloud-a\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"fallbackBehavior\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"webFallbackMode\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespContentType\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespMessage\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Blocked\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"webRespStatusCode\\\\\\\\\\\\\\":429},\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":977,\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Fallback\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"resourceClassification\\\\\\\\\\\\\\":1}\\\\\\"\\",\\n \\"LimitApp\\": \\"spring-cloud-a\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 3\\n },\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '获取隔离规则列表',
+ ],
+ 'CreateIsolationRule' => [
+ 'summary' => '创建隔离规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '163570',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '隔离规则并发数阈值。',
+ 'description' => '隔离规则并发数阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '3',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所在地域。',
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'LimitApp',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Code' => [
+ 'title' => '响应码。',
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'title' => '规则信息。',
+ 'description' => '规则信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Id' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'Threshold' => [
+ 'title' => '隔离规则并发数阈值。',
+ 'description' => '隔离规则并发数阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '3',
+ ],
+ 'Enable' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hpn9ac29kz@e31a4b871******',
+ ],
+ 'RegionId' => [
+ 'title' => '集群所在地域。',
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'LimitApp' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"Id\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/a\\",\\n \\"Threshold\\": 3,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hpn9ac29kz@e31a4b871******\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建隔离规则',
+ ],
+ 'DeleteIsolationRules' => [
+ 'summary' => '删除隔离规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '163574',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'Ids',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '待删除的规则ID列表。',
+ 'description' => '待删除的规则ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'required' => false,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'title' => '返回码。',
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'title' => 'HTTP状态码。',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'title' => '完成删除的规则ID列表。',
+ 'description' => '完成删除的规则ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": [\\n 1\\n ]\\n}","type":"json"}]',
+ 'title' => '删除隔离规则',
+ ],
+ 'UpdateIsolationRule' => [
+ 'summary' => '更新隔离规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '163571',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '隔离规则并发数阈值。',
+ 'description' => '隔离规则并发数阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '3',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522******',
+ ],
+ ],
+ [
+ 'name' => 'LimitApp',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Code' => [
+ 'title' => '响应码。',
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'title' => '规则信息。',
+ 'description' => '规则信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Id' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'Threshold' => [
+ 'title' => '隔离规则并发数阈值。',
+ 'description' => '隔离规则并发数阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '3',
+ ],
+ 'Enable' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ 'LimitApp' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"Id\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/a\\",\\n \\"Threshold\\": 3,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hkhon1po62@c3df23522bXXXXX\\",\\n \\"LimitApp\\": \\"\\"\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新隔离规则',
+ ],
+ 'DeleteCircuitBreakerRules' => [
+ 'summary' => '删除熔断规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '167824',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'Ids',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '待删除的规则ID列表。',
+ 'description' => '待删除的规则ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'FAF577DD-8E8E-5BE6-80CC-380E19******',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'title' => '完成删除的规则ID列表。',
+ 'description' => '完成删除的规则ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"FAF577DD-8E8E-5BE6-80CC-380E19******\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": [\\n 1\\n ]\\n}","type":"json"}]',
+ 'title' => '删除熔断规则',
+ ],
+ 'DeleteFlowRules' => [
+ 'summary' => '删除流控规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '159871',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'Ids',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '待删除的规则ID列表。',
+ 'description' => '待删除的规则ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '[1,2]',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'FAF577DD-8E8E-5BE6-80CC-380E19******',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'title' => '完成删除的规则ID列表。',
+ 'description' => '完成删除的规则ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"FAF577DD-8E8E-5BE6-80CC-380E19******\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": [\\n 1\\n ]\\n}","type":"json"}]',
+ 'title' => '删除流控规则',
+ ],
+ 'UpdateFlowRule' => [
+ 'summary' => '更新流控规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '159855',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则的 ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '13',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '流控规则阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ControlBehavior',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '流控效果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'docRequired' => false,
+ 'enumValueTitles' => [
+ '快速失败',
+ 2 => '排队等待',
+ ],
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'MaxQueueingTimeMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '超时时间,单位毫秒。当controlBehavior类型为(排队等待)时,需要设置该字段。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '500',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522******',
+ ],
+ ],
+ [
+ 'name' => 'LimitApp',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '请求来源应用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '节点数据列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Id' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'description' => '接口资源名。',
+ 'type' => 'string',
+ 'example' => '/c',
+ ],
+ 'ControlBehavior' => [
+ 'description' => '流控效果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'enumValueTitles' => [
+ '快速失败',
+ 2 => '排队等待',
+ ],
+ 'example' => '0',
+ ],
+ 'MaxQueueingTimeMs' => [
+ 'description' => '流控效果为排队等待时对应的超时时间,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '500',
+ ],
+ 'Threshold' => [
+ 'description' => '流控规则阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '5',
+ ],
+ 'Enable' => [
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'fasle' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hpn9ac29kz@e31a4b871******',
+ ],
+ 'LimitApp' => [
+ 'description' => '请求来源应用。',
+ 'type' => 'string',
+ 'example' => 'Spring-cloud-a',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '请求成功',
+ 'false' => '请求失败',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"Id\\": 12,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/c\\",\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 500,\\n \\"Threshold\\": 5,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hpn9ac29kz@e31a4b871******\\",\\n \\"LimitApp\\": \\"Spring-cloud-a\\"\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新流控规则',
+ ],
+ 'ListFlowRules' => [
+ 'summary' => '获取流控规则列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '159811',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'xx-demo',
+ ],
+ ],
+ [
+ 'name' => 'ResourceSearchKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '搜索关键字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522******',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'PageIndex',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标页号,默认为1',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页,每页 N 个。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '请求成功',
+ 'false' => '请求失败',
+ ],
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '返回集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'RuleId' => [
+ 'description' => '规则ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'AppName' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'example' => 'finance',
+ ],
+ 'Resource' => [
+ 'description' => '接口资源名',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'ResourceType' => [
+ 'description' => '接口资源分类',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ControlBehavior' => [
+ 'description' => '流控效果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'enumValueTitles' => [
+ '快速失败',
+ 2 => '排队等待',
+ ],
+ 'example' => '0',
+ ],
+ 'MaxQueueingTimeMs' => [
+ 'description' => '流控效果为排队等待时对应的超时时间,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '500',
+ ],
+ 'Threshold' => [
+ 'description' => '流控规则阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '10',
+ ],
+ 'Enable' => [
+ 'description' => '规则启用状态。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '启用',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@5f1b08becb*****',
+ ],
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'FallbackObject' => [
+ 'description' => '流控行为。',
+ 'type' => 'string',
+ 'example' => '"{\\"appName\\":\\"spring-cloud-a\\",\\"fallbackBehavior\\":{\\"webFallbackMode\\":0,\\"webRespContentType\\":0,\\"webRespMessage\\":\\"Blocked\\",\\"webRespStatusCode\\":429},\\"id\\":977,\\"name\\":\\"Fallback\\",\\"namespace\\":\\"default\\",\\"resourceClassification\\":1}"',
+ ],
+ 'MetricType' => [
+ 'description' => '统计维度,1表示通过请求数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TrafficTags' => [
+ 'description' => '预留字段。',
+ 'type' => 'object',
+ 'example' => '{\\"origin\\":\\"default\\"}',
+ ],
+ 'LimitApp' => [
+ 'description' => '请求来源应用。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ ],
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Namespace\\": \\"default\\",\\n \\"RuleId\\": 2,\\n \\"AppName\\": \\"finance\\",\\n \\"Resource\\": \\"/a\\",\\n \\"ResourceType\\": 1,\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 500,\\n \\"Threshold\\": 10,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hkhon1po62@5f1b08becb*****\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"FallbackObject\\": \\"\\\\\\"{\\\\\\\\\\\\\\"appName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"spring-cloud-a\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"fallbackBehavior\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"webFallbackMode\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespContentType\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespMessage\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Blocked\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"webRespStatusCode\\\\\\\\\\\\\\":429},\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":977,\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Fallback\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"resourceClassification\\\\\\\\\\\\\\":1}\\\\\\"\\",\\n \\"MetricType\\": 1,\\n \\"TrafficTags\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"LimitApp\\": \\"spring-cloud-a\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 11\\n },\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '获取流控规则列表',
+ ],
+ 'CreateFlowRule' => [
+ 'summary' => '创建流控规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '163217',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '流控规则阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'true' => '启用',
+ 'false' => '禁用',
+ ],
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '接口资源名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/b',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ib09eblv6p@c3df23522******',
+ ],
+ ],
+ [
+ 'name' => 'ControlBehavior',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '流控效果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'docRequired' => true,
+ 'enumValueTitles' => [
+ '快速失败',
+ 2 => '排队等待',
+ ],
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'MaxQueueingTimeMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '超时时间,流控效果为排队等待时需要设置,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '接口资源分类。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ 'enum' => [
+ '0',
+ '1',
+ '2',
+ '4',
+ '3',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'LimitApp',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '请求来源应用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'description' => '接口资源名。',
+ 'type' => 'string',
+ 'example' => 'app',
+ ],
+ 'ControlBehavior' => [
+ 'description' => '流控效果。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'enumValueTitles' => [
+ '快速失败',
+ 2 => '排队等待',
+ ],
+ 'example' => '0',
+ ],
+ 'MaxQueueingTimeMs' => [
+ 'description' => '流控效果为排队等待时对应的超时时间,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '500',
+ ],
+ 'Threshold' => [
+ 'description' => '流控规则阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '200',
+ ],
+ 'Enable' => [
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@54e1f42f3******',
+ ],
+ 'RegionId' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'LimitApp' => [
+ 'description' => '请求来源应用。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '请求成功',
+ 'false' => '请求失败',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"Id\\": 12,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"app\\",\\n \\"ControlBehavior\\": 0,\\n \\"MaxQueueingTimeMs\\": 500,\\n \\"Threshold\\": 200,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hkhon1po62@54e1f42f3******\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"LimitApp\\": \\"spring-cloud-a\\"\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建流控规则',
+ ],
+ 'CreateCircuitBreakerRule' => [
+ 'summary' => '创建熔断规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '167810',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'description' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '0.8',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'true' => '启用',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '集群所在地域。',
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Strategy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'description' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'enumValueTitles' => [
+ '慢调用比例',
+ '异常比例',
+ ],
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'RetryTimeoutMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。取值需要为1000的整数倍,默认值为10000,即10秒。',
+ 'description' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。取值需要为1000的整数倍,默认值为10000,即10秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10000',
+ ],
+ ],
+ [
+ 'name' => 'StatIntervalMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。默认值为20000,即20秒。',
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。默认值为20000,即20秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20000',
+ ],
+ ],
+ [
+ 'name' => 'MaxAllowedRtMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '慢调用RT(单位毫秒):超过该时长则判定为慢请求,阈值类型为慢调用比例时必填。',
+ 'description' => '慢调用RT(单位毫秒):超过该时长则判定为慢请求,阈值类型为慢调用比例时必填。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ ],
+ [
+ 'name' => 'MinRequestAmount',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。默认值为10。',
+ 'description' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。默认值为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'HalfOpenBaseAmountPerStep',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断恢复每步最小通过数目,默认值为1。',
+ 'description' => '熔断恢复每步最小通过数目,默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '5',
+ ],
+ ],
+ [
+ 'name' => 'HalfOpenRecoveryStepNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断恢复阶段数,默认值为1。',
+ 'description' => '熔断恢复阶段数,默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'enumValueTitles' => [
+ '自定义接口',
+ 'WEB',
+ 'RPC',
+ 'ROUTE',
+ 'SQL',
+ ],
+ 'example' => '0',
+ 'enum' => [
+ '0',
+ '1',
+ '2',
+ '4',
+ '3',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Code' => [
+ 'title' => '响应码。',
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'title' => '规则信息。',
+ 'description' => '规则信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'title' => '应用所属的微服务命空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Id' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'StatIntervalMs' => [
+ 'title' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。',
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20000',
+ ],
+ 'Threshold' => [
+ 'title' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'description' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.8',
+ ],
+ 'Enable' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Strategy' => [
+ 'title' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'description' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'enumValueTitles' => [
+ '慢调用比例',
+ '异常比例',
+ ],
+ 'example' => '0',
+ ],
+ 'RetryTimeoutMs' => [
+ 'title' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。',
+ 'description' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10000',
+ ],
+ 'AppId' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ 'RegionId' => [
+ 'title' => '集群所在地域。',
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'MaxAllowedRtMs' => [
+ 'title' => '慢调用RT(单位毫秒):超过该时长则判定为慢请求,阈值类型为慢调用比例时必填。',
+ 'description' => '慢调用RT(单位毫秒):阈值类型为慢调用比例时,超过该时长则判定为慢请求。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'MinRequestAmount' => [
+ 'title' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。',
+ 'description' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'HalfOpenBaseAmountPerStep' => [
+ 'title' => '熔断恢复每步最小通过数目。',
+ 'description' => '熔断恢复每步最小通过数目。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'HalfOpenRecoveryStepNum' => [
+ 'title' => '熔断恢复阶段数。',
+ 'description' => '熔断恢复阶段数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '请求成功',
+ 'false' => '请求失败',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"Id\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/a\\",\\n \\"StatIntervalMs\\": 20000,\\n \\"Threshold\\": 0.8,\\n \\"Enable\\": true,\\n \\"Strategy\\": 0,\\n \\"RetryTimeoutMs\\": 10000,\\n \\"AppId\\": \\"hkhon1po62@c3df23522bXXXXX\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"MaxAllowedRtMs\\": 200,\\n \\"MinRequestAmount\\": 10,\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"HalfOpenRecoveryStepNum\\": 1\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建熔断规则',
+ ],
+ 'ListCircuitBreakerRules' => [
+ 'summary' => '获取熔断规则列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '167823',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'ResourceSearchKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查找包含接口关键字的防护规则。',
+ 'description' => '查找包含接口关键字的防护规则。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'a',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查找指定接口的防护规则。',
+ 'description' => '查找指定接口的防护规则。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'PageIndex',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '起始页。',
+ 'description' => '起始页。默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页大小。',
+ 'description' => '页大小。默认值为6。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh-CN(默认值):中文,en-US:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'title' => '响应码。',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'title' => '响应信息。',
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4E9FDCFE-0738-493B-B801-82BDFBCB****',
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '规则信息。',
+ 'description' => '规则信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'title' => '返回结果。',
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'title' => '应用所属的微服务命空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'RuleId' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'ResourceType' => [
+ 'description' => '接口资源分类。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Strategy' => [
+ 'title' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'description' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'enumValueTitles' => [
+ '慢调用比例',
+ '异常比例',
+ ],
+ 'example' => '0',
+ ],
+ 'Threshold' => [
+ 'title' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'description' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.8',
+ ],
+ 'Enable' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RetryTimeoutMs' => [
+ 'title' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。',
+ 'description' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10000',
+ ],
+ 'StatIntervalMs' => [
+ 'title' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。',
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20000',
+ ],
+ 'AppId' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ 'RegionId' => [
+ 'title' => '集群所在地域。',
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'FallbackObject' => [
+ 'title' => '规则绑定的行为。',
+ 'description' => '规则绑定的行为。',
+ 'type' => 'string',
+ 'example' => '"{\\"appName\\":\\"spring-cloud-a\\",\\"fallbackBehavior\\":{\\"webFallbackMode\\":0,\\"webRespContentType\\":0,\\"webRespMessage\\":\\"Blocked\\",\\"webRespStatusCode\\":429},\\"id\\":977,\\"name\\":\\"Fallback\\",\\"namespace\\":\\"default\\",\\"resourceClassification\\":1}"',
+ ],
+ 'MaxAllowedRtMs' => [
+ 'title' => '慢调用RT(单位毫秒):阈值类型为慢调用比例时,超过该时长则判定为慢请求。',
+ 'description' => '慢调用RT(单位毫秒):阈值类型为慢调用比例时,超过该时长则判定为慢请求。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'MinRequestAmount' => [
+ 'title' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。',
+ 'description' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'HalfOpenBaseAmountPerStep' => [
+ 'title' => '熔断恢复每步最小通过数目。',
+ 'description' => '熔断恢复每步最小通过数目。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'HalfOpenRecoveryStepNum' => [
+ 'title' => '熔断恢复阶段数。',
+ 'description' => '熔断恢复阶段数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ 'PageNumber' => [
+ 'title' => '起始页。',
+ 'description' => '起始页。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '页大小。',
+ 'description' => '页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalSize' => [
+ 'title' => '总页数。',
+ 'description' => '总页数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ ],
+ ],
+ 'HttpStatusCode' => [
+ 'title' => '状态码。',
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4E9FDCFE-0738-493B-B801-82BDFBCB****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Namespace\\": \\"default\\",\\n \\"RuleId\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/a\\",\\n \\"ResourceType\\": 1,\\n \\"Strategy\\": 0,\\n \\"Threshold\\": 0.8,\\n \\"Enable\\": true,\\n \\"RetryTimeoutMs\\": 10000,\\n \\"StatIntervalMs\\": 20000,\\n \\"AppId\\": \\"hkhon1po62@c3df23522bXXXXX\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"FallbackObject\\": \\"\\\\\\"{\\\\\\\\\\\\\\"appName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"spring-cloud-a\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"fallbackBehavior\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"webFallbackMode\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespContentType\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespMessage\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Blocked\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"webRespStatusCode\\\\\\\\\\\\\\":429},\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":977,\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Fallback\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"resourceClassification\\\\\\\\\\\\\\":1}\\\\\\"\\",\\n \\"MaxAllowedRtMs\\": 200,\\n \\"MinRequestAmount\\": 10,\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"HalfOpenRecoveryStepNum\\": 1\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 3\\n },\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '获取熔断规则列表',
+ ],
+ 'UpdateCircuitBreakerRule' => [
+ 'summary' => '更新熔断规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '167822',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的微服务命空间。',
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'description' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'docRequired' => false,
+ 'enumValueTitles' => [],
+ 'example' => '0.8',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'docRequired' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ ],
+ [
+ 'name' => 'Strategy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'description' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'enumValueTitles' => [
+ '慢调用比例',
+ '异常比例',
+ ],
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'RetryTimeoutMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。取值需要为1000的整数倍,默认值为10000,即10秒。',
+ 'description' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。取值需要为1000的整数倍,默认值为10000,即10秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10000',
+ ],
+ ],
+ [
+ 'name' => 'StatIntervalMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。默认值为20000,即20秒。',
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。默认值为20000,即20秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20000',
+ ],
+ ],
+ [
+ 'name' => 'MaxAllowedRtMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '慢调用RT(单位毫秒):阈值类型为慢调用比例时,超过该时长则判定为慢请求。',
+ 'description' => '慢调用RT(单位毫秒):超过该时长则判定为慢请求,阈值类型为慢调用比例时必填。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ ],
+ [
+ 'name' => 'MinRequestAmount',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。默认值为10。',
+ 'description' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。默认值为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'HalfOpenBaseAmountPerStep',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断恢复每步最小通过数目,默认值为1。',
+ 'description' => '熔断恢复每步最小通过数目,默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '5',
+ ],
+ ],
+ [
+ 'name' => 'HalfOpenRecoveryStepNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '熔断恢复阶段数,默认值为1。',
+ 'description' => '熔断恢复阶段数,默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh-CN(默认值):中文,en-US:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '规则信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'title' => '应用所属的微服务命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Id' => [
+ 'title' => '规则ID。',
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'title' => '应用名称。',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'title' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'Strategy' => [
+ 'title' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'description' => '阈值类型:选择以慢调用比例或异常比例作为阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'enumValueTitles' => [
+ '慢调用比例',
+ '异常比例',
+ ],
+ 'example' => '0',
+ ],
+ 'Threshold' => [
+ 'title' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'description' => '熔断比例阈值:触发熔断的比例阈值,取值范围为0 - 1,代表0% - 100%。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.8',
+ ],
+ 'Enable' => [
+ 'title' => '规则的启用状态。',
+ 'description' => '规则的启用状态。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RetryTimeoutMs' => [
+ 'title' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。',
+ 'description' => '熔断时长(单位毫秒):即熔断触发后持续的时间。资源进入熔断状态后,在配置的熔断时长内,请求都会快速失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10000',
+ ],
+ 'StatIntervalMs' => [
+ 'title' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。',
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度,取值范围为1秒~120分钟。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20000',
+ ],
+ 'AppId' => [
+ 'title' => '应用ID。',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@c3df23522bXXXXX',
+ ],
+ 'MaxAllowedRtMs' => [
+ 'title' => '慢调用RT(单位毫秒):超过该时长则判定为慢请求,阈值类型为慢调用比例时必填。',
+ 'description' => '慢调用RT(单位毫秒):阈值类型为慢调用比例时,超过该时长则判定为慢请求。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'MinRequestAmount' => [
+ 'title' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。',
+ 'description' => '触发熔断的最小请求数目,若当前统计窗口请求数小于此值,即使达到熔断条件规则也不会触发。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'HalfOpenBaseAmountPerStep' => [
+ 'title' => '熔断恢复每步最小通过数目。',
+ 'description' => '熔断恢复每步最小通过数目。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'HalfOpenRecoveryStepNum' => [
+ 'title' => '熔断恢复阶段数。',
+ 'description' => '熔断恢复阶段数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'title' => '请求结果。',
+ 'description' => '请求结果。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '请求成功',
+ 'false' => '请求失败',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"Id\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/a\\",\\n \\"Strategy\\": 0,\\n \\"Threshold\\": 0.8,\\n \\"Enable\\": true,\\n \\"RetryTimeoutMs\\": 10000,\\n \\"StatIntervalMs\\": 20000,\\n \\"AppId\\": \\"hkhon1po62@c3df23522bXXXXX\\",\\n \\"MaxAllowedRtMs\\": 200,\\n \\"MinRequestAmount\\": 10,\\n \\"HalfOpenBaseAmountPerStep\\": 5,\\n \\"HalfOpenRecoveryStepNum\\": 1\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新熔断规则',
+ ],
+ 'ListWebFlowRules' => [
+ 'summary' => '查询热点参数防护规则(HTTP 请求)。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '164286',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'default' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'ResourceSearchKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查找包含接口关键字的防护规则(与Resource不可同时存在)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'flow',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用Id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'b22qb1****@2f0586be4b1****',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查找指定接口的防护规则(与ResourceSearchKey不可同时存在)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/flow',
+ ],
+ ],
+ [
+ 'name' => 'PageIndex',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '起始页。默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页,每页 N 个。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求Id。',
+ 'type' => 'string',
+ 'example' => '4AE73569-304C-5AA9-AE11-C1D99C7D1689',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '返回集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'StatIntervalMs' => [
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1000',
+ ],
+ 'RuleId' => [
+ 'description' => '规则Id',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'description' => '接口资源名',
+ 'type' => 'string',
+ 'example' => '/flow',
+ ],
+ 'ResourceType' => [
+ 'description' => '资源类型'."\n"
+ ."\n"
+ .'- 0(自定义接口)'."\n"
+ .'- 1(WEB)'."\n"
+ .'- 2(RPC)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ControlBehavior' => [
+ 'description' => '流控方式'."\n"
+ ."\n"
+ .'- 0(快速失败)'."\n"
+ .'- 2(排队等待)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Burst' => [
+ 'description' => '针对突发请求额外允许的请求数目(效果等同于令牌桶算法的最大令牌数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'MaxQueueingTimeMs' => [
+ 'description' => '流控效果为排队等待时对应的超时时间,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ResourceMode' => [
+ 'description' => '资源模式'."\n"
+ ."\n"
+ .'- 0(资源名模式)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Threshold' => [
+ 'description' => '阈值',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '20',
+ ],
+ 'Enable' => [
+ 'description' => '开启或关闭。'."\n"
+ ."\n"
+ .'- `true`:开启。'."\n"
+ .'- `false`:关闭。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ParamItem' => [
+ 'description' => '参数描述项,JSON格式的字符串,包含以下键值对'."\n"
+ .'- parseStrategy:参数属性(0: Client IP、1: RemoteHost、 2: Header、 3: URL参数)'."\n"
+ .'- fieldName:Header名称/URL参数名称,仅在参数属性为2、3时填写'."\n"
+ .'- matchStrategy:属性值匹配方式,仅在参数属性为2、3且需要属性值匹配时填写(0: 精确、 2: 正则、 3: 子串)'."\n"
+ .'- pattern:匹配串,仅在参数属性为2、3且需要属性值匹配时填写',
+ 'type' => 'string',
+ 'example' => '{"fieldName":"testKey","matchStrategy":2,"parseStrategy":2,"pattern":"testValue"}',
+ ],
+ 'AppId' => [
+ 'description' => '应用Id。',
+ 'type' => 'string',
+ 'example' => 'hkhon1XXXX@c3df23522bXXXXX',
+ ],
+ 'MetricType' => [
+ 'description' => '阈值类型'."\n"
+ ."\n"
+ .'- 1(请求数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'RegionId' => [
+ 'description' => '地域Id。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'FallbackObject' => [
+ 'description' => '规则绑定的行为。',
+ 'type' => 'string',
+ 'example' => '{\\"appName\\":\\"spring-cloud-a\\",\\"fallbackBehavior\\":{\\"webFallbackMode\\":0,\\"webRespContentType\\":0,\\"webRespMessage\\":\\"Blocked\\",\\"webRespStatusCode\\":429},\\"id\\":977,\\"name\\":\\"Fallback\\",\\"namespace\\":\\"default\\",\\"resourceClassification\\":1}',
+ ],
+ ],
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => '页码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '页面大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalSize' => [
+ 'description' => '查询到的总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '36',
+ ],
+ ],
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"4AE73569-304C-5AA9-AE11-C1D99C7D1689\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Namespace\\": \\"default\\",\\n \\"StatIntervalMs\\": 1000,\\n \\"RuleId\\": \\"1\\",\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/flow\\",\\n \\"ResourceType\\": 1,\\n \\"ControlBehavior\\": 0,\\n \\"Burst\\": 0,\\n \\"MaxQueueingTimeMs\\": 200,\\n \\"ResourceMode\\": 0,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true,\\n \\"ParamItem\\": \\"{\\\\\\"fieldName\\\\\\":\\\\\\"testKey\\\\\\",\\\\\\"matchStrategy\\\\\\":2,\\\\\\"parseStrategy\\\\\\":2,\\\\\\"pattern\\\\\\":\\\\\\"testValue\\\\\\"}\\",\\n \\"AppId\\": \\"hkhon1XXXX@c3df23522bXXXXX\\",\\n \\"MetricType\\": 1,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"FallbackObject\\": \\"{\\\\\\\\\\\\\\"appName\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"spring-cloud-a\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"fallbackBehavior\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"webFallbackMode\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespContentType\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"webRespMessage\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Blocked\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"webRespStatusCode\\\\\\\\\\\\\\":429},\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":977,\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Fallback\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"resourceClassification\\\\\\\\\\\\\\":1}\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 36\\n },\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '查询热点参数防护规则(HTTP)',
+ ],
+ 'CreateWebFlowRule' => [
+ 'summary' => '创建热点参数防护规则(HTTP 请求)。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '164156',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '命名空间',
+ 'description' => '命名空间',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'default',
+ 'default' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名',
+ 'description' => '应用名',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '阈值',
+ 'description' => '阈值',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '规则状态',
+ 'description' => '规则状态'."\n"
+ .'- true(开启)'."\n"
+ .'- false(关闭)',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源名(接口名)',
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '/flow',
+ ],
+ ],
+ [
+ 'name' => 'Burst',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '针对突发请求额外允许的请求数目',
+ 'description' => '针对突发请求额外允许的请求数目(效果等同于令牌桶算法的最大令牌数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用Id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1****@c3df23522******',
+ ],
+ ],
+ [
+ 'name' => 'ControlBehavior',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '流控方式',
+ 'description' => '流控方式'."\n"
+ .'- 0(快速失败)'."\n"
+ .'- 2(排队等待)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'docRequired' => true,
+ 'enumValueTitles' => [
+ '快速失败',
+ 2 => '排队等待',
+ ],
+ 'example' => '0',
+ 'default' => '0',
+ 'enum' => [
+ '0',
+ '2',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'MaxQueueingTimeMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '超时时间',
+ 'description' => '超时时间,流控效果为排队等待时需要设置,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ ],
+ [
+ 'name' => 'ResourceMode',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源模式',
+ 'description' => '资源模式'."\n"
+ .'- 0(资源名模式)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'enumValueTitles' => [
+ '资源名模式',
+ ],
+ 'example' => '0',
+ 'enum' => [
+ '0',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'ParamItem',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '参数描述项',
+ 'description' => '参数描述项,JSON格式的字符串,包含以下键值对'."\n"
+ .'- parseStrategy:参数属性(0: Client IP、1: RemoteHost、 2: Header、 3: URL参数)'."\n"
+ .'- fieldName:Header名称/URL参数名称,仅在参数属性为2、3时填写'."\n"
+ .'- matchStrategy:属性值匹配方式,仅在参数属性为2、3且需要属性值匹配时填写(0: 精确、 2: 正则、 3: 子串)'."\n"
+ .'- pattern:匹配串,仅在参数属性为2、3且需要属性值匹配时填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"fieldName":"testKey","matchStrategy":2,"parseStrategy":2,"pattern":"testValue"}',
+ ],
+ ],
+ [
+ 'name' => 'MetricType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '指标类型',
+ 'description' => '阈值类型'."\n"
+ .'- 1(请求数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 1 => '请求数',
+ ],
+ 'example' => '1',
+ 'enum' => [
+ '1',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'StatIntervalMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '统计间隔',
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度,默认值为1秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1000',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型'."\n"
+ .'- 0(自定义接口)'."\n"
+ .'- 1(WEB)'."\n"
+ .'- 2(RPC)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'enumValueTitles' => [
+ '自定义接口',
+ 'WEB',
+ 'RPC',
+ ],
+ 'example' => '1',
+ 'enum' => [
+ '0',
+ '1',
+ '2',
+ '4',
+ '3',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '响应信息。'."\n",
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求Id。',
+ 'type' => 'string',
+ 'example' => 'A73AC37C-C617-4E3A-8049-372CF49C****',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'StatIntervalMs' => [
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1000',
+ ],
+ 'Id' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'description' => '接口名称:适用该规则的应用资源。需要与控制台接口详情处接口名称一致。',
+ 'type' => 'string',
+ 'example' => '/flow',
+ ],
+ 'ControlBehavior' => [
+ 'description' => '流控方式'."\n"
+ .'- 0(快速失败)'."\n"
+ .'- 2(排队等待)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ReourceMode' => [
+ 'description' => '资源模式'."\n"
+ ."\n"
+ .'0(资源名模式)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'MaxQueueingTimeMs' => [
+ 'description' => '流控效果为排队等待时对应的超时时间,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Threshold' => [
+ 'description' => '阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '20',
+ ],
+ 'Enable' => [
+ 'description' => '规则状态'."\n"
+ ."\n"
+ .'- true(开启)'."\n"
+ .'- false(关闭)',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'description' => '应用Id。',
+ 'type' => 'string',
+ 'example' => 'hkhon1****@c3df23522******',
+ ],
+ 'MetricType' => [
+ 'description' => '阈值类型'."\n"
+ .'- 1(请求数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'RegionId' => [
+ 'description' => '地域Id。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Burst' => [
+ 'description' => '针对突发请求额外允许的请求数目(效果等同于令牌桶算法的最大令牌数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ParamItem' => [
+ 'description' => '参数描述项,JSON格式的字符串,包含以下键值对'."\n"
+ .'- parseStrategy:参数属性(0: Client IP、1: RemoteHost、 2: Header、 3: URL参数)'."\n"
+ .'- fieldName:Header名称/URL参数名称,仅在参数属性为2、3时填写'."\n"
+ .'- matchStrategy:属性值匹配方式,仅在参数属性为2、3且需要属性值匹配时填写(0: 精确、 2: 正则、 3: 子串)'."\n"
+ .'- pattern:匹配串,仅在参数属性为2、3且需要属性值匹配时填写',
+ 'type' => 'string',
+ 'example' => '{"fieldName":"testKey","matchStrategy":2,"parseStrategy":2,"pattern":"testValue"}',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"A73AC37C-C617-4E3A-8049-372CF49C****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"StatIntervalMs\\": 1000,\\n \\"Id\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/flow\\",\\n \\"ControlBehavior\\": 0,\\n \\"ReourceMode\\": 0,\\n \\"MaxQueueingTimeMs\\": 200,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hkhon1****@c3df23522******\\",\\n \\"MetricType\\": 1,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Burst\\": 0,\\n \\"ParamItem\\": \\"{\\\\\\"fieldName\\\\\\":\\\\\\"testKey\\\\\\",\\\\\\"matchStrategy\\\\\\":2,\\\\\\"parseStrategy\\\\\\":2,\\\\\\"pattern\\\\\\":\\\\\\"testValue\\\\\\"}\\"\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建热点参数防护(HTTP)规则',
+ ],
+ 'DeleteWebFlowRules' => [
+ 'summary' => '删除热点参数防护规则(HTTP 请求)。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '164288',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MSE命名空间名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'Ids',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '待删除的规则ID列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '[1, 2, 3]',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '354FF159-E9FB-5FBA-BDD5-E99EE440A88D',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '完成删除的规则Id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '[1, 2, 3]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"354FF159-E9FB-5FBA-BDD5-E99EE440A88D\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": [\\n 0\\n ]\\n}","type":"json"}]',
+ 'title' => '删除热点参数防护(HTTP)规则',
+ ],
+ 'UpdateWebFlowRule' => [
+ 'summary' => '更新热点参数防护规则(HTTP 请求)。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '164287',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'default',
+ 'default' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '阈值',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则状态'."\n"
+ .'- true(开启)'."\n"
+ .'- false(关闭)',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Burst',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '针对突发请求额外允许的请求数目(效果等同于令牌桶算法的最大令牌数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用Id。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1****@c3df23522******',
+ ],
+ ],
+ [
+ 'name' => 'ControlBehavior',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '流控方式'."\n"
+ ."\n"
+ .'- 0(快速失败)'."\n"
+ .'- 2(排队等待)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'MaxQueueingTimeMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '超时时间,流控效果为排队等待时需要设置,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ ],
+ [
+ 'name' => 'ResourceMode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源模式'."\n"
+ ."\n"
+ .'- 0(资源名模式)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ParamItem',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '参数描述项,JSON格式的字符串,包含以下键值对'."\n"
+ .'- parseStrategy:参数属性(0: Client IP、1: RemoteHost、 2: Header、 3: URL参数)'."\n"
+ .'- fieldName:Header名称/URL参数名称,仅在参数属性为2、3时填写'."\n"
+ .'- matchStrategy:属性值匹配方式,仅在参数属性为2、3且需要属性值匹配时填写(0: 精确、 2: 正则、 3: 子串)'."\n"
+ .'- pattern:匹配串,仅在参数属性为2、3且需要属性值匹配时填写',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"fieldName":"key","matchStrategy":2,"parseStrategy":2,"pattern":"value"}',
+ ],
+ ],
+ [
+ 'name' => 'MetricType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '阈值类型'."\n"
+ ."\n"
+ .'- 1(请求数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'StatIntervalMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1000',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则Id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求Id。',
+ 'type' => 'string',
+ 'example' => '54973C90-F379-4372-9AA5-053A3F7****',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'StatIntervalMs' => [
+ 'description' => '统计窗口时长(单位毫秒):统计的时间窗口长度。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1000',
+ ],
+ 'Id' => [
+ 'description' => '规则Id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AppName' => [
+ 'description' => '应用名',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Resource' => [
+ 'description' => '接口资源名。',
+ 'type' => 'string',
+ 'example' => '/flow',
+ ],
+ 'ControlBehavior' => [
+ 'description' => '流控方式'."\n"
+ .'- 0(快速失败)'."\n"
+ .'- 2(排队等待)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ReourceMode' => [
+ 'description' => '资源模式'."\n"
+ .'- 0(资源名模式)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'MaxQueueingTimeMs' => [
+ 'description' => '流控效果为排队等待时对应的超时时间,单位毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Threshold' => [
+ 'description' => '阈值。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '20',
+ ],
+ 'Enable' => [
+ 'description' => '规则状态'."\n"
+ .'- true(开启)'."\n"
+ .'- false(关闭)',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AppId' => [
+ 'description' => '应用Id。',
+ 'type' => 'string',
+ 'example' => 'hkhon1XXXX@54e1f42f37cXXXX',
+ ],
+ 'MetricType' => [
+ 'description' => '阈值类型'."\n"
+ ."\n"
+ .'- 1(请求数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'RegionId' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Burst' => [
+ 'description' => '针对突发请求额外允许的请求数目(效果等同于令牌桶算法的最大令牌数)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ParamItem' => [
+ 'description' => '参数描述项,JSON格式的字符串,包含以下键值对'."\n"
+ .'- parseStrategy:参数属性(0: Client IP、1: RemoteHost、 2: Header、 3: URL参数)'."\n"
+ .'- fieldName:Header名称/URL参数名称,仅在参数属性为2、3时填写'."\n"
+ .'- matchStrategy:属性值匹配方式,仅在参数属性为2、3且需要属性值匹配时填写(0: 精确、 2: 正则、 3: 子串)'."\n"
+ .'- pattern:匹配串,仅在参数属性为2、3且需要属性值匹配时填写',
+ 'type' => 'string',
+ 'example' => '{"fieldName":"testKey","matchStrategy":2,"parseStrategy":2,"pattern":"testValue"}',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"54973C90-F379-4372-9AA5-053A3F7****\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"Namespace\\": \\"default\\",\\n \\"StatIntervalMs\\": 1000,\\n \\"Id\\": 1,\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Resource\\": \\"/flow\\",\\n \\"ControlBehavior\\": 0,\\n \\"ReourceMode\\": 0,\\n \\"MaxQueueingTimeMs\\": 200,\\n \\"Threshold\\": 20,\\n \\"Enable\\": true,\\n \\"AppId\\": \\"hkhon1XXXX@54e1f42f37cXXXX\\",\\n \\"MetricType\\": 1,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Burst\\": 0,\\n \\"ParamItem\\": \\"{\\\\\\"fieldName\\\\\\":\\\\\\"testKey\\\\\\",\\\\\\"matchStrategy\\\\\\":2,\\\\\\"parseStrategy\\\\\\":2,\\\\\\"pattern\\\\\\":\\\\\\"testValue\\\\\\"}\\"\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新热点参数防护规则(HTTP 请求)',
+ ],
+ 'ListAuthPolicy' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17061',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseDB5C9P',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页码。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页显示条数。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '来源。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Protocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '协议类型。取值:'."\n"
+ ."\n"
+ .'- **SPRING_CLOUD**。'."\n"
+ .'- **DUBBO**。'."\n"
+ .'- **istio**。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'SPRING_CLOUD',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权规则名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'auto-rule-**',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'jgy4cadmqo@***',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MSE命名空间名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh-CN(默认值):中文,en-US:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '05A5A150-4A5F-5A8C-97D6-710776CC8408',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'AuthRule' => [
+ 'description' => '服务鉴权规则内容列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务鉴权规则内容。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Black' => [
+ 'description' => '是否黑名单。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ 'Method' => [
+ 'description' => '请求方法。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Version' => [
+ 'description' => '方法版本号。',
+ 'type' => 'string',
+ 'example' => '0.0.1',
+ ],
+ 'ParameterTypes' => [
+ 'description' => '请求参数类型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '请求参数类型。',
+ 'type' => 'string',
+ 'example' => '[\\"java.lang.String\\",\\"java.lang.Object\\",\\"java.lang.String\\"]',
+ ],
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Name' => [
+ 'description' => '方法名。',
+ 'type' => 'string',
+ 'example' => 'hello',
+ ],
+ 'Group' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'ReturnType' => [
+ 'description' => '返回值类型。',
+ 'type' => 'string',
+ 'example' => 'Boolean',
+ ],
+ ],
+ ],
+ 'AppIds' => [
+ 'description' => '应用集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => '["dez4qt7weh@***"]',
+ ],
+ ],
+ 'AuthType' => [
+ 'description' => '规则类型。'."\n"
+ ."\n"
+ .'- 0, 按照应用维度。'."\n"
+ .'- 1,按照命名空间维度。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'K8sNamespaces' => [
+ 'description' => '命名空间列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'acced****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'NamespaceId' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'example' => 'ced54a95-4e33-4bda-be7e-37e95868***',
+ ],
+ 'Protocol' => [
+ 'description' => '协议类型。取值:'."\n"
+ ."\n"
+ .'- **SPRING_CLOUD**。'."\n"
+ .'- **DUBBO**。'."\n"
+ .'- **istio**。',
+ 'type' => 'string',
+ 'example' => 'SPRING_CLOUD',
+ ],
+ 'AccountId' => [
+ 'description' => '资源拥有者的阿里云账号ID。',
+ 'type' => 'string',
+ 'example' => '19039813784***',
+ ],
+ 'Source' => [
+ 'description' => '应用来源。',
+ 'type' => 'string',
+ 'example' => 'edasmsc',
+ ],
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@5f1b08becb*****',
+ ],
+ 'Name' => [
+ 'description' => '鉴权规则名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '204',
+ ],
+ 'Enable' => [
+ 'description' => '开启或关闭。'."\n"
+ ."\n"
+ .'- `true`:开启。'."\n"
+ .'- `false`:关闭。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'AuthType' => [
+ 'description' => '规则类型。'."\n"
+ ."\n"
+ .'- 0, 按照应用维度。'."\n"
+ .'- 1,按照命名空间维度。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'K8sNamespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'c19c6c500e1ff4d7abc7bed9b8236***',
+ ],
+ ],
+ ],
+ ],
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"05A5A150-4A5F-5A8C-97D6-710776CC8408\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Status\\": 1,\\n \\"AuthRule\\": [\\n {\\n \\"Black\\": false,\\n \\"Path\\": \\"/a\\",\\n \\"Method\\": {\\n \\"Version\\": \\"0.0.1\\",\\n \\"ParameterTypes\\": [\\n \\"[\\\\\\\\\\\\\\"java.lang.String\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"java.lang.Object\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"java.lang.String\\\\\\\\\\\\\\"]\\"\\n ],\\n \\"ServiceName\\": \\"spring-cloud-a\\",\\n \\"Name\\": \\"hello\\",\\n \\"Group\\": \\"default\\",\\n \\"ReturnType\\": \\"Boolean\\"\\n },\\n \\"AppIds\\": [\\n \\"[\\\\\\"dez4qt7weh@***\\\\\\"]\\"\\n ],\\n \\"AuthType\\": 0,\\n \\"K8sNamespaces\\": [\\n \\"acced****\\"\\n ]\\n }\\n ],\\n \\"NamespaceId\\": \\"ced54a95-4e33-4bda-be7e-37e95868***\\",\\n \\"Protocol\\": \\"SPRING_CLOUD\\",\\n \\"AccountId\\": \\"19039813784***\\",\\n \\"Source\\": \\"edasmsc\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"AppId\\": \\"hkhon1po62@5f1b08becb*****\\",\\n \\"Name\\": \\"test\\",\\n \\"Id\\": 204,\\n \\"Enable\\": false,\\n \\"AuthType\\": 0,\\n \\"K8sNamespace\\": \\"c19c6c500e1ff4d7abc7bed9b8236***\\"\\n }\\n ],\\n \\"TotalSize\\": 11,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n },\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取服务鉴权规则列表',
+ 'summary' => '通过ListAuthPolicy接口查询服务鉴权规则列表。',
+ ],
+ 'UpdateAuthPolicy' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17097',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseDB5C9P',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'demo-test',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用接入来源。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '432',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abcde@12345',
+ ],
+ ],
+ [
+ 'name' => 'Protocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '协议类型。取值:'."\n"
+ ."\n"
+ .'- **SPRING_CLOUD**。'."\n"
+ .'- **DUBBO**。'."\n"
+ .'- **istio**。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'SPRING_CLOUD',
+ ],
+ ],
+ [
+ 'name' => 'AuthRule',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务鉴权规则内容。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[{\\"all\\":true,\\"appIds\\":[\\"f6xqzbao96@4adfaf3c92c947a\\"],\\"black\\":false}]',
+ ],
+ ],
+ [
+ 'name' => 'K8sNamespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'k8s集群的命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'c19c6c500e1ff4d7abc7bed9b8236***',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh-CN(默认值):中文,en-US:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '83E3909D-D26F-5D97-B73B-407A26***',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '500',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:- true:请求成功。- false:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"83E3909D-D26F-5D97-B73B-407A26***\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": \\"{}\\",\\n \\"Code\\": 500,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新服务鉴权规则',
+ 'summary' => '通过UpdateAuthPolicy接口更新服务鉴权规则。',
+ ],
+ 'AddAuthPolicy' => [
+ 'summary' => '通过 AddAuthPolicy 接口创建服务鉴权规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '16988',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseDB5C9P',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '来源。可选值为:edasmsc。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权规则的启用状态。取值:'."\n"
+ ."\n"
+ .'- `true`:启用。'."\n"
+ .'- `false`:禁用。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'e9clba2xlc@***',
+ ],
+ ],
+ [
+ 'name' => 'Protocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '协议类型。取值:'."\n"
+ ."\n"
+ .'- **SPRING_CLOUD**。'."\n"
+ .'- **DUBBO**。'."\n"
+ .'- **istio**。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'SPRING_CLOUD',
+ ],
+ ],
+ [
+ 'name' => 'AuthRule',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务鉴权规则内容。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '[{"all":true,"black":false,"appIds":["dez4qt7weh@***"]}]',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用所属的MSE命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AuthType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则类型。'."\n"
+ ."\n"
+ .'- 0, 按照应用维度。'."\n"
+ .'- 1,按照命名空间维度。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'K8sNamespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'k8s集群的命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'c19c6c500e1ff4d7abc7***',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh-CN(默认值):中文,en-US:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'dc63-465d-8ef5-20dc18af****',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'string',
+ 'example' => '请求处理成功。',
+ ],
+ 'Code' => [
+ 'description' => 'Code仅仅用来和Success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"dc63-465d-8ef5-20dc18af****\\",\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": \\"请求处理成功。\\",\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建服务鉴权规则',
+ ],
+ 'RemoveAuthPolicy' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17087',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseDB5C9P',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PolicyId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '策略ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '259',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh-CN(默认值):中文,en-US:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9515ACA4-E94D-440D-989E-C379FCED****',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '500',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"9515ACA4-E94D-440D-989E-C379FCED****\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": \\"true\\",\\n \\"Code\\": 500,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '删除服务鉴权规则',
+ 'summary' => '通过RemoveAuthPolicy接口删除服务鉴权规则。',
+ ],
+ 'GetServiceMethodPage' => [
+ 'summary' => '获取服务接口列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ServiceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务类型。',
+ 'description' => '服务类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'springCloud',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的MSE命名空间。',
+ 'description' => '应用所属的MSE命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称',
+ 'description' => '应用名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用id。',
+ 'description' => '应用id。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhonxxxxx@f3f75ed8ffxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务名。',
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sc-A',
+ ],
+ ],
+ [
+ 'name' => 'ServiceVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务版本。',
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0.0',
+ ],
+ ],
+ [
+ 'name' => 'ServiceGroup',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务分组。',
+ 'description' => '服务分组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ALIYUN',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务提供者ip。',
+ 'description' => '服务提供者ip。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '223.5.5.5',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '获取第几页的数据。',
+ 'description' => '获取第几页的数据。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '65536',
+ 'minimum' => '1',
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每一页多少条。',
+ 'description' => '每一页多少条。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '65536',
+ 'minimum' => '1',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'MethodController',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '接口所在的Controller类全称。',
+ 'description' => '接口所在的Controller类全称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'com.alibabacloud.mse.demo.a.AController',
+ ],
+ ],
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '接口对应的请求路径。',
+ 'description' => '接口对应的请求路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/a',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '方法名。',
+ 'description' => '方法名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'aMethod',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => [
+ 'title' => '请求是否成功。',
+ 'description' => '请求是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'Message' => [
+ 'title' => '请求信息。',
+ 'description' => '请求信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id。',
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => '2DD5A212-C77B-3XXF-9XXE-XXX9XXXE5XX1',
+ ],
+ 'Data' => [
+ 'title' => '请求响应数据。',
+ 'description' => '请求响应数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'title' => '方法描述列表。',
+ 'description' => '方法描述列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '每个方法描述。',
+ 'description' => '每个方法描述。',
+ 'type' => 'object',
+ 'properties' => [
+ 'NameDetail' => [
+ 'title' => '接口描述信息。',
+ 'description' => '接口描述信息。',
+ 'type' => 'string',
+ 'example' => '示例接口描述信息。',
+ ],
+ 'ParameterDetails' => [
+ 'title' => '接口参数类型。',
+ 'description' => '接口参数类型。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '每个参数的类型。',
+ 'description' => '每个参数的类型。',
+ 'type' => 'string',
+ 'example' => 'java.lang.String',
+ ],
+ ],
+ 'ParameterDefinitions' => [
+ 'title' => '参数的详细定义。',
+ 'description' => '参数的详细定义。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '参数的详细定义。',
+ 'description' => '参数的详细定义。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'title' => '参数类型。',
+ 'description' => '参数类型。',
+ 'type' => 'string',
+ 'example' => 'java.lang.String',
+ ],
+ 'Description' => [
+ 'title' => '参数描述。',
+ 'description' => '参数描述。',
+ 'type' => 'string',
+ 'example' => '参数描述示例',
+ ],
+ 'Name' => [
+ 'title' => '参数名字。',
+ 'description' => '参数名字。',
+ 'type' => 'string',
+ 'example' => 'aParam',
+ ],
+ ],
+ ],
+ ],
+ 'Paths' => [
+ 'title' => '接口对应的请求路径列表。',
+ 'description' => '接口对应的请求路径列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '接口对应的请求路径。',
+ 'description' => '接口对应的请求路径。',
+ 'type' => 'string',
+ 'example' => '/a',
+ ],
+ ],
+ 'ParameterTypes' => [
+ 'title' => '参数类型。',
+ 'description' => '参数类型。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '参数类型。',
+ 'description' => '参数类型。',
+ 'type' => 'string',
+ 'example' => 'java.lang.String',
+ ],
+ ],
+ 'RequestMethods' => [
+ 'title' => 'HTTP请求方法。',
+ 'description' => 'HTTP请求方法。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'HTTP请求参数。',
+ 'description' => 'HTTP请求参数。',
+ 'type' => 'string',
+ 'example' => 'GET',
+ ],
+ ],
+ 'ReturnDetails' => [
+ 'title' => '返回值类型。',
+ 'description' => '返回值类型。',
+ 'type' => 'string',
+ 'example' => 'java.lang.String',
+ ],
+ 'Name' => [
+ 'title' => '方法名。',
+ 'description' => '方法名。',
+ 'type' => 'string',
+ 'example' => 'aMethod',
+ ],
+ 'MethodController' => [
+ 'title' => '接口所在的Controller类全称。',
+ 'description' => '接口所在的Controller类全称。',
+ 'type' => 'string',
+ 'example' => 'com.alibabacloud.mse.demo.a.AController',
+ ],
+ 'ReturnType' => [
+ 'title' => '返回值类型。',
+ 'description' => '返回值类型。',
+ 'type' => 'string',
+ 'example' => 'java.lang.String',
+ ],
+ ],
+ ],
+ ],
+ 'TotalSize' => [
+ 'title' => '方法总数量。',
+ 'description' => '方法总数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'PageNumber' => [
+ 'title' => '第几页。',
+ 'description' => '第几页。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '每页大小',
+ 'description' => '每页大小',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"2DD5A212-C77B-3XXF-9XXE-XXX9XXXE5XX1\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"NameDetail\\": \\"示例接口描述信息。\\",\\n \\"ParameterDetails\\": [\\n \\"java.lang.String\\"\\n ],\\n \\"ParameterDefinitions\\": [\\n {\\n \\"Type\\": \\"java.lang.String\\",\\n \\"Description\\": \\"参数描述示例\\",\\n \\"Name\\": \\"aParam\\"\\n }\\n ],\\n \\"Paths\\": [\\n \\"/a\\"\\n ],\\n \\"ParameterTypes\\": [\\n \\"java.lang.String\\"\\n ],\\n \\"RequestMethods\\": [\\n \\"GET\\"\\n ],\\n \\"ReturnDetails\\": \\"java.lang.String\\",\\n \\"Name\\": \\"aMethod\\",\\n \\"MethodController\\": \\"com.alibabacloud.mse.demo.a.AController\\",\\n \\"ReturnType\\": \\"java.lang.String\\"\\n }\\n ],\\n \\"TotalSize\\": 100,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n }\\n}","type":"json"}]',
+ 'title' => '获取服务方法列表',
+ ],
+ 'GetServiceListPage' => [
+ 'summary' => '获取服务列表',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17044',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXPQ6HT',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域。',
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名字。',
+ 'description' => '应用名字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 100,
+ ],
+ ],
+ [
+ 'name' => 'ServiceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务类型。',
+ 'description' => '服务类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'springCloud',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用id。',
+ 'description' => '应用id。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'dez4xxxxx@f3f75ed8ffxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务名字。',
+ 'description' => '服务名字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sc-A',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页数。',
+ 'description' => '页数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页大小。',
+ 'description' => '每页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '要查询的ip地址。',
+ 'description' => '要查询的ip地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '223.5.5.5',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => [
+ 'title' => '请求是否成功。',
+ 'description' => '请求是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'Message' => [
+ 'title' => '请求信息。',
+ 'description' => '请求信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id。',
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => 'A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx',
+ ],
+ 'Data' => [
+ 'title' => '请求响应数据。',
+ 'description' => '请求响应数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'title' => '当前页面数据。',
+ 'description' => '当前页面数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '每个服务的信息。',
+ 'description' => '每个服务的信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AppName' => [
+ 'title' => '应用名。',
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'example' => 'example-app',
+ ],
+ 'Version' => [
+ 'title' => '服务版本。',
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'InstanceNum' => [
+ 'title' => '服务对应的节点数。',
+ 'description' => '服务对应的节点数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'GmtModifyTime' => [
+ 'title' => '服务最后的更新时间。',
+ 'description' => '服务最后的更新时间。',
+ 'type' => 'string',
+ 'example' => '123456',
+ ],
+ 'AppId' => [
+ 'title' => '应用id。',
+ 'description' => '应用id。',
+ 'type' => 'string',
+ 'example' => 'dez4xxxxx@f3f75ed8ffxxxxx',
+ ],
+ 'ServiceName' => [
+ 'title' => '服务名。',
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'example' => 'sc-A',
+ ],
+ 'Group' => [
+ 'title' => '服务分组。',
+ 'description' => '服务分组。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ 'ServiceType' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'TotalSize' => [
+ 'title' => '数据总数。',
+ 'description' => '数据总数。',
+ 'type' => 'string',
+ 'example' => '100',
+ ],
+ 'PageNumber' => [
+ 'title' => '当前页码。',
+ 'description' => '当前页码。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '页面大小。',
+ 'description' => '页面大小。',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"AppName\\": \\"example-app\\",\\n \\"Version\\": \\"1\\",\\n \\"InstanceNum\\": 1,\\n \\"GmtModifyTime\\": \\"123456\\",\\n \\"AppId\\": \\"dez4xxxxx@f3f75ed8ffxxxxx\\",\\n \\"ServiceName\\": \\"sc-A\\",\\n \\"Group\\": \\"DEFAULT_GROUP\\",\\n \\"ServiceType\\": \\"\\"\\n }\\n ],\\n \\"TotalSize\\": \\"100\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"10\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取服务列表',
+ ],
+ 'GetServiceList' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17043',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseW9QIF2',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-zhangjiakou',
+ ],
+ ],
+ [
+ 'name' => 'ServiceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '框架类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'dubbo',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'xxx@xxx',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'com.alibaba.xxx',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'IP地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '127.0.0.1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '语言类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'Http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'xxx-xxx-xxx',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EdasAppName' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'DubboApplicationName' => [
+ 'description' => 'Dubbo应用名。',
+ 'type' => 'string',
+ 'example' => 'dubbo-application',
+ ],
+ 'Version' => [
+ 'description' => '版本信息。',
+ 'type' => 'string',
+ 'example' => '1.0.0',
+ ],
+ 'SpringApplicationName' => [
+ 'description' => 'Spring应用名。',
+ 'type' => 'string',
+ 'example' => 'spring-application',
+ ],
+ 'RegistryType' => [
+ 'description' => '注册中心类型。',
+ 'type' => 'string',
+ 'example' => 'nacos',
+ ],
+ 'ServiceType' => [
+ 'description' => '服务类型。',
+ 'type' => 'string',
+ 'example' => 'dubbo',
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'example' => 'com.alibaba.xxx',
+ ],
+ 'Methods' => [
+ 'description' => '方法列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Paths' => [
+ 'description' => '路径。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务映射地址。',
+ 'type' => 'string',
+ 'example' => '/path',
+ ],
+ ],
+ 'ParameterTypes' => [
+ 'description' => '参数类型。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数类型。',
+ 'type' => 'string',
+ 'example' => 'int',
+ ],
+ ],
+ 'RequestMethods' => [
+ 'description' => '方法。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法。',
+ 'type' => 'string',
+ 'example' => 'sayHello',
+ ],
+ ],
+ 'Name' => [
+ 'description' => '方法名。',
+ 'type' => 'string',
+ 'example' => 'sayHello',
+ ],
+ 'MethodController' => [
+ 'description' => '方法接口。',
+ 'type' => 'string',
+ 'example' => 'com.alibaba.SayHelloController',
+ ],
+ 'ReturnType' => [
+ 'description' => '返回值类型。',
+ 'type' => 'string',
+ 'example' => 'int',
+ ],
+ ],
+ ],
+ ],
+ 'Metadata' => [
+ 'description' => '元数据。',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'Group' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'example' => 'dubbo',
+ ],
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '调用成功与否。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"xxx-xxx-xxx\\",\\n \\"Data\\": [\\n {\\n \\"EdasAppName\\": \\"test\\",\\n \\"DubboApplicationName\\": \\"dubbo-application\\",\\n \\"Version\\": \\"1.0.0\\",\\n \\"SpringApplicationName\\": \\"spring-application\\",\\n \\"RegistryType\\": \\"nacos\\",\\n \\"ServiceType\\": \\"dubbo\\",\\n \\"ServiceName\\": \\"com.alibaba.xxx\\",\\n \\"Methods\\": [\\n {\\n \\"Paths\\": [\\n \\"/path\\"\\n ],\\n \\"ParameterTypes\\": [\\n \\"int\\"\\n ],\\n \\"RequestMethods\\": [\\n \\"sayHello\\"\\n ],\\n \\"Name\\": \\"sayHello\\",\\n \\"MethodController\\": \\"com.alibaba.SayHelloController\\",\\n \\"ReturnType\\": \\"int\\"\\n }\\n ],\\n \\"Metadata\\": {},\\n \\"Group\\": \\"dubbo\\"\\n }\\n ],\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询应用服务信息',
+ 'summary' => '通过GetServiceList接口查询应用服务信息。',
+ ],
+ 'CreateOrUpdateSwimmingLaneGroup' => [
+ 'summary' => '用于创建或者更新全链路灰度泳道组。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'abilityTreeCode' => '116107',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseCR8P7I',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'region',
+ 'description' => 'Region。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '泳道组ID。-1时为创建泳道组,大于0时为修改指定泳道组。',
+ 'description' => '泳道组ID。-1时为创建泳道组,大于0时为修改指定泳道组。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '120',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '名称',
+ 'description' => '泳道组名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'group1',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '0 未生效',
+ 'description' => '取值为0表示未生效,取值为1表示生效。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'EntryApp',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '入口应用。格式 "来源系统:id"。比如:'."\n"
+ .'- mse:${mse应用id}'."\n"
+ .'- mse-gw:${mse云原生网关id}',
+ 'description' => '入口应用。格式 "来源系统:id"。比如:'."\n"
+ .'- mse:${mse应用id}'."\n"
+ .'- mse-gw:${mse云原生网关id}'."\n"
+ .'- apig:${云原生API网关id}',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-gw:gw-2b1407e050f1446xxxcd2a65fd9xxxx',
+ ],
+ ],
+ [
+ 'name' => 'AppIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用集合。以 "," 分割应用 id',
+ 'description' => '应用集合。以 "," 分割应用 id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xxxxn1po62@492b8f98d4bxxxx,xxxxn1po62@2d8f5d1b7f2xxxx',
+ ],
+ ],
+ [
+ 'name' => 'MessageQueueGrayEnable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启消息灰度',
+ 'description' => '是否开启消息灰度。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'MessageQueueFilterSide',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '消息灰度过滤侧',
+ 'description' => '消息灰度过滤侧。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Server',
+ 'default' => 'Server',
+ 'enum' => [
+ 'Server',
+ 'Client',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'DbGrayEnable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启数据库灰度',
+ 'description' => '已废弃,是否开启数据库灰度。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'RecordCanaryDetail',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启记录请求详情',
+ 'description' => '是否开启记录请求详情。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Paths',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '已废弃,java网关为入口时填写该参数',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '已废弃,path',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'a',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RouteIds',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '路由ID列表(以云原生网关为入口时,在创建泳道组的泳道前,需调用本接口传入选择的云原生网关路由ID列表)',
+ 'description' => '路由ID列表(以云原生网关为入口时,在创建泳道组的泳道前,需调用本接口传入选择的云原生网关路由ID列表)',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路由Id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '111',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'CanaryModel',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'SwimVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '全链路灰度版本,取值范围:0(不推荐使用,需要指定路由),2(推荐使用,无需指定路由)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'true:请求成功。'."\n"
+ .'false:请求失败。'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'title' => '错误码。',
+ 'description' => '错误码。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => '请求处理成功'."\n",
+ ],
+ 'Data' => [
+ 'description' => '数据概览。'."\n"
+ ."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '应用名',
+ 'description' => '应用名',
+ 'type' => 'string',
+ 'example' => 'example-app',
+ ],
+ 'DbGrayEnable' => [
+ 'title' => '是否开启数据库灰度',
+ 'description' => '是否开启数据库灰度',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'UserId' => [
+ 'title' => '应用所属的用户id。',
+ 'description' => '应用所属的用户id。',
+ 'type' => 'string',
+ 'example' => '12345',
+ ],
+ 'MessageQueueFilterSide' => [
+ 'title' => '消息灰度过滤侧',
+ 'description' => '消息灰度过滤侧。',
+ 'type' => 'string',
+ 'example' => 'Client',
+ ],
+ 'AppIds' => [
+ 'title' => '应用id列表,逗号分隔。',
+ 'description' => '应用id列表,逗号分隔。',
+ 'type' => 'string',
+ 'example' => 'abcd1@abcde123,abcd1@abcde124',
+ ],
+ 'Namespace' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字。',
+ 'type' => 'string',
+ 'example' => 'prod',
+ ],
+ 'RecordCanaryDetail' => [
+ 'title' => '是否开启记录请求详情。',
+ 'description' => '是否开启记录请求详情。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Id' => [
+ 'title' => '泳道组id。',
+ 'description' => '泳道组id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2047',
+ 'default' => '123',
+ ],
+ 'EntryApp' => [
+ 'title' => '入口应用。格式 "来源系统:id"。比如:'."\n"
+ .'mse:${mse应用id}'."\n"
+ .'mse-gw:${mse云原生网关id}',
+ 'description' => '入口应用。',
+ 'type' => 'string',
+ 'example' => 'mse:abcd1@a2345',
+ ],
+ 'Region' => [
+ 'title' => '应用所属地域。',
+ 'description' => '应用所属地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'MessageQueueGrayEnable' => [
+ 'title' => '是否开启消息灰度。',
+ 'description' => '是否开启消息灰度。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'paths' => [
+ 'description' => '已废弃,java网关为入口时该参数为Path列表',
+ 'type' => 'string',
+ 'example' => '["/a"]',
+ ],
+ 'Paths' => [
+ 'description' => '已废弃,java网关为入口时该参数为Path列表',
+ 'type' => 'string',
+ 'example' => '["/a"]',
+ ],
+ 'canaryModel' => [
+ 'description' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'CanaryModel' => [
+ 'description' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ ],
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"Message\\": \\"请求处理成功\\\\n\\",\\n \\"Data\\": {\\n \\"Name\\": \\"example-app\\",\\n \\"DbGrayEnable\\": \\"true\\",\\n \\"UserId\\": \\"12345\\",\\n \\"MessageQueueFilterSide\\": \\"Client\\",\\n \\"AppIds\\": \\"abcd1@abcde123,abcd1@abcde124\\",\\n \\"Namespace\\": \\"prod\\",\\n \\"RecordCanaryDetail\\": true,\\n \\"Id\\": 2047,\\n \\"EntryApp\\": \\"mse:abcd1@a2345\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"MessageQueueGrayEnable\\": true,\\n \\"paths\\": \\"[\\\\\\"/a\\\\\\"]\\",\\n \\"Paths\\": \\"[\\\\\\"/a\\\\\\"]\\",\\n \\"canaryModel\\": 0,\\n \\"CanaryModel\\": 0\\n }\\n}","type":"json"}]',
+ 'title' => '创建或者更新全链路灰度泳道组',
+ ],
+ 'DeleteSwimmingLaneGroup' => [
+ 'summary' => '用于删除全链路泳道组。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '全链路泳道组ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '145',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'any',
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": \\"{}\\"\\n}","type":"json"}]',
+ 'title' => '删除全链路泳道组',
+ ],
+ 'CreateOrUpdateSwimmingLane' => [
+ 'summary' => '用于创建或者更新全链路灰度泳道。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '116127',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseCR8P7I',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'region',
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-beijing',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '泳道ID。-1时为创建泳道,大于0时为修改指定泳道。',
+ 'description' => '主键ID。-1时为创建泳道,大于0时为修改指定泳道。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '-1',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '名称',
+ 'description' => '泳道名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gray',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '匹配到后的目标机器标签',
+ 'description' => '标识。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gray',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启。',
+ 'description' => '是否开启。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '所属泳道组',
+ 'description' => '所属泳道组。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '115',
+ ],
+ ],
+ [
+ 'name' => 'EnableRules',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启规则',
+ 'description' => '是否配置泳道的路由规则,Ingress为网关暂时不需要配置。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'default' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'PathIndependentPercentageEnable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '已废弃。Java网关相关配置,Path按比例路由',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'EntryRules',
+ 'in' => 'formData',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => 'SwimmingLane',
+ 'description' => '泳道规则集合',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '泳道规则',
+ 'type' => 'object',
+ 'properties' => [
+ 'Paths' => [
+ 'title' => '路径列表',
+ 'description' => '路径列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路径',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/',
+ ],
+ 'required' => false,
+ 'maxItems' => 50,
+ ],
+ 'Condition' => [
+ 'title' => '指示RestItems如何组合成最终的条件',
+ 'description' => '指示RestItems如何组合成最终的条件',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AND',
+ 'default' => 'AND',
+ 'enum' => [
+ 'AND',
+ 'OR',
+ ],
+ ],
+ 'RestItems' => [
+ 'title' => '匹配列表',
+ 'description' => '匹配列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Rest匹配信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'title' => '匹配类型',
+ 'description' => '匹配类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'header',
+ ],
+ 'Name' => [
+ 'title' => '名称',
+ 'description' => '名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-mse-tag',
+ ],
+ 'Operator' => [
+ 'title' => '操作符',
+ 'description' => '操作符',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rawvalue',
+ ],
+ 'NameList' => [
+ 'title' => '匹配列表',
+ 'description' => '匹配列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'required' => false,
+ 'maxItems' => 10,
+ ],
+ 'Datum' => [
+ 'title' => '数值',
+ 'description' => '数值',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x',
+ ],
+ 'Cond' => [
+ 'title' => '匹配符',
+ 'description' => '匹配符',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '=='."\n",
+ ],
+ 'Divisor' => [
+ 'title' => '除数',
+ 'description' => '除数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ 'Remainder' => [
+ 'title' => '余数',
+ 'description' => '余数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ 'Rate' => [
+ 'title' => '百分比',
+ 'description' => '百分比',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ 'Value' => [
+ 'title' => '值',
+ 'description' => '值',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gray',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 10,
+ ],
+ 'Priority' => [
+ 'title' => '优先级',
+ 'description' => '优先级',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ 'default' => '0',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 10,
+ ],
+ ],
+ [
+ 'name' => 'EntryRule',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'json string',
+ 'description' => 'json string。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '[{"Priority":1,"Paths":[],"Condition":"AND","RestItems":[{"Type":"param","Name":"name","Value":"xiaoming","Cond":"==","Operator":"rawvalue"}]}]',
+ ],
+ ],
+ [
+ 'name' => 'GatewaySwimmingLaneRouteJson',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '网关路由信息(使用云原生网关为入口时使用)',
+ 'description' => '网关路由信息(使用云原生网关为入口时使用)',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayId' => [
+ 'title' => '网关ID',
+ 'description' => '网关ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'GatewayUniqueId' => [
+ 'title' => '网关唯一ID',
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-84efde2ee1464260bdb17a5b****',
+ ],
+ 'RouteIdList' => [
+ 'title' => '路由ID列表',
+ 'description' => '路由ID列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路由ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'required' => false,
+ ],
+ 'CanaryModel' => [
+ 'title' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'description' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ 'Conditions' => [
+ 'title' => '匹配条件列表(按内容路由使用)',
+ 'description' => '匹配条件列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '',
+ 'description' => '条件项',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '参数名称',
+ 'description' => '参数名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ 'Value' => [
+ 'title' => '参数值',
+ 'description' => '参数值',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xiaoming',
+ ],
+ 'Type' => [
+ 'title' => '参数类型:'."\n"
+ .'- header:Header'."\n"
+ .'- param:Parameter',
+ 'description' => '参数类型:'."\n"
+ .'- header:Header'."\n"
+ .'- param:Parameter',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'header',
+ ],
+ 'Cond' => [
+ 'title' => '条件:'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- EQUAL:精确匹配'."\n"
+ .'- ERGULAR:正则匹配',
+ 'description' => '如果您使用老版本的全链路灰度(swimversion为0,使用标签路由和灰度路由),支持:'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- ERGULAR:正则匹配'."\n"
+ .'- EQUAL:精准匹配'."\n"
+ ."\n"
+ .'如果您使用新版本的全链路灰度(swiminversion为1或2,使用单服务路由),支持:'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- regexp:正则匹配'."\n"
+ .'- =='."\n"
+ .'- !='."\n"
+ .'- list :in'."\n"
+ .'- % :百分比'."\n"
+ ."\n"
+ .'新版全链路灰度和旧版全链路灰度功能一样,性能更强、配置更简单,请您迁移至新版全链路灰度',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRE',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'Percentage' => [
+ 'title' => '流量比例(按比例路由使用,取值0-100)',
+ 'description' => '流量比例(按比例路由使用,取值0-100)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ 'RouteIndependentPercentageEnable' => [
+ 'description' => '已废弃。MSE云原生网关为入口时使用该参数指定按照路由进行百分比设置',
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ 'RouteIndependentPercentageList' => [
+ 'description' => '已废弃。按照路由独立进行百分比灰度的路由列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路由与百分比列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '111',
+ ],
+ 'Percentage' => [
+ 'description' => '流量比例(按比例路由使用,取值0-100)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '50',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'Condition' => [
+ 'description' => '灰度条件同时满足:AND;'."\n"
+ .'灰度条件任意满足:OR',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AND',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'Code仅仅用来和Success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => [
+ 'description' => '泳道名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'id' => [
+ 'description' => '泳道ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '94765',
+ ],
+ 'tag' => [
+ 'description' => '泳道对应的标签。',
+ 'type' => 'string',
+ 'example' => 'release',
+ ],
+ 'status' => [
+ 'description' => '泳道状态',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'enable' => [
+ 'description' => '泳道开关',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'regionId' => [
+ 'description' => '应用所在的区域。',
+ 'type' => 'string',
+ 'example' => 'cn-beijing',
+ ],
+ 'groupId' => [
+ 'description' => '泳道组Id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '72586',
+ ],
+ 'entryRule' => [
+ 'description' => '入口应用规则',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'entryRules' => [
+ 'description' => '名称',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '入口应用规则详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'paths' => [
+ 'description' => '路径列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路径列表',
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ ],
+ 'path' => [
+ 'title' => '',
+ 'description' => '代码组路径',
+ 'type' => 'string',
+ 'example' => '/adump/wxb/prod',
+ ],
+ 'condition' => [
+ 'description' => '条件',
+ 'type' => 'string',
+ 'example' => 'AND',
+ ],
+ 'restItems' => [
+ 'description' => 'Rest匹配规则列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Rest匹配规则',
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => [
+ 'title' => '匹配类型',
+ 'description' => '匹配类型',
+ 'type' => 'string',
+ 'example' => 'cookie',
+ ],
+ 'name' => [
+ 'title' => '名称',
+ 'description' => '名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'operator' => [
+ 'title' => '操作符',
+ 'description' => '操作符',
+ 'type' => 'string',
+ 'example' => 'rawvalue',
+ ],
+ 'nameList' => [
+ 'title' => '匹配列表',
+ 'description' => '名称列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'maxItems' => 10,
+ ],
+ 'datum' => [
+ 'title' => '数值',
+ 'description' => '数值',
+ 'type' => 'string',
+ 'example' => 'x',
+ ],
+ 'cond' => [
+ 'title' => '匹配符',
+ 'description' => '匹配符',
+ 'type' => 'string',
+ 'example' => '==',
+ ],
+ 'divisor' => [
+ 'title' => '除数',
+ 'description' => '除数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'remainder' => [
+ 'title' => '余数',
+ 'description' => '余数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'rate' => [
+ 'title' => '百分比',
+ 'description' => '百分比',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'value' => [
+ 'title' => '值',
+ 'description' => '值',
+ 'type' => 'string',
+ 'example' => '9',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'enableRules' => [
+ 'description' => '是否开启规则。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'gmtCreate' => [
+ 'description' => '泳道创建时间。',
+ 'type' => 'string',
+ 'example' => '1545726028000',
+ ],
+ 'gmtModified' => [
+ 'description' => '泳道更新时间。',
+ 'type' => 'string',
+ 'example' => '1565701886000',
+ ],
+ 'gatewaySwimmingLaneRouteJson' => [
+ 'description' => 'MSE网关路由规则',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'pathIndependentPercentageEnable' => [
+ 'description' => '已废弃。Java网关为入口时使用,该参数标识是否开启按照path百分比灰度。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ ],
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": {\\n \\"name\\": \\"test\\",\\n \\"id\\": 94765,\\n \\"tag\\": \\"release\\",\\n \\"status\\": 0,\\n \\"enable\\": true,\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"groupId\\": 72586,\\n \\"entryRule\\": \\"{}\\",\\n \\"entryRules\\": [\\n {\\n \\"paths\\": [\\n \\"/\\"\\n ],\\n \\"path\\": \\"/adump/wxb/prod\\",\\n \\"condition\\": \\"AND\\",\\n \\"restItems\\": [\\n {\\n \\"type\\": \\"cookie\\",\\n \\"name\\": \\"test\\",\\n \\"operator\\": \\"rawvalue\\",\\n \\"nameList\\": [\\n \\"test\\"\\n ],\\n \\"datum\\": \\"x\\",\\n \\"cond\\": \\"==\\",\\n \\"divisor\\": 10,\\n \\"remainder\\": 10,\\n \\"rate\\": 30,\\n \\"value\\": \\"9\\"\\n }\\n ]\\n }\\n ],\\n \\"enableRules\\": true,\\n \\"gmtCreate\\": \\"1545726028000\\",\\n \\"gmtModified\\": \\"1565701886000\\",\\n \\"gatewaySwimmingLaneRouteJson\\": \\"{}\\",\\n \\"pathIndependentPercentageEnable\\": false\\n }\\n}","type":"json"}]',
+ 'title' => '创建或者更新全链路灰度泳道',
+ ],
+ 'DeleteSwimmingLane' => [
+ 'summary' => '用于删除全链路泳道。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'LaneId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '泳道ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '229',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"Message\\": \\"请求处理成功\\"\\n}","type":"json"}]',
+ 'title' => '删除全链路泳道',
+ ],
+ 'QueryAllSwimmingLaneGroup' => [
+ 'summary' => '用于查询所有泳道组。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '116120',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseCR8P7I',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '需要查询的MSE命名空间名字',
+ 'description' => '需要查询的MSE命名空间名字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => '54973C90-F379-4372-9AA5-053A3F7****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicMessage' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '泳道组名称',
+ 'description' => '泳道组名称。',
+ 'type' => 'string',
+ 'example' => 'swimmingGroup',
+ ],
+ 'UserId' => [
+ 'title' => '泳道所属的用户id',
+ 'description' => '泳道所属的用户ID。',
+ 'type' => 'string',
+ 'example' => '12345',
+ ],
+ 'MessageQueueFilterSide' => [
+ 'title' => '在哪一侧实现消息灰度',
+ 'description' => '在哪一侧开启消息灰度。',
+ 'type' => 'string',
+ 'example' => 'Client',
+ ],
+ 'AppIds' => [
+ 'title' => '应用Id列表',
+ 'description' => '应用Id列表。',
+ 'type' => 'string',
+ 'example' => 'abcde@abcde,abcde@abcde',
+ ],
+ 'Namespace' => [
+ 'title' => '泳道所属的MSE命名空间',
+ 'description' => '泳道所属的MSE命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'RecordCanaryDetail' => [
+ 'title' => '是否记录请求详情(全链路灰度可观测)',
+ 'description' => '是否记录请求详情(全链路灰度可观测)。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Id' => [
+ 'title' => '泳道组Id',
+ 'description' => '泳道组ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '123',
+ ],
+ 'EntryApp' => [
+ 'title' => '入口应用类型+入口应用Id',
+ 'description' => '入口应用类型和入口应用ID。',
+ 'type' => 'string',
+ 'example' => 'mse:abcde@abcde',
+ ],
+ 'Region' => [
+ 'title' => '所属地域',
+ 'description' => '所属地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'MessageQueueGrayEnable' => [
+ 'title' => '是否开启消息灰度',
+ 'description' => '是否开启消息灰度。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Paths' => [
+ 'description' => '已废弃',
+ 'type' => 'string',
+ 'example' => '["/a"]',
+ ],
+ 'paths' => [
+ 'description' => '已废弃',
+ 'type' => 'string',
+ 'example' => '["/a"]',
+ ],
+ 'CanaryModel' => [
+ 'description' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'canaryModel' => [
+ 'description' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'SwimVersion' => [
+ 'description' => '全链路灰度版本,取值范围:0,2(推荐使用)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'swimVersion' => [
+ 'description' => '全链路灰度版本,取值范围:0,2(推荐使用)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ 'example' => '[{id:100,name:"test"}]'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"54973C90-F379-4372-9AA5-053A3F7****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": [\\n {\\n \\"Name\\": \\"swimmingGroup\\",\\n \\"UserId\\": \\"12345\\",\\n \\"MessageQueueFilterSide\\": \\"Client\\",\\n \\"AppIds\\": \\"abcde@abcde,abcde@abcde\\",\\n \\"Namespace\\": \\"default\\",\\n \\"RecordCanaryDetail\\": false,\\n \\"Id\\": 123,\\n \\"EntryApp\\": \\"mse:abcde@abcde\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"MessageQueueGrayEnable\\": true,\\n \\"Paths\\": \\"[\\\\\\"/a\\\\\\"]\\",\\n \\"paths\\": \\"[\\\\\\"/a\\\\\\"]\\",\\n \\"CanaryModel\\": 0,\\n \\"canaryModel\\": 0,\\n \\"SwimVersion\\": 2,\\n \\"swimVersion\\": 2\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询所有泳道组',
+ ],
+ 'QueryAllSwimmingLane' => [
+ 'summary' => '获取所有泳道信息',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '116125',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseCR8P7I',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '泳道组id。',
+ 'description' => '泳道组ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '186',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'title' => '错误码。',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'Message' => [
+ 'title' => '请求信息。',
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '泳道组名称。',
+ 'description' => '泳道组名称。',
+ 'type' => 'string',
+ 'example' => 'swimmingGroup',
+ ],
+ 'UserId' => [
+ 'title' => '泳道所属的用户id。',
+ 'description' => '泳道所属的用户id。',
+ 'type' => 'string',
+ 'example' => '12345',
+ ],
+ 'MessageQueueFilterSide' => [
+ 'title' => '在哪一侧实现消息灰度。',
+ 'description' => '在哪一侧实现消息灰度。',
+ 'type' => 'string',
+ 'example' => 'Client',
+ ],
+ 'Enable' => [
+ 'title' => '是否开启。',
+ 'description' => '是否开启。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'Namespace' => [
+ 'title' => '泳道所属的MSE命名空间。',
+ 'description' => '泳道所属的MSE命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'RecordCanaryDetail' => [
+ 'title' => '是否记录请求详情(全链路灰度可观测)。',
+ 'description' => '是否记录请求详情(全链路灰度可观测)。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Id' => [
+ 'title' => '泳道组Id。',
+ 'description' => '泳道Id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '123',
+ ],
+ 'RegionId' => [
+ 'title' => '所属地域。',
+ 'description' => '所属地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'MessageQueueGrayEnable' => [
+ 'title' => '是否开启消息灰度。',
+ 'description' => '是否开启消息灰度。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'enableRules' => [
+ 'title' => '是否开启规则。',
+ 'description' => '是否开启规则。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'EntryRules' => [
+ 'description' => '入口应用规则列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '入口应用规则',
+ 'type' => 'object',
+ 'properties' => [
+ 'paths' => [
+ 'description' => '路径列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路径',
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ ],
+ 'path' => [
+ 'title' => '',
+ 'description' => '路径',
+ 'type' => 'string',
+ 'example' => '/adump/wxb/prod',
+ ],
+ 'condition' => [
+ 'description' => '条件',
+ 'type' => 'string',
+ 'example' => 'AND',
+ ],
+ 'restItems' => [
+ 'description' => 'Rest匹配规则列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Rest匹配规则',
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => [
+ 'title' => '匹配类型',
+ 'description' => '匹配类型',
+ 'type' => 'string',
+ 'example' => 'cookie',
+ ],
+ 'name' => [
+ 'title' => '名称',
+ 'description' => '名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'operator' => [
+ 'title' => '操作符',
+ 'description' => '操作符',
+ 'type' => 'string',
+ 'example' => 'rawvalue',
+ ],
+ 'nameList' => [
+ 'title' => '匹配列表',
+ 'description' => '匹配列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '匹配名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'maxItems' => 10,
+ ],
+ 'datum' => [
+ 'title' => '数值',
+ 'description' => '数值',
+ 'type' => 'string',
+ 'example' => 'x',
+ ],
+ 'cond' => [
+ 'title' => '匹配符',
+ 'description' => '匹配符',
+ 'type' => 'string',
+ 'example' => '==',
+ ],
+ 'divisor' => [
+ 'title' => '除数',
+ 'description' => '除数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'remainder' => [
+ 'title' => '余数',
+ 'description' => '余数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'rate' => [
+ 'title' => '百分比',
+ 'description' => '百分比',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'value' => [
+ 'title' => '值',
+ 'description' => '值',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'gmtCreate' => [
+ 'title' => '泳道创建时间。',
+ 'description' => '泳道创建时间。',
+ 'type' => 'string',
+ 'example' => '1683598484000',
+ ],
+ 'gmtModified' => [
+ 'title' => '泳道更新时间。',
+ 'description' => '泳道更新时间。',
+ 'type' => 'string',
+ 'example' => '1683598484000',
+ ],
+ 'groupId' => [
+ 'title' => '泳道组Id。',
+ 'description' => '泳道组Id。',
+ 'type' => 'string',
+ 'example' => '72709',
+ ],
+ 'GroupId' => [
+ 'title' => '泳道组Id。',
+ 'description' => '泳道组Id。',
+ 'type' => 'string',
+ 'example' => '6859',
+ ],
+ 'tag' => [
+ 'title' => '泳道对应的标签。',
+ 'description' => '泳道对应的标签。',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ 'Tag' => [
+ 'title' => '泳道对应的标签。',
+ 'description' => '泳道对应的标签。',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ 'GatewaySwimmingLaneRoute' => [
+ 'title' => '网关路由信息(使用云原生网关为入口时使用)',
+ 'description' => '网关路由信息(使用云原生网关/APIG网关为入口时使用)',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayId' => [
+ 'title' => '网关ID',
+ 'description' => '网关ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'GatewayUniqueId' => [
+ 'title' => '网关唯一ID',
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'example' => 'gw-84efde2ee1464260bdb17a5b****',
+ ],
+ 'RouteIdList' => [
+ 'title' => '路由ID列表',
+ 'description' => '路由ID列表,网关级别生效可不填',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路由ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ 'CanaryModel' => [
+ 'title' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'description' => '全链路灰度模式:'."\n"
+ ."\n"
+ .'- 0: 按请求内容路由'."\n"
+ ."\n"
+ .'- 1: 按比例路由',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Conditions' => [
+ 'title' => '匹配条件列表(按内容路由使用)',
+ 'description' => '匹配条件列表(按内容路由使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '',
+ 'description' => '匹配条件',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '参数名称',
+ 'description' => '参数名称',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'Value' => [
+ 'title' => '参数值',
+ 'description' => '参数值',
+ 'type' => 'string',
+ 'example' => 'xiaoming',
+ ],
+ 'Type' => [
+ 'title' => '参数类型:'."\n"
+ .'- header:Header'."\n"
+ .'- param:Parameter',
+ 'description' => '参数类型:'."\n"
+ .'- header:Header'."\n"
+ .'- param:Parameter',
+ 'type' => 'string',
+ 'example' => 'header',
+ ],
+ 'Cond' => [
+ 'title' => '条件:'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- EQUAL:精确匹配'."\n"
+ .'- ERGULAR:正则匹配',
+ 'description' => '条件:'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- EQUAL:精确匹配'."\n"
+ .'- ERGULAR:正则匹配',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ 'NameList' => [
+ 'description' => 'NameList',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Name',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Percentage' => [
+ 'title' => '流量比例(按比例路由使用,取值0-100)',
+ 'description' => '流量比例(按比例路由使用,取值0-100)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'RouteIndependentPercentageEnable' => [
+ 'description' => '是否独立设置每条路径的百分比',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'RouteIndependentPercentageList' => [
+ 'description' => '路由与百分比列表',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RouteId' => [
+ 'description' => '路由 id',
+ 'type' => 'string',
+ 'example' => '12345',
+ ],
+ 'Percentage' => [
+ 'description' => '百分比',
+ 'type' => 'string',
+ 'example' => '60',
+ ],
+ ],
+ ],
+ ],
+ 'Condition' => [
+ 'description' => '灰度条件',
+ 'type' => 'string',
+ 'example' => 'AND、OR',
+ ],
+ ],
+ ],
+ 'PathIndependentPercentageEnable' => [
+ 'description' => '是否设置每条路径的百分比',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'GatewaySwimmingLaneRouteJson' => [
+ 'description' => '网关相关信息(MSE云原生网关/云原生API网关作为入口时使用)',
+ 'type' => 'string',
+ 'example' => '{\\"GatewayUniqueId\\":\\"gw-cf815503e0a8441b8956d8e349fa8fb5\\",\\"Percentage\\":0,\\"RouteIdList\\":[32295,32298,32297,32309,32307,32294,32303,32292,32299,35278],\\"CanaryModel\\":1,\\"Conditions\\":[]}',
+ ],
+ ],
+ ],
+ 'example' => '[{id:100,name:"test"}]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": [\\n {\\n \\"Name\\": \\"swimmingGroup\\",\\n \\"UserId\\": \\"12345\\",\\n \\"MessageQueueFilterSide\\": \\"Client\\",\\n \\"Enable\\": \\"true\\",\\n \\"Namespace\\": \\"default\\",\\n \\"RecordCanaryDetail\\": false,\\n \\"Id\\": 123,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"MessageQueueGrayEnable\\": false,\\n \\"enableRules\\": true,\\n \\"EntryRules\\": [\\n {\\n \\"paths\\": [\\n \\"/\\"\\n ],\\n \\"path\\": \\"/adump/wxb/prod\\",\\n \\"condition\\": \\"AND\\",\\n \\"restItems\\": [\\n {\\n \\"type\\": \\"cookie\\",\\n \\"name\\": \\"test\\",\\n \\"operator\\": \\"rawvalue\\",\\n \\"nameList\\": [\\n \\"test\\"\\n ],\\n \\"datum\\": \\"x\\",\\n \\"cond\\": \\"==\\",\\n \\"divisor\\": 10,\\n \\"remainder\\": 10,\\n \\"rate\\": 30,\\n \\"value\\": \\"test\\"\\n }\\n ]\\n }\\n ],\\n \\"gmtCreate\\": \\"1683598484000\\",\\n \\"gmtModified\\": \\"1683598484000\\",\\n \\"groupId\\": \\"72709\\",\\n \\"GroupId\\": \\"6859\\",\\n \\"tag\\": \\"gray\\",\\n \\"Tag\\": \\"gray\\",\\n \\"GatewaySwimmingLaneRoute\\": {\\n \\"GatewayId\\": 1,\\n \\"GatewayUniqueId\\": \\"gw-84efde2ee1464260bdb17a5b****\\",\\n \\"RouteIdList\\": [\\n 1\\n ],\\n \\"CanaryModel\\": 0,\\n \\"Conditions\\": [\\n {\\n \\"Name\\": \\"name\\",\\n \\"Value\\": \\"xiaoming\\",\\n \\"Type\\": \\"header\\",\\n \\"Cond\\": \\"PRE\\",\\n \\"NameList\\": [\\n \\"name\\"\\n ]\\n }\\n ],\\n \\"Percentage\\": 20,\\n \\"RouteIndependentPercentageEnable\\": \\"true\\",\\n \\"RouteIndependentPercentageList\\": [\\n {\\n \\"RouteId\\": \\"12345\\",\\n \\"Percentage\\": \\"60\\"\\n }\\n ],\\n \\"Condition\\": \\"AND、OR\\"\\n },\\n \\"PathIndependentPercentageEnable\\": true,\\n \\"GatewaySwimmingLaneRouteJson\\": \\"{\\\\\\\\\\\\\\"GatewayUniqueId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"gw-cf815503e0a8441b8956d8e349fa8fb5\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"RouteIdList\\\\\\\\\\\\\\":[32295,32298,32297,32309,32307,32294,32303,32292,32299,35278],\\\\\\\\\\\\\\"CanaryModel\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"Conditions\\\\\\\\\\\\\\":[]}\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询当前泳道组内所有泳道',
+ ],
+ 'GetTagsBySwimmingLaneGroupId' => [
+ 'summary' => '用于获取当前泳道组内的所有标签。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '泳道组ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '154',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '需要查询的MSE命名空间名字',
+ 'description' => '需要查询的MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '标签数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签数据。',
+ 'type' => 'string',
+ 'example' => '[{"desc":"k8s-pod-label","priority":100,"tag":"gray","type":"tag"}]',
+ ],
+ 'example' => '["gray"]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": [\\n \\"[{\\\\\\"desc\\\\\\":\\\\\\"k8s-pod-label\\\\\\",\\\\\\"priority\\\\\\":100,\\\\\\"tag\\\\\\":\\\\\\"gray\\\\\\",\\\\\\"type\\\\\\":\\\\\\"tag\\\\\\"}]\\"\\n ]\\n}","type":"json"}]',
+ 'title' => '获取当前泳道组内的所有标签',
+ ],
+ 'QuerySwimmingLaneById' => [
+ 'summary' => '用于通过泳道ID查询泳道信息。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '116123',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseCR8P7I',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'LaneId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '泳道ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '250',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'title' => '错误码。',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Message' => [
+ 'title' => '请求信息。',
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => [
+ 'description' => '泳道名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'id' => [
+ 'description' => '泳道ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'tag' => [
+ 'description' => '泳道对应的标签。',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ 'status' => [
+ 'description' => '泳道状态',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'enable' => [
+ 'description' => '泳道开关',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'regionId' => [
+ 'description' => '区域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'groupId' => [
+ 'description' => '泳道组Id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '8',
+ ],
+ 'entryRule' => [
+ 'description' => '入口应用规则',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'entryRules' => [
+ 'description' => '入口应用规则详情',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '入口应用规则',
+ 'type' => 'object',
+ 'properties' => [
+ 'paths' => [
+ 'description' => '路径列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '路径',
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ ],
+ 'path' => [
+ 'title' => '',
+ 'description' => '路径',
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ 'condition' => [
+ 'description' => '条件',
+ 'type' => 'string',
+ 'example' => 'AND',
+ ],
+ 'restItems' => [
+ 'description' => 'Rest匹配规则列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Rest匹配规则',
+ 'type' => 'object',
+ 'properties' => [
+ 'type' => [
+ 'title' => '匹配类型',
+ 'description' => '匹配类型',
+ 'type' => 'string',
+ 'example' => 'cookie',
+ ],
+ 'name' => [
+ 'title' => '名称',
+ 'description' => '名称',
+ 'type' => 'string',
+ 'example' => '11111',
+ ],
+ 'operator' => [
+ 'title' => '操作符',
+ 'description' => '操作符',
+ 'type' => 'string',
+ 'example' => 'rawvalue',
+ ],
+ 'nameList' => [
+ 'title' => '匹配列表',
+ 'description' => '名称列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'maxItems' => 10,
+ ],
+ 'datum' => [
+ 'title' => '数值',
+ 'description' => '数值',
+ 'type' => 'string',
+ 'example' => 'x',
+ ],
+ 'cond' => [
+ 'title' => '匹配符',
+ 'description' => '匹配符',
+ 'type' => 'string',
+ 'example' => '==',
+ ],
+ 'divisor' => [
+ 'title' => '除数',
+ 'description' => '除数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'remainder' => [
+ 'title' => '余数',
+ 'description' => '余数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'rate' => [
+ 'title' => '百分比',
+ 'description' => '百分比',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'value' => [
+ 'title' => '值',
+ 'description' => '值',
+ 'type' => 'string',
+ 'example' => 'hello',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'enableRules' => [
+ 'description' => '是否开启规则。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'gmtCreate' => [
+ 'description' => '规则创建时间',
+ 'type' => 'string',
+ 'example' => '1683598484000',
+ ],
+ 'gmtModified' => [
+ 'description' => '规则修改时间',
+ 'type' => 'string',
+ 'example' => '1683598484000',
+ ],
+ 'gatewaySwimmingLaneRouteJson' => [
+ 'description' => 'MSE网关路由规则',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'PathIndependentPercentageEnable' => [
+ 'description' => '已废弃。Java网关为泳道组入口时使用该参数指定是否开启按照Path进行比例灰度。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ ],
+ 'example' => '{id:102,name:"test"}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": {\\n \\"name\\": \\"test\\",\\n \\"id\\": 1,\\n \\"tag\\": \\"gray\\",\\n \\"status\\": 1,\\n \\"enable\\": true,\\n \\"regionId\\": \\"cn-shanghai\\",\\n \\"groupId\\": 8,\\n \\"entryRule\\": \\"{}\\",\\n \\"entryRules\\": [\\n {\\n \\"paths\\": [\\n \\"/\\"\\n ],\\n \\"path\\": \\"/\\",\\n \\"condition\\": \\"AND\\",\\n \\"restItems\\": [\\n {\\n \\"type\\": \\"cookie\\",\\n \\"name\\": \\"11111\\",\\n \\"operator\\": \\"rawvalue\\",\\n \\"nameList\\": [\\n \\"test\\"\\n ],\\n \\"datum\\": \\"x\\",\\n \\"cond\\": \\"==\\",\\n \\"divisor\\": 10,\\n \\"remainder\\": 10,\\n \\"rate\\": 30,\\n \\"value\\": \\"hello\\"\\n }\\n ]\\n }\\n ],\\n \\"enableRules\\": true,\\n \\"gmtCreate\\": \\"1683598484000\\",\\n \\"gmtModified\\": \\"1683598484000\\",\\n \\"gatewaySwimmingLaneRouteJson\\": \\"{}\\",\\n \\"PathIndependentPercentageEnable\\": false\\n }\\n}","type":"json"}]',
+ 'title' => '通过泳道ID查询泳道信息',
+ ],
+ 'ListAppBySwimmingLaneGroupTags' => [
+ 'summary' => '获取指定泳道组内的指定标签的应用列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Tags',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '要查询的标签。',
+ 'description' => '要查询的标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '要查询的标签。',
+ 'description' => '要查询的标签。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gray',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '泳道组id。',
+ 'description' => '泳道组id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '需要查询的MSE命名空间名字。',
+ 'description' => '需要查询的MSE命名空间名字。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求id。',
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => '6832e76b-bb5f-4dea-****-************',
+ ],
+ 'Success' => [
+ 'title' => '请求是否成功。',
+ 'description' => '请求是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'ErrorCode' => [
+ 'title' => '请求错误码。',
+ 'description' => '请求错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'Message' => [
+ 'title' => '请求附加信息。',
+ 'description' => '请求附加信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Data' => [
+ 'title' => '请求返回数据。',
+ 'description' => '请求返回数据。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'title' => '每个tag对应的应用信息列表。',
+ 'description' => '返回信息',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '应用列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'title' => '应用所属的用户id。',
+ 'type' => 'string',
+ 'example' => '12345',
+ 'description' => '应用所属的用户id。',
+ ],
+ 'RegionId' => [
+ 'title' => '应用所在地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'description' => '应用所在地域。',
+ ],
+ 'Namespace' => [
+ 'title' => '应用所在的微服务命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ 'description' => '应用所在的微服务命名空间。',
+ ],
+ 'AppName' => [
+ 'title' => '应用名字。',
+ 'type' => 'string',
+ 'example' => 'example-app-name',
+ 'description' => '应用名字。',
+ ],
+ 'AppId' => [
+ 'title' => '应用id。',
+ 'type' => 'string',
+ 'example' => '123456abcde@12345abcde',
+ 'description' => '应用id。',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6832e76b-bb5f-4dea-****-************\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"key\\": [\\n {\\n \\"UserId\\": \\"12345\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"default\\",\\n \\"AppName\\": \\"example-app-name\\",\\n \\"AppId\\": \\"123456abcde@12345abcde\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取泳道组内的指定标签的应用列表',
+ ],
+ 'ListAppBySwimmingLaneGroupTag' => [
+ 'summary' => '用于获取当前泳道组内的指定标签的应用列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '标签名字。',
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gray',
+ ],
+ ],
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '泳道组id。',
+ 'description' => '泳道组ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '119',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '需要查询的MSE命名空间名字',
+ 'description' => '需要查询的MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => 'RestResult',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7466566F-F30F-4A29-965D-3E0AF21D****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'any',
+ 'example' => '[{appName:"test",appId:"hkhon1po62@958bba95910341f'."\n"
+ .'"}]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'substitutions' => [
+ 'mse::2019-05-31::ListAppBySwimmingLaneGroupTags',
+ ],
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7466566F-F30F-4A29-965D-3E0AF21D****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Data\\": \\"[{appName:\\\\\\"test\\\\\\",appId:\\\\\\"hkhon1po62@958bba95910341f\\\\n\\\\\\"}]\\"\\n}","type":"json"}]',
+ 'title' => '获取当前泳道组内的指定标签的应用列表',
+ ],
+ 'GetLosslessRuleByApp' => [
+ 'summary' => '获取指定应用无损上下线规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '173262',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse9OTHB7',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'region id, such as cn-hangzhou',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Key word of search lossless list',
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MSE命名空间名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'appId',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522baa***',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ .'* zh:中文。'."\n"
+ .'* en:英文。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<MseLosslessResponse>',
+ 'description' => '返回值。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- true:请求成功。'."\n"
+ .'- false:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AppName' => [
+ 'title' => 'appName',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'AppId' => [
+ 'title' => 'appId',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@24810bf4364a***',
+ ],
+ 'Count' => [
+ 'title' => 'instance\'s count of app',
+ 'description' => '实例数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Enable' => [
+ 'title' => 'rule is open or close',
+ 'description' => '无损上线启用状态。取值:'."\n"
+ ."\n"
+ .'- `true`:启用。'."\n"
+ .'- `false`:禁用。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'WarmupTime' => [
+ 'description' => '预热时长(秒)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '120',
+ ],
+ 'DelayTime' => [
+ 'description' => '延迟注册时间(秒)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '60',
+ ],
+ 'FuncType' => [
+ 'title' => 'warmup function type, 2 means f(x)=x^2',
+ 'description' => '预热曲线斜率。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'Aligned' => [
+ 'title' => 'microservices lifecycle aligns to k8s\'s or NOT',
+ 'description' => '是否开启“通过就绪检查前完成服务注册”。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Related' => [
+ 'title' => 'K8s\'s HPA is related to warmup or NOT',
+ 'description' => '是否开启“通过就绪检查前完成服务预热”。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'LossLessDetail' => [
+ 'title' => 'show lossLess offline&online detail',
+ 'description' => '是否开启上下线处理明细。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Notice' => [
+ 'title' => 'enable lossLess offline active notification',
+ 'description' => '是否开启主动通知。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"AppId\\": \\"hkhon1po62@24810bf4364a***\\",\\n \\"Count\\": 1,\\n \\"Enable\\": true,\\n \\"WarmupTime\\": 120,\\n \\"DelayTime\\": 60,\\n \\"FuncType\\": 2,\\n \\"Aligned\\": true,\\n \\"Related\\": false,\\n \\"LossLessDetail\\": true,\\n \\"Notice\\": false\\n }\\n}","type":"json"}]',
+ 'title' => '获取指定应用无损上下线规则',
+ 'description' => '调用GetLosslessRuleByApp接口来获取指定应用的无损上下线的配置规则。'."\n"
+ ."\n"
+ .'优先按AppId查询。'."\n"
+ ."\n"
+ .'若AppId为空,使用RegionId+Namespace+AppName查询。',
+ ],
+ 'ModifyLosslessRule' => [
+ 'summary' => '修改用户无损上下线配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '115999',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse9OTHB7',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'regionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-beijing',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'appName',
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'wx-work-api',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'namespace',
+ 'description' => '规则所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'default' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'appName',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'c644n5frmc@3e75f25fd4*****',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'the switch of rule, TRUE means open, FALSE means close',
+ 'description' => '无损上线启用状态。取值:'."\n"
+ ."\n"
+ .'- true:启用。'."\n"
+ .'- false:禁用。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'WarmupTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'warmup time of App',
+ 'description' => '预热时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '60',
+ ],
+ ],
+ [
+ 'name' => 'DelayTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'delay time of register to registry',
+ 'description' => '延迟注册时间。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'FuncType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'warmup function type, 2 means f(x)=x^2',
+ 'description' => '预热曲线斜率。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Aligned',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'microservices lifecycle aligns to k8s\'s or NOT',
+ 'description' => '是否开启“通过就绪检查前完成服务注册”。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Related',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'K8s\'s HPA is related to warmup or NOT',
+ 'description' => '是否开启“通过就绪检查前完成服务预热”。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'LossLessDetail',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'show lossLess offline&online detail',
+ 'description' => '是否开启上下线处理明细。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Notice',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'enable lossLess offline active notification',
+ 'description' => '是否开启主动通知。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '3369AD10-F1A6-4E6F-B99E-20F51826****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'modifyLosslessRule success',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'any',
+ 'example' => 'null',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3369AD10-F1A6-4E6F-B99E-20F51826****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"modifyLosslessRule success\\",\\n \\"Data\\": \\"null\\"\\n}","type":"json"}]',
+ 'title' => '修改无损规则',
+ ],
+ 'FetchLosslessRuleList' => [
+ 'summary' => '获取无损上下线规则列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'region id, such as cn-hangzhou',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-beijing',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Key word of search lossless list',
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'spring-boot-sample',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'appId',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hyaziyb6sc@86827c61f5ed***',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'current',
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'limit',
+ 'description' => '每页显示条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ .'* zh:中文。'."\n"
+ .'* en:英文。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh-CN',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<FetchListResponse<MseLosslessResponse>>',
+ 'description' => '返回值。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '56D9E600-6348-4260-B35F-583413F****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '页面大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '36',
+ ],
+ 'Results' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AppName' => [
+ 'title' => 'appName',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'echo-demo',
+ ],
+ 'AppId' => [
+ 'title' => 'appId',
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@24810bf4364a***',
+ ],
+ 'Count' => [
+ 'title' => 'instance\'s count of app',
+ 'description' => '实例数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'Enable' => [
+ 'title' => 'rule is open or close',
+ 'description' => '无损上线启用状态。取值:'."\n"
+ ."\n"
+ .'- `true`:启用。'."\n"
+ .'- `false`:禁用。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'WarmupTime' => [
+ 'description' => '预热时长(秒)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '60',
+ ],
+ 'DelayTime' => [
+ 'description' => '延迟注册时间(秒)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '60',
+ ],
+ 'FuncType' => [
+ 'title' => 'warmup function type, 2 means f(x)=x^2',
+ 'description' => '预热曲线斜率。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'Aligned' => [
+ 'title' => 'microservices lifecycle aligns to k8s\'s or NOT',
+ 'description' => '是否开启“通过就绪检查前完成服务注册”。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Related' => [
+ 'title' => 'K8s\'s HPA is related to warmup or NOT',
+ 'description' => '是否开启“通过就绪检查前完成服务预热”。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'LossLessDetail' => [
+ 'title' => 'show lossLess offline&online detail',
+ 'description' => '是否开启上下线处理明细。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Notice' => [
+ 'title' => 'enable lossLess offline active notification',
+ 'description' => '是否开启主动通知。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"56D9E600-6348-4260-B35F-583413F****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 36,\\n \\"Results\\": [\\n {\\n \\"AppName\\": \\"echo-demo\\",\\n \\"AppId\\": \\"hkhon1po62@24810bf4364a***\\",\\n \\"Count\\": 3,\\n \\"Enable\\": true,\\n \\"WarmupTime\\": 60,\\n \\"DelayTime\\": 60,\\n \\"FuncType\\": 2,\\n \\"Aligned\\": true,\\n \\"Related\\": false,\\n \\"LossLessDetail\\": false,\\n \\"Notice\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取无损上下线规则列表',
+ 'description' => '调用FetchLosslessRuleList接口来获取无损上下线的配置规则列表。',
+ ],
+ 'GetLocalityRule' => [
+ 'summary' => '获取同可用区优先路由规则',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '45915',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseZ3XXPX',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称',
+ 'description' => '应用名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用id。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hgxznfcvbe@be2c0228f******',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则来源(非必填)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => 'D3971C60-3F07-58B0-8EA0-A194********',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "pageNumber":0,'."\n"
+ .' "namespaceId":"cn-hangzhou",'."\n"
+ .' "enable":false,'."\n"
+ .' "appId":"hkhon1po62@3aa3582********",'."\n"
+ .' "pageSize":0,'."\n"
+ .' "region":"cn-hangzhou",'."\n"
+ .' "routeRules":['."\n"
+ .' {'."\n"
+ .' "threshold":0.2,'."\n"
+ .' "tags":[]'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"D3971C60-3F07-58B0-8EA0-A194********\\",\\n \\"Data\\": \\"{\\\\n \\\\\\"pageNumber\\\\\\":0,\\\\n \\\\\\"namespaceId\\\\\\":\\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"enable\\\\\\":false,\\\\n \\\\\\"appId\\\\\\":\\\\\\"hkhon1po62@3aa3582********\\\\\\",\\\\n \\\\\\"pageSize\\\\\\":0,\\\\n \\\\\\"region\\\\\\":\\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"routeRules\\\\\\":[\\\\n {\\\\n \\\\\\"threshold\\\\\\":0.2,\\\\n \\\\\\"tags\\\\\\":[]\\\\n }\\\\n ]\\\\n}\\",\\n \\"Code\\": 200,\\n \\"Success\\": \\"true\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '获取同可用区优先路由规则',
+ ],
+ 'UpdateLocalityRule' => [
+ 'summary' => '更新同可用区优先路由规则',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myNamespace',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称',
+ 'description' => '应用名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用id。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hkhon1po62@c3df23522******',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启同可用区优先。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Rules',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保留参数,暂未使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '无需填写',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则来源',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '同可用区优先生效阈值。当前应用在某个可用区部署的实例占比超过此阈值时,才会开启该可用区的同可用区优先路由功能。即Consumer向该应用发起请求时,会优先将请求路由到与Consumer同一个可用区的实例上。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'required' => false,
+ 'example' => '0.2',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => '78F05E89-D387-50CE-8186-2E27A8AB****',
+ ],
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "Message":"updateLocalityPolicy success",'."\n"
+ .' "RequestId":"3B519913-7348-16AB-AD71-******",'."\n"
+ .' "HttpStatusCode":200,'."\n"
+ .' "Code":200,'."\n"
+ .' "Success":true'."\n"
+ .'}',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"78F05E89-D387-50CE-8186-2E27A8AB****\\",\\n \\"Data\\": \\"{\\\\n \\\\\\"Message\\\\\\":\\\\\\"updateLocalityPolicy success\\\\\\",\\\\n \\\\\\"RequestId\\\\\\":\\\\\\"3B519913-7348-16AB-AD71-******\\\\\\",\\\\n \\\\\\"HttpStatusCode\\\\\\":200,\\\\n \\\\\\"Code\\\\\\":200,\\\\n \\\\\\"Success\\\\\\":true\\\\n}\\",\\n \\"Code\\": 200,\\n \\"Success\\": \\"true\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '更新同可用区优先路由规则',
+ ],
+ 'GetApplicationList' => [
+ 'summary' => '通过GetApplicationList接口获取应用列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17022',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseHJJ9Z1',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'rest-container',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用id。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'hkhon1po62@c3df23522b*****',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '固定值,默认使用这个值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '语言,如 Java、Go。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Java',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '第几页。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每一页显示多少条数据。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'SwitchEnable',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '是否开始Switch。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'SentinelEnable',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '是否开启Sentinel。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ 'default' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'Tags',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '阿里云标签,支持按照阿里云标签进行筛选。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '用户输入的自定义标签键。最多支持128个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tagKey',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tagValue',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 20,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => 'F55E608F-7C15-****-9CFD-DF832EBC4A0F',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '返回集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ 'ExtraInfo' => [
+ 'description' => '其他信息。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'finance',
+ ],
+ 'AppId' => [
+ 'description' => '应用id。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@5f1b08becb*****',
+ ],
+ 'UserId' => [
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '1234567890',
+ ],
+ 'InstancesNumber' => [
+ 'description' => '实例数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Source' => [
+ 'description' => '应用来源。',
+ 'type' => 'string',
+ 'example' => 'edasmsc',
+ ],
+ 'Language' => [
+ 'description' => '应用的编程语言。',
+ 'type' => 'string',
+ 'example' => 'JAVA',
+ ],
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Namespace' => [
+ 'title' => '应用所属的MSE命名空间。',
+ 'description' => '应用所属的微服务命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Tags' => [
+ 'description' => '阿里云标签。',
+ 'type' => 'object',
+ 'example' => '{"tagKey1":"tagValue1","tagKey2":"tagValue2"}',
+ ],
+ ],
+ ],
+ ],
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'PageNumber' => [
+ 'description' => '当前页。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '页面大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"F55E608F-7C15-****-9CFD-DF832EBC4A0F\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Status\\": 0,\\n \\"ExtraInfo\\": \\"{}\\",\\n \\"AppName\\": \\"finance\\",\\n \\"AppId\\": \\"hkhon1po62@5f1b08becb*****\\",\\n \\"UserId\\": \\"1234567890\\",\\n \\"InstancesNumber\\": 1,\\n \\"Source\\": \\"edasmsc\\",\\n \\"Language\\": \\"JAVA\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Tags\\": {\\n \\"tagKey1\\": \\"tagValue1\\",\\n \\"tagKey2\\": \\"tagValue2\\"\\n }\\n }\\n ],\\n \\"TotalSize\\": 11,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n }\\n}","type":"json"}]',
+ 'title' => '获取应用列表',
+ ],
+ 'CreateMseServiceApplication' => [
+ 'summary' => '创建应用。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'bsd-xxyp-open-goods-server',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,包括但不限于如下地域:'."\n"
+ ."\n"
+ .'- cn-hangzhou:杭州'."\n"
+ .'- cn-beijing:北京'."\n"
+ .'- cn-shanghai:上海'."\n"
+ .'- cn-zhangjiakou:张家口'."\n"
+ .'- cn-shenzhen:深圳',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-shenzhen',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '来源。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'edasmsc',
+ 'default' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用的编程语言。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'JAVA',
+ ],
+ ],
+ [
+ 'name' => 'ExtraInfo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '其他信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'SentinelEnable',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '是否开启Sentinel。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'SwitchEnable',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '是否开始Switch',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'MseVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '待开通的MSE集群版本。'."\n"
+ ."\n"
+ .'- mse_pro:表示专业版。'."\n"
+ .'- mse_dev:表示开发版。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_pro',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型。'."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '904F6C04-1284-****-8ED2-FFC57E507A72',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。1表示可用状态,2表示删除状态。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ExtraInfo' => [
+ 'description' => '额外信息。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'UpdateTime' => [
+ 'description' => '最后更新时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1632979237663',
+ ],
+ 'LicenseKey' => [
+ 'description' => '用户的对应的LicenseKey。',
+ 'type' => 'string',
+ 'example' => 'xxxxxxxx@xxxxxxxxxx',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1631001140913',
+ ],
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'xxxxxxxx@xxxxxxxxxx',
+ ],
+ 'UserId' => [
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '1234567890',
+ ],
+ 'Source' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'example' => 'edasmsc',
+ ],
+ 'Language' => [
+ 'description' => '应用的编程语言。',
+ 'type' => 'string',
+ 'example' => 'JAVA',
+ ],
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Version' => [
+ 'description' => '版本信息。',
+ 'type' => 'string',
+ 'example' => '1.0.0',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'substitutions' => [
+ 'mse::2019-05-31::CreateApplication',
+ ],
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"904F6C04-1284-****-8ED2-FFC57E507A72\\",\\n \\"Data\\": {\\n \\"Status\\": 1,\\n \\"ExtraInfo\\": \\"{}\\",\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"UpdateTime\\": 1632979237663,\\n \\"LicenseKey\\": \\"xxxxxxxx@xxxxxxxxxx\\",\\n \\"CreateTime\\": 1631001140913,\\n \\"AppId\\": \\"xxxxxxxx@xxxxxxxxxx\\",\\n \\"UserId\\": \\"1234567890\\",\\n \\"Source\\": \\"edasmsc\\",\\n \\"Language\\": \\"JAVA\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Version\\": \\"1.0.0\\"\\n },\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
+ 'title' => '创建应用',
+ ],
+ 'CreateApplication' => [
+ 'summary' => '创建应用。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '17001',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse3O985H',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域。',
+ 'description' => '应用所属的区域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的MSE命名空间。',
+ 'description' => 'MSE命名空间名字。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'prod',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名。',
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用的部署方式,ACK表示阿里云容器服务K8s。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'ACK',
+ 'default' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用的编程语言。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'JAVA',
+ 'default' => 'JAVA',
+ ],
+ ],
+ [
+ 'name' => 'SentinelEnable',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '是否开启Sentinel。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'SwitchEnable',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '是否开始Switch。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Tags',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '阿里云标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '阿里云标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '用户输入的自定义标签键。最多支持128个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tagKey',
+ ],
+ 'Value' => [
+ 'description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tagKey',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'minItems' => 0,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '68D91223-CCE9-5F9C-B538-20F617DA48B1',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '应用状态,1表示正常。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ExtraInfo' => [
+ 'description' => '额外信息。',
+ 'type' => 'string',
+ 'example' => '{\\"rpcTypes\\":[\\"dubbo\\",\\"springCloud\\"]}',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'UpdateTime' => [
+ 'description' => '更新时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1632979237663',
+ ],
+ 'LicenseKey' => [
+ 'description' => '用户的对应的LicenseKey。',
+ 'type' => 'string',
+ 'example' => 'xxxxxxxx@xxxxxxxxxx',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1631001140913',
+ ],
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'xxxxxxxx@xxxxxxxxxx',
+ ],
+ 'UserId' => [
+ 'description' => '阿里云用户ID。',
+ 'type' => 'string',
+ 'example' => '1888888888',
+ ],
+ 'Source' => [
+ 'description' => '应用的部署方式。'."\n"
+ ."\n"
+ .'- ACK:表示阿里云容器服务K8s。'."\n"
+ .'- Normal:表示其他接入方式。',
+ 'type' => 'string',
+ 'example' => 'ACK',
+ ],
+ 'Language' => [
+ 'description' => '应用的编程语言。',
+ 'type' => 'string',
+ 'example' => 'JAVA',
+ ],
+ 'RegionId' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Namespace' => [
+ 'description' => 'MSE命名空间名字。',
+ 'type' => 'string',
+ 'example' => 'prod',
+ ],
+ 'Version' => [
+ 'description' => '版本号。',
+ 'type' => 'string',
+ 'example' => '1.0.0',
+ ],
+ ],
+ 'example' => 'data',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"68D91223-CCE9-5F9C-B538-20F617DA48B1\\",\\n \\"Data\\": {\\n \\"Status\\": 1,\\n \\"ExtraInfo\\": \\"{\\\\\\\\\\\\\\"rpcTypes\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"dubbo\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"springCloud\\\\\\\\\\\\\\"]}\\",\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"UpdateTime\\": 1632979237663,\\n \\"LicenseKey\\": \\"xxxxxxxx@xxxxxxxxxx\\",\\n \\"CreateTime\\": 1631001140913,\\n \\"AppId\\": \\"xxxxxxxx@xxxxxxxxxx\\",\\n \\"UserId\\": \\"1888888888\\",\\n \\"Source\\": \\"ACK\\",\\n \\"Language\\": \\"JAVA\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"prod\\",\\n \\"Version\\": \\"1.0.0\\"\\n },\\n \\"Code\\": 200,\\n \\"Success\\": \\"true\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '创建应用',
+ ],
+ 'GetOverview' => [
+ 'summary' => '查询治理概览信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'Period',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询时间。单位:天。比如传入30,说明查询30天内的治理规则情况。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'string',
+ 'example' => 'data',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n",
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Data\\": \\"data\\",\\n \\"Code\\": 1,\\n \\"Success\\": \\"true\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '查询应用概览',
+ 'description' => '通过GetOverview接口查询服务治理概览信息。',
+ ],
+ 'RemoveApplication' => [
+ 'summary' => '删除单个应用。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17086',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseHJJ9Z1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域。',
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '微服务命名空间。',
+ 'description' => '微服务命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prod',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '要删除的应用名字。',
+ 'description' => '要删除的应用名字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'example-app',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '要删除的应用id。',
+ 'description' => '要删除的应用id。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'abcde@12345',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求id。',
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => 'abcde-12345',
+ ],
+ 'Success' => [
+ 'title' => '是否成功。',
+ 'description' => '是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'title' => '错误码。',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NoPermission',
+ ],
+ 'Message' => [
+ 'title' => '错误信息。',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Data' => [
+ 'title' => '删除执行结果。',
+ 'description' => '删除执行结果。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"abcde-12345\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"NoPermission\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => '删除应用',
+ ],
+ 'GetApplicationInstanceList' => [
+ 'summary' => '查询微服务应用实例列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17021',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseZB84VG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的MSE命名空间。',
+ 'description' => '应用所属的MSE命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名字。',
+ 'description' => '应用名字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 100,
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用Id。',
+ 'description' => '应用Id。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'abcde@12345',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '节点标签。',
+ 'description' => '节点标签。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'gray',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '第几页。从1开始。',
+ 'description' => '第几页。从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ 'default' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页大小。',
+ 'description' => '每页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '20',
+ 'default' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '所在地域。',
+ 'description' => '所在地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'title' => '返回数据',
+ 'description' => '返回数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'title' => '节点列表。',
+ 'description' => '节点列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '微服务治理节点列表。',
+ 'description' => '微服务治理节点列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Ip' => [
+ 'title' => '节点ip。',
+ 'description' => '节点ip。',
+ 'type' => 'string',
+ 'example' => '10.1.2.3',
+ ],
+ 'Tags' => [
+ 'title' => '节点标签。',
+ 'description' => '节点标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '节点标签结构。',
+ 'description' => '节点标签结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Tag' => [
+ 'title' => '标签值。',
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ ],
+ ],
+ ],
+ 'Port' => [
+ 'title' => '应用端口。',
+ 'description' => '应用端口。',
+ 'type' => 'string',
+ 'example' => '8080',
+ ],
+ ],
+ ],
+ ],
+ 'TotalSize' => [
+ 'title' => '总共有多少个节点。',
+ 'description' => '总共有多少个节点。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'PageNumber' => [
+ 'title' => '第几页,从1开始。',
+ 'description' => '第几页,从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '每页多少个。',
+ 'description' => '每页多少个。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Ip\\": \\"10.1.2.3\\",\\n \\"Tags\\": [\\n {\\n \\"Tag\\": \\"gray\\"\\n }\\n ],\\n \\"Port\\": \\"8080\\"\\n }\\n ],\\n \\"TotalSize\\": 100,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n }\\n}","type":"json"}]',
+ 'title' => '获取应用实例信息',
+ ],
+ 'QueryGovernanceKubernetesCluster' => [
+ 'summary' => '获取微服务治理K8s集群信息列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '116299',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse3O985H',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'title' => 'Kubernetes集群名',
+ 'description' => 'Kubernetes集群名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'example-cluster',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'title' => 'Kubernetes集群Id',
+ 'description' => 'Kubernetes集群ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'c24c9354acxxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页元素数量',
+ 'description' => '每页元素数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'maximum' => '100',
+ 'minimum' => '5',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DE34D413-2B79-5E77-9696-36D875E822AD',
+ ],
+ 'Data' => [
+ 'description' => '响应数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ClusterName' => [
+ 'title' => 'Kubernetes集群名',
+ 'description' => '集群名字。',
+ 'type' => 'string',
+ 'example' => 'example-cluster',
+ ],
+ 'ClusterId' => [
+ 'title' => 'Kubernetes集群Id',
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'example' => 'abcdef123456789',
+ ],
+ 'Region' => [
+ 'title' => 'Kubernetes集群所在的地域',
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'K8sVersion' => [
+ 'title' => 'Kubernetes集群版本',
+ 'description' => '集群版本。',
+ 'type' => 'string',
+ 'example' => '1.22',
+ ],
+ 'NamespaceInfos' => [
+ 'title' => 'Kubernetes集群命名空间信息(json格式)',
+ 'description' => '命名空间信息。',
+ 'type' => 'string',
+ 'example' => '[{"Name":"ack-onepilot","Tags":{"name":"ack-onepilot"}}]',
+ ],
+ 'PilotStartTime' => [
+ 'title' => 'pilot启动时间',
+ 'description' => 'Pilot启动时间。',
+ 'type' => 'string',
+ 'example' => '2022-05-17T05:39:43.000+0000',
+ ],
+ 'VersionLifeCycle' => [
+ 'type' => 'string',
+ ],
+ 'PilotVersion' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'TotalSize' => [
+ 'title' => '页码总数',
+ 'description' => '集群总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'PageNumber' => [
+ 'title' => '当前页码',
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '页大小',
+ 'description' => '当前页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"DE34D413-2B79-5E77-9696-36D875E822AD\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"ClusterName\\": \\"example-cluster\\",\\n \\"ClusterId\\": \\"abcdef123456789\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"K8sVersion\\": \\"1.22\\",\\n \\"NamespaceInfos\\": \\"[{\\\\\\"Name\\\\\\":\\\\\\"ack-onepilot\\\\\\",\\\\\\"Tags\\\\\\":{\\\\\\"name\\\\\\":\\\\\\"ack-onepilot\\\\\\"}}]\\",\\n \\"PilotStartTime\\": \\"2022-05-17T05:39:43.000+0000\\",\\n \\"VersionLifeCycle\\": \\"\\",\\n \\"PilotVersion\\": \\"\\"\\n }\\n ],\\n \\"TotalSize\\": 3,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取微服务治理K8s集群信息列表',
+ ],
+ 'ModifyGovernanceKubernetesCluster' => [
+ 'summary' => '修改已接入服务治理的集群信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '25610',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseSXV85E',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cd23228b3c80c4d4f9ad87cc3****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceInfos',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '命名空间接入MSE服务治理的对应信息。',
+ 'description' => '命名空间接入MSE服务治理的对应信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => 'kubernetes命名空间名字。',
+ 'description' => 'kubernetes命名空间名字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ 'MseNamespace' => [
+ 'title' => '对应的微服务命名空间,为空代表没有接入。',
+ 'description' => '对应的微服务命名空间,为空代表没有接入。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'F9849E97-2455-54B0-A3B4-3F6E4E9FFEB1',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n",
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"F9849E97-2455-54B0-A3B4-3F6E4E9FFEB1\\",\\n \\"Data\\": true,\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新已接入服务治理的集群信息',
+ ],
+ 'GetGovernanceKubernetesCluster' => [
+ 'summary' => '获取服务治理的kubernetes集群信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '24691',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse3O985H',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,MSE支持的地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cd23228b3c80c4d4f9ad7af1d87cc****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5B170A0D-2C5D-4CF8-B808-03966B86****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ClusterId' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'example' => 'cd23228b3c80c4d4f9ad7af1d87cc30d5',
+ ],
+ 'ClusterName' => [
+ 'description' => '集群名称。',
+ 'type' => 'string',
+ 'example' => 'myCluster',
+ ],
+ 'Region' => [
+ 'description' => '集群所在地域,MSE支持的地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'K8sVersion' => [
+ 'description' => 'k8s版本。',
+ 'type' => 'string',
+ 'example' => '1.20.11-aliyun.1',
+ ],
+ 'NamespaceInfos' => [
+ 'description' => '命名空间信息。',
+ 'type' => 'string',
+ 'example' => '[{\\"Name\\":\\"ack-onepilot\\",\\"Tags\\":null},{\\"Name\\":\\"default\\",\\"Tags\\":{\\"mse-enable\\":\\"enabled\\"}},{\\"Name\\":\\"kube-node-lease\\",\\"Tags\\":null},{\\"Name\\":\\"kube-public\\",\\"Tags\\":null},{\\"Name\\":\\"kube-system\\",\\"Tags\\":null}]',
+ ],
+ 'PilotStartTime' => [
+ 'description' => 'Pilot启动时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-11T11:50:38.000+0000',
+ ],
+ 'UpdateTime' => [
+ 'description' => '最后更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-12T05:24:31.000+0000',
+ ],
+ 'Namespaces' => [
+ 'description' => '命名空间列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '命名空间结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => 'Kubernetes命名空间名字',
+ 'description' => 'Kubernetes命名空间名字。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'MseNamespace' => [
+ 'title' => '对应接入的mse命名空间名字',
+ 'description' => '对应接入的mse命名空间名字。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ ],
+ ],
+ ],
+ 'PilotVersion' => [
+ 'description' => 'ack-onepilot 组件版本',
+ 'type' => 'string',
+ 'example' => '4.1.1',
+ ],
+ 'VersionLifeCycle' => [
+ 'description' => '版本生命周期',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'EXPIRED' => '过期',
+ 'SUNSETTING' => '即将过期',
+ 'STABLE' => '稳定',
+ 'DEPRECATED' => '不推荐版本',
+ ],
+ 'example' => 'STABLE',
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"5B170A0D-2C5D-4CF8-B808-03966B86****\\",\\n \\"Data\\": {\\n \\"ClusterId\\": \\"cd23228b3c80c4d4f9ad7af1d87cc30d5\\",\\n \\"ClusterName\\": \\"myCluster\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"K8sVersion\\": \\"1.20.11-aliyun.1\\",\\n \\"NamespaceInfos\\": \\"[{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"ack-onepilot\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Tags\\\\\\\\\\\\\\":null},{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Tags\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"mse-enable\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"enabled\\\\\\\\\\\\\\"}},{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"kube-node-lease\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Tags\\\\\\\\\\\\\\":null},{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"kube-public\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Tags\\\\\\\\\\\\\\":null},{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"kube-system\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Tags\\\\\\\\\\\\\\":null}]\\",\\n \\"PilotStartTime\\": \\"2022-01-11T11:50:38.000+0000\\",\\n \\"UpdateTime\\": \\"2022-01-12T05:24:31.000+0000\\",\\n \\"Namespaces\\": [\\n {\\n \\"Name\\": \\"default\\",\\n \\"MseNamespace\\": \\"default\\"\\n }\\n ],\\n \\"PilotVersion\\": \\"4.1.1\\",\\n \\"VersionLifeCycle\\": \\"STABLE\\"\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '查询已接入服务治理的集群信息',
+ ],
+ 'ListNamespaces' => [
+ 'summary' => '展示命名空间列表,同时可以展示出每个命名空间下的在线节点数和总应用数。此外,该接口也可以按照命名空间名称进行模糊查询。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '192223',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseSXV85E',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ 'default' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时每页展示条数。默认为5,如需返回更多数据,请将该值向上调整。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ 'default' => '5',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '需要模糊查询的命名空间名,不填则默认查询所有。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myNamespace',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '阿里云标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签列表,最多包含20个子项。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'minItems' => 0,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<PageResult<NamespaceVO>>',
+ 'description' => 'RestResult<PageResult<NamespaceVO>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D1F1A6F3-7E03-5EAD-B3F1-123456789ABC',
+ ],
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'title' => '实例列表的页码',
+ 'description' => '结果页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalSize' => [
+ 'title' => '查询到的实例总数',
+ 'description' => '查询结果总条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'PageSize' => [
+ 'title' => '输入时设置的每页行数',
+ 'description' => '查询时分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'description' => '用户id。',
+ 'type' => 'string',
+ 'example' => '178*******',
+ ],
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'myNamespace',
+ ],
+ 'Version' => [
+ 'title' => '--- 基础版',
+ 'description' => '版本。基础版 0,专业版 1,企业版 2。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Describe' => [
+ 'description' => '命名空间描述。',
+ 'type' => 'string',
+ 'example' => '测试命名空间1。',
+ ],
+ 'InstanceCount' => [
+ 'description' => '在线节点数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '6',
+ ],
+ 'AppCount' => [
+ 'description' => '应用数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2024-09-02T09:49:48.000+0000',
+ ],
+ 'UpdateTime' => [
+ 'description' => '更新时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2024-09-02T09:49:48.000+0000',
+ ],
+ 'Tags' => [
+ 'description' => '阿里云标签。',
+ 'type' => 'object',
+ 'example' => '{"1":"1","2":"2"}',
+ ],
+ ],
+ ],
+ ],
+ 'Results' => [
+ 'title' => '从 com.alibaba.mse.common.dto.FetchListResponse#results',
+ 'description' => '返回结果集。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'description' => '用户id。',
+ 'type' => 'string',
+ 'example' => '178*******',
+ ],
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'myNamespace',
+ ],
+ 'Version' => [
+ 'title' => '--- 基础版',
+ 'description' => '版本。基础版 0,专业版 1,企业版 2。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Describe' => [
+ 'description' => '命名空间描述。',
+ 'type' => 'string',
+ 'example' => '测试命名空间1。',
+ ],
+ 'InstanceCount' => [
+ 'description' => '在线节点数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '6',
+ ],
+ 'AppCount' => [
+ 'description' => '应用数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2024-09-02T09:49:48.000+0000',
+ ],
+ 'UpdateTime' => [
+ 'description' => '更新时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2024-09-02T09:49:48.000+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D1F1A6F3-7E03-5EAD-B3F1-123456789ABC\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"TotalSize\\": 7,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"UserId\\": \\"178*******\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"myNamespace\\",\\n \\"Version\\": 1,\\n \\"Describe\\": \\"测试命名空间1。\\",\\n \\"InstanceCount\\": 6,\\n \\"AppCount\\": 3,\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"Tags\\": {\\n \\"1\\": \\"1\\",\\n \\"2\\": \\"2\\"\\n }\\n }\\n ],\\n \\"Results\\": [\\n {\\n \\"UserId\\": \\"178*******\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"myNamespace\\",\\n \\"Version\\": 1,\\n \\"Describe\\": \\"测试命名空间1。\\",\\n \\"InstanceCount\\": 6,\\n \\"AppCount\\": 3,\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询命名空间列表',
+ ],
+ 'CreateNamespace' => [
+ 'summary' => '创建微服务治理命名空间。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '187065',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseSXV85E',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '要搜索的命名空间名字',
+ 'description' => '微服务治理命名空间名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myNamespace',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'Describe',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '微服务治理命名空间描述信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '测试命名空间1。',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '阿里云标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '待添加的标签列表。最多包含20个子项。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '资源的标签键。一旦传入该值,则不允许为空字符串。最多支持128个字符,不能以aliyun和acs:开头,不能包含http://或者https://。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'namespaceTagKey',
+ ],
+ 'Value' => [
+ 'description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'namespaceTagValue',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'minItems' => 0,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'title' => '错误时的提示信息',
+ 'description' => '错误时的提示信息',
+ 'type' => 'string',
+ 'example' => '请求处理成功。',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id',
+ 'description' => '请求id',
+ 'type' => 'string',
+ 'example' => 'D1F1A6F3-7E03-5EAD-B3F1-123456789ABC',
+ ],
+ 'ErrorCode' => [
+ 'title' => '错误码。',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'Success' => [
+ 'title' => '请求是否成功',
+ 'description' => '请求是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'title' => '命名空间所属的地域',
+ 'description' => '命名空间所属的地域',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Namespace' => [
+ 'title' => '命名空间名字',
+ 'description' => '命名空间名字',
+ 'type' => 'string',
+ 'example' => 'myNamespace',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功。\\",\\n \\"RequestId\\": \\"D1F1A6F3-7E03-5EAD-B3F1-123456789ABC\\",\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"myNamespace\\"\\n }\\n}","type":"json"}]',
+ 'title' => '创建微服务治理命名空间',
+ ],
+ 'DeleteNamespace' => [
+ 'summary' => '删除MSE命名空间。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '操作的地域',
+ 'description' => '操作的地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '要删除的MSE命名空间名称',
+ 'description' => '要删除的MSE命名空间名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prod',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'title' => 'HTTP状态码',
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'title' => '请求信息,错误排查用',
+ 'description' => '请求信息,错误排查用。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ 'default' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'title' => '请求Id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'abcde-efg',
+ ],
+ 'Success' => [
+ 'title' => '是否成功',
+ 'description' => '是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'title' => '错误码。',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NO_PERMISSION',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"abcde-efg\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"NO_PERMISSION\\"\\n}","type":"json"}]',
+ 'title' => '删除MSE命名空间',
+ ],
+ 'QueryNamespace' => [
+ 'summary' => '查询MSE命名空间。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '操作的地域',
+ 'description' => '操作的地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '要搜索的命名空间名字',
+ 'description' => '要搜索的命名空间名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'title' => '错误时的提示信息',
+ 'description' => '错误时的提示信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'title' => '请求id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'abcde-fg',
+ ],
+ 'ErrorCode' => [
+ 'title' => '错误码。',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'Success' => [
+ 'title' => '请求是否成功',
+ 'description' => '请求是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '返回的数据',
+ 'description' => '返回的数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'title' => '命名空间所属的地域',
+ 'description' => '命名空间所属的地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Namespace' => [
+ 'title' => '命名空间名字',
+ 'description' => '命名空间名字。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"abcde-fg\\",\\n \\"ErrorCode\\": \\"Success\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"default\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询MSE命名空间',
+ ],
+ 'ApplyTagPolicies' => [
+ 'summary' => '修改标签路由规则。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '16993',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseW9QIF2',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的MSE命名空间',
+ 'description' => '应用所属的MSE命名空间',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名字',
+ 'description' => '应用名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'h5pohqu3gd@xxx',
+ ],
+ ],
+ [
+ 'name' => 'Rules',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'key为标签名。',
+ 'description' => '路由规则。',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'description' => '状态。',
+ 'enumValueTitles' => [
+ '未生效',
+ '生效',
+ '失效',
+ ],
+ 'example' => '0',
+ ],
+ 'Rate' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ 'description' => '百分比。',
+ ],
+ 'Enable' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'description' => '是否开启。',
+ ],
+ 'Tag' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'description' => '这个路由规则的环境。',
+ 'example' => 'gray',
+ ],
+ 'Name' => [
+ 'title' => '路由规则名称。',
+ 'description' => '路由规则名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gray',
+ ],
+ 'Id' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ 'description' => '规则ID。',
+ ],
+ 'InstanceNum' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'description' => '实例数量。',
+ 'example' => '10',
+ ],
+ 'Rules' => [
+ 'title' => '规则信息。',
+ 'description' => '规则信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'springcloud' => [
+ 'title' => 'springcloud规则。',
+ 'description' => 'springcloud规则。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'condition' => [
+ 'title' => '下面 items 各项中的逻辑运算关系。可选 AND 或者 OR。',
+ 'description' => '下面 items 各项中的逻辑运算关系。可选 AND 或者 OR。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AND',
+ ],
+ 'restItems' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'datum' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10',
+ 'description' => 'rawvalue 等操作符需要比较的值。',
+ ],
+ 'operator' => [
+ 'title' => '操作符。rawvalue 表示直接比较,mode 表示取模,list 表示白名单。',
+ 'description' => '操作符。rawvalue 表示直接比较,mode 表示取模,list 表示白名单。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rawvalue',
+ ],
+ 'nameList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'description' => '名称。',
+ 'example' => 'test1',
+ ],
+ 'required' => false,
+ 'description' => 'list 操作符需要的字段。',
+ ],
+ 'cond' => [
+ 'title' => '比较符号,可取 >=, <=, >, <, == 。',
+ 'description' => '比较符号,可取 >=, <=, >, <, == 。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '==',
+ ],
+ 'divisor' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ 'description' => 'mod 操作符需要的字段,除数。',
+ ],
+ 'remainder' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'description' => '百分比操作需要的字段,百分比值。',
+ 'example' => '30',
+ ],
+ 'rate' => [
+ 'title' => '比例规则,20% 的流量路由到该标签对应的节点。',
+ 'description' => '比例规则,20% 的流量路由到该标签对应的节点。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ 'type' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ 'description' => '类型。',
+ ],
+ 'name' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key',
+ 'description' => '名称。',
+ ],
+ 'value' => [
+ 'type' => 'any',
+ 'required' => false,
+ 'example' => 'test',
+ 'description' => '值。',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'triggerPolicy' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PERCENT' => '比例规则',
+ 'CONTENT' => '内容匹配规则',
+ ],
+ 'example' => 'CONTENT',
+ 'description' => '策略类型。',
+ ],
+ 'enable' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ 'description' => '是否开启。',
+ 'example' => 'true',
+ ],
+ 'appId' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '***@***',
+ 'description' => '应用ID。',
+ ],
+ 'priority' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'description' => '优先级。',
+ 'example' => '1',
+ ],
+ 'tags' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gray',
+ 'description' => '标签。',
+ ],
+ 'required' => false,
+ 'description' => '标签列表。',
+ ],
+ 'paths' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/hello',
+ 'description' => '路径。',
+ ],
+ 'required' => false,
+ 'description' => '路径列表。',
+ ],
+ 'path' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'description' => '路径。',
+ 'example' => '/hello',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'dubbo' => [
+ 'title' => 'dubbo 规则。',
+ 'description' => 'dubbo 规则。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'appId' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'description' => '应用ID。',
+ 'example' => '***@***'."\n",
+ ],
+ 'tags' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gray',
+ 'description' => '标签。',
+ ],
+ 'required' => false,
+ 'description' => '标签列表。',
+ ],
+ 'triggerPolicy' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'description' => '策略类型。',
+ 'example' => 'CONTENT',
+ ],
+ 'serviceName' => [
+ 'title' => '服务名(接口)。',
+ 'description' => '服务名(接口)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HelloService',
+ ],
+ 'group' => [
+ 'title' => 'dubbo服务分组。',
+ 'description' => 'dubbo服务分组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ 'version' => [
+ 'title' => 'dubbo服务版本。',
+ 'description' => 'dubbo服务版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0.0',
+ ],
+ 'methodName' => [
+ 'title' => 'dubbo服务的方法名。',
+ 'description' => 'dubbo服务的方法名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hello',
+ ],
+ 'paramTypes' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'int',
+ 'description' => '参数类型。',
+ ],
+ 'required' => false,
+ 'description' => '参数类型列表。',
+ ],
+ 'condition' => [
+ 'title' => '下面 items 各项中的逻辑运算关系。可选 AND 或者 OR。',
+ 'description' => '下面 items 各项中的逻辑运算关系。可选 AND 或者 OR。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AND',
+ ],
+ 'argumentItems' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'operator' => [
+ 'title' => '操作符。rawvalue 表示直接比较,mode 表示取模,list 表示白名单。',
+ 'description' => '操作符。rawvalue 表示直接比较,mode 表示取模,list 表示白名单。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rawvalue',
+ ],
+ 'nameList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'description' => '名称。',
+ 'example' => 'demo',
+ ],
+ 'required' => false,
+ 'description' => '名称列表。',
+ ],
+ 'datum' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'description' => 'rawvalue 等操作符需要比较的值。',
+ 'example' => '30'."\n",
+ ],
+ 'cond' => [
+ 'title' => '比较符号,可取 >=, <=, >, <, == 。',
+ 'description' => '比较符号,可取 >=, <=, >, <, == 。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '==',
+ ],
+ 'divisor' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'description' => 'mod 操作符需要的字段,除数。',
+ 'example' => '30'."\n",
+ ],
+ 'remainder' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30'."\n",
+ 'description' => '百分比操作需要的字段,百分比值。',
+ ],
+ 'rate' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'description' => '比例规则,20% 的流量路由到该标签对应的节点。',
+ 'example' => '10',
+ ],
+ 'index' => [
+ 'title' => '参数位置,从0开始。',
+ 'description' => '参数位置,从0开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ 'expr' => [
+ 'title' => '表达式,见其他字段解释。',
+ 'description' => '表达式,见其他字段解释。',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'value' => [
+ 'title' => '比较的值。表达式得到的值会跟这个值比较。如果 operator 是 list 白名单,value 的值用 \\",\\" 分隔,比如 1,2,3。',
+ 'description' => '比较的值。表达式得到的值会跟这个值比较。如果 operator 是 list 白名单,value 的值用 \\",\\" 分隔,比如 1,2,3。',
+ 'type' => 'any',
+ 'required' => false,
+ 'example' => '1,2,3',
+ ],
+ ],
+ 'required' => false,
+ 'description' => '参数内容。',
+ ],
+ 'required' => false,
+ 'description' => '参数内容列表。',
+ ],
+ ],
+ 'required' => false,
+ 'description' => '规则内容。',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID,可以不填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12233****',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据概览',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '生效状态',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'InstanceNum' => [
+ 'description' => '实例数量',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Remove' => [
+ 'description' => '是否删除成功。',
+ 'type' => 'boolean',
+ ],
+ 'CarryData' => [
+ 'description' => '是否为主键。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Tag' => [
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ 'Name' => [
+ 'description' => '策略名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Rules' => [
+ 'description' => '标签规则',
+ 'type' => 'string',
+ 'example' => '{\\"_base\\": {\\"rate\\": 100, \\"remove\\": true}, \\"blue\\": {\\"rate\\": 0}}',
+ ],
+ 'Id' => [
+ 'description' => '主键ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'Rate' => [
+ 'description' => '比例',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Enable' => [
+ 'description' => '开启或关闭。'."\n"
+ ."\n"
+ .'- `true`:开启。'."\n"
+ .'- `false`:关闭。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ 'Success' => [
+ 'description' => '请求结果',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Data\\": [\\n {\\n \\"Status\\": 1,\\n \\"InstanceNum\\": 1,\\n \\"Remove\\": true,\\n \\"CarryData\\": true,\\n \\"Tag\\": \\"gray\\",\\n \\"Name\\": \\"test\\",\\n \\"Rules\\": \\"{\\\\\\\\\\\\\\"_base\\\\\\\\\\\\\\": {\\\\\\\\\\\\\\"rate\\\\\\\\\\\\\\": 100, \\\\\\\\\\\\\\"remove\\\\\\\\\\\\\\": true}, \\\\\\\\\\\\\\"blue\\\\\\\\\\\\\\": {\\\\\\\\\\\\\\"rate\\\\\\\\\\\\\\": 0}}\\",\\n \\"Id\\": 12,\\n \\"Rate\\": 10,\\n \\"Enable\\": true\\n }\\n ],\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '修改标签路由规则',
+ ],
+ 'ListApplicationsWithTagRules' => [
+ 'summary' => '通过ListApplicationsWithTagRules接口获取应用的路由规则。',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页,第 N 页。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页,每页 N 个。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'maximum' => '50',
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据来源,默认edasmsc。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'xjpc0h9h4d@xxx',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用所属的MSE命名空间',
+ 'description' => '应用所属的MSE命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ 'default' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名字',
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7466566F-F30F-4A29-965D-3E0AF21D****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'title' => '应用所属的MSE命名空间',
+ 'description' => '应用所属的MSE命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'AppName' => [
+ 'title' => '应用名',
+ 'description' => '应用名。',
+ 'type' => 'string',
+ 'example' => 'service-lottery-core',
+ ],
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'daqijp6c31@xxx',
+ ],
+ 'RouteRules' => [
+ 'description' => '规则列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Rate' => [
+ 'title' => '比例规则,20% 的流量路由到该标签对应的节点。',
+ 'description' => '比例。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Enable' => [
+ 'description' => '报警规则的启用状态。取值:'."\n"
+ ."\n"
+ .'- `true`:启用。'."\n"
+ .'- `false`:禁用。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Tag' => [
+ 'title' => '标签名。',
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ 'Name' => [
+ 'title' => '路由规则名称。',
+ 'description' => '规则名称。',
+ 'type' => 'string',
+ 'example' => 'dubbo',
+ ],
+ 'Id' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '653',
+ ],
+ 'InstanceNum' => [
+ 'description' => '实例数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Rules' => [
+ 'description' => '规则的适用路由。',
+ 'type' => 'object',
+ 'properties' => [
+ 'springcloud' => [
+ 'title' => 'springcloud规则。',
+ 'description' => 'springcloud规则。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'condition' => [
+ 'type' => 'string',
+ ],
+ 'restItems' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'datum' => [
+ 'type' => 'string',
+ ],
+ 'operator' => [
+ 'type' => 'string',
+ ],
+ 'nameList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'cond' => [
+ 'type' => 'string',
+ ],
+ 'divisor' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'remainder' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'rate' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'type' => [
+ 'type' => 'string',
+ ],
+ 'name' => [
+ 'type' => 'string',
+ ],
+ 'value' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'triggerPolicy' => [
+ 'type' => 'string',
+ ],
+ 'enable' => [
+ 'type' => 'boolean',
+ ],
+ 'appId' => [
+ 'type' => 'string',
+ ],
+ 'priority' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'tags' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'paths' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'path' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'dubbo' => [
+ 'title' => 'dubbo 规则。',
+ 'description' => 'dubbo 规则。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'appId' => [
+ 'type' => 'string',
+ ],
+ 'tags' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'triggerPolicy' => [
+ 'type' => 'string',
+ ],
+ 'serviceName' => [
+ 'title' => '服务名(接口)。',
+ 'description' => '服务名(接口)。',
+ 'type' => 'string',
+ ],
+ 'group' => [
+ 'title' => 'dubbo服务分组。',
+ 'description' => 'dubbo服务分组。',
+ 'type' => 'string',
+ ],
+ 'version' => [
+ 'title' => 'dubbo服务版本。',
+ 'description' => 'dubbo服务版本。',
+ 'type' => 'string',
+ ],
+ 'methodName' => [
+ 'title' => 'dubbo服务方法名。',
+ 'description' => 'dubbo服务方法名。',
+ 'type' => 'string',
+ ],
+ 'paramTypes' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'condition' => [
+ 'title' => '下面 items 各项中的逻辑运算关系。可选 AND 或者 OR。',
+ 'description' => '下面 items 各项中的逻辑运算关系。可选 AND 或者 OR。',
+ 'type' => 'string',
+ ],
+ 'argumentItems' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'operator' => [
+ 'title' => '操作符。rawvalue 表示直接比较,mode 表示取模,list 表示白名单。',
+ 'description' => '操作符。rawvalue 表示直接比较,mode 表示取模,list 表示白名单。',
+ 'type' => 'string',
+ ],
+ 'nameList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'datum' => [
+ 'type' => 'string',
+ ],
+ 'cond' => [
+ 'title' => '比较符号,可取 >=, <=, >, <, == 。',
+ 'description' => '比较符号,可取 >=, <=, >, <, == 。',
+ 'type' => 'string',
+ ],
+ 'divisor' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'remainder' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'rate' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'index' => [
+ 'title' => '参数位置,从0开始。',
+ 'description' => '参数位置,从0开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'expr' => [
+ 'type' => 'string',
+ ],
+ 'value' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'example' => '{'."\n"
+ .' "dubbo": [{'."\n"
+ .' "serviceName": "com.taobao.hsf.common.DemoService",'."\n"
+ .' "group": "",'."\n"
+ .' "version": "",'."\n"
+ .' "methodName": "sayHello",'."\n"
+ .' "condition": "AND",'."\n"
+ .' "argumentItems": [{'."\n"
+ .' "index": 0,'."\n"
+ .' "expr": "",'."\n"
+ .' "operator": "rawvalue",'."\n"
+ .' "value": "jim",'."\n"
+ .' "cond": "=="'."\n"
+ .' }]'."\n"
+ .' }]'."\n"
+ .' }',
+ ],
+ ],
+ ],
+ ],
+ 'RouteStatus' => [
+ 'description' => '路由状态,取值如下:'."\n"
+ ."\n"
+ .'- 0:关闭'."\n"
+ ."\n"
+ .'- 1:开启',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '页面大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"7466566F-F30F-4A29-965D-3E0AF21D****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Namespace\\": \\"default\\",\\n \\"AppName\\": \\"service-lottery-core\\",\\n \\"AppId\\": \\"daqijp6c31@xxx\\",\\n \\"RouteRules\\": [\\n {\\n \\"Status\\": 1,\\n \\"Rate\\": 10,\\n \\"Enable\\": true,\\n \\"Tag\\": \\"gray\\",\\n \\"Name\\": \\"dubbo\\",\\n \\"Id\\": 653,\\n \\"InstanceNum\\": 1,\\n \\"Rules\\": {\\n \\"springcloud\\": [\\n {\\n \\"condition\\": \\"\\",\\n \\"restItems\\": [\\n {\\n \\"datum\\": \\"\\",\\n \\"operator\\": \\"\\",\\n \\"nameList\\": [\\n \\"\\"\\n ],\\n \\"cond\\": \\"\\",\\n \\"divisor\\": 0,\\n \\"remainder\\": 0,\\n \\"rate\\": 0,\\n \\"type\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"value\\": \\"\\"\\n }\\n ],\\n \\"triggerPolicy\\": \\"\\",\\n \\"enable\\": true,\\n \\"appId\\": \\"\\",\\n \\"priority\\": 0,\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"paths\\": [\\n \\"\\"\\n ],\\n \\"path\\": \\"\\"\\n }\\n ],\\n \\"dubbo\\": [\\n {\\n \\"appId\\": \\"\\",\\n \\"tags\\": [\\n \\"\\"\\n ],\\n \\"triggerPolicy\\": \\"\\",\\n \\"serviceName\\": \\"\\",\\n \\"group\\": \\"\\",\\n \\"version\\": \\"\\",\\n \\"methodName\\": \\"\\",\\n \\"paramTypes\\": [\\n \\"\\"\\n ],\\n \\"condition\\": \\"\\",\\n \\"argumentItems\\": [\\n {\\n \\"operator\\": \\"\\",\\n \\"nameList\\": [\\n \\"\\"\\n ],\\n \\"datum\\": \\"\\",\\n \\"cond\\": \\"\\",\\n \\"divisor\\": 0,\\n \\"remainder\\": 0,\\n \\"rate\\": 0,\\n \\"index\\": 0,\\n \\"expr\\": \\"\\",\\n \\"value\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n }\\n }\\n ],\\n \\"RouteStatus\\": 1\\n }\\n ],\\n \\"TotalSize\\": 1,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n }\\n}","type":"json"}]',
+ 'title' => '获取应用的路由规则',
+ ],
+ 'GetAppMessageQueueRoute' => [
+ 'summary' => '获取应用消息灰度相关的信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '116141',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse4ZR99T',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域,包括但不限于如下地域:'."\n"
+ .'- `cn-hangzhou`:杭州'."\n"
+ .'- `cn-beijing`:北京'."\n"
+ .'- `cn-shanghai`:上海'."\n"
+ .'- `cn-zhangjiakou`:张家口'."\n"
+ .'- `cn-shenzhen`:深圳',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'hkhon1po62@c3df23522baa898',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称',
+ 'description' => '应用名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4B00BCB0-105F-5A2A-B75B-641C8E9B18FC',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Data' => [
+ 'description' => '数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AppId' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@54e1f42f37cd65a',
+ ],
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Enable' => [
+ 'description' => '开启或关闭。'."\n"
+ ."\n"
+ .'- `true`:开启。'."\n"
+ .'- `false`:关闭。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Tags' => [
+ 'description' => '此应用的未打标环境,不会消费的标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '此应用的未打标环境,不会消费的标签',
+ 'type' => 'string',
+ 'example' => 'gray',
+ ],
+ ],
+ 'FilterSide' => [
+ 'description' => '消息灰度过滤侧。',
+ 'type' => 'string',
+ 'example' => 'Server',
+ 'default' => 'Server',
+ 'enum' => [
+ 'Server',
+ 'Client',
+ ],
+ ],
+ 'GrayBaseTags' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:true:请求成功。 false:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"4B00BCB0-105F-5A2A-B75B-641C8E9B18FC\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"AppId\\": \\"hkhon1po62@54e1f42f37cd65a\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Enable\\": true,\\n \\"Tags\\": [\\n \\"gray\\"\\n ],\\n \\"FilterSide\\": \\"Server\\",\\n \\"GrayBaseTags\\": [\\n \\"\\"\\n ]\\n },\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '获取应用消息灰度信息',
+ ],
+ 'UpdateMessageQueueRoute' => [
+ 'summary' => '更新应用消息灰度的配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '116139',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse4ZR99T',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Tags',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '此应用的未打标环境,忽略的标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '此应用的未打标环境,忽略的标签。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gray',
+ ],
+ 'required' => false,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消息灰度的启用状态。取值:'."\n"
+ ."\n"
+ .'- `true`:启用。'."\n"
+ .'- `false`:禁用。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'hkhon1po62@c3df23522baa898',
+ ],
+ ],
+ [
+ 'name' => 'FilterSide',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '消息灰度过滤侧。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Server',
+ 'default' => 'Server',
+ 'enum' => [
+ 'Server',
+ 'Client',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'MSE命名空间名字',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称',
+ 'description' => '应用名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ 'maxLength' => 64,
+ ],
+ ],
+ [
+ 'name' => 'GrayBaseTags',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RequestId' => [
+ 'description' => '本次请求的ID。',
+ 'type' => 'string',
+ 'example' => 'E3919C62-876A-5926-A0BC-18351A24FA35',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'string',
+ 'example' => 'True',
+ ],
+ 'Code' => [
+ 'description' => '状态码。状态码为200表示成功,其余取值表示失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"E3919C62-876A-5926-A0BC-18351A24FA35\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"True\\",\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '更新应用消息灰度的配置',
+ ],
+ 'AddMockRule' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'agent-auto-test-sc',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '规则来源。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'ProviderAppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务提供者应用ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'dcqtkuhnc4@66e5235415****',
+ ],
+ ],
+ [
+ 'name' => 'ProviderAppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务提供者应用名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'demo-cartservice',
+ ],
+ ],
+ [
+ 'name' => 'ExtraJson',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'ScMockItems',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '入参数,支持JSON格式。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '[]',
+ ],
+ ],
+ [
+ 'name' => 'DubboMockItems',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '回收站中的项目。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '[]',
+ ],
+ ],
+ [
+ 'name' => 'ConsumerAppIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用户自定义应用ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '[{\\"appName\\":\\"provide\\",\\"appId\\":\\"bst8l6o735@f6d8aaf6e56e67d\\"}]',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '报警规则的启用状态。取值:'."\n"
+ ."\n"
+ .'- `true`:启用。'."\n"
+ .'- `false`:禁用。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'MockType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '慢调用RT。取值如下:'."\n"
+ ."\n"
+ .'- 15:15ms'."\n"
+ .'- 30:30ms'."\n"
+ .'- 60:60ms'."\n"
+ .'- 120:120ms',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'NamespaceId' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'ScMockItemJson' => [
+ 'description' => 'HTTP协议Mock规则。',
+ 'type' => 'string',
+ 'example' => '[{"oper":"return+json","Path":"/mock","Value":"{\\n \\"date\\": \\"2021-09-10T07:45:12.357+0000\\",\\n \\"name\\": \\"name\\",\\n \\"id\\": \\"1\\"\\n}","Method":"GET","Condition":"AND","Timeout":1,"ArgumentMockItems":[{"type":"param","name":"id","value":"1","cond":"==","operator":"rawvalue"},{"type":"param","name":"name","value":"aliyun","cond":"==","operator":"rawvalue"}]}]',
+ ],
+ 'ConsumerAppName' => [
+ 'description' => '需查询的应用名称。',
+ 'type' => 'string',
+ 'example' => 'demo-xxxx',
+ ],
+ 'ConsumerAppId' => [
+ 'description' => '服务消费者应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@a000601b265xxxx',
+ ],
+ 'AccountId' => [
+ 'description' => '账户ID。',
+ 'type' => 'string',
+ 'example' => '178432728867xxxx',
+ ],
+ 'ExtraJson' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => 'desc',
+ ],
+ 'Source' => [
+ 'description' => '来源',
+ 'type' => 'string',
+ 'example' => 'edasmsc',
+ ],
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'ProviderAppId' => [
+ 'description' => '服务提供者应用ID。',
+ 'type' => 'string',
+ 'example' => 'hkhon1po62@a000601b265xxxx',
+ ],
+ 'ProviderAppName' => [
+ 'description' => '服务提供者应用名称。',
+ 'type' => 'string',
+ 'example' => 'demo-xxxx',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'mse-bc1a29b0-160230875****-reg-center-0-1',
+ ],
+ 'Id' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '275',
+ ],
+ 'Enable' => [
+ 'description' => '开启或关闭。'."\n"
+ ."\n"
+ .'- `true`:开启。'."\n"
+ .'- `false`:关闭。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'MockType' => [
+ 'description' => '模型类型,取值如下:'."\n"
+ ."\n"
+ .'- `[unk]0[unk]`:桌面模型'."\n"
+ .'- `[unk]1[unk]`:移动端模型',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"cn-shanghai\\",\\n \\"ScMockItemJson\\": \\"[{\\\\\\"oper\\\\\\":\\\\\\"return+json\\\\\\",\\\\\\"Path\\\\\\":\\\\\\"/mock\\\\\\",\\\\\\"Value\\\\\\":\\\\\\"{\\\\\\\\n \\\\\\\\\\\\\\"date\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"2021-09-10T07:45:12.357+0000\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"name\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"name\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"id\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"1\\\\\\\\\\\\\\"\\\\\\\\n}\\\\\\",\\\\\\"Method\\\\\\":\\\\\\"GET\\\\\\",\\\\\\"Condition\\\\\\":\\\\\\"AND\\\\\\",\\\\\\"Timeout\\\\\\":1,\\\\\\"ArgumentMockItems\\\\\\":[{\\\\\\"type\\\\\\":\\\\\\"param\\\\\\",\\\\\\"name\\\\\\":\\\\\\"id\\\\\\",\\\\\\"value\\\\\\":\\\\\\"1\\\\\\",\\\\\\"cond\\\\\\":\\\\\\"==\\\\\\",\\\\\\"operator\\\\\\":\\\\\\"rawvalue\\\\\\"},{\\\\\\"type\\\\\\":\\\\\\"param\\\\\\",\\\\\\"name\\\\\\":\\\\\\"name\\\\\\",\\\\\\"value\\\\\\":\\\\\\"aliyun\\\\\\",\\\\\\"cond\\\\\\":\\\\\\"==\\\\\\",\\\\\\"operator\\\\\\":\\\\\\"rawvalue\\\\\\"}]}]\\",\\n \\"ConsumerAppName\\": \\"demo-xxxx\\",\\n \\"ConsumerAppId\\": \\"hkhon1po62@a000601b265xxxx\\",\\n \\"AccountId\\": \\"178432728867xxxx\\",\\n \\"ExtraJson\\": \\"desc\\",\\n \\"Source\\": \\"edasmsc\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"ProviderAppId\\": \\"hkhon1po62@a000601b265xxxx\\",\\n \\"ProviderAppName\\": \\"demo-xxxx\\",\\n \\"Name\\": \\"mse-bc1a29b0-160230875****-reg-center-0-1\\",\\n \\"Id\\": 275,\\n \\"Enable\\": true,\\n \\"MockType\\": 0\\n },\\n \\"Code\\": 200,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建Mock规则',
+ 'summary' => '创建Mock规则。',
+ ],
+ 'GetPlugins' => [
+ 'summary' => '获取插件市场插件。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '128636',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse7RUWJD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-0adf3ad751284cc69fcf9669fba*****',
+ ],
+ ],
+ [
+ 'name' => 'Category',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '插件类型:'."\n"
+ ."\n"
+ .'- 自定义:0'."\n"
+ ."\n"
+ .'- 认证权限:1'."\n"
+ ."\n"
+ .'- 安全防护:2'."\n"
+ ."\n"
+ .'- 传输协议:3'."\n"
+ ."\n"
+ .'- 流量管控:4'."\n"
+ ."\n"
+ .'- 流量观测:5',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'EnableOnly',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否已启用。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '插件名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key-auth',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'zh:中文'."\n"
+ .'en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '03A3E2F4-6804-5663-9D5D-2EC47A1*****'."\n",
+ ],
+ 'Success' => [
+ 'description' => '是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'Code。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => '500',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP STATUS编码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '接口信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'message',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '插件ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '创建人ID。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'Category' => [
+ 'description' => '插件类型:'."\n"
+ ."\n"
+ .'自定义:0'."\n"
+ ."\n"
+ .'认证权限:1'."\n"
+ ."\n"
+ .'安全防护:2'."\n"
+ ."\n"
+ .'传输协议:3'."\n"
+ ."\n"
+ .'流量管控:4'."\n"
+ ."\n"
+ .'流量观测:5',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Name' => [
+ 'description' => '插件名称。',
+ 'type' => 'string',
+ 'example' => 'key-auth',
+ ],
+ 'Version' => [
+ 'description' => '插件版本。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Summary' => [
+ 'description' => '插件概要。',
+ 'type' => 'string',
+ 'example' => '这是一个插件',
+ ],
+ 'SummaryEn' => [
+ 'type' => 'string',
+ ],
+ 'Phase' => [
+ 'description' => '插件执行阶段:'."\n"
+ ."\n"
+ .'- 默认阶段:0'."\n"
+ ."\n"
+ .'- 认证阶段:1'."\n"
+ ."\n"
+ .'- 鉴权阶段:2'."\n"
+ ."\n"
+ .'- 统计阶段:3',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Priority' => [
+ 'description' => '插件执行优先级。数值越大,优先级越高。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ConfigCheck' => [
+ 'description' => '配置校验。',
+ 'type' => 'string',
+ 'example' => '# 配置必须字段的校验,如下例所示,要求插件配置必须存在 "name"、"age"、“friends” 字段'."\n"
+ .'name: John'."\n"
+ .'age: 18'."\n"
+ .'friends:'."\n"
+ .'- David'."\n"
+ .'- Anne'."\n",
+ ],
+ 'WasmLang' => [
+ 'description' => 'Wasm实现语言:'."\n"
+ ."\n"
+ .'- C++:0'."\n"
+ ."\n"
+ .'- TinyGo:1'."\n"
+ ."\n"
+ .'- Rust:2'."\n"
+ ."\n"
+ .'- AssemblyScript:3'."\n"
+ ."\n"
+ .'- Zig:4',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'PublishState' => [
+ 'description' => '发布状态:'."\n"
+ .'- 0:成功'."\n"
+ .'- 1:发布中'."\n"
+ .'- 2:发布失败',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'WasmFile' => [
+ 'description' => 'Wasm插件OSS。',
+ 'type' => 'string',
+ 'example' => 'https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/cfg/import/1917515******/gw-0adf3ad751284cc69fcf9669fba*****/2022/11/02/4d390496-2c17-4b42-a479-f9068ba****/16673573***5.wasm',
+ ],
+ 'Status' => [
+ 'description' => '启用状态。'."\n"
+ ."\n"
+ .'- 未启用:0'."\n"
+ ."\n"
+ .'- 启用:1',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Mode' => [
+ 'description' => '插件语言:'."\n"
+ ."\n"
+ .'- 0:WASM插件'."\n"
+ .'- 2:LUA插件',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'MaxVersion' => [
+ 'description' => '最新版本。',
+ 'type' => 'string',
+ 'example' => '1.0.0',
+ ],
+ 'NewVersionPublishingFlag' => [
+ 'description' => '最新版本是否正在发布中。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"03A3E2F4-6804-5663-9D5D-2EC47A1*****\\\\n\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"500\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"message\\",\\n \\"Data\\": [\\n {\\n \\"Id\\": 1,\\n \\"PrimaryUser\\": \\"123\\",\\n \\"Category\\": 0,\\n \\"Name\\": \\"key-auth\\",\\n \\"Version\\": \\"v1\\",\\n \\"Summary\\": \\"这是一个插件\\",\\n \\"SummaryEn\\": \\"\\",\\n \\"Phase\\": 1,\\n \\"Priority\\": 1,\\n \\"ConfigCheck\\": \\"# 配置必须字段的校验,如下例所示,要求插件配置必须存在 \\\\\\"name\\\\\\"、\\\\\\"age\\\\\\"、“friends” 字段\\\\nname: John\\\\nage: 18\\\\nfriends:\\\\n- David\\\\n- Anne\\\\n\\",\\n \\"WasmLang\\": 0,\\n \\"PublishState\\": 1,\\n \\"WasmFile\\": \\"https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/cfg/import/1917515******/gw-0adf3ad751284cc69fcf9669fba*****/2022/11/02/4d390496-2c17-4b42-a479-f9068ba****/16673573***5.wasm\\",\\n \\"Status\\": \\"1\\",\\n \\"Mode\\": 0,\\n \\"MaxVersion\\": \\"1.0.0\\",\\n \\"NewVersionPublishingFlag\\": false\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取插件列表',
+ ],
+ 'GetPluginConfig' => [
+ 'summary' => '获取插件配置。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '128638',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKZMVG1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关UniqueId。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-ubuwqygbq4783gqb2y3f87q****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'PluginId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关插件ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'zh:中文'."\n"
+ .'en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<GatewayPluginConfigDetail>',
+ 'description' => 'RestResult<GatewayPluginConfigDetail>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '03A3E2F4-6804-5663-9D5D-2EC47A1*****',
+ ],
+ 'Success' => [
+ 'description' => '是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'Code。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => '500',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP STATUS编码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '接口信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误编码。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息。',
+ 'type' => 'string',
+ 'example' => 'message',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '插件ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '创建人ID。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'Type' => [
+ 'description' => '插件类型:'."\n"
+ .'- 0:http filter'."\n"
+ .'- 1:network filte',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'enumValueTitles' => [],
+ 'example' => '0',
+ ],
+ 'Category' => [
+ 'description' => '插件目录。'."\n"
+ ."\n"
+ .'自定义:0'."\n"
+ ."\n"
+ .'认证权限:1'."\n"
+ ."\n"
+ .'安全防护:2'."\n"
+ ."\n"
+ .'传输协议:3'."\n"
+ ."\n"
+ .'流量管控:4'."\n"
+ ."\n"
+ .'流量观测:5',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Name' => [
+ 'description' => '插件名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'Version' => [
+ 'description' => '插件版本。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Summary' => [
+ 'description' => '插件概要。',
+ 'type' => 'string',
+ 'example' => '这是一个插件。',
+ ],
+ 'SummaryEn' => [
+ 'type' => 'string',
+ ],
+ 'Readme' => [
+ 'description' => 'README描述。',
+ 'type' => 'string',
+ 'example' => 'read me',
+ ],
+ 'ReadmeEn' => [
+ 'description' => '英文README描述。',
+ 'type' => 'string',
+ 'example' => 'read me',
+ ],
+ 'ConfigExample' => [
+ 'title' => '插件配置样例',
+ 'description' => '插件配置样例',
+ 'type' => 'string',
+ ],
+ 'Phase' => [
+ 'description' => '插件执行阶段。'."\n"
+ ."\n"
+ .'默认阶段:0'."\n"
+ ."\n"
+ .'认证阶段:1'."\n"
+ ."\n"
+ .'鉴权阶段:2'."\n"
+ ."\n"
+ .'统计阶段:3',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Priority' => [
+ 'description' => '插件执行优先级。数值越大,优先级越高。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ConfigCheck' => [
+ 'description' => '配置校验。',
+ 'type' => 'string',
+ 'example' => '# 配置必须字段的校验,如下例所示,要求插件配置必须存在 "name"、"age"、“friends” 字段'."\n"
+ .'name: John'."\n"
+ .'age: 18'."\n"
+ .'friends:'."\n"
+ .'- David'."\n"
+ .'- Anne',
+ ],
+ 'Mode' => [
+ 'description' => '模式。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'WasmLang' => [
+ 'description' => 'wasm实现语言。'."\n"
+ ."\n"
+ .'C++:0'."\n"
+ ."\n"
+ .'TinyGo:1'."\n"
+ ."\n"
+ .'Rust:2'."\n"
+ ."\n"
+ .'AssemblyScript:3'."\n"
+ ."\n"
+ .'Zig:4',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ImageName' => [
+ 'description' => '镜像名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'PublishState' => [
+ 'description' => '发布状态。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Status' => [
+ 'description' => '启用状态。'."\n"
+ ."\n"
+ .'未启用:0'."\n"
+ ."\n"
+ .'启用:1',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'GatewayConfigList' => [
+ 'title' => '网关插件配置规则列表。规则排列顺序为路由级规则、域名级规则、实例级规则',
+ 'description' => '网关插件配置列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '插件配置ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关UniqueId。',
+ 'type' => 'string',
+ 'example' => 'gw-ubuwqygbq4783gqb2y3f87q****',
+ ],
+ 'PluginId' => [
+ 'description' => '网关插件ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Config' => [
+ 'description' => '插件配置。',
+ 'type' => 'string',
+ 'example' => '# 配置必须字段的校验,如下例所示,要求插件配置必须存在 "name"、"age"、“friends” 字段'."\n"
+ .'name: John'."\n"
+ .'age: 18'."\n"
+ .'friends:'."\n"
+ .'- David'."\n"
+ .'- Anne',
+ ],
+ 'ConfigLevel' => [
+ 'description' => '插件应用范围。'."\n"
+ ."\n"
+ .'全局:0'."\n"
+ ."\n"
+ .'域名:1'."\n"
+ ."\n"
+ .'路由:2',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResourceList' => [
+ 'title' => '域名/路由资源列表(根据ConfigLevel区分)',
+ 'description' => '域名/路由资源列表(根据ConfigLevel区分)',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'Name' => [
+ 'title' => '资源名称(域名/路由名)',
+ 'description' => '资源名称(域名/路由名)',
+ 'type' => 'string',
+ 'example' => 'test-route',
+ ],
+ ],
+ ],
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '1667309705000',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '1667309705000',
+ ],
+ ],
+ ],
+ ],
+ 'RouteConfigStartIndex' => [
+ 'title' => '路由级规则在GatewayConfigList中的起始下标。若不存在路由级规则,值为-1',
+ 'description' => '路由级规则在GatewayConfigList中的起始下标。若不存在路由级规则,值为-1',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'DomainConfigStartIndex' => [
+ 'title' => '域名级规则在GatewayConfigList中的起始下标。若不存在域名级规则,值为-1',
+ 'description' => '域名级规则在GatewayConfigList中的起始下标。若不存在域名级规则,值为-1',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'GatewayConfigStartIndex' => [
+ 'title' => '实例规则在GatewayConfigList中的下标。若不存在实例级规则,值为-1',
+ 'description' => '实例规则在GatewayConfigList中的下标。若不存在实例级规则,值为-1',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '7',
+ ],
+ 'VersionJson' => [
+ 'description' => '网关插件版本信息列表。',
+ 'type' => 'string',
+ 'example' => '[{"id":1, "version": "1.0.0"}]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"03A3E2F4-6804-5663-9D5D-2EC47A1*****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"500\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"message\\",\\n \\"Data\\": {\\n \\"Id\\": 1,\\n \\"PrimaryUser\\": \\"123\\",\\n \\"Type\\": 0,\\n \\"Category\\": 0,\\n \\"Name\\": \\"name\\",\\n \\"Version\\": \\"v1\\",\\n \\"Summary\\": \\"这是一个插件。\\",\\n \\"SummaryEn\\": \\"\\",\\n \\"Readme\\": \\"read me\\",\\n \\"ReadmeEn\\": \\"read me\\",\\n \\"ConfigExample\\": \\"\\",\\n \\"Phase\\": 0,\\n \\"Priority\\": 1,\\n \\"ConfigCheck\\": \\"# 配置必须字段的校验,如下例所示,要求插件配置必须存在 \\\\\\"name\\\\\\"、\\\\\\"age\\\\\\"、“friends” 字段\\\\nname: John\\\\nage: 18\\\\nfriends:\\\\n- David\\\\n- Anne\\",\\n \\"Mode\\": 0,\\n \\"WasmLang\\": 0,\\n \\"ImageName\\": \\"name\\",\\n \\"PublishState\\": 1,\\n \\"Status\\": \\"1\\",\\n \\"GatewayConfigList\\": [\\n {\\n \\"Id\\": 1,\\n \\"GatewayId\\": 1,\\n \\"GatewayUniqueId\\": \\"gw-ubuwqygbq4783gqb2y3f87q****\\",\\n \\"PluginId\\": 1,\\n \\"Enable\\": true,\\n \\"Config\\": \\"# 配置必须字段的校验,如下例所示,要求插件配置必须存在 \\\\\\"name\\\\\\"、\\\\\\"age\\\\\\"、“friends” 字段\\\\nname: John\\\\nage: 18\\\\nfriends:\\\\n- David\\\\n- Anne\\",\\n \\"ConfigLevel\\": 0,\\n \\"ResourceList\\": [\\n {\\n \\"Id\\": 0,\\n \\"Name\\": \\"test-route\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"1667309705000\\",\\n \\"GmtModified\\": \\"1667309705000\\"\\n }\\n ],\\n \\"RouteConfigStartIndex\\": 0,\\n \\"DomainConfigStartIndex\\": 5,\\n \\"GatewayConfigStartIndex\\": 7,\\n \\"VersionJson\\": \\"[{\\\\\\"id\\\\\\":1, \\\\\\"version\\\\\\": \\\\\\"1.0.0\\\\\\"}]\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取插件配置',
+ ],
+ 'CreatePluginConfig' => [
+ 'summary' => '创建插件配置。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '219339',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKZMVG1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关唯一ID',
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-ubuwqygbq4783gqb2y3f87q****',
+ ],
+ ],
+ [
+ 'name' => 'PluginId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关插件ID',
+ 'description' => '网关插件ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'ConfigLevel',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '插件应用范围。'."\n"
+ ."\n"
+ .'- 全局:0'."\n"
+ .'- 路由:1'."\n"
+ .'- 域名:2',
+ 'description' => '插件应用范围。'."\n"
+ ."\n"
+ .'- 全局:0'."\n"
+ .'- 路由:1'."\n"
+ .'- 域名:2',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Config',
+ 'in' => 'formData',
+ 'schema' => [
+ 'title' => '插件配置。Wasm 插件配置内容是 YAML 格式,Lua 插件配置内容是 Lua 代码。',
+ 'description' => '插件配置。Wasm 插件配置内容是 YAML 格式,Lua 插件配置内容是 Lua 代码。',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启。',
+ 'description' => '是否开启。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ResourceIdList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '域名ID/路由ID列表(根据ConfigLevel区分)',
+ 'description' => '域名ID/路由ID列表(根据ConfigLevel区分)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'ID值',
+ 'description' => 'ID值',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Long>',
+ 'description' => 'RestResult<Long>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '03A3E2F4-6804-5663-9D5D-2EC47A1*****',
+ ],
+ 'PluginConfigID' => [
+ 'title' => '插件配置ID',
+ 'description' => '插件配置ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"03A3E2F4-6804-5663-9D5D-2EC47A1*****\\",\\n \\"PluginConfigID\\": 10\\n}","type":"json"}]',
+ 'title' => '创建插件配置',
+ ],
+ 'UpdatePluginConfig' => [
+ 'summary' => '更新插件配置。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '128635',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKZMVG1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '插件配置ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关UniqueId。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-ubuwqygbq4783gqb2y3f87q****',
+ ],
+ ],
+ [
+ 'name' => 'PluginId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关插件ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Config',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ConfigLevel',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '插件应用范围。'."\n"
+ ."\n"
+ .'- 全局:0'."\n"
+ ."\n"
+ .'- 路由:1'."\n"
+ ."\n"
+ .'- 域名:2',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ResourceIdList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '域名ID/路由ID列表(根据ConfigLevel区分)',
+ 'description' => '域名ID/路由ID列表(根据ConfigLevel区分)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'ID值',
+ 'description' => 'ID值',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GmtCreate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '1667309705000',
+ ],
+ ],
+ [
+ 'name' => 'GmtModified',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '1667309705000',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'zh:中文'."\n"
+ .'en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Long>',
+ 'description' => 'RestResult<Long>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '03A3E2F4-6804-5663-9D5D-2EC47A1*****',
+ ],
+ 'Success' => [
+ 'description' => '是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'Code。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => '500',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP STATUS编码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '接口信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'DynamicMessage' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'Data' => [
+ 'description' => 'id值。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"03A3E2F4-6804-5663-9D5D-2EC47A1*****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"500\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"DynamicMessage\\": \\"code\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
+ 'title' => '更新插件配置',
+ ],
+ 'DeletePluginConfig' => [
+ 'summary' => '删除插件配置。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '217729',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseKZMVG1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关唯一ID',
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'PluginConfigId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '插件配置ID',
+ 'description' => '插件配置ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '200',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Void>',
+ 'description' => 'RestResult<Void>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\"\\n}","type":"json"}]',
+ 'title' => '删除插件配置',
+ ],
+ 'AddSSLCert' => [
+ 'summary' => '网关域名关联证书,证书可托管在云盾服务。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '35701',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseM77BTJ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DomainId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'CertIdentifier',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '5213641-cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c70622ff52fe49beb29bea9a6f52****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'E1CC74F0-5BDE-5220-A031-5CA622D80723',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => ' '."\n"
+ .'返回结果码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据结构,关联是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E1CC74F0-5BDE-5220-A031-5CA622D80723\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '添加网关域名关联证书',
+ ],
+ 'AddGatewayDomain' => [
+ 'summary' => '添加网关关联域名。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '35639',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseM77BTJ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'MustHttps',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启HTTPS。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'CertIdentifier',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '6828169-cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test.com',
+ ],
+ ],
+ [
+ 'name' => 'Protocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '协议类型:'."\n"
+ .'- `HTTP`'."\n"
+ .'- `HTTPS`',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'HTTP',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-86575c0bc9f04ecfbacb92b8e392****',
+ ],
+ ],
+ [
+ 'name' => 'Http2',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启`Http2`:'."\n"
+ .'- `open`:开启`Http2`。'."\n"
+ .'- `close`:关闭`Http2`。'."\n"
+ .'- `globalConfig`:使用全局配置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'close',
+ ],
+ ],
+ [
+ 'name' => 'TlsMax',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Tls最大版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'TLS 1.3',
+ ],
+ ],
+ [
+ 'name' => 'TlsMin',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Tls最小版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'TLS 1.0',
+ ],
+ ],
+ [
+ 'name' => 'TlsCipherSuitesConfigJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'TLS加密套件配置',
+ 'description' => 'TLS加密套件配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigType' => [
+ 'title' => '加密套件配置类型',
+ 'description' => '加密套件配置类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'enum' => [
+ 'DEFAULT',
+ 'CUSTOM',
+ ],
+ ],
+ 'TlsCipherSuites' => [
+ 'title' => '加密套件名称列表',
+ 'description' => '加密套件名称列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '加密套件名称',
+ 'description' => '加密套件名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AES256-SHA',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '16BA802F-B848-55DF-9F57-CD71B7272D1F',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"16BA802F-B848-55DF-9F57-CD71B7272D1F\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 100\\n}","type":"json"}]',
+ 'title' => '添加网关关联域名',
+ ],
+ 'DeleteGatewayDomain' => [
+ 'summary' => '删除网关关联域名。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '35642',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseM77BTJ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '109',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-90392d768a3847a7b804c505254d****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '39016EAC-6EDB-52FE-AE20-4B013DF236FF',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'CONTACTINFO',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '253',
+ ],
+ 'Protocol' => [
+ 'description' => '协议。',
+ 'type' => 'string',
+ 'example' => 'HTTP',
+ ],
+ 'MustHttps' => [
+ 'description' => '是否允许HTTP探测。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'CertIdentifier' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'example' => '243',
+ ],
+ 'GmtCreate' => [
+ 'description' => '域名创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"39016EAC-6EDB-52FE-AE20-4B013DF236FF\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 2,\\n \\"Name\\": \\"CONTACTINFO\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"GatewayId\\": 253,\\n \\"Protocol\\": \\"HTTP\\",\\n \\"MustHttps\\": true,\\n \\"CertIdentifier\\": \\"243\\",\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除网关关联域名',
+ ],
+ 'UpdateSSLCert' => [
+ 'summary' => '更换证书。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '35702',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseM77BTJ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DomainId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '210',
+ ],
+ ],
+ [
+ 'name' => 'CertIdentifier',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '5951436-cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-2a99625886d54722be94d92e9a69****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'CA689BED-08F3-54C2-A206-A0924E2ACA0A',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '是否更新成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CA689BED-08F3-54C2-A206-A0924E2ACA0A\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '更换证书',
+ ],
+ 'UpdateGatewayDomain' => [
+ 'summary' => '修改关联域名信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '35640',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseM77BTJ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Protocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '协议类型。'."\n"
+ ."\n"
+ .'- HTTPS'."\n"
+ .'- HTTP',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HTTPS',
+ ],
+ ],
+ [
+ 'name' => 'MustHttps',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '强制HTTPS',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'CertIdentifier',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '6209108-cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '需要更新的域名id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '94',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-86575c0bc9f04ecfbacb92b8e392****',
+ ],
+ ],
+ [
+ 'name' => 'Http2',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启`Http2`。'."\n"
+ .'- `open`:开启`Http2`。'."\n"
+ .'- `close`:关闭`Http2`。'."\n"
+ .'- `globalConfig`:使用全局配置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'close',
+ ],
+ ],
+ [
+ 'name' => 'TlsMax',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Tls最大版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'TLS 1.3',
+ ],
+ ],
+ [
+ 'name' => 'TlsMin',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Tls最小版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'TLS 1.0',
+ ],
+ ],
+ [
+ 'name' => 'TlsCipherSuitesConfigJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'TLS加密套件配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigType' => [
+ 'description' => '加密套件配置类型选择。'."\n"
+ ."\n"
+ .'- DEFAULT'."\n"
+ ."\n"
+ .'- CUSTOM',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT',
+ ],
+ 'TlsCipherSuites' => [
+ 'description' => '加密套件名称列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '加密套件名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ECDHE-RSA-AES128-GCM-SHA256',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '6F6C6DE4-DB33-5791-B210-ED2E6FEFFE6F',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '403',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '94',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6F6C6DE4-DB33-5791-B210-ED2E6FEFFE6F\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 403,\\n \\"Success\\": true,\\n \\"Data\\": 94\\n}","type":"json"}]',
+ 'title' => '更新关联域名信息',
+ ],
+ 'ListSSLCert' => [
+ 'summary' => '获取网关证书列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-3f97e2989c344f35ab3fd62b19f1****',
+ ],
+ ],
+ [
+ 'name' => 'CertName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '按证书名称模糊搜索',
+ 'description' => '按证书名称模糊搜索',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'certabc',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'CAA9A229-141D-5FBA-AC5C-516C02026A11',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '状态码,200表示返回成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CertIdentifier' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ 'CertName' => [
+ 'description' => '证书名称。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'CommonName' => [
+ 'description' => '绑定域名。',
+ 'type' => 'string',
+ 'example' => '*.test.com',
+ ],
+ 'Sans' => [
+ 'description' => 'SSL证书。',
+ 'type' => 'string',
+ 'example' => 'SSL',
+ ],
+ 'BeforeDate' => [
+ 'description' => '证书生效时间(Unix毫秒时间戳)。',
+ 'type' => 'string',
+ 'example' => '1694503184803',
+ ],
+ 'AfterDate' => [
+ 'description' => '证书到期时间(Unix毫秒时间戳)。',
+ 'type' => 'string',
+ 'example' => '1726039184803',
+ ],
+ 'Algorithm' => [
+ 'description' => '算法。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Issuer' => [
+ 'description' => '颁发者。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GmtBefore' => [
+ 'description' => '证书生效时间(GMT时间戳)。',
+ 'type' => 'string',
+ 'example' => '2023-09-12T07:19:44.803+0000',
+ ],
+ 'GmtAfter' => [
+ 'description' => '证书到期时间(GMT时间戳)。',
+ 'type' => 'string',
+ 'example' => '2024-09-11T07:19:44.803+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CAA9A229-141D-5FBA-AC5C-516C02026A11\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"CertIdentifier\\": \\"1234\\",\\n \\"CertName\\": \\"test.com\\",\\n \\"CommonName\\": \\"*.test.com\\",\\n \\"Sans\\": \\"SSL\\",\\n \\"BeforeDate\\": \\"1694503184803\\",\\n \\"AfterDate\\": \\"1726039184803\\",\\n \\"Algorithm\\": \\"test\\",\\n \\"Issuer\\": \\"test\\",\\n \\"GmtBefore\\": \\"2023-09-12T07:19:44.803+0000\\",\\n \\"GmtAfter\\": \\"2024-09-11T07:19:44.803+0000\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关证书列表',
+ ],
+ 'ListGatewayDomain' => [
+ 'summary' => '查询网关已关联域名列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '35641',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseM77BTJ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491****',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'DomainName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '按域名模糊搜索',
+ 'description' => '按域名模糊搜索',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example.com',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '3F5D8E93-CA66-57F1-8BCF-A223E11B6B91',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '243',
+ ],
+ 'Name' => [
+ 'description' => '域名。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'Protocol' => [
+ 'description' => '协议。',
+ 'type' => 'string',
+ 'example' => 'HTTP',
+ ],
+ 'MustHttps' => [
+ 'description' => '是否强制HTTPS。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'CertIdentifier' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'example' => '3452-cn-hangzhou',
+ ],
+ 'CertBeforeDate' => [
+ 'description' => '证书到期时间(已废弃,请进入域名详情页查看)。',
+ 'type' => 'string',
+ 'example' => ' 2031-03-30 02:35:12',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'GmtCreate' => [
+ 'description' => '域名记录创建时间。',
+ 'type' => 'string',
+ 'example' => ' 2031-03-30 02:35:12',
+ ],
+ 'GmtModified' => [
+ 'description' => '域名记录更新时间。',
+ 'type' => 'string',
+ 'example' => ' 2031-03-30 02:35:12',
+ ],
+ 'Status' => [
+ 'description' => '域名状态。'."\n"
+ .'枚举值'."\n"
+ ."\n"
+ .'- 0未发布'."\n"
+ .'- 2发布中'."\n"
+ .'- 3已发布'."\n"
+ .'- 4编辑中'."\n"
+ .'- 5下线中'."\n"
+ .'- 6不可用',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'Type' => [
+ 'description' => '域名来源类型:'."\n"
+ .'- Op:控制台创建'."\n"
+ .'- Ingress:MSE Ingress创建',
+ 'type' => 'string',
+ 'example' => 'Op',
+ ],
+ 'Comment' => [
+ 'description' => '路由备注(ingress)',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态',
+ 'type' => 'string',
+ 'example' => 'Error',
+ ],
+ ],
+ ],
+ 'Http2' => [
+ 'description' => '是否开启`Http2`。'."\n"
+ .'- `open`:开启`Http2`。'."\n"
+ .'- `close`:关闭`Http2`。'."\n"
+ .'- `globalConfig`:使用全局配置。',
+ 'type' => 'string',
+ 'example' => 'close',
+ ],
+ 'TlsMax' => [
+ 'description' => 'Tls最大版本。',
+ 'type' => 'string',
+ 'example' => 'TLS 1.3',
+ ],
+ 'TlsMin' => [
+ 'description' => 'Tls最小版本.',
+ 'type' => 'string',
+ 'example' => 'TLS 1.0',
+ ],
+ 'IsManaged' => [
+ 'title' => '是否为托管域名',
+ 'description' => '是否为托管域名',
+ 'type' => 'boolean',
+ ],
+ 'TlsCipherSuitesConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigType' => [
+ 'type' => 'string',
+ ],
+ 'TlsCipherSuites' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3F5D8E93-CA66-57F1-8BCF-A223E11B6B91\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Id\\": 243,\\n \\"Name\\": \\"test.com\\",\\n \\"Protocol\\": \\"HTTP\\",\\n \\"MustHttps\\": true,\\n \\"CertIdentifier\\": \\"3452-cn-hangzhou\\",\\n \\"CertBeforeDate\\": \\" 2031-03-30 02:35:12\\",\\n \\"GatewayId\\": 12,\\n \\"GmtCreate\\": \\" 2031-03-30 02:35:12\\",\\n \\"GmtModified\\": \\" 2031-03-30 02:35:12\\",\\n \\"Status\\": 3,\\n \\"Type\\": \\"Op\\",\\n \\"Comment\\": {\\n \\"Status\\": \\"Error\\"\\n },\\n \\"Http2\\": \\"close\\",\\n \\"TlsMax\\": \\"TLS 1.3\\",\\n \\"TlsMin\\": \\"TLS 1.0\\",\\n \\"IsManaged\\": true,\\n \\"TlsCipherSuitesConfig\\": {\\n \\"ConfigType\\": \\"\\",\\n \\"TlsCipherSuites\\": [\\n \\"\\"\\n ]\\n }\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关已关联域名列表',
+ ],
+ 'GetGatewayDomainDetail' => [
+ 'summary' => '查询网关域名详情。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '35699',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseM77BTJ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '29',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-6d0b23e1d39e41658a968d79a635****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '88B83302-CD88-54D3-8DF2-208BFDC73F0D',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '403',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597cd4a9****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Protocol' => [
+ 'description' => '网关协议。',
+ 'type' => 'string',
+ 'example' => 'HTTP',
+ ],
+ 'MustHttps' => [
+ 'description' => '强制HTTPS',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'CertIdentifier' => [
+ 'description' => '证书标识。',
+ 'type' => 'string',
+ 'example' => '234-cn-hangzhou',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'CertName' => [
+ 'description' => '证书名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'CommonName' => [
+ 'description' => '公网域名。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'Sans' => [
+ 'description' => '扩展字段名称。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'BeforeDate' => [
+ 'description' => '证书签发时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2021-04-01 02:35:12',
+ ],
+ 'AfterDate' => [
+ 'description' => '证书过期时间。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2021-04-01 02:35:12',
+ ],
+ 'Algorithm' => [
+ 'description' => '算法。',
+ 'type' => 'string',
+ 'example' => 'RSA',
+ ],
+ 'Issuer' => [
+ 'description' => '签发者。',
+ 'type' => 'string',
+ 'example' => 'Istio',
+ ],
+ 'GmtBefore' => [
+ 'description' => '证书签发时间(GMT)。',
+ 'type' => 'string',
+ 'example' => '2021-04-01 02:35:12',
+ ],
+ 'GmtAfter' => [
+ 'description' => '证书到期时间(GMT)。',
+ 'type' => 'string',
+ 'example' => '2021-04-01 02:35:12',
+ ],
+ 'Http2' => [
+ 'description' => '是否开启`Http2`。'."\n"
+ .'- `open`:开启`Http2`。'."\n"
+ .'- `close`:关闭`Http2`。'."\n"
+ .'- `globalConfig`:使用全局配置。',
+ 'type' => 'string',
+ 'example' => 'close',
+ ],
+ 'TlsMax' => [
+ 'description' => 'Tls最大版本。',
+ 'type' => 'string',
+ 'example' => 'TLS 1.3',
+ ],
+ 'TlsMin' => [
+ 'description' => 'Tls最小版本。',
+ 'type' => 'string',
+ 'example' => 'TLS 1.0',
+ ],
+ 'IsManaged' => [
+ 'title' => '是否为托管域名',
+ 'description' => '是否为托管域名',
+ 'type' => 'boolean',
+ ],
+ 'TlsCipherSuitesConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigType' => [
+ 'type' => 'string',
+ ],
+ 'TlsCipherSuites' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"88B83302-CD88-54D3-8DF2-208BFDC73F0D\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 403,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 12,\\n \\"Name\\": \\"test.com\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597cd4a9****\\",\\n \\"GatewayId\\": 1,\\n \\"Protocol\\": \\"HTTP\\",\\n \\"MustHttps\\": true,\\n \\"CertIdentifier\\": \\"234-cn-hangzhou\\",\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"CertName\\": \\"test\\",\\n \\"CommonName\\": \\"name\\",\\n \\"Sans\\": \\"test.com\\",\\n \\"BeforeDate\\": 0,\\n \\"AfterDate\\": 0,\\n \\"Algorithm\\": \\"RSA\\",\\n \\"Issuer\\": \\"Istio\\",\\n \\"GmtBefore\\": \\"2021-04-01 02:35:12\\",\\n \\"GmtAfter\\": \\"2021-04-01 02:35:12\\",\\n \\"Http2\\": \\"close\\",\\n \\"TlsMax\\": \\"TLS 1.3\\",\\n \\"TlsMin\\": \\"TLS 1.0\\",\\n \\"IsManaged\\": true,\\n \\"TlsCipherSuitesConfig\\": {\\n \\"ConfigType\\": \\"\\",\\n \\"TlsCipherSuites\\": [\\n \\"\\"\\n ]\\n }\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关域名详情',
+ ],
+ 'AddGateway' => [
+ 'summary' => '添加网关。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '24670',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYEACIS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关名称',
+ 'description' => '网关名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-ceshi',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域',
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Vpc',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '专有网络ID',
+ 'description' => '专有网络ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'vpc-bp15mncnrtm83uauxd1xb',
+ ],
+ ],
+ [
+ 'name' => 'ZoneInfo',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '可用区信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '可用区信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ZoneId' => [
+ 'description' => '可用区ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shenzhen-e',
+ ],
+ 'VSwitchId' => [
+ 'description' => '交换机ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-bp*****',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'VSwitchId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '主交换机ID',
+ 'description' => '主交换机ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-bp1q8th57frl5khj2li43',
+ ],
+ ],
+ [
+ 'name' => 'VSwitchId2',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '备交换机ID',
+ 'description' => '备交换机ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-wz9bu6o5vsvitt5mrxo6s',
+ ],
+ ],
+ [
+ 'name' => 'ChargeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '付费类型(购买传统实例时指定)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PREPAY' => '包年包月',
+ 'POSTPAY' => '按量付费',
+ ],
+ 'example' => 'POSTPAY',
+ 'enum' => [
+ 'PREPAY',
+ 'POSTPAY',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'MserVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关产品类型:'."\n"
+ .'- mse_pro:传统实例'."\n"
+ .'- mse_serverless:Serverless',
+ 'description' => '网关产品类型:'."\n"
+ .'- mse_pro:传统实例'."\n"
+ .'- mse_serverless:Serverless',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_pro',
+ 'default' => 'mse_pro',
+ 'enum' => [
+ 'mse_premium',
+ 'mse_pro',
+ 'mse_serverless',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'Spec',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '节点规格',
+ 'description' => '节点规格(购买传统实例时指定)。'."\n"
+ ."\n"
+ .'- MSE_GTW_16_32_200_c(16C32G)'."\n"
+ .'- MSE_GTW_2_4_200_c(2C4G)'."\n"
+ .'- MSE_GTW_4_8_200_c(4C8G)'."\n"
+ .'- MSE_GTW_8_16_200_c(8C16G)',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'MSE_GTW_16_32_200_c' => '16C32G',
+ 'MSE_GTW_2_4_200_c' => '2C4G',
+ 'MSE_GTW_4_8_200_c' => '4C8G',
+ 'MSE_GTW_8_16_200_c' => '8C16G',
+ ],
+ 'example' => 'MSE_GTW_2_4_200_c',
+ 'enum' => [
+ 'MSE_GTW_2_4_200_c',
+ 'MSE_GTW_4_8_200_c',
+ 'MSE_GTW_8_16_200_c',
+ 'MSE_GTW_16_32_200_c',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'Replica',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '节点数量',
+ 'description' => '节点数量(购买传统实例时指定)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'ManagedEntryNetworkType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关入口类型(普通实例专业版适用)',
+ 'description' => '网关入口类型(普通实例专业版适用)'."\n"
+ ."\n"
+ .'- pubnet:公网'."\n"
+ .'- privatenet:私网'."\n"
+ .'- privatepubnet:公网+私网',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'pubnet',
+ 'enum' => [
+ 'pubnet',
+ 'privatenet',
+ 'privatepubnet',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'NlbNetworkType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '代购NLB的网络类型:'."\n"
+ .'- pubnet:公网'."\n"
+ .'- privatenet:私网'."\n"
+ .'- privatepubnet:公网+私网',
+ 'description' => '代购的NLB网络类型:'."\n"
+ .'- pubnet:公网'."\n"
+ .'- privatenet:私网'."\n"
+ .'- privatepubnet:公网+私网'."\n"
+ ."\n"
+ .'> 传统实例:创建时只能在NLB、按LCU计费的CLB、按规格的CLB中选择一种代购'."\n"
+ ."\n"
+ .'> Serverless实例:创建时只能在NLB、按LCU计费的CLB中选择一种代购',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'pubnet',
+ 'enum' => [
+ 'pubnet',
+ 'privatenet',
+ 'privatepubnet',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'ClbNetworkType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '代购按LCU计费的CLB的网络类型:'."\n"
+ .'- pubnet:公网'."\n"
+ .'- privatenet:私网'."\n"
+ .'- privatepubnet:公网+私网',
+ 'description' => '代购按LCU计费的CLB的网络类型:'."\n"
+ .'- pubnet:公网'."\n"
+ .'- privatenet:私网'."\n"
+ .'- privatepubnet:公网+私网'."\n"
+ ."\n"
+ .'> 传统实例:创建时只能在NLB、按LCU计费的CLB、按规格的CLB中选择一种代购'."\n"
+ ."\n"
+ .'> Serverless实例:创建时只能在NLB、按LCU计费的CLB中选择一种代购',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'pubnet',
+ 'enum' => [
+ 'pubnet',
+ 'privatenet',
+ 'privatepubnet',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'SlbSpec',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '内网SLB规格',
+ 'description' => '私网SLB规格(适用于传统实例)。'."\n"
+ ."\n"
+ .'- 简约型 (slb.s1.small)'."\n"
+ .'- 标准型1 (slb.s2.small)'."\n"
+ .'- 标准型I(slb.s2.medium)'."\n"
+ .'- 高阶型1 (slb.s3.small)'."\n"
+ .'- 高阶型I(slb.s3.medium)'."\n"
+ .'- 超强型I (slb.s3.large)'."\n"
+ ."\n"
+ .'> 传统实例:创建时只能在NLB、按LCU计费的CLB、按规格的CLB中选择一种代购'."\n"
+ ."\n"
+ .'> Serverless实例:创建时只能在NLB、按LCU计费的CLB中选择一种代购',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'slb.s2.small',
+ ],
+ ],
+ [
+ 'name' => 'InternetSlbSpec',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '外网SLB规格',
+ 'description' => '公网SLB规格(适用于传统实例)。'."\n"
+ ."\n"
+ .'- 简约型 (slb.s1.small)'."\n"
+ .'- 标准型1 (slb.s2.smal)'."\n"
+ .'- 标准型I(slb.s2.medium)'."\n"
+ .'- 高阶型1 (slb.s3.small)'."\n"
+ .'- 高阶型I(slb.s3.medium)'."\n"
+ .'- 超强型I (slb.s3.large)'."\n"
+ ."\n"
+ .'> 传统实例:创建时只能在NLB、按LCU计费的CLB、按规格的CLB中选择一种代购'."\n"
+ ."\n"
+ .'> Serverless实例:创建时只能在NLB、按LCU计费的CLB中选择一种代购',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'slb.s2.small',
+ ],
+ ],
+ [
+ 'name' => 'EnterpriseSecurityGroup',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否企业安全组类型',
+ 'description' => '是否企业安全组类型。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'EnableHardwareAcceleration',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启硬件加速',
+ 'description' => '是否开启硬件加速。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'EnableXtrace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启xtrace',
+ 'description' => '是否启用链路追踪。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'XtraceRatio',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'xtrace采样率,取值[0,100]',
+ 'description' => '链路追踪采样率,取值[1,100]。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'EnableSls',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'title' => '是否开启SLS日志投递',
+ 'description' => '是否启用SLS日志投递。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'title' => '标签列表,最多包含20个子项',
+ 'description' => '网关标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => '标签键',
+ 'description' => '标签Key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key',
+ ],
+ 'Value' => [
+ 'title' => '标签值',
+ 'description' => '标签Value。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfm34x43l*****',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '扩展字段。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2F46B9E7-67EF-5C8A-BA52-D38D5B32AF2C',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14cebbrvec4a5****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2F46B9E7-67EF-5C8A-BA52-D38D5B32AF2C\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14cebbrvec4a5****\\"\\n }\\n}","type":"json"}]',
+ 'title' => '添加网关',
+ ],
+ 'ListGatewayZone' => [
+ 'summary' => '获取网关可用区列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '174557',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYEACIS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '用于和Success同步,当Success为true时,Code为200',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NO_PERMISSION',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'DynamicCode' => [
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的%s。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '可用区列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '可用区数据结构',
+ 'type' => 'object',
+ 'properties' => [
+ 'ZoneId' => [
+ 'description' => '可用区ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou-i',
+ ],
+ 'LocalName' => [
+ 'description' => '可用区本地名称。',
+ 'type' => 'string',
+ 'example' => 'I',
+ ],
+ 'SupportQat' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"NO_PERMISSION\\",\\n \\"HttpStatusCode\\": 200,\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": [\\n {\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"LocalName\\": \\"I\\",\\n \\"SupportQat\\": true\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取网关可用区列表',
+ ],
+ 'AddGatewaySlb' => [
+ 'summary' => '关联SLB。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '71795',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseMNDRFM',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SlbId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'SLB ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'lb-bp18t6jjskwxh6wy1****',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '类型。'."\n"
+ ."\n"
+ .'- PUB_NET: 公网。'."\n"
+ ."\n"
+ .'- PRIVATE_NET: 私网。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUB_NET',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-9cdcf8e4f58144059e73ff4c5ef9****',
+ ],
+ ],
+ [
+ 'name' => 'VServerGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'http虚拟服务组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '353',
+ ],
+ ],
+ [
+ 'name' => 'ServiceWeight',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务权重。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ ],
+ [
+ 'name' => 'HttpPort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP端口(虚拟服务组)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ ],
+ [
+ 'name' => 'HttpsPort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTPS端口(虚拟服务组)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '443',
+ ],
+ ],
+ [
+ 'name' => 'HttpsVServerGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'https虚拟服务组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '353',
+ ],
+ ],
+ [
+ 'name' => 'VServiceList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'SLB监听信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'VServerGroupId' => [
+ 'description' => '虚拟服务器组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rsp-bp1j**t0fyl**',
+ ],
+ 'VServerGroupName' => [
+ 'description' => ' 虚拟服务器组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'k8s/31**0/***/istio-system/clusterid',
+ ],
+ 'Port' => [
+ 'description' => '端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '443',
+ ],
+ 'Protocol' => [
+ 'description' => '协议类型:'."\n"
+ .'- HTTP'."\n"
+ .'- HTTPS',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HTTPS',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'string',
+ 'example' => 'lb-uf6dqr4ondqi5w3df7hdf',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"lb-uf6dqr4ondqi5w3df7hdf\\"\\n}","type":"json"}]',
+ 'title' => '关联网关SLB',
+ ],
+ 'AddSecurityGroupRule' => [
+ 'summary' => '添加网关安全组规则。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SecurityGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '安全组ID',
+ 'description' => '安全组ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'sg-wz929kxhcdpw9z8idqd8',
+ ],
+ ],
+ [
+ 'name' => 'PortRange',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '端口范围',
+ 'description' => '端口范围',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1/65535',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关ID',
+ 'description' => '网关ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491****',
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'description',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => 'D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'string',
+ 'example' => '12',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"12\\"\\n}","type":"json"}]',
+ 'title' => '添加网关安全组规则',
+ ],
+ 'DeleteGateway' => [
+ 'summary' => '删除指定网关。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '24808',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYEACIS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DeleteSlb',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '删除网关时是否同时删除代购的SLB。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-0fe488252dc44d55a9dd57875193a1d7',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2FFEA345-BE30-5FE0-8885-42E2DEFD5FE6',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因,例如:TaskId not found。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。状态码为200表示成功,其余取值表示失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '主键ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'Name' => [
+ 'description' => '网关名称。',
+ 'type' => 'string',
+ 'example' => 'mse-bc1a29b0-reg-center-0-1',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一ID,系统自动生成的唯一标示符。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '用户信息。',
+ 'type' => 'string',
+ 'example' => '1231254',
+ ],
+ 'Status' => [
+ 'description' => '网关状态:'."\n"
+ .'0: 创建中'."\n"
+ .'1: 创建失败'."\n"
+ .'2: 运行中'."\n"
+ .'3: 变更中'."\n"
+ .'4: 缩容中'."\n"
+ .'6: 扩容中'."\n"
+ .'8: 删除中'."\n"
+ .'10: 重启中'."\n"
+ .'11: 重建中'."\n"
+ .'12: 升级中'."\n"
+ .'13: 升级失败',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Vpc' => [
+ 'description' => '网关归属的VpcId',
+ 'type' => 'string',
+ 'example' => 'vpc-bp1328cm01m6uel42b5zb',
+ ],
+ 'Vswitch' => [
+ 'description' => '交换机ID。',
+ 'type' => 'string',
+ 'example' => 'vsw-bp18zeqxx6mpuq843z4n5',
+ ],
+ 'SecurityGroup' => [
+ 'description' => '安全组。',
+ 'type' => 'string',
+ 'example' => 'sg-bp11ufzqn6mmb8dtzz82',
+ ],
+ 'Spec' => [
+ 'description' => '网关规格。',
+ 'type' => 'string',
+ 'example' => 'MSE_GTW_16_32_200_c',
+ ],
+ 'Replica' => [
+ 'description' => '网关副本数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '最后一次更新网关实例的时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2FFEA345-BE30-5FE0-8885-42E2DEFD5FE6\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 12,\\n \\"Name\\": \\"mse-bc1a29b0-reg-center-0-1\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"PrimaryUser\\": \\"1231254\\",\\n \\"Status\\": 1,\\n \\"Vpc\\": \\"vpc-bp1328cm01m6uel42b5zb\\",\\n \\"Vswitch\\": \\"vsw-bp18zeqxx6mpuq843z4n5\\",\\n \\"SecurityGroup\\": \\"sg-bp11ufzqn6mmb8dtzz82\\",\\n \\"Spec\\": \\"MSE_GTW_16_32_200_c\\",\\n \\"Replica\\": 2,\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除网关信息',
+ ],
+ 'DeleteGatewaySlb' => [
+ 'summary' => '取消关联SLB。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '71802',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseMNDRFM',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '关联记录ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '395',
+ ],
+ ],
+ [
+ 'name' => 'DeleteSlb',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '删除网关时是否同时删除代购的SLB。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491****',
+ ],
+ ],
+ [
+ 'name' => 'SlbId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '待取消关联的SlbId。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'lb-uf6duug6s13x4abc8****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ ."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9297B27D-D932-5E9F-93B9-99D6C5F3A879',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '删除结果。',
+ 'type' => 'string',
+ 'example' => '28',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9297B27D-D932-5E9F-93B9-99D6C5F3A879\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 1,\\n \\"Success\\": true,\\n \\"Data\\": \\"28\\"\\n}","type":"json"}]',
+ 'title' => '取消关联网关SLB',
+ ],
+ 'DeleteSecurityGroupRule' => [
+ 'summary' => '删除网关安全组规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-83b0ddb569434f82b9fe8e4c60c40f7c',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '93',
+ ],
+ ],
+ [
+ 'name' => 'CascadingDelete',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '43E50CB7-258E-5AFF-9B93-ECC19928C699',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'SecurityGroupId' => [
+ 'description' => '安全组ID。',
+ 'type' => 'string',
+ 'example' => 'sg-uf6hgwe067prhg68agfa',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'PortRange' => [
+ 'description' => '目的端安全组开放的传输层协议相关的端口范围。取值范围: '."\n"
+ .' '."\n"
+ .'- TCP/UDP协议:取值范围为1~65535。使用斜线(/)隔开起始端口和终止端口。例如:1/200'."\n"
+ .'- ICMP协议:-1/-1'."\n"
+ .'- GRE协议:-1/-1'."\n"
+ .'- all:-1/-1',
+ 'type' => 'string',
+ 'example' => '8443/8443',
+ ],
+ 'IpProtocol' => [
+ 'description' => '传输层协议。不区分大小写。取值范围: '."\n"
+ .' '."\n"
+ .'- icmp'."\n"
+ .'- gre'."\n"
+ .'- tcp'."\n"
+ .'- udp'."\n"
+ .'- all:支持所有协议',
+ 'type' => 'string',
+ 'example' => 'tcp',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '103',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-11T14:12:55.000+0000',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => 'auto-description1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"43E50CB7-258E-5AFF-9B93-ECC19928C699\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 2,\\n \\"SecurityGroupId\\": \\"sg-uf6hgwe067prhg68agfa\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"PortRange\\": \\"8443/8443\\",\\n \\"IpProtocol\\": \\"tcp\\",\\n \\"GatewayId\\": 103,\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2022-01-11T14:12:55.000+0000\\",\\n \\"Description\\": \\"auto-description1\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除网关安全组规则',
+ ],
+ 'UpdateGatewayOption' => [
+ 'summary' => '更新网关参数。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '421',
+ ],
+ ],
+ [
+ 'name' => 'GatewayOption',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '网关操作详情。'."\n"
+ ."\n"
+ .'- **TraceDetails**:XTrace采样描述。内容:TraceEnabled为是否开通XTrace,Sample为XTrace的采样率。'."\n"
+ ."\n"
+ .'- **LogConfigDetails**:日志投递服务描述。内容:LogEnabled为是否开启日志投递SLS服务,ProjectName为日志投递的目的,LogStoreName为日志存储名称。'."\n"
+ ."\n"
+ .'- **EnableHardwareAcceleration**:是否开启硬件加速。'."\n"
+ ."\n"
+ .'- **DisableHttp2Alpn**:是否关闭HTTP 2.0协议。'."\n"
+ ."\n"
+ .'- **EnableWaf**:是否开启waf。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/GatewayOption',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-83b0ddb569434f82b9fe8e4c60c4****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ ."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '124D02EB-DBDD-534D-A701-B4A95D3D****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'example' => '{\'LogConfigDetails\': {\'LogEnabled\': True}, \'TraceDetails\': {\'Sample\': 17, \'TraceEnabled\': True}}',
+ '$ref' => '#/components/schemas/GatewayOption',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"124D02EB-DBDD-534D-A701-B4A95D3D****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TraceDetails\\": {\\n \\"TraceEnabled\\": true,\\n \\"Sample\\": 0,\\n \\"TraceType\\": \\"XTRACE\\",\\n \\"ServiceId\\": 0,\\n \\"ServicePort\\": \\"\\"\\n },\\n \\"LogConfigDetails\\": {\\n \\"LogEnabled\\": true,\\n \\"ProjectName\\": \\"\\",\\n \\"LogStoreName\\": \\"\\"\\n },\\n \\"EnableHardwareAcceleration\\": true,\\n \\"DisableHttp2Alpn\\": true,\\n \\"EnableWaf\\": true\\n }\\n}","type":"json"}]',
+ 'title' => '更新网关参数',
+ ],
+ 'UpdateGatewayName' => [
+ 'summary' => '修改网关名称。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '66628',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYEACIS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'demo-test',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'gw-1cef54brvecdb419fb264d4f9b8c',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8C95711F-E702-5395-BFAA-21BA946CDE47',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8C95711F-E702-5395-BFAA-21BA946CDE47\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"true\\"\\n}","type":"json"}]',
+ 'title' => '更新网关名称',
+ ],
+ 'QueryGatewayRegion' => [
+ 'summary' => '查询网关支持的地域。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9e78a671-4b9b-4dd4-99c1-0b9da87d3dec',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回地域信息集合。',
+ 'type' => 'string',
+ 'example' => '{"cn-hanghzou"}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9e78a671-4b9b-4dd4-99c1-0b9da87d3dec\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n \\"{\\\\\\"cn-hanghzou\\\\\\"}\\"\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关支持地域',
+ ],
+ 'QueryGatewayType' => [
+ 'summary' => '查询网关可用类型。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。当请求成功时,返回成功信息;当请求失败时,返回失败原因。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。状态码为200表示成功,其余取值表示失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '网关类型,参数数据类型为list。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '网关类型。',
+ 'type' => 'string',
+ 'example' => 'Ingress',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n \\"Ingress\\"\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关可用类型',
+ ],
+ 'GetGateway' => [
+ 'summary' => '获取网关的所属VPC,所属交换机等基本信息。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '92862',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYEACIS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'gw-685f661467b54f48b7b7a76605ce****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9C96CDF8-9E6C-5AB6-B83C-8F87A10117E6',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '请求是否成功的描述信息',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明 200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '网关信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'Name' => [
+ 'description' => '网关名称。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597cd4a9****',
+ ],
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '创建主用户User ID。',
+ 'type' => 'string',
+ 'example' => '1231254',
+ ],
+ 'Status' => [
+ 'description' => '获取数据集成同步任务的结果状态。取值如下:'."\n"
+ .'* 0: 创建中'."\n"
+ .'* 1: 创建失败'."\n"
+ .'* 2: 运行中'."\n"
+ .'* 3: 变更中'."\n"
+ .'* 4: 缩容中'."\n"
+ .'* 6: 扩容中'."\n"
+ .'* 8: 删除中'."\n"
+ .'* 10: 重启中'."\n"
+ .'* 11: 重建中'."\n"
+ .'* 12: 升级中'."\n"
+ .'* 13: 升级失败',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'Vpc' => [
+ 'description' => 'VPC网络ID。',
+ 'type' => 'string',
+ 'example' => 'vpc-bp1328cm01m6uel42b5zb',
+ ],
+ 'Vswitch' => [
+ 'description' => '交换机。',
+ 'type' => 'string',
+ 'example' => 'vsw-bp18zeqxx6mpuq843z4n5',
+ ],
+ 'SecurityGroup' => [
+ 'description' => '安全组。',
+ 'type' => 'string',
+ 'example' => 'sg-bp11ufzqn6mmb8dtzz82',
+ ],
+ 'Spec' => [
+ 'description' => '网关规格。',
+ 'type' => 'string',
+ 'example' => 'MSE_GTW_16_32_200_c',
+ ],
+ 'Replica' => [
+ 'description' => '网关副本数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'GmtCreate' => [
+ 'description' => '网关设备的创建时间,GMT格式,是用户所在地的当地时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '最后一次更新实例的时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'XtraceDetails' => [
+ 'description' => 'XTrace详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Sample' => [
+ 'description' => 'XTrace采样率。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TraceOn' => [
+ 'description' => '是否开启XTrace采样。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'Vswitch2' => [
+ 'description' => '交换机2。',
+ 'type' => 'string',
+ 'example' => 'vpc-bp1j6ivhav15ve7q54kq2',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ 'ChargeType' => [
+ 'description' => '付费模式,包括包年包月和按量付费。',
+ 'type' => 'string',
+ 'example' => 'POSTPAY',
+ ],
+ 'EndDate' => [
+ 'description' => '网关结束时间。',
+ 'type' => 'string',
+ 'example' => '2021-08-01 00:00:00',
+ ],
+ 'StatusDesc' => [
+ 'description' => '状态描述。',
+ 'type' => 'string',
+ 'example' => '正在重启中。',
+ ],
+ 'LogConfigDetails' => [
+ 'description' => '日志配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LogEnabled' => [
+ 'description' => '是否开启日志投递',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ProjectName' => [
+ 'description' => '项目名称。',
+ 'type' => 'string',
+ 'example' => 'k8s-log-c173117256e934a96b7fefdf2ef8a8057',
+ ],
+ 'LogStoreName' => [
+ 'description' => 'logstore名称。',
+ 'type' => 'string',
+ 'example' => 'mse_access_log',
+ ],
+ ],
+ ],
+ 'MseTag' => [
+ 'description' => '资源标签。',
+ 'type' => 'string',
+ 'example' => '{"TagKey":"TagValue"}',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'example' => 'rg-acfm34x43l*****',
+ ],
+ 'TotalReplica' => [
+ 'description' => '总副本数(包括自动扩容副本数)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'Elastic' => [
+ 'description' => '是否开启自动扩容。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ElasticReplica' => [
+ 'description' => '自动扩容副本数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ElasticType' => [
+ 'description' => '自动扩容类型,目前支持:'."\n"
+ ."\n"
+ .'* CronHPA:按时间扩容',
+ 'type' => 'string',
+ 'example' => 'CronHPA',
+ ],
+ 'ElasticPolicy' => [
+ 'description' => '自动扩容策略。',
+ 'type' => 'object',
+ 'properties' => [
+ 'MaxReplica' => [
+ 'description' => '自动扩容最大实例数(水平扩容时使用)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'ElasticType' => [
+ 'description' => '自动扩容类型,目前支持:'."\n"
+ ."\n"
+ .'- CronHPA:按时间扩容',
+ 'type' => 'string',
+ 'example' => 'CronHPA',
+ ],
+ 'TimePolicyList' => [
+ 'description' => '按时间扩容策略。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DesiredReplica' => [
+ 'description' => '期望副本数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'StartTime' => [
+ 'description' => '自动扩容起始时间。',
+ 'type' => 'string',
+ 'example' => '16:00',
+ ],
+ 'EndTime' => [
+ 'description' => '自动扩容结束时间。',
+ 'type' => 'string',
+ 'example' => '18:00',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9C96CDF8-9E6C-5AB6-B83C-8F87A10117E6\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 12,\\n \\"Name\\": \\"DEFAULT\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597cd4a9****\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"PrimaryUser\\": \\"1231254\\",\\n \\"Status\\": 0,\\n \\"Vpc\\": \\"vpc-bp1328cm01m6uel42b5zb\\",\\n \\"Vswitch\\": \\"vsw-bp18zeqxx6mpuq843z4n5\\",\\n \\"SecurityGroup\\": \\"sg-bp11ufzqn6mmb8dtzz82\\",\\n \\"Spec\\": \\"MSE_GTW_16_32_200_c\\",\\n \\"Replica\\": 1,\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"XtraceDetails\\": {\\n \\"Sample\\": 10,\\n \\"TraceOn\\": true\\n },\\n \\"Vswitch2\\": \\"vpc-bp1j6ivhav15ve7q54kq2\\",\\n \\"InstanceId\\": \\"mse-cn-st21ri2****\\",\\n \\"ChargeType\\": \\"POSTPAY\\",\\n \\"EndDate\\": \\"2021-08-01 00:00:00\\",\\n \\"StatusDesc\\": \\"正在重启中。\\",\\n \\"LogConfigDetails\\": {\\n \\"LogEnabled\\": true,\\n \\"ProjectName\\": \\"k8s-log-c173117256e934a96b7fefdf2ef8a8057\\",\\n \\"LogStoreName\\": \\"mse_access_log\\"\\n },\\n \\"MseTag\\": \\"{\\\\\\"TagKey\\\\\\":\\\\\\"TagValue\\\\\\"}\\",\\n \\"ResourceGroupId\\": \\"rg-acfm34x43l*****\\",\\n \\"TotalReplica\\": 3,\\n \\"Elastic\\": true,\\n \\"ElasticReplica\\": 1,\\n \\"ElasticType\\": \\"CronHPA\\",\\n \\"ElasticPolicy\\": {\\n \\"MaxReplica\\": 5,\\n \\"ElasticType\\": \\"CronHPA\\",\\n \\"TimePolicyList\\": [\\n {\\n \\"DesiredReplica\\": 2,\\n \\"StartTime\\": \\"16:00\\",\\n \\"EndTime\\": \\"18:00\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关信息',
+ ],
+ 'ListGateway' => [
+ 'summary' => '查询该网关列表信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '24675',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYEACIS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'OrderItem',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '订单信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'DescSort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序(暂时未使用)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '参数信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayType' => [
+ 'description' => '网关类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Ingress',
+ ],
+ 'Name' => [
+ 'description' => '网关名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rutain-test',
+ ],
+ 'Vpc' => [
+ 'description' => '专有网络。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-bp13hhyjntbab7w****',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_ingresspre-cn-****',
+ ],
+ 'MseTag' => [
+ 'description' => '资源标签。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[{"key":"tagkey","value":"tagvalue"}]',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-7y2uye*****',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '34300B3-52EC-5049-8C96-914098CF****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation. Action: mse:ListGateway, Resource: acs:mse:cn-hangzhou:102123:*',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => 'Meta返回信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '9',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '每页条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '153',
+ ],
+ 'Name' => [
+ 'description' => '网关名称。',
+ 'type' => 'string',
+ 'example' => 'tesa-test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14cebb8ce5cb6a4****',
+ ],
+ 'GatewayType' => [
+ 'description' => '网关类型。',
+ 'type' => 'string',
+ 'example' => 'Ingress',
+ ],
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '用户信息。',
+ 'type' => 'string',
+ 'example' => '18278117654342',
+ ],
+ 'Status' => [
+ 'description' => '网关状态'."\n"
+ ."\n"
+ .'- 0 创建中'."\n"
+ .'- 1 创建失败'."\n"
+ .'- 2 运行中'."\n"
+ .'- 3 变更中'."\n"
+ .'- 4 缩容中'."\n"
+ .'- 6 扩容中'."\n"
+ .'- 8 删除中'."\n"
+ .'- 9 停服待释放'."\n"
+ .'- 10 重启中'."\n"
+ .'- 11 重建中'."\n"
+ .'- 12 升级中'."\n"
+ .'- 13 升级失败',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'AhasOn' => [
+ 'description' => '是否开启AHAS。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'ArmsOn' => [
+ 'description' => '是否开启ARMS。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Spec' => [
+ 'description' => '规格。',
+ 'type' => 'string',
+ 'example' => 'MSE_GTW_1_2_200_c',
+ ],
+ 'Replica' => [
+ 'description' => '备份。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-09-13 19:24:23',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2021-09-13 19:24:23',
+ ],
+ 'StatusDesc' => [
+ 'description' => '状态描述。',
+ 'type' => 'string',
+ 'example' => '重启中',
+ ],
+ 'Slb' => [
+ 'description' => 'SLB集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'SLB集合信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SlbIp' => [
+ 'description' => 'SLB IP。',
+ 'type' => 'string',
+ 'example' => '153.12.XX.XX',
+ ],
+ 'SlbPort' => [
+ 'description' => 'SLB端口。',
+ 'type' => 'string',
+ 'example' => '80',
+ ],
+ 'SlbSpec' => [
+ 'description' => 'SLB规格。',
+ 'type' => 'string',
+ 'example' => 'slb.s2.small',
+ ],
+ 'Type' => [
+ 'description' => '网络类型'."\n"
+ ."\n"
+ .'- PUB_NET:公网'."\n"
+ .'- PRIVATE_NET:私网',
+ 'type' => 'string',
+ 'example' => 'PUB_NET',
+ ],
+ 'GatewaySlbStatus' => [
+ 'description' => '网关SLB状态。',
+ 'type' => 'string',
+ 'example' => 'Ready',
+ ],
+ 'StatusDesc' => [
+ 'description' => '状态描述。',
+ 'type' => 'string',
+ 'example' => '创建中',
+ ],
+ 'GatewaySlbMode' => [
+ 'description' => '网关SLB模式。',
+ 'type' => 'string',
+ 'example' => 'UserHost',
+ ],
+ 'SlbId' => [
+ 'description' => 'SLB ID。',
+ 'type' => 'string',
+ 'example' => 'lb-bp1ut8asdfgucjk****',
+ ],
+ ],
+ ],
+ ],
+ 'InternetSlb' => [
+ 'description' => '互联网SLB。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SlbIp' => [
+ 'description' => 'SLB IP。',
+ 'type' => 'string',
+ 'example' => '153.12.XX.XX',
+ ],
+ 'SlbPort' => [
+ 'description' => 'SLB端口。',
+ 'type' => 'string',
+ 'example' => 'slb.s2.small',
+ ],
+ 'SlbSpec' => [
+ 'description' => 'SLB规格。',
+ 'type' => 'string',
+ 'example' => 'slb.s2.small',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'PUB_NET',
+ ],
+ 'InternetNetworkFlow' => [
+ 'description' => '网关流量。',
+ 'type' => 'string',
+ 'example' => '20',
+ ],
+ 'GatewaySlbStatus' => [
+ 'description' => '网关SLB状态。',
+ 'type' => 'string',
+ 'example' => 'Ready',
+ ],
+ 'StatusDesc' => [
+ 'description' => '状态描述。',
+ 'type' => 'string',
+ 'example' => '创建中',
+ ],
+ 'GatewaySlbMode' => [
+ 'description' => '网关SLB模式。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => 'UserHost',
+ ],
+ 'SlbId' => [
+ 'description' => 'SLB ID。',
+ 'type' => 'string',
+ 'example' => 'lb-bp1ut8asdfgucjk****',
+ ],
+ ],
+ ],
+ ],
+ 'Upgrade' => [
+ 'description' => '升级。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'MustUpgrade' => [
+ 'description' => '强制升级。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'SupportWasm' => [
+ 'description' => '是否支持WASM。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'CurrentVersion' => [
+ 'description' => '当前版本。',
+ 'type' => 'string',
+ 'example' => '0.1.0-mse-gw',
+ ],
+ 'AppVersion' => [
+ 'description' => '应用版本。',
+ 'type' => 'string',
+ 'example' => '1.0.1.0',
+ ],
+ 'LatestVersion' => [
+ 'description' => '最新版本。',
+ 'type' => 'string',
+ 'example' => '0.1.0-mse-gw',
+ ],
+ 'Vswitch2' => [
+ 'description' => '交换机2。',
+ 'type' => 'string',
+ 'example' => 'vsw-bpbrveck45nf****',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse_ingresspost-cn-0jbvrcex****',
+ ],
+ 'ChargeType' => [
+ 'description' => '付费类型。',
+ 'type' => 'string',
+ 'example' => 'POSTPAY',
+ ],
+ 'EndDate' => [
+ 'description' => '到期日期。',
+ 'type' => 'string',
+ 'example' => '4792060800000',
+ ],
+ 'Tag' => [
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'InitConfig' => [
+ 'description' => '配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EnableWaf' => [
+ 'description' => '是否开启WAF。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'SupportWaf' => [
+ 'description' => '是否支持WAF。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'GatewayVersion' => [
+ 'description' => '网关版本。',
+ 'type' => 'string',
+ 'example' => '1.2.9',
+ ],
+ 'RollBack' => [
+ 'description' => '是否支持回滚。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'MseTag' => [
+ 'description' => '资源标签。',
+ 'type' => 'string',
+ 'example' => '{"tagKey":"tagValue"}',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'example' => 'rg-97hg87vi****',
+ ],
+ 'TotalReplica' => [
+ 'description' => '总副本数(包括自动扩容副本数)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ ],
+ 'Elastic' => [
+ 'description' => '是否开启自动扩容。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ElasticReplica' => [
+ 'description' => '自动扩容副本数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'ElasticType' => [
+ 'description' => '自动扩容类型,目前支持:'."\n"
+ ."\n"
+ .'- CronHPA:按时间扩容',
+ 'type' => 'string',
+ 'example' => 'CronHPA',
+ ],
+ 'ElasticPolicy' => [
+ 'description' => '自动扩容策略。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Elastic' => [
+ 'description' => '是否开启自动扩容。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'MaxReplica' => [
+ 'description' => '自动扩容最大实例数(水平扩容时使用)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'ElasticType' => [
+ 'description' => '自动扩容类型,目前支持:'."\n"
+ ."\n"
+ .'* CronHPA:按时间扩容',
+ 'type' => 'string',
+ 'example' => 'CronHPA',
+ ],
+ 'TimePolicyList' => [
+ 'description' => '自动扩容时间策略列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DesiredReplica' => [
+ 'description' => '自动扩容期望副本数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ ],
+ 'StartTime' => [
+ 'description' => '自动扩容起始时间。',
+ 'type' => 'string',
+ 'example' => '07:00',
+ ],
+ 'EndTime' => [
+ 'description' => '自动扩容结束时间。',
+ 'type' => 'string',
+ 'example' => '09:00',
+ ],
+ ],
+ ],
+ ],
+ 'LoadWarningThreshold' => [
+ 'title' => '网关按负载弹性的水位设置,true表示开启警戒水位,false表示开启安全水位',
+ 'description' => '网关按负载弹性的水位设置,true表示开启警戒水位,false表示开启安全水位',
+ 'type' => 'boolean',
+ ],
+ 'EnableScaleTimePolicyList' => [
+ 'title' => '允许缩容时间段',
+ 'description' => '允许缩容时间段',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'StartTime' => [
+ 'type' => 'string',
+ ],
+ 'EndTime' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ElasticInstanceId' => [
+ 'description' => '网关弹性实例ID,使用自动扩容时返回。',
+ 'type' => 'string',
+ 'example' => 'mse_ingresselastic_public_cn-uqm3d0*****',
+ ],
+ 'VpcId' => [
+ 'description' => '网关VPC ID。',
+ 'type' => 'string',
+ 'example' => 'vpc-uf6heojei217tv14*****',
+ ],
+ 'MseVersion' => [
+ 'type' => 'string',
+ ],
+ 'MaintenancePeriod' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TimeZone' => [
+ 'type' => 'string',
+ ],
+ 'StartTime' => [
+ 'type' => 'string',
+ ],
+ 'EndTime' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'GatewayEntry' => [
+ 'title' => '网关入口地址(适用普通实例专业版)',
+ 'description' => '网关入口地址(适用普通实例专业版)',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NetType' => [
+ 'title' => '入口网络类型'."\n"
+ ."\n"
+ .'- PRIVATE_NET:私网'."\n"
+ ."\n"
+ .'- PUB_NET:公网',
+ 'description' => '入口网络类型'."\n"
+ ."\n"
+ .'- PRIVATE_NET:私网'."\n"
+ ."\n"
+ .'- PUB_NET:公网',
+ 'type' => 'string',
+ 'example' => 'PUB_NET',
+ ],
+ 'EntryDomain' => [
+ 'title' => '入口域名',
+ 'description' => '入口域名',
+ 'type' => 'string',
+ 'example' => 'gw-*****5c2cd6144f4bfa1c32289f45ea8.cn-hangzhou.alicloudapi.com',
+ ],
+ 'IpList' => [
+ 'title' => '入口IP列表',
+ 'description' => '入口IP列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '入口IP',
+ 'description' => '入口IP',
+ 'type' => 'string',
+ 'example' => '1.2.3.4',
+ ],
+ ],
+ 'HttpPorts' => [
+ 'title' => 'HTTP监听端口列表',
+ 'description' => 'HTTP监听端口列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'HTTP监听端口',
+ 'description' => 'HTTP监听端口',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ ],
+ 'HttpsPorts' => [
+ 'title' => 'HTTPS监听端口列表',
+ 'description' => 'HTTPS监听端口列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'HTTPS监听端口',
+ 'description' => 'HTTPS监听端口',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '443',
+ ],
+ ],
+ 'Status' => [
+ 'title' => '网关入口就绪状态',
+ 'description' => '网关入口就绪状态',
+ 'type' => 'string',
+ 'example' => 'Ready',
+ 'enum' => [
+ 'Ready',
+ 'NotReady',
+ ],
+ ],
+ 'Ipv6List' => [
+ 'title' => 'ipv6地址',
+ 'description' => 'ipv6地址',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'VersionLifecycle' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"34300B3-52EC-5049-8C96-914098CF****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation. Action: mse:ListGateway, Resource: acs:mse:cn-hangzhou:102123:*\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TotalSize\\": 9,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"Id\\": 153,\\n \\"Name\\": \\"tesa-test\\",\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14cebb8ce5cb6a4****\\",\\n \\"GatewayType\\": \\"Ingress\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"PrimaryUser\\": \\"18278117654342\\",\\n \\"Status\\": 2,\\n \\"AhasOn\\": false,\\n \\"ArmsOn\\": false,\\n \\"Spec\\": \\"MSE_GTW_1_2_200_c\\",\\n \\"Replica\\": 2,\\n \\"GmtCreate\\": \\"2021-09-13 19:24:23\\",\\n \\"GmtModified\\": \\"2021-09-13 19:24:23\\",\\n \\"StatusDesc\\": \\"重启中\\",\\n \\"Slb\\": [\\n {\\n \\"SlbIp\\": \\"153.12.XX.XX\\",\\n \\"SlbPort\\": \\"80\\",\\n \\"SlbSpec\\": \\"slb.s2.small\\",\\n \\"Type\\": \\"PUB_NET\\",\\n \\"GatewaySlbStatus\\": \\"Ready\\",\\n \\"StatusDesc\\": \\"创建中\\",\\n \\"GatewaySlbMode\\": \\"UserHost\\",\\n \\"SlbId\\": \\"lb-bp1ut8asdfgucjk****\\"\\n }\\n ],\\n \\"InternetSlb\\": [\\n {\\n \\"SlbIp\\": \\"153.12.XX.XX\\",\\n \\"SlbPort\\": \\"slb.s2.small\\",\\n \\"SlbSpec\\": \\"slb.s2.small\\",\\n \\"Type\\": \\"PUB_NET\\",\\n \\"InternetNetworkFlow\\": \\"20\\",\\n \\"GatewaySlbStatus\\": \\"Ready\\",\\n \\"StatusDesc\\": \\"创建中\\",\\n \\"GatewaySlbMode\\": \\"UserHost\\",\\n \\"SlbId\\": \\"lb-bp1ut8asdfgucjk****\\"\\n }\\n ],\\n \\"Upgrade\\": false,\\n \\"MustUpgrade\\": false,\\n \\"SupportWasm\\": true,\\n \\"CurrentVersion\\": \\"0.1.0-mse-gw\\",\\n \\"AppVersion\\": \\"1.0.1.0\\",\\n \\"LatestVersion\\": \\"0.1.0-mse-gw\\",\\n \\"Vswitch2\\": \\"vsw-bpbrveck45nf****\\",\\n \\"InstanceId\\": \\"mse_ingresspost-cn-0jbvrcex****\\",\\n \\"ChargeType\\": \\"POSTPAY\\",\\n \\"EndDate\\": \\"4792060800000\\",\\n \\"Tag\\": \\"test\\",\\n \\"InitConfig\\": {\\n \\"EnableWaf\\": true,\\n \\"SupportWaf\\": true\\n },\\n \\"GatewayVersion\\": \\"1.2.9\\",\\n \\"RollBack\\": false,\\n \\"MseTag\\": \\"{\\\\\\"tagKey\\\\\\":\\\\\\"tagValue\\\\\\"}\\",\\n \\"ResourceGroupId\\": \\"rg-97hg87vi****\\",\\n \\"TotalReplica\\": 4,\\n \\"Elastic\\": true,\\n \\"ElasticReplica\\": 2,\\n \\"ElasticType\\": \\"CronHPA\\",\\n \\"ElasticPolicy\\": {\\n \\"Elastic\\": true,\\n \\"MaxReplica\\": 10,\\n \\"ElasticType\\": \\"CronHPA\\",\\n \\"TimePolicyList\\": [\\n {\\n \\"DesiredReplica\\": 4,\\n \\"StartTime\\": \\"07:00\\",\\n \\"EndTime\\": \\"09:00\\"\\n }\\n ],\\n \\"LoadWarningThreshold\\": true,\\n \\"EnableScaleTimePolicyList\\": [\\n {\\n \\"StartTime\\": \\"\\",\\n \\"EndTime\\": \\"\\"\\n }\\n ]\\n },\\n \\"ElasticInstanceId\\": \\"mse_ingresselastic_public_cn-uqm3d0*****\\",\\n \\"VpcId\\": \\"vpc-uf6heojei217tv14*****\\",\\n \\"MseVersion\\": \\"\\",\\n \\"MaintenancePeriod\\": {\\n \\"TimeZone\\": \\"\\",\\n \\"StartTime\\": \\"\\",\\n \\"EndTime\\": \\"\\"\\n },\\n \\"GatewayEntry\\": [\\n {\\n \\"NetType\\": \\"PUB_NET\\",\\n \\"EntryDomain\\": \\"gw-*****5c2cd6144f4bfa1c32289f45ea8.cn-hangzhou.alicloudapi.com\\",\\n \\"IpList\\": [\\n \\"1.2.3.4\\"\\n ],\\n \\"HttpPorts\\": [\\n 80\\n ],\\n \\"HttpsPorts\\": [\\n 443\\n ],\\n \\"Status\\": \\"Ready\\",\\n \\"Ipv6List\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"VersionLifecycle\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关信息列表',
+ ],
+ 'ListGatewaySlb' => [
+ 'summary' => '查询网关入口SLB。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'gw-1cef5440bf2d484db419fb264d4f****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EAB345F4-3AC3-560C-B653-65717703****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID',
+ 'type' => 'string',
+ 'example' => 'ID',
+ ],
+ 'SlbId' => [
+ 'description' => 'SLB ID',
+ 'type' => 'string',
+ 'example' => 'lb-bp1kmnli3hdpreptw2ah3',
+ ],
+ 'SlbIp' => [
+ 'description' => 'SLB IP',
+ 'type' => 'string',
+ 'example' => '121.199.XX.XX',
+ ],
+ 'SlbPort' => [
+ 'description' => 'SLB端口。',
+ 'type' => 'string',
+ 'example' => '80,443',
+ ],
+ 'Type' => [
+ 'description' => '网络类型'."\n"
+ ."\n"
+ .'- PUB_NET:公网'."\n"
+ .'- PRIVATE_NET:私网',
+ 'type' => 'string',
+ 'example' => 'PUB_NET',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-14 14:39:16',
+ ],
+ 'GatewaySlbMode' => [
+ 'description' => '来源。',
+ 'type' => 'string',
+ 'example' => 'UserSelect',
+ ],
+ 'GatewaySlbStatus' => [
+ 'description' => '关联状态。',
+ 'type' => 'string',
+ 'example' => 'Ready',
+ ],
+ 'StatusDesc' => [
+ 'description' => '状态备注。',
+ 'type' => 'string',
+ 'example' => '关联中',
+ ],
+ 'VServerGroupId' => [
+ 'description' => 'http虚拟服务组ID。',
+ 'type' => 'string',
+ 'example' => '353',
+ ],
+ 'HttpPort' => [
+ 'description' => 'HTTP端口(虚拟服务组)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'HttpsPort' => [
+ 'description' => 'HTTPS端口(虚拟服务组)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '443',
+ ],
+ 'ServiceWeight' => [
+ 'description' => '服务权重。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'EditEnable' => [
+ 'description' => '是否可编辑。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'HttpsVServerGroupId' => [
+ 'description' => 'https虚拟服务组ID。',
+ 'type' => 'string',
+ 'example' => '353',
+ ],
+ 'VsMetaInfo' => [
+ 'description' => '虚拟服务器组元信息。',
+ 'type' => 'string',
+ 'example' => '[{"protocol":"HTTP","vServerGroupName":"k8s/80/****","port":80,"vServerGroupId":"rsp-bp***"},{"protocol":"HTTPS","vServerGroupName":"k8s/443/***","port":443,"vServerGroupId":"rsp-bp*****"}]',
+ ],
+ 'VServiceList' => [
+ 'description' => 'SLB监听信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Port' => [
+ 'description' => '端口。',
+ 'type' => 'string',
+ 'example' => '443',
+ ],
+ 'Protocol' => [
+ 'description' => '协议类型。'."\n"
+ ."\n"
+ .'- HTTPS'."\n"
+ .'- HTTP',
+ 'type' => 'string',
+ 'example' => 'HTTPS',
+ ],
+ 'VServerGroupId' => [
+ 'description' => '虚拟服务器组ID。',
+ 'type' => 'string',
+ 'example' => 'rsp-bp183l2x70***',
+ ],
+ 'VServerGroupName' => [
+ 'description' => ' 虚拟服务器组名称。',
+ 'type' => 'string',
+ 'example' => 'k8s/31**0/***/istio-system/clusterid',
+ ],
+ ],
+ ],
+ ],
+ 'SlbType' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EAB345F4-3AC3-560C-B653-65717703****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Id\\": \\"ID\\",\\n \\"SlbId\\": \\"lb-bp1kmnli3hdpreptw2ah3\\",\\n \\"SlbIp\\": \\"121.199.XX.XX\\",\\n \\"SlbPort\\": \\"80,443\\",\\n \\"Type\\": \\"PUB_NET\\",\\n \\"GatewayId\\": \\"1\\",\\n \\"GmtCreate\\": \\"2022-01-14 14:39:16\\",\\n \\"GatewaySlbMode\\": \\"UserSelect\\",\\n \\"GatewaySlbStatus\\": \\"Ready\\",\\n \\"StatusDesc\\": \\"关联中\\",\\n \\"VServerGroupId\\": \\"353\\",\\n \\"HttpPort\\": 80,\\n \\"HttpsPort\\": 443,\\n \\"ServiceWeight\\": 80,\\n \\"EditEnable\\": false,\\n \\"HttpsVServerGroupId\\": \\"353\\",\\n \\"VsMetaInfo\\": \\"[{\\\\\\"protocol\\\\\\":\\\\\\"HTTP\\\\\\",\\\\\\"vServerGroupName\\\\\\":\\\\\\"k8s/80/****\\\\\\",\\\\\\"port\\\\\\":80,\\\\\\"vServerGroupId\\\\\\":\\\\\\"rsp-bp***\\\\\\"},{\\\\\\"protocol\\\\\\":\\\\\\"HTTPS\\\\\\",\\\\\\"vServerGroupName\\\\\\":\\\\\\"k8s/443/***\\\\\\",\\\\\\"port\\\\\\":443,\\\\\\"vServerGroupId\\\\\\":\\\\\\"rsp-bp*****\\\\\\"}]\\",\\n \\"VServiceList\\": [\\n {\\n \\"Port\\": \\"443\\",\\n \\"Protocol\\": \\"HTTPS\\",\\n \\"VServerGroupId\\": \\"rsp-bp183l2x70***\\",\\n \\"VServerGroupName\\": \\"k8s/31**0/***/istio-system/clusterid\\"\\n }\\n ],\\n \\"SlbType\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关入口SLB',
+ ],
+ 'GetGatewayOption' => [
+ 'summary' => '获取网关全局参数。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '92787',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseS26K2N',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491*****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'C92F4A4D-A2FD-593E-839E-F3D4DFD2****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因,例如:TaskId not found。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明:200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '网关操作详情。'."\n"
+ ."\n"
+ .'- **TraceDetails**:XTrace采样描述。内容:TraceEnabled为是否开通XTrace,Sample为XTrace的采样率。'."\n"
+ ."\n"
+ .'- **LogConfigDetails**:日志投递服务描述。内容:LogEnabled为是否开启日志投递SLS服务,ProjectName为日志投递的目的,LogStoreName为日志存储名称。'."\n"
+ ."\n"
+ .'- **EnableHardwareAcceleration**:是否开启硬件加速。'."\n"
+ ."\n"
+ .'- **DisableHttp2Alpn**:是否关闭HTTP 2.0协议。'."\n"
+ ."\n"
+ .'- **EnableWaf**:是否开启waf。',
+ 'example' => '{\'LogConfigDetails\': {\'LogEnabled\': False}, \'TraceDetails\': {\'TraceEnabled\': False}}',
+ '$ref' => '#/components/schemas/GatewayOption',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C92F4A4D-A2FD-593E-839E-F3D4DFD2****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TraceDetails\\": {\\n \\"TraceEnabled\\": true,\\n \\"Sample\\": 0,\\n \\"TraceType\\": \\"XTRACE\\",\\n \\"ServiceId\\": 0,\\n \\"ServicePort\\": \\"\\"\\n },\\n \\"LogConfigDetails\\": {\\n \\"LogEnabled\\": true,\\n \\"ProjectName\\": \\"\\",\\n \\"LogStoreName\\": \\"\\"\\n },\\n \\"EnableHardwareAcceleration\\": true,\\n \\"DisableHttp2Alpn\\": true,\\n \\"EnableWaf\\": true\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关选项',
+ ],
+ 'ListSecurityGroupRule' => [
+ 'summary' => '查询网关安全组列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关ID',
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-83b0ddb569434f82b9fe8e4c60c40f7c',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '9EC7BDBF-3C38-5C9C-95DD-61E298CD43E8',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Code' => [
+ 'description' => '返回代码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '安全组授权记录ID。',
+ 'type' => 'string',
+ 'example' => '21',
+ ],
+ 'SecurityGroupId' => [
+ 'description' => '安全组ID。',
+ 'type' => 'string',
+ 'example' => 'sg-bp1cg6qlyjepj0y6cf2c',
+ ],
+ 'PortRange' => [
+ 'description' => '端口范围。',
+ 'type' => 'string',
+ 'example' => '8000/8000',
+ ],
+ 'IpProtocol' => [
+ 'description' => '协议类型',
+ 'type' => 'string',
+ 'example' => 'tcp',
+ ],
+ 'AuthCidrs' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '81',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-12a432a1f5da423997d8880bd32c304d',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'Description' => [
+ 'description' => '规则描述。',
+ 'type' => 'string',
+ 'example' => '测试',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9EC7BDBF-3C38-5C9C-95DD-61E298CD43E8\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Id\\": \\"21\\",\\n \\"SecurityGroupId\\": \\"sg-bp1cg6qlyjepj0y6cf2c\\",\\n \\"PortRange\\": \\"8000/8000\\",\\n \\"IpProtocol\\": \\"tcp\\",\\n \\"AuthCidrs\\": [\\n \\"\\"\\n ],\\n \\"GatewayId\\": 81,\\n \\"GatewayUniqueId\\": \\"gw-12a432a1f5da423997d8880bd32c304d\\",\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"Description\\": \\"测试\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关安全组列表',
+ ],
+ 'ListSecurityGroup' => [
+ 'summary' => '获取安全组列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关ID',
+ 'description' => '网关ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e98e40675aaf49bda082137d158e1585',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '节点数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SecurityGroupId' => [
+ 'description' => '安全组ID。',
+ 'type' => 'string',
+ 'example' => 'sg-8vb8gsmrqyc35k645rk6',
+ ],
+ 'SecurityGroupName' => [
+ 'description' => '安全组名称。',
+ 'type' => 'string',
+ 'example' => 'sg2',
+ ],
+ 'VpcId' => [
+ 'description' => 'VPC ID。',
+ 'type' => 'string',
+ 'example' => 'vpc-bp1b',
+ ],
+ 'SecurityGroupType' => [
+ 'description' => '安全组类型,分为普通安全组与企业安全组。取值范围:'."\n"
+ ."\n"
+ .'- normal:普通安全组。'."\n"
+ .'- enterprise:企业安全组。更多详情,请参见[企业安全组概述](~~120621~~)。',
+ 'type' => 'string',
+ 'example' => 'enterprise',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"SecurityGroupId\\": \\"sg-8vb8gsmrqyc35k645rk6\\",\\n \\"SecurityGroupName\\": \\"sg2\\",\\n \\"VpcId\\": \\"vpc-bp1b\\",\\n \\"SecurityGroupType\\": \\"enterprise\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取安全组列表',
+ ],
+ 'UpdateGatewaySpec' => [
+ 'summary' => '更新云原生网关集群节点数或规格(支持按量付费和包年包月)。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关名称',
+ 'description' => '网关ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c70622ff52fe49beb29bea9a6f52****',
+ ],
+ ],
+ [
+ 'name' => 'Spec',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '节点规格',
+ 'description' => '节点规格。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'MSE_GTW_16_32_200_c' => 'MSE_GTW_16_32_200_c',
+ 'MSE_GTW_2_4_200_c' => 'MSE_GTW_2_4_200_c',
+ 'MSE_GTW_4_8_200_c' => 'MSE_GTW_4_8_200_c',
+ 'MSE_GTW_8_16_200_c' => 'MSE_GTW_8_16_200_c',
+ ],
+ 'example' => 'MSE_GTW_4_8_200_c',
+ ],
+ ],
+ [
+ 'name' => 'Replica',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '节点数量',
+ 'description' => '节点数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '3',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '执行结果信息。',
+ 'type' => 'string',
+ 'example' => 'gw-892ehbv7gg56******',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": \\"gw-892ehbv7gg56******\\"\\n}","type":"json"}]',
+ 'title' => '更新网关规格',
+ 'description' => '更新云原生网关集群节点数或规格,支持按量付费和包年包月,增加节点或升级规格会产生相应资费。具体详情,请参见[价格说明](~~250950~~)。',
+ ],
+ 'SelectGatewaySlb' => [
+ 'summary' => '接口,查询用户已有(启动中状态无监听)SLB。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'SLB名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-slb',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'SLB类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUB_NET',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-492af9b04bb4474cae9d645be850****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ ."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'E00C6D90-A28A-5813-8981-0459AA436F46',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SlbId' => [
+ 'description' => 'SLB ID。',
+ 'type' => 'string',
+ 'example' => 'lb-bp14lqiw5n96hq2****',
+ ],
+ 'SlbName' => [
+ 'description' => 'SLB名称。',
+ 'type' => 'string',
+ 'example' => 'MseGatewaySlb-gw',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E00C6D90-A28A-5813-8981-0459AA436F46\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"SlbId\\": \\"lb-bp14lqiw5n96hq2****\\",\\n \\"SlbName\\": \\"MseGatewaySlb-gw\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关SLB',
+ ],
+ 'AddServiceSource' => [
+ 'summary' => '创建Nacos服务来源。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务注册类型,按来源类型填写对应的值:'."\n"
+ .'- 容器服务:K8S'."\n"
+ .'- MSE Nacos:NACOS'."\n"
+ .'- MSE ZooKeeper:ZOOKEEPER'."\n"
+ .'- SAE 注册中心:NACOS'."\n"
+ .'- EDAS 注册中心:NACOS',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'NACOS'."\n",
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务来源类型:'."\n"
+ .'- 容器服务:K8S'."\n"
+ .'- MSE Nacos:MSE'."\n"
+ .'- MSE ZooKeeper:MSE_ZK'."\n"
+ .'- SAE 注册中心:SAE'."\n"
+ .'- EDAS 注册中心:EDAS',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'MSE',
+ ],
+ ],
+ [
+ 'name' => 'Address',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '访问地址(必填):'."\n"
+ .'* 容器服务:对应容器服务集群ID'."\n"
+ .'* MSE Nacos:实例内网访问地址'."\n"
+ .'* MSE ZooKeeper:实例内网访问地址'."\n"
+ .'* SAE 注册中心:命名空间TID'."\n"
+ .'* EDAS 注册中心:微服务空间Namespace',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'mse-********-nacos-ans.mse.aliyuncs.com:8848',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '名称。'."\n"
+ ."\n\n"
+ .'> 不同来源类型描述。'."\n"
+ .'- 类型为K8s时入参为名称。'."\n"
+ .'- 类型为NACOS时入参为实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'nacos',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c70622ff52fe49beb29bea9a6f52****',
+ ],
+ ],
+ [
+ 'name' => 'IngressOptionsRequest',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Ingress配置(服务来源类型为K8s时使用)。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EnableIngress' => [
+ 'description' => '是否开启Ingress。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'IngressClass' => [
+ 'description' => '监听Ingress Class。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'com.test.xxx',
+ ],
+ 'WatchNamespace' => [
+ 'description' => '监听目标命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ 'EnableStatus' => [
+ 'description' => '是否更新Ingress Status。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ToAuthorizeSecurityGroups',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '待授权安全组列表,用于在创建来源时打通后端服务的安全组限制',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SecurityGroupId' => [
+ 'description' => '安全组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sg-bp1acepclex0vmi1****',
+ ],
+ 'PortRange' => [
+ 'description' => '安全组的授权端口范围,可多选,使用,分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '8080/8080,9000/10000',
+ ],
+ 'Description' => [
+ 'description' => '授权记录描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rule for xxx',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GroupList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '服务分组列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务分组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'NACOS',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'PathList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '服务根路径数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务根路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '支持的语言。包括以下取值:'."\n"
+ ."\n"
+ .'- 中文:zh-CN(默认值)。'."\n"
+ .'- 英文:en-US。'."\n"
+ .'- 日文:ja。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh-CN',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation. Action: mse:AddServiceSource, Resource: acs:mse:cn-hangzhou:1105471854403716:instance/gw-082c943a8c304e48a37a7a29a5ddeda7',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- true:请求成功。'."\n"
+ .'- false:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '63',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation. Action: mse:AddServiceSource, Resource: acs:mse:cn-hangzhou:1105471854403716:instance/gw-082c943a8c304e48a37a7a29a5ddeda7\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 63\\n}","type":"json"}]',
+ 'title' => '创建服务来源',
+ ],
+ 'AddGatewayServiceVersion' => [
+ 'summary' => '添加服务版本。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '90280',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '33',
+ ],
+ ],
+ [
+ 'name' => 'ServiceVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '{\\"name\\":\\"v1\\",\\"labels\\":[{\\"key\\":\\"version\\",\\"value\\":\\"v1\\"}]}',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'gw-913a49bab6c5461187a3305fb8da****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'BA4046B6-CFC6-583C-B608-DD75011A590F',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '403',
+ ],
+ 'Message' => [
+ 'description' => '错误消息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明:200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '网关服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '330',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BA4046B6-CFC6-583C-B608-DD75011A590F\\",\\n \\"HttpStatusCode\\": 403,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 330\\n}","type":"json"}]',
+ 'title' => '添加网关服务版本',
+ ],
+ 'DeleteServiceSource' => [
+ 'summary' => '删除网关服务来源。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '24910',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseQRG9VI',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据源ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '17',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-492af9b04bb4474cae9d645be850****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2CEF593F-D60C-5449-9E98-15CA6ECD9189',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2CEF593F-D60C-5449-9E98-15CA6ECD9189\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 1,\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '删除网关服务来源',
+ ],
+ 'DeleteGatewayServiceVersion' => [
+ 'summary' => '删除网关服务版本。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '90283',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '777',
+ ],
+ ],
+ [
+ 'name' => 'ServiceVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '{\\"name\\":\\"app\\",\\"labels\\":[{\\"key\\":\\"app\\",\\"value\\":\\"demo-server\\"}]}',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-b6988bd16920479d9104e1729f97****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '29D52777-BE96-563E-BC6B-796ACE47A7A5',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因,例如:TaskId not found。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"29D52777-BE96-563E-BC6B-796ACE47A7A5\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 1,\\n \\"Success\\": true,\\n \\"Data\\": 1\\n}","type":"json"}]',
+ 'title' => '删除网关服务版本',
+ ],
+ 'DeleteGatewayService' => [
+ 'summary' => '删除网关服务。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '25194',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse5GGXKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '190',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '60',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-1a4ab101d5924b6f92c5ec98a841761f',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求响应结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求唯一ID',
+ 'type' => 'string',
+ 'example' => 'B3545F76-6ED1-586F-8DB9-ECE07985F381',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '190',
+ ],
+ 'Name' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'SourceType' => [
+ 'description' => '服务来源',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ 'SourceId' => [
+ 'description' => '来源ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ServiceNameInRegistry' => [
+ 'description' => '服务注册到注册中心的名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'MetaInfo' => [
+ 'description' => '服务的基本信息。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Ips' => [
+ 'description' => 'IP',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP',
+ 'type' => 'string',
+ 'example' => '127.0.1.12',
+ ],
+ ],
+ 'GmtCreate' => [
+ 'description' => '服务创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-14 14:39:16',
+ ],
+ 'GmtModified' => [
+ 'description' => '最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B3545F76-6ED1-586F-8DB9-ECE07985F381\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 190,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"GatewayId\\": 1,\\n \\"SourceType\\": \\"MSE\\",\\n \\"Namespace\\": \\"default\\",\\n \\"GroupName\\": \\"DEFAULT_GROUP\\",\\n \\"SourceId\\": 1,\\n \\"ServiceNameInRegistry\\": \\"test\\",\\n \\"MetaInfo\\": \\"{}\\",\\n \\"Ips\\": [\\n \\"127.0.1.12\\"\\n ],\\n \\"GmtCreate\\": \\"2022-01-14 14:39:16\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除网关服务',
+ ],
+ 'UpdateGatewayServiceTrafficPolicy' => [
+ 'summary' => '更新服务流量策略。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '113905',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'ServiceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '411',
+ ],
+ ],
+ [
+ 'name' => 'GatewayTrafficPolicy',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '网关流量控制策略。',
+ 'required' => true,
+ '$ref' => '#/components/schemas/TrafficPolicy',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-75c5036c083e4f89ba8ef9fafff2e902',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回值的语言,取值:'."\n"
+ ."\n"
+ .'- **zh-CN**:中文,默认值。'."\n"
+ .'- **en-US**:英文。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '11A61389-F896-5231-A4FB-074D9E2E0055',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '表示是否调用成功。'."\n"
+ .'- **true**:调用成功。'."\n"
+ .'- **false**:调用失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'example' => '{\'GatewayUniqueId\': \'gw-2b8ebd75dc554c37a4279ba9917379f2\', \'Id\': 417, \'GatewayTrafficPolicy\': {\'LoadBalancerSettings\': {\'LoadbalancerType\': \'ROUND_ROBIN\'}, \'TlsSetting\': {\'TlsMode\': \'DISABLE\'}}}',
+ '$ref' => '#/components/schemas/GatewayService',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"11A61389-F896-5231-A4FB-074D9E2E0055\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 0,\\n \\"Name\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"GatewayTrafficPolicy\\": {\\n \\"TlsSetting\\": {\\n \\"TlsMode\\": \\"SIMPLE\\",\\n \\"CertId\\": \\"\\",\\n \\"CaCertContent\\": \\"\\",\\n \\"Sni\\": \\"\\"\\n },\\n \\"LoadBalancerSettings\\": {\\n \\"LoadbalancerType\\": \\"RANDOM\\",\\n \\"ConsistentHashLBConfig\\": {\\n \\"ParameterName\\": \\"\\",\\n \\"HttpCookie\\": {\\n \\"Name\\": \\"\\",\\n \\"Path\\": \\"\\",\\n \\"TTL\\": \\"0s\\"\\n },\\n \\"ConsistentHashLBType\\": \\"\\"\\n },\\n \\"WarmupDuration\\": 0\\n }\\n },\\n \\"GatewayUniqueId\\": \\"\\",\\n \\"MetaInfo\\": \\"\\",\\n \\"Namespace\\": \\"\\",\\n \\"GroupName\\": \\"\\"\\n }\\n}","type":"json"}]',
+ 'title' => '更新服务流量策略',
+ ],
+ 'UpdateGatewayServiceVersion' => [
+ 'summary' => '更新修改服务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '90281',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '575',
+ ],
+ ],
+ [
+ 'name' => 'ServiceVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '{\\"name\\":\\"v3\\",\\"labels\\":[{\\"key\\":\\"version\\",\\"value\\":\\"v3\\"}]}',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-eccf313e2224438ba53d95d039e5****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D6580AA6-E285-58D2-B00B-12C051B3B7BF',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '614',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D6580AA6-E285-58D2-B00B-12C051B3B7BF\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 1,\\n \\"Success\\": true,\\n \\"Data\\": 614\\n}","type":"json"}]',
+ 'title' => '更新服务版本',
+ ],
+ 'ListServiceSource' => [
+ 'summary' => '查询已关联来源列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '24908',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse5GGXKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c51a15c7ee934a4fb945ccf35fe1****',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '获取指定服务来源类型(为空返回所有类型):'."\n"
+ .'- 容器服务:K8s'."\n"
+ .'- MSE Nacos:MSE'."\n"
+ .'- MSE ZooKeeper:MSE_ZK'."\n"
+ .'- SAE 注册中心:SAE'."\n"
+ .'- EDAS 注册中心:EDAS',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MSE',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'B8C4B0D8-EBB9-5F20-8295-04224FBE5529',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Address' => [
+ 'description' => 'ACK ID或MSE注册中心地址。',
+ 'type' => 'string',
+ 'example' => '***',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'NACOS',
+ ],
+ 'Source' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'BindingWithGateway' => [
+ 'description' => '是否完成绑定。'."\n"
+ .'(数值1表示完成绑定)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'SourceUniqueId' => [
+ 'description' => '来源唯一标识。',
+ 'type' => 'string',
+ 'example' => 'mse-cn-***',
+ ],
+ 'IngressOptions' => [
+ 'description' => '应用路由Ingress支持。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EnableIngress' => [
+ 'description' => '开启或关闭Ingress。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'IngressClass' => [
+ 'description' => 'Ingress Class。',
+ 'type' => 'string',
+ 'example' => 'com.test.xxx',
+ ],
+ 'WatchNamespace' => [
+ 'description' => '监听命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'EnableStatus' => [
+ 'description' => '是否更新IngressStatus。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关UniqueId。',
+ 'type' => 'string',
+ 'example' => 'gw-2u9uhd9283hd92hgd39g239dg2*****',
+ ],
+ 'GroupList' => [
+ 'description' => '服务分组数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务分组。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ 'PathList' => [
+ 'description' => '服务列表根路径数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务列表根路径。',
+ 'type' => 'string',
+ 'example' => '/path',
+ ],
+ ],
+ 'Invalid' => [
+ 'title' => '来源是否有效',
+ 'description' => '来源是否有效',
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B8C4B0D8-EBB9-5F20-8295-04224FBE5529\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Address\\": \\"***\\",\\n \\"Type\\": \\"NACOS\\",\\n \\"Source\\": \\"MSE\\",\\n \\"BindingWithGateway\\": 1,\\n \\"GatewayId\\": 1,\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2022-01-07 18:07:57\\",\\n \\"SourceUniqueId\\": \\"mse-cn-***\\",\\n \\"IngressOptions\\": {\\n \\"EnableIngress\\": true,\\n \\"IngressClass\\": \\"com.test.xxx\\",\\n \\"WatchNamespace\\": \\"default\\",\\n \\"EnableStatus\\": true\\n },\\n \\"GatewayUniqueId\\": \\"gw-2u9uhd9283hd92hgd39g239dg2*****\\",\\n \\"GroupList\\": [\\n \\"DEFAULT_GROUP\\"\\n ],\\n \\"PathList\\": [\\n \\"/path\\"\\n ],\\n \\"Invalid\\": true\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询网关已关联的服务来源列表',
+ ],
+ 'ListGatewayService' => [
+ 'summary' => '查询网关已订阅的服务列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '25193',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'OrderItem',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序属性。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreate',
+ ],
+ ],
+ [
+ 'name' => 'DescSort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '过滤条件,格式为{"key1":"value1"}。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'public',
+ ],
+ 'GroupName' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'ServiceProtocol' => [
+ 'description' => '服务协议。'."\n"
+ ."\n"
+ .'- HTTP'."\n"
+ ."\n"
+ .'- HTTPS'."\n"
+ ."\n"
+ .'- HTTP2'."\n"
+ ."\n"
+ .'- GRPC'."\n"
+ ."\n"
+ .'- DUBBO',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'HTTP2' => 'HTTP2',
+ 'HTTPS' => 'HTTPS',
+ 'HTTP' => 'HTTP',
+ 'DUBBO' => 'DUBBO',
+ 'GRPC' => 'GRPC',
+ ],
+ 'example' => 'HTTP',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'F46CDBA4-B1EE-5C94-8A48-51C10177****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '9',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '每页最大记录数,默认值为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '返回集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Name' => [
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'GroupName' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'SourceId' => [
+ 'description' => '来源ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'ServiceNameInRegistry' => [
+ 'description' => '注册中心中原服务名。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'MetaInfo' => [
+ 'description' => '元信息或IP列表。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Ips' => [
+ 'description' => 'IP列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP。',
+ 'type' => 'string',
+ 'example' => '127.0.2.1',
+ ],
+ ],
+ 'GmtCreate' => [
+ 'description' => '记录创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '记录修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'Versions' => [
+ 'description' => '服务版本。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '版本。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '版本名。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ ],
+ ],
+ ],
+ 'ServiceProtocol' => [
+ 'description' => '服务协议。',
+ 'type' => 'string',
+ 'example' => 'HTTP',
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '80',
+ ],
+ 'HealehStatus' => [
+ 'description' => '健康状态。'."\n"
+ ."\n"
+ .'- Health'."\n"
+ ."\n"
+ .'- Unhealthy'."\n"
+ ."\n"
+ .'- Unknown',
+ 'type' => 'string',
+ 'example' => 'Unhealthy',
+ ],
+ 'HealthStatus' => [
+ 'description' => '健康状态。'."\n"
+ ."\n"
+ .'- Health'."\n"
+ ."\n"
+ .'- Unhealthy'."\n"
+ ."\n"
+ .'- Unknown',
+ 'type' => 'string',
+ 'example' => 'Unhealthy',
+ ],
+ 'HealthCheck' => [
+ 'description' => '是否进行健康检查。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HealthCheckInfo' => [
+ 'description' => '健康检查信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Check' => [
+ 'description' => '是否检查。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Protocol' => [
+ 'description' => '网络协议。',
+ 'type' => 'string',
+ 'example' => 'TCP',
+ ],
+ 'Timeout' => [
+ 'description' => '超时时间。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'Interval' => [
+ 'description' => '健康检查间隔。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'HealthyThreshold' => [
+ 'description' => '健康阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'UnhealthyThreshold' => [
+ 'description' => '非健康阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'HttpPath' => [
+ 'description' => '健康检查HTTP请求路径。',
+ 'type' => 'string',
+ 'example' => '/health',
+ ],
+ 'HttpHost' => [
+ 'description' => '健康检查HTTP请求地址。',
+ 'type' => 'string',
+ 'example' => 'http://172.168.0.1',
+ ],
+ 'ExpectedStatuses' => [
+ 'description' => '健康检查期望状态值。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '期望的HttpStatus。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ 'UnhealthyEndpoints' => [
+ 'description' => '非健康endpoint数组',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '非健康endpoint',
+ 'type' => 'string',
+ 'example' => '172.168.0.1',
+ ],
+ ],
+ 'GatewayTrafficPolicy' => [
+ 'description' => '流量管理策略。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Tls' => [
+ 'description' => 'TLS。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Mode' => [
+ 'title' => 'DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL',
+ 'description' => 'TLS模式。'."\n"
+ ."\n"
+ .'- DISABLE'."\n"
+ ."\n"
+ .' - SIMPLE'."\n"
+ ."\n"
+ .'- MUTUAL'."\n"
+ ."\n"
+ .'- ISTIO_MUTUAL',
+ 'type' => 'string',
+ 'example' => 'SIMPLE',
+ ],
+ 'CertId' => [
+ 'description' => '证书ID。',
+ 'type' => 'string',
+ 'example' => '5******-cn-hangzhou',
+ ],
+ 'CaCertId' => [
+ 'description' => 'CA证书ID。',
+ 'type' => 'string',
+ 'example' => '5******-cn-hangzhou',
+ ],
+ 'CaCertContent' => [
+ 'description' => 'CA证书公钥。',
+ 'type' => 'string',
+ 'example' => 'content',
+ ],
+ 'SubjectAltNames' => [
+ 'description' => '主体别名数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '主体别名。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ ],
+ 'Sni' => [
+ 'description' => '服务名称标识。',
+ 'type' => 'string',
+ 'example' => 'name-sni',
+ ],
+ ],
+ ],
+ 'LoadBalancerSettings' => [
+ 'description' => '负载均衡设置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LoadbalancerType' => [
+ 'title' => 'ROUND_ROBIN, LEAST_CONN, RANDOM, CONSISTENT_HASH',
+ 'description' => '负载均衡策略'."\n"
+ ."\n"
+ .'- ROUND_ROBIN'."\n"
+ ."\n"
+ .' - LEAST_CONN'."\n"
+ ."\n"
+ .' - RANDOM'."\n"
+ ."\n"
+ .' - CONSISTENT_HASH',
+ 'type' => 'string',
+ 'example' => 'RANDOM',
+ ],
+ 'ConsistentHashLBConfig' => [
+ 'description' => '一致性哈希配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ParameterName' => [
+ 'description' => '参数名称。',
+ 'type' => 'string',
+ 'example' => 'param',
+ ],
+ 'HttpCookie' => [
+ 'description' => '基于Cookie的参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => 'cookie名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'Path' => [
+ 'description' => 'cookie路径。',
+ 'type' => 'string',
+ 'example' => '/path',
+ ],
+ 'Ttl' => [
+ 'description' => 'cookie生命周期。',
+ 'type' => 'string',
+ 'example' => '360',
+ ],
+ ],
+ ],
+ 'MinimumRingSize' => [
+ 'description' => '哈希环最小值。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10000',
+ ],
+ 'ConsistentHashLBType' => [
+ 'title' => 'HEADER, COOKIE, SOURCE_IP, QUERY_PARAMETER',
+ 'description' => '一致性哈希的方式。'."\n"
+ ."\n"
+ .'- HEADER'."\n"
+ ."\n"
+ .' - COOKIE'."\n"
+ ."\n"
+ .' - SOURCE_IP'."\n"
+ ."\n"
+ .' - QUERY_PARAMETER',
+ 'type' => 'string',
+ 'example' => 'HEADER',
+ ],
+ ],
+ ],
+ 'WarmupDuration' => [
+ 'description' => '最小请求数的预热时间。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Ports' => [
+ 'description' => '端口数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8080',
+ ],
+ ],
+ 'ServiceFQDN' => [
+ 'type' => 'string',
+ ],
+ 'DnsServerList' => [
+ 'title' => 'DNS服务器列表(仅供DNS域名服务使用)',
+ 'description' => 'DNS服务器列表(仅供DNS域名服务使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'DNS服务器地址(IP+端口)',
+ 'description' => 'DNS服务器地址(IP+端口)',
+ 'type' => 'string',
+ 'example' => '1.1.1.1:80',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F46CDBA4-B1EE-5C94-8A48-51C10177****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TotalSize\\": 9,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14centbrveca****\\",\\n \\"GatewayId\\": 1,\\n \\"SourceType\\": \\"MSE\\",\\n \\"Namespace\\": \\"public\\",\\n \\"GroupName\\": \\"test\\",\\n \\"SourceId\\": 2,\\n \\"ServiceNameInRegistry\\": \\"test\\",\\n \\"MetaInfo\\": \\"{}\\",\\n \\"Ips\\": [\\n \\"127.0.2.1\\"\\n ],\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2022-01-07 18:07:57\\",\\n \\"Versions\\": [\\n {\\n \\"Name\\": \\"v1\\"\\n }\\n ],\\n \\"ServiceProtocol\\": \\"HTTP\\",\\n \\"ServicePort\\": 80,\\n \\"HealehStatus\\": \\"Unhealthy\\",\\n \\"HealthStatus\\": \\"Unhealthy\\",\\n \\"HealthCheck\\": true,\\n \\"HealthCheckInfo\\": {\\n \\"Check\\": true,\\n \\"Protocol\\": \\"TCP\\",\\n \\"Timeout\\": 2,\\n \\"Interval\\": 2,\\n \\"HealthyThreshold\\": 2,\\n \\"UnhealthyThreshold\\": 2,\\n \\"HttpPath\\": \\"/health\\",\\n \\"HttpHost\\": \\"http://172.168.0.1\\",\\n \\"ExpectedStatuses\\": [\\n 200\\n ]\\n },\\n \\"UnhealthyEndpoints\\": [\\n \\"172.168.0.1\\"\\n ],\\n \\"GatewayTrafficPolicy\\": {\\n \\"Tls\\": {\\n \\"Mode\\": \\"SIMPLE\\",\\n \\"CertId\\": \\"5******-cn-hangzhou\\",\\n \\"CaCertId\\": \\"5******-cn-hangzhou\\",\\n \\"CaCertContent\\": \\"content\\",\\n \\"SubjectAltNames\\": [\\n \\"name\\"\\n ],\\n \\"Sni\\": \\"name-sni\\"\\n },\\n \\"LoadBalancerSettings\\": {\\n \\"LoadbalancerType\\": \\"RANDOM\\",\\n \\"ConsistentHashLBConfig\\": {\\n \\"ParameterName\\": \\"param\\",\\n \\"HttpCookie\\": {\\n \\"Name\\": \\"name\\",\\n \\"Path\\": \\"/path\\",\\n \\"Ttl\\": \\"360\\"\\n },\\n \\"MinimumRingSize\\": 10000,\\n \\"ConsistentHashLBType\\": \\"HEADER\\"\\n },\\n \\"WarmupDuration\\": 10\\n }\\n },\\n \\"Ports\\": [\\n 8080\\n ],\\n \\"ServiceFQDN\\": \\"\\",\\n \\"DnsServerList\\": [\\n \\"1.1.1.1:80\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关已订阅的服务列表',
+ ],
+ 'GetMseSource' => [
+ 'summary' => '查询已有MSE Nacos。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '24939',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseZM8SC5',
+ 'FEATUREmseRZJSHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'gw-7ea3da97b96543e19f6c597cd4a9****',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'VPC ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-bp1t50e045b5g7i3p****',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MSE引擎类型:'."\n"
+ ."\n"
+ .'- NACOS'."\n"
+ ."\n"
+ .'- ZOOKEEPER',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'NACOS',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'en' => '英文',
+ 'zh' => '中文',
+ ],
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5EB2D865-B43F-5526-8F92-857718CF73A2',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n"
+ .'- 当请求成功时,返回成功信息。'."\n"
+ .'- 当请求失败时,返回失败原因,例如:TaskId not found。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'mse_prepaid_public_cn-7pp2eec****',
+ ],
+ 'Address' => [
+ 'description' => '链接地址。',
+ 'type' => 'string',
+ 'example' => 'mse-af1****-nacos-ans.mse.aliyuncs.com:8848',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'Nacos',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ClusterId' => [
+ 'description' => '集群ID。',
+ 'type' => 'string',
+ 'example' => 'mse_',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5EB2D865-B43F-5526-8F92-857718CF73A2\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 1,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"InstanceId\\": \\"mse_prepaid_public_cn-7pp2eec****\\",\\n \\"Address\\": \\"mse-af1****-nacos-ans.mse.aliyuncs.com:8848\\",\\n \\"Type\\": \\"Nacos\\",\\n \\"Name\\": \\"test\\",\\n \\"ClusterId\\": \\"mse_\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询MSE Nacos来源',
+ ],
+ 'GetKubernetesSource' => [
+ 'summary' => '获取当前所有ACK集群来源信息。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '24906',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseE7U1OL',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c5d1aadb7df646cfb7065fbf75c1****',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '专有网络vpcid。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-bp1t50e045b5g7i3p****',
+ ],
+ ],
+ [
+ 'name' => 'IsAll',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否获取所有K8s集群(false时只获取未被关联的集群)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1085A66C-DEF1-58EE-A0A4-31E00C9FC0D5',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => 'ACK集群名称。',
+ 'type' => 'string',
+ 'example' => 'k8s-demo',
+ ],
+ 'Cluster' => [
+ 'description' => 'ACK集群ID。',
+ 'type' => 'string',
+ 'example' => 'cbc1efca895a64af097ff00b26f3f****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1085A66C-DEF1-58EE-A0A4-31E00C9FC0D5\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Name\\": \\"k8s-demo\\",\\n \\"Cluster\\": \\"cbc1efca895a64af097ff00b26f3f****\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询ACK集群来源信息',
+ ],
+ 'GetGatewayServiceDetail' => [
+ 'summary' => '查询服务详情。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '39518',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '35',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-f4c960ad071a48a790b36324394c****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9802C54E-5CC5-5706-927B-993DBB6DCF2F',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Name' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'SourceType' => [
+ 'description' => '服务来源',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '分组名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'SourceId' => [
+ 'description' => '来源ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ServiceNameInRegistry' => [
+ 'description' => '服务注册到注册中心的名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'MetaInfo' => [
+ 'description' => '服务的基本信息。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Ips' => [
+ 'description' => '服务IP地址。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP。',
+ 'type' => 'string',
+ 'example' => '127.0.1.12',
+ ],
+ ],
+ 'Versions' => [
+ 'description' => '服务版本号(已废弃)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => [
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'example' => 'version',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ 'LabelDetails' => [
+ 'description' => '标签详情。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'example' => 'label',
+ ],
+ 'Values' => [
+ 'description' => '标签值。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'VersionDetails' => [
+ 'description' => '版本详细。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceVersion' => [
+ 'description' => '服务版本。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '版本名。',
+ 'type' => 'string',
+ 'example' => 'v2',
+ ],
+ 'Labels' => [
+ 'description' => '标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签。',
+ 'type' => 'string',
+ 'example' => 'version',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'example' => 'v2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'EndpointNum' => [
+ 'description' => '实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'EndpointNumPercent' => [
+ 'description' => '实例百分比。',
+ 'type' => 'string',
+ 'example' => '20%',
+ ],
+ ],
+ ],
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GatewayTrafficPolicy' => [
+ 'description' => '服务流量策略。',
+ 'example' => '{}',
+ '$ref' => '#/components/schemas/TrafficPolicy',
+ ],
+ 'HealthStatus' => [
+ 'description' => '健康检查状态。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'HealthCheck' => [
+ 'description' => '是否健康检查。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'ServiceProtocol' => [
+ 'description' => '服务协议。',
+ 'type' => 'string',
+ 'example' => 'HTTP',
+ ],
+ 'Ports' => [
+ 'description' => '服务端口数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ ],
+ 'PortTrafficPolicyList' => [
+ 'description' => '服务端口流量策略。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '端口流量策略对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '端口配置ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8080',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关UniqueId。',
+ 'type' => 'string',
+ 'example' => 'gw-2837hfd91h34dbg87364g*****',
+ ],
+ 'TrafficPolicy' => [
+ 'description' => '流量策略。',
+ '$ref' => '#/components/schemas/TrafficPolicy',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '1667460287386',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '1667460287386',
+ ],
+ ],
+ ],
+ ],
+ 'ServiceFQDN' => [
+ 'type' => 'string',
+ ],
+ 'ServicePort' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'DnsServerList' => [
+ 'title' => 'DNS服务器列表(仅供DNS域名服务使用)',
+ 'description' => 'DNS服务器列表(仅供DNS域名服务使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'DNS服务器地址(IP+端口)',
+ 'description' => 'DNS服务器地址(IP+端口)',
+ 'type' => 'string',
+ 'example' => '1.1.1.1:80',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9802C54E-5CC5-5706-927B-993DBB6DCF2F\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 1,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"GatewayId\\": 1,\\n \\"SourceType\\": \\"MSE\\",\\n \\"Namespace\\": \\"default\\",\\n \\"GroupName\\": \\"test\\",\\n \\"SourceId\\": 1,\\n \\"ServiceNameInRegistry\\": \\"test\\",\\n \\"MetaInfo\\": \\"{}\\",\\n \\"Ips\\": [\\n \\"127.0.1.12\\"\\n ],\\n \\"Versions\\": [\\n {\\n \\"Label\\": \\"version\\",\\n \\"Value\\": \\"v1\\",\\n \\"Type\\": \\"test\\"\\n }\\n ],\\n \\"LabelDetails\\": [\\n {\\n \\"Key\\": \\"label\\",\\n \\"Values\\": [\\n \\"v1\\"\\n ]\\n }\\n ],\\n \\"VersionDetails\\": [\\n {\\n \\"ServiceVersion\\": {\\n \\"Name\\": \\"v2\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"version\\",\\n \\"Value\\": \\"v2\\"\\n }\\n ]\\n },\\n \\"EndpointNum\\": 1,\\n \\"EndpointNumPercent\\": \\"20%\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GatewayTrafficPolicy\\": {\\n \\"TlsSetting\\": {\\n \\"TlsMode\\": \\"SIMPLE\\",\\n \\"CertId\\": \\"\\",\\n \\"CaCertContent\\": \\"\\",\\n \\"Sni\\": \\"\\"\\n },\\n \\"LoadBalancerSettings\\": {\\n \\"LoadbalancerType\\": \\"RANDOM\\",\\n \\"ConsistentHashLBConfig\\": {\\n \\"ParameterName\\": \\"\\",\\n \\"HttpCookie\\": {\\n \\"Name\\": \\"\\",\\n \\"Path\\": \\"\\",\\n \\"TTL\\": \\"0s\\"\\n },\\n \\"ConsistentHashLBType\\": \\"\\"\\n },\\n \\"WarmupDuration\\": 0\\n }\\n },\\n \\"HealthStatus\\": \\"true\\",\\n \\"HealthCheck\\": \\"true\\",\\n \\"ServiceProtocol\\": \\"HTTP\\",\\n \\"Ports\\": [\\n 80\\n ],\\n \\"PortTrafficPolicyList\\": [\\n {\\n \\"Id\\": 1,\\n \\"ServiceId\\": 1,\\n \\"ServicePort\\": 8080,\\n \\"GatewayUniqueId\\": \\"gw-2837hfd91h34dbg87364g*****\\",\\n \\"TrafficPolicy\\": {\\n \\"TlsSetting\\": {\\n \\"TlsMode\\": \\"SIMPLE\\",\\n \\"CertId\\": \\"\\",\\n \\"CaCertContent\\": \\"\\",\\n \\"Sni\\": \\"\\"\\n },\\n \\"LoadBalancerSettings\\": {\\n \\"LoadbalancerType\\": \\"RANDOM\\",\\n \\"ConsistentHashLBConfig\\": {\\n \\"ParameterName\\": \\"\\",\\n \\"HttpCookie\\": {\\n \\"Name\\": \\"\\",\\n \\"Path\\": \\"\\",\\n \\"TTL\\": \\"0s\\"\\n },\\n \\"ConsistentHashLBType\\": \\"\\"\\n },\\n \\"WarmupDuration\\": 0\\n }\\n },\\n \\"GmtCreate\\": \\"1667460287386\\",\\n \\"GmtModified\\": \\"1667460287386\\"\\n }\\n ],\\n \\"ServiceFQDN\\": \\"\\",\\n \\"ServicePort\\": 0,\\n \\"DnsServerList\\": [\\n \\"1.1.1.1:80\\"\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关服务详情',
+ ],
+ 'UpdateServiceSource' => [
+ 'summary' => '修改云原生网关服务来源,目前仅支持对含有Ingress监听配置的ACK容器服务进行修改操作。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '24909',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseQRG9VI',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '类型。'."\n"
+ ."\n"
+ .'- 容器服务为K8s。'."\n"
+ .'- NACOS为NACOS。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'K8s',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '来源。'."\n"
+ ."\n"
+ .'- 容器服务为K8s。'."\n"
+ .'- NACOS为MSE。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'K8s',
+ ],
+ ],
+ [
+ 'name' => 'Address',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'c9ad2a0717032427e920754e25b49e3b5',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务来源ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '63',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'istio',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-cdd1bb9bfb8341e9805f931a3ba1f4c6',
+ ],
+ ],
+ [
+ 'name' => 'IngressOptionsRequest',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Ingress配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EnableIngress' => [
+ 'description' => '是否开启Ingress。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'IngressClass' => [
+ 'description' => '监听Ingress Class。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'com.test.xxx',
+ ],
+ 'WatchNamespace' => [
+ 'description' => '监听目标命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ 'EnableStatus' => [
+ 'description' => '是否更新Ingress Status。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'PathList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '服务根路径数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务根路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/path',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型。'."\n"
+ .'- zh:中文。'."\n"
+ .'- en:英文。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '6AB2B0B6-4A86-54E2-A340-FC47A22EE659',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下。'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '63',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6AB2B0B6-4A86-54E2-A340-FC47A22EE659\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 63\\n}","type":"json"}]',
+ 'title' => '更新服务来源',
+ ],
+ 'ImportServices' => [
+ 'summary' => '订阅导入网关的服务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '25182',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '服务列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'public',
+ ],
+ 'GroupName' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'Ips' => [
+ 'description' => 'IP列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'IP。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '127.0.XX.XX',
+ ],
+ 'required' => false,
+ ],
+ 'ServicePort' => [
+ 'title' => '服务的端口',
+ 'description' => '服务的端口。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '8080',
+ ],
+ 'ServiceProtocol' => [
+ 'title' => '服务的协议版本',
+ 'description' => '服务的协议版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GRPC, HTTP',
+ ],
+ 'DnsServerList' => [
+ 'title' => 'DNS服务器列表(仅供DNS域名服务使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'DNS服务器地址(IP+端口)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.1.1.1:80',
+ ],
+ 'required' => false,
+ ],
+ 'SaeAppId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'example' => 'DNS',
+ ],
+ ],
+ [
+ 'name' => 'SourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务来源',
+ 'description' => '服务来源:'."\n"
+ ."\n"
+ .'- MSE(MSE-NACOS)'."\n"
+ .'- K8s(ACK容器服务)'."\n"
+ .'- VIP(固定地址)'."\n"
+ .'- DNS(DNS域名)',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'enumValueTitles' => [
+ 'EDAS' => 'EDAS',
+ 'MSE_ZK' => 'MSE_ZK',
+ 'SAE' => 'SAE',
+ 'K8S' => 'K8S',
+ 'DNS' => 'DNS',
+ 'VIP' => 'VIP',
+ 'MSE' => 'MSE',
+ ],
+ 'example' => 'DNS',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-77e1153db6e14c0a8b1fae20bcb89ca5',
+ ],
+ ],
+ [
+ 'name' => 'TlsSetting',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'TLS设定。'."\n"
+ ."\n"
+ .'- TLS模式:mode'."\n"
+ ."\n"
+ .'- 证书ID:certId'."\n"
+ ."\n"
+ .'- CA证书ID:caCertId'."\n"
+ ."\n"
+ .'- CA证书公钥:caCertContent'."\n"
+ ."\n"
+ .'- 服务名称标识:sni',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "mode": "MUTUAL",'."\n"
+ .' "certId": "1*****-cn-hangzhou",'."\n"
+ .' "caCertContent": "123",'."\n"
+ .' "sni": "ceshi"'."\n"
+ .'}',
+ ],
+ ],
+ [
+ 'name' => 'FcServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'FC服务名称,服务来源为“FC 函数计算”时使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'guide',
+ ],
+ ],
+ [
+ 'name' => 'FcVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'FC服务版本号,服务来源为“FC 函数计算”时使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'LATEST',
+ ],
+ ],
+ [
+ 'name' => 'FcAlias',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'FC服务别名,服务来源为“FC 函数计算”时使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-alias',
+ ],
+ ],
+ [
+ 'name' => 'SourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务来源ID,指定来源添加服务时使用',
+ 'description' => '服务来源ID,指定来源添加服务时使用',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '0F0FBA7D-5AC5-5DC4-A1E9-E9656BFAE1B9',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0F0FBA7D-5AC5-5DC4-A1E9-E9656BFAE1B9\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '创建网关服务',
+ ],
+ 'UpdateGatewayService' => [
+ 'summary' => '编辑网关服务(仅适用于固定地址服务 / DNS域名服务)',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '25309',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '322',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '501',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称(已废弃,不支持修改,调用时需要和当前服务名称保持一致)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'IpList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '服务地址列表(固定地址服务)/ 域名列表(DNS域名服务)',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务地址(固定地址服务)/ 域名(DNS域名服务)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '192.168.1.1:80',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ServicePort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务端口(DNS域名服务填写)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ ],
+ [
+ 'name' => 'ServiceProtocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务协议。'."\n"
+ ."\n"
+ .'- HTTP'."\n"
+ ."\n"
+ .'- HTTPS'."\n"
+ ."\n"
+ .'- HTTP2'."\n"
+ ."\n"
+ .'- GRPC'."\n"
+ ."\n"
+ .'- DUBBO',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HTTP',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491*****',
+ ],
+ ],
+ [
+ 'name' => 'TlsSetting',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'TLS设定。'."\n"
+ ."\n"
+ .'- TLS模式:mode'."\n"
+ ."\n"
+ .'- 证书ID:certId'."\n"
+ ."\n"
+ .'- CA证书ID:caCertId'."\n"
+ ."\n"
+ .'- CA证书公钥:caCertContent'."\n"
+ ."\n"
+ .'- 服务名称标识:sni',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "mode": "MUTUAL",'."\n"
+ .' "certId": "1*****-cn-hangzhou",'."\n"
+ .' "caCertContent": "123",'."\n"
+ .' "sni": "ceshi"'."\n"
+ .'}',
+ ],
+ ],
+ [
+ 'name' => 'DnsServerList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'DNS服务器列表(仅供DNS域名服务使用)',
+ 'description' => 'DNS服务器列表(仅供DNS域名服务使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => 'DNS服务器地址(IP+端口)',
+ 'description' => 'DNS服务器地址(IP+端口)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.1.1.1:80',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AF21683A-29C7-4853-AC0F-B5ADEE4****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '322',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AF21683A-29C7-4853-AC0F-B5ADEE4****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 322\\n}","type":"json"}]',
+ 'title' => '编辑网关服务',
+ ],
+ 'PullServices' => [
+ 'summary' => '查询指定来源可导入服务信息。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '25181',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseY699NS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务来源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'K8S' => 'K8S',
+ 'MSE' => 'MSE',
+ ],
+ 'example' => 'K8S',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-eccf313e2224438ba53d95d039e5****',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'public',
+ ],
+ ],
+ [
+ 'name' => 'SourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务来源ID',
+ 'description' => '服务来源ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EC0A99B9-8BA3-5FE3-8FE7-D7C719CF7BD2',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation. Action: mse:PullServices, Resource: acs:mse:cn-shenzhen:1228932054837788:*',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Services' => [
+ 'description' => '服务列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。'."\n"
+ ."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '服务名。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'GroupName' => [
+ 'description' => '分组。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'SourceId' => [
+ 'description' => '来源ID。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'SourceIdList' => [
+ 'title' => '归属的服务来源ID列表',
+ 'description' => '归属的服务来源ID列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '归属的服务来源ID',
+ 'description' => '归属的服务来源ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '100',
+ ],
+ ],
+ 'SaeAppId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'NamespaceShowName' => [
+ 'description' => '命名空间别名。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EC0A99B9-8BA3-5FE3-8FE7-D7C719CF7BD2\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation. Action: mse:PullServices, Resource: acs:mse:cn-shenzhen:1228932054837788:*\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Namespace\\": \\"default\\",\\n \\"GroupName\\": \\"test\\",\\n \\"Services\\": [\\n {\\n \\"Name\\": \\"test\\",\\n \\"Namespace\\": \\"public\\",\\n \\"GroupName\\": \\"test\\",\\n \\"SourceId\\": \\"1\\",\\n \\"SourceType\\": \\"MSE\\",\\n \\"SourceIdList\\": [\\n 100\\n ],\\n \\"SaeAppId\\": \\"\\"\\n }\\n ],\\n \\"NamespaceShowName\\": \\"public\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询指定来源可导入服务信息',
+ ],
+ 'UpdateGatewayServiceCheck' => [
+ 'summary' => '更新云原生网关指定服务的健康检查策略。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务ID',
+ 'description' => '服务ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关唯一ID',
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-8d410698bd7f4628ab76b*****72dd1d',
+ ],
+ ],
+ [
+ 'name' => 'Check',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否开启健康检查',
+ 'description' => '是否开启健康检查',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ExpectedStatuses',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '正常状态码(健康检查协议为HTTP时必填)',
+ 'description' => '正常状态码(健康检查协议为HTTP时必填)',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '用于判断健康检查正常的HTTP状态码:'."\n"
+ .'- http_2xx: 200'."\n"
+ .'- http_3xx: 300'."\n"
+ .'- http_4xx: 400'."\n"
+ .'- http_5xx: 500',
+ 'description' => '用于判断健康检查正常的HTTP状态码(健康检查协议为HTTP时必填):'."\n"
+ .'- http_2xx: 200'."\n"
+ .'- http_3xx: 300'."\n"
+ .'- http_4xx: 400'."\n"
+ .'- http_5xx: 500',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Protocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查协议,目前支持:'."\n"
+ .'- HTTP'."\n"
+ .'- TCP',
+ 'description' => '健康检查协议,目前支持:'."\n"
+ .'- HTTP'."\n"
+ .'- TCP',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HTTP',
+ ],
+ ],
+ [
+ 'name' => 'Timeout',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查响应超时时间(秒)',
+ 'description' => '健康检查响应超时时间(秒)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '5',
+ ],
+ ],
+ [
+ 'name' => 'Interval',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查间隔时间(秒)',
+ 'description' => '健康检查间隔时间(秒)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'HealthyThreshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查健康阈值',
+ 'description' => '健康检查健康阈值',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'UnhealthyThreshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查不健康阈值',
+ 'description' => '健康检查不健康阈值',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'HttpPath',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查路径(健康检查协议为HTTP时必填)',
+ 'description' => '健康检查路径(健康检查协议为HTTP时必填)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/healthz',
+ ],
+ ],
+ [
+ 'name' => 'HttpHost',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '健康检查域名',
+ 'description' => '健康检查域名(健康检查协议为HTTP时选填)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example.com',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '62CBFCB8-DDC6-588C-BF1B-88828AF*****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:true:请求成功。 false:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '操作的服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"62CBFCB8-DDC6-588C-BF1B-88828AF*****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 12\\n}","type":"json"}]',
+ 'title' => '更新服务健康检查策略',
+ ],
+ 'UpdateGatewayRouteAuth' => [
+ 'summary' => '更新路由鉴权配置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-0adf3ad751284cc69fcf9669fba*****',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '109',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '102',
+ ],
+ ],
+ [
+ 'name' => 'AuthJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '鉴权配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => '鉴权类型(传空字符串代表关闭):'."\n"
+ ."\n"
+ .'- JWT',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'JWT',
+ ],
+ ],
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '54973C90-F379-4372-9AA5-053A3F7****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。'."\n",
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '123',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"54973C90-F379-4372-9AA5-053A3F7****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": 123\\n}","type":"json"}]',
+ 'title' => '更新路由鉴权配置',
+ ],
+ 'ListGatewayAuthConsumerResource' => [
+ 'summary' => '获取网关鉴权消费者的授权列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-3f97e2989c344f35ab3fd62b19f1****',
+ ],
+ ],
+ [
+ 'name' => 'ConsumerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'RouteName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'ResourceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页的大小。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A73AC37C-C617-4E3A-8049-372CF49C****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '11',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '鉴权消费者授权ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ConsumerId' => [
+ 'description' => '网关鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3091',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceStatus' => [
+ 'description' => '资源授权状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识。',
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A73AC37C-C617-4E3A-8049-372CF49C****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"TotalSize\\": 11,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"Id\\": 1,\\n \\"ConsumerId\\": 2,\\n \\"RouteId\\": 3091,\\n \\"RouteName\\": \\"test\\",\\n \\"ResourceStatus\\": true,\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14centbrveca****\\",\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2022-01-07 18:07:57\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取网关鉴权消费者的授权列表',
+ ],
+ 'UpdateGatewayAuthConsumer' => [
+ 'summary' => '更新网关鉴权消费者。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-90392d768a3847a7b804c505254d****',
+ ],
+ ],
+ [
+ 'name' => 'EncodeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '加密类型:'."\n"
+ ."\n"
+ .'- RSA'."\n"
+ ."\n"
+ .'- OCT',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'RSA',
+ ],
+ ],
+ [
+ 'name' => 'Jwks',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT公钥,支持JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"keys":[{"e":"AQAB","kid":"DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ","kty":"RSA","n":"xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ"}]}',
+ ],
+ ],
+ [
+ 'name' => 'TokenName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要校验的Token参数信息的名称,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Authorization',
+ ],
+ ],
+ [
+ 'name' => 'TokenPass',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否透传。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'TokenPosition',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要校验的Token参数信息的位置,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HEADER',
+ ],
+ ],
+ [
+ 'name' => 'TokenPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要校验的Token参数信息的前缀,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Bearer ',
+ ],
+ ],
+ [
+ 'name' => 'KeyName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT内身份标识KeyName。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'iss',
+ ],
+ ],
+ [
+ 'name' => 'KeyValue',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT内身份标识KeyValue。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abcd',
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '这是描述',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '63',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": 2\\n}","type":"json"}]',
+ 'title' => '更新网关鉴权消费者',
+ ],
+ 'ListGatewayRouteOnAuth' => [
+ 'summary' => '获取开启鉴权的路由列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491****',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'JWT',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '58E06A0A-BD2C-47A0-99C2-B100F353****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '节点数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '12',
+ ],
+ 'Name' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'ceshi',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'string',
+ 'example' => '399',
+ ],
+ 'RoutePredicates' => [
+ 'description' => '路由匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PathPredicates' => [
+ 'description' => '路由匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/api',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DomainId' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '235',
+ ],
+ 'DomainName' => [
+ 'description' => '域名。',
+ 'type' => 'string',
+ 'example' => '123.com',
+ ],
+ 'DomainIdList' => [
+ 'description' => '域名ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名ID列表。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ 'DomainNameList' => [
+ 'description' => '域名列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名列表。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"58E06A0A-BD2C-47A0-99C2-B100F353****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"Id\\": 12,\\n \\"Name\\": \\"ceshi\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"GatewayId\\": \\"399\\",\\n \\"RoutePredicates\\": {\\n \\"PathPredicates\\": {\\n \\"Path\\": \\"/api\\",\\n \\"Type\\": \\"PRE\\"\\n }\\n },\\n \\"DomainId\\": 235,\\n \\"DomainName\\": \\"123.com\\",\\n \\"DomainIdList\\": [\\n 1\\n ],\\n \\"DomainNameList\\": [\\n \\"test.com\\"\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取开启鉴权的路由列表',
+ ],
+ 'ListGatewayAuthConsumer' => [
+ 'summary' => '获取网关鉴权消费者列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-0fe488252dc44d55a9dd57875193****',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'JWT',
+ ],
+ ],
+ [
+ 'name' => 'ConsumerStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页数值。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页的大小。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'dc63-465d-8ef5-20dc18af****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的%**s**。'."\n"
+ ."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则表示所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalSize' => [
+ 'description' => '查询到的总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '9',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '页面大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '返回集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Name' => [
+ 'description' => '鉴权消费者名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ConsumerStatus' => [
+ 'description' => '鉴权消费者状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '创建人。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'Type' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT',
+ 'type' => 'string',
+ 'example' => 'JWT',
+ ],
+ 'Description' => [
+ 'description' => '鉴权消费者描述。',
+ 'type' => 'string',
+ 'example' => '描述',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-09-13 19:24:23',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"dc63-465d-8ef5-20dc18af****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"TotalSize\\": 9,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"ConsumerStatus\\": true,\\n \\"PrimaryUser\\": \\"123\\",\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14centbrveca****\\",\\n \\"Type\\": \\"JWT\\",\\n \\"Description\\": \\"描述\\",\\n \\"GmtCreate\\": \\"2021-09-13 19:24:23\\",\\n \\"GmtModified\\": \\"2022-01-07 18:07:57\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取网关鉴权消费者列表',
+ ],
+ 'UpdateGatewayAuthConsumerResource' => [
+ 'summary' => '更新网关鉴权消费者的授权列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'UpdateGatewayAuthConsumerResource',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-3f97e2989c344f35ab3fd62b19f1****',
+ ],
+ ],
+ [
+ 'name' => 'ConsumerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'ResourceList',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '资源列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '7816',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'helo',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的%**s**。'."\n"
+ ."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则表示所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '执行是否成功:'."\n"
+ ."\n"
+ .'- true:成功'."\n"
+ ."\n"
+ .'- false:失败',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '更新网关鉴权消费者的授权列表',
+ ],
+ 'UpdateGatewayAuthConsumerStatus' => [
+ 'summary' => '更新网关鉴权消费者状态。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-685f661467b54f48b7b7a76605ce****',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ConsumerStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '56D9E600-6348-4260-B35F-583413F****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '执行是否成功:'."\n"
+ ."\n"
+ .'- true:成功'."\n"
+ ."\n"
+ .'- false:失败',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"56D9E600-6348-4260-B35F-583413F****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '更新网关鉴权消费者状态',
+ ],
+ 'AddGatewayAuthConsumer' => [
+ 'summary' => '新增网关鉴权消费者。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c70622ff52fe49beb29bea9a6f52****',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'JWT',
+ ],
+ ],
+ [
+ 'name' => 'EncodeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '加密类型:'."\n"
+ ."\n"
+ .'- RSA'."\n"
+ ."\n"
+ .'- OCT',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'RSA',
+ ],
+ ],
+ [
+ 'name' => 'Jwks',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT公钥,支持JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"keys":[{"e":"AQAB","kid":"DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ","kty":"RSA","n":"xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ"}]}',
+ ],
+ ],
+ [
+ 'name' => 'TokenName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要校验的Token参数信息的名称,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Authorization',
+ ],
+ ],
+ [
+ 'name' => 'TokenPass',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否透传。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'TokenPosition',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要校验的Token参数信息的位置,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HEADER',
+ ],
+ ],
+ [
+ 'name' => 'TokenPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要校验的Token参数信息的前缀,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Bearer ',
+ ],
+ ],
+ [
+ 'name' => 'KeyName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT内身份标识KeyName。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'iss',
+ ],
+ ],
+ [
+ 'name' => 'KeyValue',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT内身份标识KeyValue。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abcd',
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'description',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP返回码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数 `ErrMessage` 错误信息中的 `%s`。'."\n"
+ ."\n"
+ .'> 如果`ErrMessage`返回`The Value of Input Parameter %s is not valid`,且`DynamicMessage`返回`DtsJobId`,则代表所传入的请求参数`DtsJobId`不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": 2\\n}","type":"json"}]',
+ 'title' => '新增网关鉴权消费者',
+ ],
+ 'DeleteGatewayAuthConsumerResource' => [
+ 'summary' => '删除网关鉴权消费者的授权。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-ubuwqygbq4783gqb2y3f87q****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'ConsumerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'IdList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用户删除指定的授权ID列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1,2,3,4',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '3369AD10-F1A6-4E6F-B99E-20F51826****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NoPermission',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '执行是否成功:'."\n"
+ ."\n"
+ .'- true:成功'."\n"
+ ."\n"
+ .'- false:失败',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3369AD10-F1A6-4E6F-B99E-20F51826****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"NoPermission\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '删除网关鉴权消费者的授权',
+ ],
+ 'UpdateGatewayAuthConsumerResourceStatus' => [
+ 'summary' => '更新网关鉴权消费者的授权状态。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-2a99625886d54722be94d92e9a69****',
+ ],
+ ],
+ [
+ 'name' => 'ConsumerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '2',
+ ],
+ ],
+ [
+ 'name' => 'IdList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用户更新指定的授权ID列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1,2,3,4',
+ ],
+ ],
+ [
+ 'name' => 'ResourceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数 `ErrMessage` 错误信息中的 `%s`。'."\n"
+ ."\n"
+ .'> 如果`ErrMessage`返回`The Value of Input Parameter %s is not valid`,且`DynamicMessage`返回`DtsJobId`,则代表所传入的请求参数`DtsJobId`不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '执行是否成功:'."\n"
+ ."\n"
+ .'- true:成功'."\n"
+ ."\n"
+ .'- false:失败',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '更新网关鉴权消费者的授权状态',
+ ],
+ 'DeleteGatewayAuthConsumer' => [
+ 'summary' => '删除网关鉴权消费者。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c70622ff52fe49beb29bea9a6f52****',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '33ff74b6-d21e-4f9b-91a8-bc1ea4ef****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。'."\n",
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '执行是否成功:'."\n"
+ ."\n"
+ .'- true:成功'."\n"
+ ."\n"
+ .'- false:失败',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '删除网关鉴权消费者',
+ ],
+ 'GetGatewayAuthConsumerDetail' => [
+ 'summary' => '获取网关鉴权消费者细节。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1a4ab101d5924b6f92c5ec98a84*****',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '120',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'mse-100-000',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'Name' => [
+ 'description' => '鉴权消费者名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ConsumerStatus' => [
+ 'description' => '鉴权消费者状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PrimaryUser' => [
+ 'description' => '创建人。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597cd4a9****',
+ ],
+ 'Type' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT',
+ 'type' => 'string',
+ 'example' => 'JWT',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2023-02-01 14:17:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-01 14:17:57',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => '描述',
+ ],
+ 'EncodeType' => [
+ 'description' => '加密类型:'."\n"
+ ."\n"
+ .'- RSA'."\n"
+ ."\n"
+ .'- OCT',
+ 'type' => 'string',
+ 'example' => 'RSA',
+ ],
+ 'Jwks' => [
+ 'description' => 'JWT公钥,支持JSON格式。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "keys": ['."\n"
+ .' {'."\n"
+ .' "e": "AQAB",'."\n"
+ .' "kid": "DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ",'."\n"
+ .' "kty": "RSA",'."\n"
+ .' "n": "xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}',
+ ],
+ 'TokenName' => [
+ 'description' => '要校验的Token参数信息的名称,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'example' => 'Authorization',
+ ],
+ 'TokenPass' => [
+ 'description' => '是否透传。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'TokenPosition' => [
+ 'description' => '要校验的Token参数信息的位置,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'example' => 'HEADER',
+ ],
+ 'TokenPrefix' => [
+ 'description' => '要校验的Token参数信息的前缀,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'example' => 'Bearer ',
+ ],
+ 'KeyName' => [
+ 'description' => 'JWT内身份标识KeyName。',
+ 'type' => 'string',
+ 'example' => 'iss',
+ ],
+ 'KeyValue' => [
+ 'description' => 'JWT内身份标识KeyValue。',
+ 'type' => 'string',
+ 'example' => 'abcd',
+ ],
+ 'ResourceList' => [
+ 'description' => '资源列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '鉴权消费者授权ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '16',
+ ],
+ 'ConsumerId' => [
+ 'description' => '网关鉴权消费者ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '123',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3458',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceStatus' => [
+ 'description' => '资源授权状态:'."\n"
+ ."\n"
+ .'- true:启用'."\n"
+ ."\n"
+ .'- false:停用',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-4822033a8513496fa10f05c934f*****',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-12-06 01:38:03',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-12-06 01:38:03',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"mse-100-000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"Id\\": 12,\\n \\"Name\\": \\"test\\",\\n \\"ConsumerStatus\\": true,\\n \\"PrimaryUser\\": \\"123\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597cd4a9****\\",\\n \\"Type\\": \\"JWT\\",\\n \\"GmtCreate\\": \\"2023-02-01 14:17:57\\",\\n \\"GmtModified\\": \\"2023-03-01 14:17:57\\",\\n \\"Description\\": \\"描述\\",\\n \\"EncodeType\\": \\"RSA\\",\\n \\"Jwks\\": \\"{\\\\n \\\\\\"keys\\\\\\": [\\\\n {\\\\n \\\\\\"e\\\\\\": \\\\\\"AQAB\\\\\\",\\\\n \\\\\\"kid\\\\\\": \\\\\\"DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ\\\\\\",\\\\n \\\\\\"kty\\\\\\": \\\\\\"RSA\\\\\\",\\\\n \\\\\\"n\\\\\\": \\\\\\"xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ\\\\\\"\\\\n }\\\\n ]\\\\n}\\",\\n \\"TokenName\\": \\"Authorization\\",\\n \\"TokenPass\\": true,\\n \\"TokenPosition\\": \\"HEADER\\",\\n \\"TokenPrefix\\": \\"Bearer \\",\\n \\"KeyName\\": \\"iss\\",\\n \\"KeyValue\\": \\"abcd\\",\\n \\"ResourceList\\": [\\n {\\n \\"Id\\": 16,\\n \\"ConsumerId\\": 123,\\n \\"RouteId\\": 3458,\\n \\"RouteName\\": \\"test\\",\\n \\"ResourceStatus\\": true,\\n \\"GatewayUniqueId\\": \\"gw-4822033a8513496fa10f05c934f*****\\",\\n \\"GmtCreate\\": \\"2022-12-06 01:38:03\\",\\n \\"GmtModified\\": \\"2022-12-06 01:38:03\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取网关鉴权消费者细节',
+ ],
+ 'AddBlackWhiteList' => [
+ 'summary' => '添加黑白名单。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '36594',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseWSG2U5',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-0fe488252dc44d55a9dd57875193****',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '生效粒度:'."\n"
+ .'- GATEWAY:网关全局'."\n"
+ .'- DOMAIN:域名'."\n"
+ .'- ROUTE:路由',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GATEWAY',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '黑白名单类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IP',
+ ],
+ ],
+ [
+ 'name' => 'Content',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '黑名单内容。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.117.115.51',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '黑名单状态描述。'."\n"
+ ."\n"
+ .'- on 开启'."\n"
+ .'- off 关闭',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'off',
+ ],
+ ],
+ [
+ 'name' => 'IsWhite',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否白名单(默认为否)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'ResourceIdJsonList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源ID列表JSON。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[123]',
+ ],
+ ],
+ [
+ 'name' => 'Note',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '备注。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'this is a note',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '966F6CA7-16D0-50AB-AB02-E140934F90C1',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '记录ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"966F6CA7-16D0-50AB-AB02-E140934F90C1\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 2\\n}","type":"json"}]',
+ 'title' => '添加黑白名单',
+ ],
+ 'UpdateBlackWhiteList' => [
+ 'summary' => '更新网关黑白名单。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '36595',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseWSG2U5',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '黑名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '绑定资源作用范围。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'GATEWAY',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '黑白名单资源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IP',
+ ],
+ ],
+ [
+ 'name' => 'Content',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '黑名单内容。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '127.0.2.11',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启状态。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'off' => '关闭',
+ 'on' => '开启',
+ ],
+ 'example' => 'on',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-c70622ff52fe49beb29bea9a6f52****',
+ ],
+ ],
+ [
+ 'name' => 'IsWhite',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否白名单(默认为否)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ResourceIdJsonList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源ID列表JSON。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[123]',
+ ],
+ ],
+ [
+ 'name' => 'Note',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '备注。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'this is a note',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '请求消息',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '记录ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '13',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 13\\n}","type":"json"}]',
+ 'title' => '更新网关黑白名单',
+ ],
+ 'GatewayBlackWhiteList' => [
+ 'summary' => '获取网关黑白名单列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页数。取值范围:大于0的整数。默认值:1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页显示条数。默认值:1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'parse from filterParams',
+ 'description' => 'parse from filterParams',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '81',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID(和GatewayId同时存在时优先使用GatewayId)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'ResourceType' => [
+ 'description' => '暂未开放使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '""',
+ ],
+ 'Type' => [
+ 'description' => '暂未开放使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => ' ""',
+ ],
+ 'IsWhite' => [
+ 'description' => '暂未开放使用。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => ' ""',
+ ],
+ 'SearchType' => [
+ 'description' => '查询类型:'."\n"
+ ."\n"
+ .'- ROUTE:按路由搜索,SearchContent填写路由名'."\n"
+ ."\n"
+ .'- DOMAIN:按域名搜索,SearchContent填写域名'."\n"
+ ."\n"
+ .'- IP:按指定IP搜索,SearchContent填写IP',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IP',
+ ],
+ 'SearchContent' => [
+ 'description' => '搜索内容。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.1.1.1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'OrderItem',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '暂未开放使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '""',
+ ],
+ ],
+ [
+ 'name' => 'DescSort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '暂未开放使用。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => '""',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'RestResult<PageResult<BlackWhiteList>>',
+ 'description' => 'RestResult<PageResult<BlackWhiteList>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '58E06A0A-BD2C-47A0-99C2-B100F353****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符,暂无使用,请忽略',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态消息,暂无使用,请忽略',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'title' => '实例列表的页码',
+ 'description' => '实例列表的页码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalSize' => [
+ 'title' => '查询到的实例总数',
+ 'description' => '查询到的实例总数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '输入时设置的每页行数',
+ 'description' => '输入时设置的每页行数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Result' => [
+ 'description' => '返回集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '黑白名单ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ 'ResourceId' => [
+ 'description' => '资源ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ 'ResourceType' => [
+ 'description' => '生效粒度:'."\n"
+ .'- GATEWAY:网关全局'."\n"
+ .'- DOMAIN:域名'."\n"
+ .'- ROUTE:路由',
+ 'type' => 'string',
+ 'example' => 'GATEWAY',
+ ],
+ 'Content' => [
+ 'description' => '黑名单内容。',
+ 'type' => 'string',
+ 'example' => '1.1.1.1',
+ ],
+ 'IsWhite' => [
+ 'description' => '是否白名单。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Type' => [
+ 'description' => '黑白名单类型,当前固定为IP黑白名单。',
+ 'type' => 'string',
+ 'example' => 'IP',
+ ],
+ 'Status' => [
+ 'description' => '黑白名单状态。'."\n"
+ ."\n"
+ .'- on:开启'."\n"
+ ."\n"
+ .'- off:关闭',
+ 'type' => 'string',
+ 'example' => 'on',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '81',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2024-08-02T02:43:40.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2024-08-02T02:43:40.000+0000',
+ ],
+ 'ResourceIdJsonList' => [
+ 'description' => '资源ID列表JSON。'."\n"
+ ."\n"
+ .'- 若ResourceType为ROUTE,则为路由ID列表'."\n"
+ ."\n"
+ .'- 若ResourceType为DOMAIN,则为域名ID列表',
+ 'type' => 'string',
+ 'example' => '[234]',
+ ],
+ 'Note' => [
+ 'description' => '备注。',
+ 'type' => 'string',
+ 'example' => '禁止的IP列表',
+ ],
+ 'ResourceIdNameJson' => [
+ 'description' => '资源名称描述。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'Name' => [
+ 'description' => '黑名单名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"58E06A0A-BD2C-47A0-99C2-B100F353****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"TotalSize\\": 1,\\n \\"PageSize\\": 1,\\n \\"Result\\": [\\n {\\n \\"Id\\": 549,\\n \\"ResourceId\\": 549,\\n \\"ResourceType\\": \\"GATEWAY\\",\\n \\"Content\\": \\"1.1.1.1\\",\\n \\"IsWhite\\": true,\\n \\"Type\\": \\"IP\\",\\n \\"Status\\": \\"on\\",\\n \\"GatewayId\\": 81,\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14centbrveca****\\",\\n \\"GmtCreate\\": \\"2024-08-02T02:43:40.000+0000\\",\\n \\"GmtModified\\": \\"2024-08-02T02:43:40.000+0000\\",\\n \\"ResourceIdJsonList\\": \\"[234]\\",\\n \\"Note\\": \\"禁止的IP列表\\",\\n \\"ResourceIdNameJson\\": \\"{}\\",\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取网关黑白名单列表',
+ ],
+ 'DeleteBlackWhiteList' => [
+ 'summary' => '删除黑白名单',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '36597',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseWSG2U5',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '430',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '黑白名单id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '120',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-9cdcf8e4f58144059e73ff4c5ef9****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '黑白名单id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '120',
+ ],
+ 'ResourceId' => [
+ 'description' => '已废弃',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ResourceType' => [
+ 'description' => '生效粒度:'."\n"
+ ."\n"
+ .'- GATEWAY:网关全局'."\n"
+ ."\n"
+ .'- DOMAIN:域名'."\n"
+ ."\n"
+ .'- ROUTE:路由',
+ 'type' => 'string',
+ 'example' => 'GATEWAY',
+ ],
+ 'Content' => [
+ 'description' => '配置内容',
+ 'type' => 'string',
+ 'example' => '1.1.1.1',
+ ],
+ 'Type' => [
+ 'description' => '已废弃,固定值',
+ 'type' => 'string',
+ 'example' => 'IP',
+ ],
+ 'IsWhite' => [
+ 'description' => '是否为白名单。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Status' => [
+ 'description' => '开启状态:'."\n"
+ ."\n"
+ .'- 0:关闭'."\n"
+ ."\n"
+ .'- 1:开启',
+ 'type' => 'boolean',
+ 'example' => '1',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '430',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一id',
+ 'type' => 'string',
+ 'example' => 'gw-9cdcf8e4f58144059e73ff4c5ef9****',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-08-10 20:22:34',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间',
+ 'type' => 'string',
+ 'example' => '2022-08-10 20:22:34',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 120,\\n \\"ResourceId\\": 1,\\n \\"ResourceType\\": \\"GATEWAY\\",\\n \\"Content\\": \\"1.1.1.1\\",\\n \\"Type\\": \\"IP\\",\\n \\"IsWhite\\": true,\\n \\"Status\\": true,\\n \\"GatewayId\\": 430,\\n \\"GatewayUniqueId\\": \\"gw-9cdcf8e4f58144059e73ff4c5ef9****\\",\\n \\"GmtCreate\\": \\"2022-08-10 20:22:34\\",\\n \\"GmtModified\\": \\"2022-08-10 20:22:34\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除黑白名单',
+ ],
+ 'GetBlackWhiteList' => [
+ 'summary' => '查询网关黑白名单。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '36934',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseWSG2U5',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '范围类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GATEWAY',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IP',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-32d5c9769c1842b1a2cc3426c59e****',
+ ],
+ ],
+ [
+ 'name' => 'IsWhite',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否白名单。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '89CBC928-4F57-51FA-A413-EE0F4CD87200',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation. ',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明 200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '275',
+ ],
+ 'ResourceId' => [
+ 'description' => '资源ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ResourceType' => [
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'example' => 'GATEWAY',
+ ],
+ 'Content' => [
+ 'description' => '黑名单内容。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'IP',
+ ],
+ 'IsWhite' => [
+ 'description' => '是否为白名单。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Status' => [
+ 'description' => '黑白名单状态。',
+ 'type' => 'string',
+ 'example' => 'on',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'substitutions' => [
+ 'mse::2019-05-31::GatewayBlackWhiteList',
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89CBC928-4F57-51FA-A413-EE0F4CD87200\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation. \\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 275,\\n \\"ResourceId\\": 1,\\n \\"ResourceType\\": \\"GATEWAY\\",\\n \\"Content\\": \\"text\\",\\n \\"Type\\": \\"IP\\",\\n \\"IsWhite\\": true,\\n \\"Status\\": \\"on\\",\\n \\"GatewayId\\": 1,\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\"\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关黑白名单',
+ ],
+ 'AddGatewayAuth' => [
+ 'summary' => '创建网关鉴权。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '37105',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseFZIQVY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT'."\n"
+ .'- OIDC'."\n"
+ .'- IDaaS'."\n"
+ .'- ExternalAuthZ(自建的鉴权服务)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'JWT',
+ ],
+ ],
+ [
+ 'name' => 'Issuer',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型为JWT/OIDC时使用:'."\n"
+ ."\n"
+ .'- JWT:表示JWT claims 的iss(issuer),即签发人。'."\n"
+ .'- OIDC:表示OIDC claims 的iss(issuer),即签发人',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://example.com/auth',
+ ],
+ ],
+ [
+ 'name' => 'Jwks',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT公钥,支持JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"keys":[{"e":"AQAB","kid":"DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ","kty":"RSA","n":"xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ"}]}',
+ ],
+ ],
+ [
+ 'name' => 'TokenPosition',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT Token类型:'."\n"
+ ."\n"
+ .'- HEADER:通过Header传输'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:Authorization: Bearer token。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HEADER',
+ ],
+ ],
+ [
+ 'name' => 'TokenName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT Token保存的位置。'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Authorization',
+ ],
+ ],
+ [
+ 'name' => 'TokenNamePrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT Token的前缀。'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Bearer ',
+ ],
+ ],
+ [
+ 'name' => 'TokenPass',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否透传Token。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'IsWhite',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '未开放参数,无需传递(鉴权创建后默认为关闭状态)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'RedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权成功后的重定向地址(OIDC/IDaaS使用,需要与OIDC/IDaaS中配置的重定向地址保持一致。)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://test-.com/oauth2/callback',
+ ],
+ ],
+ [
+ 'name' => 'ClientId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务注册的应用ID(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '23460e2fdd9bf9ad106****',
+ ],
+ ],
+ [
+ 'name' => 'ClientSecret',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务注册的应用Secret(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123****',
+ ],
+ ],
+ [
+ 'name' => 'CookieDomain',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Cookie的域名,认证通过后会将Cookie发送到指定的域名,保持登录状态。'."\n"
+ ."\n"
+ .'例如:设置`Cookie-domain=a.example.com`,则Cookie会发送到域名`a.example.com`;设置`Cookie-domain=.example.com`,则Cookie会发送到`example.com`的所有子域名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test.com',
+ ],
+ ],
+ [
+ 'name' => 'ScopesList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'OIDC授权作用域(OIDC使用)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'OIDC授权作用域',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'openid',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'LoginUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'IDaaS实例用户登录页地址(IDaaS使用)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://daxxxxcn.aliyunidaas.com/',
+ ],
+ ],
+ [
+ 'name' => 'Sub',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型为JWT时使用;JWT claims 的sub(subject),即主体,请确保JWT的Payload中的sub字段的值与此处配置的值一致。如果该参数未设置或者为空,那么默认与Issuer参数设置的值一致',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[email protected]',
+ ],
+ ],
+ [
+ 'name' => 'ExternalAuthZJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '自定义鉴权信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '鉴权服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1343',
+ ],
+ 'PrefixPath' => [
+ 'description' => '鉴权服务提供的鉴权API的Path,API的Path需是前缀匹配。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/auth',
+ ],
+ 'TokenKey' => [
+ 'description' => 'Token处于请求报文中哪个Header中,常见的有Authorization和Cookie。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Authorization',
+ ],
+ 'AllowRequestHeaders' => [
+ 'description' => '鉴权请求中允许携带的头部。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的请求头名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-req',
+ ],
+ 'required' => false,
+ ],
+ 'AllowUpstreamHeaders' => [
+ 'description' => '鉴权响应中允许保留的头部。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的响应头名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-resp',
+ ],
+ 'required' => false,
+ ],
+ 'Timeout' => [
+ 'description' => '鉴权服务的超时时间,单位:秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ 'IsRestrict' => [
+ 'description' => '自定义鉴权模式:'."\n"
+ ."\n"
+ .'- true:严格模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关拒绝客户端请求'."\n"
+ .'- false:宽松模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关放过客户端请求',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'WithRequestBody' => [
+ 'description' => '是否允许携带Body。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'BodyMaxBytes' => [
+ 'description' => 'Body的最大字节数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '4000000',
+ ],
+ 'WithRematchRoute' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-*****9b04bb4474cae9d645be850e3d7',
+ ],
+ ],
+ [
+ 'name' => 'AuthResourceMode',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '授权资源模式:'."\n"
+ ."\n"
+ .'- 0:简单模式'."\n"
+ .'- 1:复杂模式',
+ 'description' => '授权资源模式:'."\n"
+ ."\n"
+ .'- 0:简单模式'."\n"
+ .'- 1:复杂模式',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AuthResourceConfig',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '复杂模式的YAML配置',
+ 'description' => '复杂模式的YAML配置',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AuthResourceList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '鉴权的授权规则列表,多个规则条件之间是“或”关系,规则条件内的多个匹配项之间是“与”关系。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DomainId' => [
+ 'description' => '规则内域名的ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1765',
+ ],
+ 'Path' => [
+ 'description' => '规则的匹配路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ 'MatchType' => [
+ 'description' => '请求Path的匹配类型:'."\n"
+ ."\n"
+ .'- EQUAL:精确匹配'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- ERGULAR:正则匹配',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'EQUAL',
+ ],
+ 'IgnoreCase' => [
+ 'description' => '路径是否开启大小写敏感(创建自定义鉴权时使用,其他鉴权类型默认开启大小写敏感)'."\n"
+ ."\n"
+ .'- true:开启大小写敏感'."\n"
+ .'- false:关闭大小写敏感',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'AuthResourceHeaderList' => [
+ 'description' => '规则的请求头(当前仅供自定义鉴权使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HeaderKey' => [
+ 'description' => '请求头名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-req',
+ ],
+ 'HeaderMethod' => [
+ 'description' => '匹配条件:'."\n"
+ ."\n"
+ .'- EQUAL:等于'."\n"
+ .'- NOT_EQUAL:不等于'."\n"
+ .'- EXIST:存在'."\n"
+ .'- NOT_EXIST:不存在'."\n"
+ .'- INCLUDE:包含'."\n"
+ .'- EXCLUDE:不包含'."\n"
+ .'- PREFIX:前缀'."\n"
+ .'- SUFFIX:后缀'."\n"
+ .'- REGREX:正则',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'EQUAL',
+ ],
+ 'HeaderValue' => [
+ 'description' => '请求头的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4279C00F-A5E1-53C6-A43B-751C1C524D0B',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'description' => '用于和Success同步,当Success为true时,Code为200。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '创建的鉴权ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '333',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4279C00F-A5E1-53C6-A43B-751C1C524D0B\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 333\\n}","type":"json"}]',
+ 'title' => '创建网关鉴权',
+ ],
+ 'UpdateGatewayAuth' => [
+ 'summary' => '更新网关鉴权',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '37106',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseFZIQVY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT'."\n"
+ .'- OIDC'."\n"
+ .'- IDaaS'."\n"
+ .'- ExternalAuthZ(自建的鉴权服务)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ExternalAuthZ',
+ ],
+ ],
+ [
+ 'name' => 'Issuer',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型为JWT/OIDC时使用:'."\n"
+ ."\n"
+ .'- JWT:表示JWT claims 的iss(issuer),即签发人。'."\n"
+ .'- OIDC:表示OIDC claims 的iss(issuer),即签发人',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Jwks',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT公钥,支持JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"keys":[{"e":"AQAB","kid":"DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ","kty":"RSA","n":"xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ"}]}',
+ ],
+ ],
+ [
+ 'name' => 'TokenPosition',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT Token类型:'."\n"
+ ."\n"
+ .'- HEADER:通过Header传输'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:Authorization: Bearer token。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'HEADER',
+ ],
+ ],
+ [
+ 'name' => 'TokenName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT Token保存的位置。'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Authorization',
+ ],
+ ],
+ [
+ 'name' => 'TokenNamePrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'JWT Token的前缀。'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Bearer',
+ ],
+ ],
+ [
+ 'name' => 'TokenPass',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否透传Token。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '启用状态。'."\n"
+ ."\n"
+ .'- 未启用:false'."\n"
+ ."\n"
+ .'- 启用:true',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权规则id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '719',
+ ],
+ ],
+ [
+ 'name' => 'RedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权成功后的重定向地址(OIDC/IDaaS使用,需要与OIDC/IDaaS中配置的重定向地址保持一致。)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://test-.com/oauth2/callback',
+ ],
+ ],
+ [
+ 'name' => 'ClientId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务注册的应用ID(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'app_mnvxaavggw7hcdcnr6usi6***',
+ ],
+ ],
+ [
+ 'name' => 'ClientSecret',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '在OIDC认证服务中注册的应用secret。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CS6EYfx3k9yTRR9EtQ2MXWP97P6UAUwFg4teoWJ19Z****',
+ ],
+ ],
+ [
+ 'name' => 'CookieDomain',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Cookie的域名,认证通过后会将Cookie发送到指定的域名,保持登录状态。'."\n"
+ ."\n"
+ .'例如:设置`Cookie-domain=a.example.com`,则Cookie会发送到域名`a.example.com`;设置`Cookie-domain=.example.com`,则Cookie会发送到`example.com`的所有子域名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test.com',
+ ],
+ ],
+ [
+ 'name' => 'ScopesList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'OIDC授权作用域(OIDC使用)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'OIDC授权作用域(OIDC使用)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'openid',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'LoginUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'IDaaS实例用户登录页地址(IDaaS使用)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://daxxxxcn.aliyunidaas.com/',
+ ],
+ ],
+ [
+ 'name' => 'Sub',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权类型为JWT时使用;JWT claims 的sub(subject),即主体,请确保JWT的Payload中的sub字段的值与此处配置的值一致。如果该参数未设置或者为空,那么默认与Issuer参数设置的值一致',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-app',
+ ],
+ ],
+ [
+ 'name' => 'ExternalAuthZJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '自定义鉴权信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '鉴权服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '37396',
+ ],
+ 'PrefixPath' => [
+ 'description' => '鉴权服务提供的鉴权API的Path,API的Path需是前缀匹配。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/auth',
+ ],
+ 'TokenKey' => [
+ 'description' => 'Token处于请求报文中哪个Header中,常见的有Authorization和Cookie。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Authorization',
+ ],
+ 'AllowRequestHeaders' => [
+ 'description' => '允许的请求头名称。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的请求头名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-req',
+ ],
+ 'required' => false,
+ ],
+ 'AllowUpstreamHeaders' => [
+ 'description' => '允许的响应头名称。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的响应头名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-resp',
+ ],
+ 'required' => false,
+ ],
+ 'Timeout' => [
+ 'description' => '鉴权服务的超时时间,单位:秒。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ 'IsRestrict' => [
+ 'description' => '自定义鉴权模式:'."\n"
+ ."\n"
+ .'- true:严格模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关拒绝客户端请求'."\n"
+ .'- false:宽松模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关放过客户端请求',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'WithRequestBody' => [
+ 'description' => '是否允许携带Body。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'BodyMaxBytes' => [
+ 'description' => 'Body的最大字节数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '4000000',
+ ],
+ 'WithRematchRoute' => [
+ 'description' => '是否在鉴权完成后重新匹配路由。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-9cdcf8e4f58144059e73ff4c5ef9****',
+ ],
+ ],
+ [
+ 'name' => 'IsWhite',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AuthResourceMode',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '授权资源模式:'."\n"
+ ."\n"
+ .'- 0:简单模式'."\n"
+ .'- 1:复杂模式',
+ 'description' => '授权资源模式:'."\n"
+ ."\n"
+ .'- 0:简单模式'."\n"
+ .'- 1:复杂模式',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AuthResourceConfig',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '复杂模式的YAML配置',
+ 'description' => '复杂模式的YAML配置',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '\'\'',
+ ],
+ ],
+ [
+ 'name' => 'AuthResourceList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '鉴权的授权规则列表,多个规则条件之间是“或”关系,规则条件内的多个匹配项之间是“与”关系。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '鉴权的授权规则列表,多个规则条件之间是“或”关系,规则条件内的多个匹配项之间是“与”关系。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '资源记录ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'DomainId' => [
+ 'description' => '规则内域名的ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1765',
+ ],
+ 'Path' => [
+ 'description' => '规则的匹配路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ 'MatchType' => [
+ 'description' => '请求Path的匹配类型:'."\n"
+ ."\n"
+ .'- EQUAL:精确匹配'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- ERGULAR:正则匹配',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'EQUAL',
+ ],
+ 'IgnoreCase' => [
+ 'description' => '路径是否开启大小写敏感(创建自定义鉴权时使用,其他鉴权类型默认开启大小写敏感)'."\n"
+ ."\n"
+ .'- true:开启大小写敏感'."\n"
+ .'- false:关闭大小写敏感',
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ 'AuthResourceHeaderList' => [
+ 'description' => '规则的请求头(当前仅供自定义鉴权使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则的请求头(当前仅供自定义鉴权使用)',
+ 'type' => 'object',
+ 'properties' => [
+ 'HeaderKey' => [
+ 'description' => '请求头名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-req',
+ ],
+ 'HeaderMethod' => [
+ 'description' => '匹配条件:'."\n"
+ ."\n"
+ .'- EQUAL:等于'."\n"
+ .'- NOT_EQUAL:不等于'."\n"
+ .'- EXIST:存在'."\n"
+ .'- NOT_EXIST:不存在'."\n"
+ .'- INCLUDE:包含'."\n"
+ .'- EXCLUDE:不包含'."\n"
+ .'- PREFIX:前缀'."\n"
+ .'- SUFFIX:后缀'."\n"
+ .'- REGREX:正则',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'EQUAL',
+ ],
+ 'HeaderValue' => [
+ 'description' => '请求头的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'DeleteResourceIdList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '删除的资源记录ID列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '删除的资源记录ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'description' => 'code仅仅用来和success同步。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '鉴权规则ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '719',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 719\\n}","type":"json"}]',
+ 'title' => '更新网关鉴权',
+ ],
+ 'GetGatewayAuthDetail' => [
+ 'summary' => '获取网关鉴权详情。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '37108',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseFZIQVY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '鉴权ID',
+ 'description' => '鉴权ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1100',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关ID(和网关唯一ID二选一)',
+ 'description' => '网关ID(和网关唯一ID二选一)',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '2274',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关唯一ID(和网关ID二选一,网关唯一ID不为空时优先使用网关唯一ID查询)',
+ 'description' => '网关唯一ID(和网关ID二选一,网关唯一ID不为空时优先使用网关唯一ID查询)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-6f0dbd108a0249d2b675b3ef50b*****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:'."\n"
+ .'* zh(默认值):中文'."\n"
+ .'* en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '9C96CDF8-9E6C-XXXX-XXXX-8F87A10117E6',
+ ],
+ 'HttpStatusCode' => [
+ 'title' => 'HTTP 状态码。',
+ 'description' => 'HTTP 状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'title' => '信息。',
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'title' => '用于和Success同步,当Success为true时,Code为200',
+ 'description' => '用于和Success同步,当Success为true时,Code为200',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'title' => '请求是否成功',
+ 'description' => '请求是否成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'title' => '鉴权详情',
+ 'description' => '鉴权详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => '鉴权ID',
+ 'description' => '鉴权ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1100',
+ ],
+ 'Name' => [
+ 'title' => '鉴权名称',
+ 'description' => '鉴权名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'title' => '鉴权所属网关的唯一ID',
+ 'description' => '鉴权所属网关的唯一ID',
+ 'type' => 'string',
+ 'example' => 'gw-6f0dbd108a0249d2b675b3ef50b*****',
+ ],
+ 'GatewayId' => [
+ 'title' => '鉴权所属网关的ID',
+ 'description' => '鉴权所属网关的ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2274',
+ ],
+ 'Type' => [
+ 'title' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT'."\n"
+ .'- OIDC'."\n"
+ .'- IDaaS'."\n"
+ .'- ExternalAuthZ(自建的鉴权服务)',
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT'."\n"
+ .'- OIDC'."\n"
+ .'- IDaaS'."\n"
+ .'- ExternalAuthZ(自建的鉴权服务)',
+ 'type' => 'string',
+ 'example' => 'JWT',
+ ],
+ 'Issuer' => [
+ 'title' => '鉴权类型为JWT/OIDC时使用:'."\n"
+ ."\n"
+ .'- JWT:表示JWT claims 的iss(issuer),即签发人。'."\n"
+ .'- OIDC:表示OIDC claims 的iss(issuer),即签发人',
+ 'description' => '鉴权类型为JWT/OIDC时使用:'."\n"
+ ."\n"
+ .'- JWT:表示JWT claims 的iss(issuer),即签发人。'."\n"
+ .'- OIDC:表示OIDC claims 的iss(issuer),即签发人',
+ 'type' => 'string',
+ 'example' => 'https://example.com/auth',
+ ],
+ 'Jwks' => [
+ 'title' => 'JWT公钥,JSON格式',
+ 'description' => 'JWT公钥,JSON格式',
+ 'type' => 'string',
+ 'example' => '{\\n \\"keys\\":[\\n {\\n \\"kty\\": \\"RSA\\",\\n \\"e\\": \\"AQAB\\",\\n \\"use\\": \\"sig\\",\\n \\"kid\\": \\"1rGufmH1YN8rqM9ZOLgo7eEST3AnL89Y-m-XGFioLoA\\",\\n \\"alg\\": \\"RS256\\",\\n \\"n\\": \\"rM2GIc0YTMqwNCwXnjKbW5QndkCEZgyLu3uQUnyZF7HvMTekiTvQg_39mg3dV1eaYYkYfZBogyroJBqAQXhk6VVCxlBjFVp2xstJPVWngMOOlcafwN_BKdN-EQ06O_Uu__e7gNKI3DunkNk0cNaFETE7d4meRYyTlgEzYgsrW05_ufR0BKoddL3E5JsCpUxRjH9ICbodBx0U74W6Dcci-R2EA1DBrEcboE6n90uoJs6UJNriAK_71nAsYonihU5aQFFnyPTkJHfRwHK6JlME6rn-b-rpLSpdyc6U1nOFZP2DEpz8U5FrYoLYSZIU-MQGxDhCnGc_rxl2IyP9B2qcCQ\\"\\n }\\n ]\\n}\\n',
+ ],
+ 'IsWhite' => [
+ 'title' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'description' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'GmtCreate' => [
+ 'title' => '鉴权创建的GMT时间',
+ 'description' => '鉴权创建的GMT时间',
+ 'type' => 'string',
+ 'example' => '2024-02-19T02:41:03.000+0000',
+ ],
+ 'GmtModified' => [
+ 'title' => '鉴权修改的GMT时间',
+ 'description' => '鉴权修改的GMT时间',
+ 'type' => 'string',
+ 'example' => '2024-02-19T02:41:03.000+0000',
+ ],
+ 'TokenPosition' => [
+ 'title' => 'JWT Token类型:'."\n"
+ ."\n"
+ .'- HEADER:通过Header传输',
+ 'description' => 'JWT Token类型:'."\n"
+ ."\n"
+ .'- HEADER:通过Header传输',
+ 'type' => 'string',
+ 'example' => 'HEADER',
+ ],
+ 'TokenName' => [
+ 'title' => 'JWT Token保存的位置',
+ 'description' => 'JWT Token保存的位置',
+ 'type' => 'string',
+ 'example' => 'Authorization',
+ ],
+ 'TokenNamePrefix' => [
+ 'title' => 'JWT Token的前缀',
+ 'description' => 'JWT Token的前缀',
+ 'type' => 'string',
+ 'example' => 'Bearer ',
+ ],
+ 'TokenPass' => [
+ 'title' => '是否透传Token',
+ 'description' => '是否透传Token',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Status' => [
+ 'title' => '鉴权是否开启',
+ 'description' => '鉴权是否开启',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'RedirectUrl' => [
+ 'title' => '授权成功后的重定向地址(OIDC/IDaaS使用,需要与OIDC/IDaaS中配置的重定向地址保持一致。)',
+ 'description' => '授权成功后的重定向地址(OIDC/IDaaS使用,需要与OIDC/IDaaS中配置的重定向地址保持一致。)',
+ 'type' => 'string',
+ 'example' => 'https://yourdomain/path',
+ ],
+ 'ClientId' => [
+ 'title' => '服务注册的应用ID(OIDC/IDaaS使用)。',
+ 'description' => '服务注册的应用ID(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'example-app',
+ ],
+ 'ClientSecret' => [
+ 'title' => '服务注册的应用Secret(OIDC/IDaaS使用)。',
+ 'description' => '服务注册的应用Secret(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'xxxxx',
+ ],
+ 'CookieDomain' => [
+ 'title' => 'Cookie的域名,认证通过后会将Cookie发送到指定的域名,保持登录状态(OIDC/IDaaS使用)。',
+ 'description' => 'Cookie的域名,认证通过后会将Cookie发送到指定的域名,保持登录状态(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'hello.com',
+ ],
+ 'ScopesList' => [
+ 'title' => 'OIDC 作用域(OIDC 使用)。',
+ 'description' => 'OIDC作用域(OIDC使用)。',
+ 'type' => 'string',
+ 'example' => '["openid","email"]',
+ ],
+ 'LoginUrl' => [
+ 'title' => 'IDaaS实例用户登录页地址(IDaaS使用)。',
+ 'description' => 'IDaaS实例用户登录页地址(IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'https://daxxxxcn.aliyunidaas.com/',
+ ],
+ 'Sub' => [
+ 'title' => '鉴权类型为JWT时使用;JWT claims 的sub(subject),即主体。',
+ 'description' => '鉴权类型为JWT时使用;JWT claims 的sub(subject),即主体。',
+ 'type' => 'string',
+ 'example' => 'https://example.com/auth',
+ ],
+ 'ExternalAuthZ' => [
+ 'title' => '自定义鉴权信息',
+ 'description' => '自定义鉴权信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'title' => '鉴权服务ID',
+ 'description' => '鉴权服务ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '15300',
+ ],
+ 'PrefixPath' => [
+ 'title' => '鉴权API的Path',
+ 'description' => '鉴权API的Path',
+ 'type' => 'string',
+ 'example' => '/auth',
+ ],
+ 'TokenKey' => [
+ 'title' => 'Token位置,表示Token位于请求报文中哪个Header中,常见的有Authorization和Cookie',
+ 'description' => 'Token位置,表示Token位于请求报文中哪个Header中,常见的有Authorization和Cookie',
+ 'type' => 'string',
+ 'example' => 'Authorization',
+ ],
+ 'AllowRequestHeaders' => [
+ 'title' => '允许的请求头部',
+ 'description' => '允许的请求头部',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的请求头名称。',
+ 'type' => 'string',
+ 'example' => 'x-req',
+ ],
+ ],
+ 'AllowUpstreamHeaders' => [
+ 'title' => '允许的响应头部',
+ 'description' => '允许的响应头部',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的响应头名称。',
+ 'type' => 'string',
+ 'example' => 'x-resp',
+ ],
+ ],
+ 'Timeout' => [
+ 'title' => '鉴权服务的超时时间,单位:秒',
+ 'description' => '鉴权服务的超时时间,单位:秒',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'IsRestrict' => [
+ 'title' => '自定义鉴权模式:'."\n"
+ ."\n"
+ .'- true:严格模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关拒绝客户端请求'."\n"
+ .'- false:宽松模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关放过客户端请求',
+ 'description' => '自定义鉴权模式:'."\n"
+ ."\n"
+ .'- true:严格模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关拒绝客户端请求'."\n"
+ .'- false:宽松模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关放过客户端请求',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Service' => [
+ 'title' => '鉴权服务信息',
+ 'description' => '鉴权服务信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '鉴权服务名称',
+ 'description' => '鉴权服务名称',
+ 'type' => 'string',
+ 'example' => ' httpbin-auth-service',
+ ],
+ 'SourceType' => [
+ 'title' => '鉴权服务来源类型',
+ 'description' => '鉴权服务来源类型',
+ 'type' => 'string',
+ 'example' => 'K8s',
+ ],
+ 'GroupName' => [
+ 'title' => '鉴权服务所属的分组',
+ 'description' => '鉴权服务所属的分组',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Namespace' => [
+ 'title' => '鉴权服务命名空间',
+ 'description' => '鉴权服务命名空间',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ ],
+ ],
+ 'WithRequestBody' => [
+ 'title' => '是否允许携带Body',
+ 'description' => '是否允许携带Body',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'BodyMaxBytes' => [
+ 'title' => 'Body的最大字节数',
+ 'description' => 'Body的最大字节数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4000000',
+ ],
+ 'WithRematchRoute' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ 'ResourceList' => [
+ 'title' => '鉴权的授权规则列表,多个规则条件之间是“或”关系,规则条件内的多个匹配项之间是“与”关系。',
+ 'description' => '鉴权的授权规则列表,多个规则条件之间是“或”关系,规则条件内的多个匹配项之间是“与”关系。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '鉴权的授权规则。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => '授权规则ID',
+ 'description' => '授权规则ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1303',
+ ],
+ 'AuthId' => [
+ 'title' => '规则所归属鉴权的ID',
+ 'description' => '规则所归属鉴权的ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2274',
+ ],
+ 'DomainId' => [
+ 'title' => '规则内域名的ID',
+ 'description' => '规则内域名的ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1765',
+ ],
+ 'DomainName' => [
+ 'title' => '规则内的域名',
+ 'description' => '规则内的域名',
+ 'type' => 'string',
+ 'example' => 'example.com',
+ ],
+ 'Path' => [
+ 'title' => '规则的匹配路径',
+ 'description' => '规则的匹配路径',
+ 'type' => 'string',
+ 'example' => '/test',
+ ],
+ 'IsWhite' => [
+ 'title' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'description' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'GatewayId' => [
+ 'title' => '规则所属网关的ID',
+ 'description' => '规则所属网关的ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2274',
+ ],
+ 'GatewayUniqueId' => [
+ 'title' => '规则所属网关的唯一ID',
+ 'description' => '规则所属网关的唯一ID',
+ 'type' => 'string',
+ 'example' => 'gw-6f0dbd108a0249d2b675b3ef50b*****',
+ ],
+ 'GmtCreate' => [
+ 'title' => '授权规则的创建GMT时间',
+ 'description' => '授权规则的创建GMT时间',
+ 'type' => 'string',
+ 'example' => '2024-02-19T03:32:38.000+0000',
+ ],
+ 'GmtModified' => [
+ 'title' => '授权规则的修改GMT时间',
+ 'description' => '授权规则的修改GMT时间',
+ 'type' => 'string',
+ 'example' => '2024-02-19T03:32:38.000+0000',
+ ],
+ 'MatchType' => [
+ 'title' => '请求Path的匹配类型:'."\n"
+ ."\n"
+ .'- EQUAL:精确匹配'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- ERGULAR:正则匹配',
+ 'description' => '请求Path的匹配类型:'."\n"
+ ."\n"
+ .'- EQUAL:精确匹配'."\n"
+ .'- PRE:前缀匹配'."\n"
+ .'- ERGULAR:正则匹配',
+ 'type' => 'string',
+ 'example' => 'EQUAL',
+ ],
+ 'IgnoreCase' => [
+ 'title' => '路径是否开启大小写敏感'."\n"
+ ."\n"
+ .'- true:开启大小写敏感'."\n"
+ .'- false:关闭大小写敏感',
+ 'description' => '路径是否开启大小写敏感'."\n"
+ ."\n"
+ .'- true:开启大小写敏感'."\n"
+ .'- false:关闭大小写敏感',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AuthResourceHeaderList' => [
+ 'title' => '规则的请求头(当前仅供自定义鉴权使用)',
+ 'description' => '规则的请求头(当前仅供自定义鉴权使用)',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HeaderKey' => [
+ 'title' => '请求头名称',
+ 'description' => '请求头名称',
+ 'type' => 'string',
+ 'example' => 'x-req',
+ ],
+ 'HeaderMethod' => [
+ 'title' => '匹配条件:'."\n"
+ ."\n"
+ .'- EQUAL:等于'."\n"
+ .'- NOT_EQUAL:不等于'."\n"
+ .'- EXIST:存在'."\n"
+ .'- NOT_EXIST:不存在'."\n"
+ .'- INCLUDE:包含'."\n"
+ .'- EXCLUDE:不包含'."\n"
+ .'- PREFIX:前缀'."\n"
+ .'- SUFFIX:后缀'."\n"
+ .'- REGREX:正则',
+ 'description' => '匹配条件:'."\n"
+ ."\n"
+ .'- EQUAL:等于'."\n"
+ .'- NOT_EQUAL:不等于'."\n"
+ .'- EXIST:存在'."\n"
+ .'- NOT_EXIST:不存在'."\n"
+ .'- INCLUDE:包含'."\n"
+ .'- EXCLUDE:不包含'."\n"
+ .'- PREFIX:前缀'."\n"
+ .'- SUFFIX:后缀'."\n"
+ .'- REGREX:正则',
+ 'type' => 'string',
+ 'example' => 'EQUAL',
+ ],
+ 'HeaderValue' => [
+ 'title' => '请求头的值',
+ 'description' => '请求头的值',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'AuthResourceMode' => [
+ 'title' => '授权资源模式:'."\n"
+ ."\n"
+ .'- 0:简单模式'."\n"
+ .'- 1:复杂模式',
+ 'description' => '授权资源模式:'."\n"
+ ."\n"
+ .'- 0:简单模式'."\n"
+ .'- 1:复杂模式',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'AuthResourceConfig' => [
+ 'title' => '复杂模式的YAML配置',
+ 'description' => '复杂模式的YAML配置',
+ 'type' => 'string',
+ 'example' => 'permissions:'."\n"
+ .' - not_rule:'."\n"
+ .' or_rules:'."\n"
+ .' rules:'."\n"
+ .' - and_rules:'."\n"
+ .' rules:'."\n"
+ .' - url_path:'."\n"
+ .' path:'."\n"
+ .' ignore_case: false'."\n"
+ .' prefix: /version'."\n"
+ .' - and_rules:'."\n"
+ .' rules:'."\n"
+ .' - url_path:'."\n"
+ .' path:'."\n"
+ .' ignore_case: false'."\n"
+ .' prefix: /header',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9C96CDF8-9E6C-XXXX-XXXX-8F87A10117E6\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 1100,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-6f0dbd108a0249d2b675b3ef50b*****\\",\\n \\"GatewayId\\": 2274,\\n \\"Type\\": \\"JWT\\",\\n \\"Issuer\\": \\"https://example.com/auth\\",\\n \\"Jwks\\": \\"{\\\\\\\\n \\\\\\\\\\\\\\"keys\\\\\\\\\\\\\\":[\\\\\\\\n {\\\\\\\\n \\\\\\\\\\\\\\"kty\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"RSA\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"e\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"AQAB\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"use\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"sig\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"kid\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"1rGufmH1YN8rqM9ZOLgo7eEST3AnL89Y-m-XGFioLoA\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"alg\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"RS256\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"n\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"rM2GIc0YTMqwNCwXnjKbW5QndkCEZgyLu3uQUnyZF7HvMTekiTvQg_39mg3dV1eaYYkYfZBogyroJBqAQXhk6VVCxlBjFVp2xstJPVWngMOOlcafwN_BKdN-EQ06O_Uu__e7gNKI3DunkNk0cNaFETE7d4meRYyTlgEzYgsrW05_ufR0BKoddL3E5JsCpUxRjH9ICbodBx0U74W6Dcci-R2EA1DBrEcboE6n90uoJs6UJNriAK_71nAsYonihU5aQFFnyPTkJHfRwHK6JlME6rn-b-rpLSpdyc6U1nOFZP2DEpz8U5FrYoLYSZIU-MQGxDhCnGc_rxl2IyP9B2qcCQ\\\\\\\\\\\\\\"\\\\\\\\n }\\\\\\\\n ]\\\\\\\\n}\\\\\\\\n\\",\\n \\"IsWhite\\": true,\\n \\"GmtCreate\\": \\"2024-02-19T02:41:03.000+0000\\",\\n \\"GmtModified\\": \\"2024-02-19T02:41:03.000+0000\\",\\n \\"TokenPosition\\": \\"HEADER\\",\\n \\"TokenName\\": \\"Authorization\\",\\n \\"TokenNamePrefix\\": \\"Bearer \\",\\n \\"TokenPass\\": true,\\n \\"Status\\": false,\\n \\"RedirectUrl\\": \\"https://yourdomain/path\\",\\n \\"ClientId\\": \\"example-app\\",\\n \\"ClientSecret\\": \\"xxxxx\\",\\n \\"CookieDomain\\": \\"hello.com\\",\\n \\"ScopesList\\": \\"[\\\\\\"openid\\\\\\",\\\\\\"email\\\\\\"]\\",\\n \\"LoginUrl\\": \\"https://daxxxxcn.aliyunidaas.com/\\",\\n \\"Sub\\": \\"https://example.com/auth\\",\\n \\"ExternalAuthZ\\": {\\n \\"ServiceId\\": 15300,\\n \\"PrefixPath\\": \\"/auth\\",\\n \\"TokenKey\\": \\"Authorization\\",\\n \\"AllowRequestHeaders\\": [\\n \\"x-req\\"\\n ],\\n \\"AllowUpstreamHeaders\\": [\\n \\"x-resp\\"\\n ],\\n \\"Timeout\\": 10,\\n \\"IsRestrict\\": true,\\n \\"Service\\": {\\n \\"Name\\": \\" httpbin-auth-service\\",\\n \\"SourceType\\": \\"K8s\\",\\n \\"GroupName\\": \\"test\\",\\n \\"Namespace\\": \\"default\\"\\n },\\n \\"WithRequestBody\\": true,\\n \\"BodyMaxBytes\\": 4000000,\\n \\"WithRematchRoute\\": true\\n },\\n \\"ResourceList\\": [\\n {\\n \\"Id\\": 1303,\\n \\"AuthId\\": 2274,\\n \\"DomainId\\": 1765,\\n \\"DomainName\\": \\"example.com\\",\\n \\"Path\\": \\"/test\\",\\n \\"IsWhite\\": true,\\n \\"GatewayId\\": 2274,\\n \\"GatewayUniqueId\\": \\"gw-6f0dbd108a0249d2b675b3ef50b*****\\",\\n \\"GmtCreate\\": \\"2024-02-19T03:32:38.000+0000\\",\\n \\"GmtModified\\": \\"2024-02-19T03:32:38.000+0000\\",\\n \\"MatchType\\": \\"EQUAL\\",\\n \\"IgnoreCase\\": true,\\n \\"AuthResourceHeaderList\\": [\\n {\\n \\"HeaderKey\\": \\"x-req\\",\\n \\"HeaderMethod\\": \\"EQUAL\\",\\n \\"HeaderValue\\": \\"123\\"\\n }\\n ]\\n }\\n ],\\n \\"AuthResourceMode\\": 0,\\n \\"AuthResourceConfig\\": \\"permissions:\\\\n - not_rule:\\\\n or_rules:\\\\n rules:\\\\n - and_rules:\\\\n rules:\\\\n - url_path:\\\\n path:\\\\n ignore_case: false\\\\n prefix: /version\\\\n - and_rules:\\\\n rules:\\\\n - url_path:\\\\n path:\\\\n ignore_case: false\\\\n prefix: /header\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取网关鉴权详情',
+ ],
+ 'ListGatewayAuth' => [
+ 'summary' => '获取网关鉴权列表',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '37107',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseFZIQVY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示实例数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'OrderItem',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '暂未开放使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'DescSort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '过滤条件,参考示例。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '参数名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rutain-test',
+ ],
+ 'Type' => [
+ 'description' => '类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'JWT',
+ ],
+ 'Status' => [
+ 'description' => '启用',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'IsWhite' => [
+ 'description' => '白名单模式',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => 'EC1EED4A-B147-597B-B949-FD3131AB4298',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明 200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '9',
+ ],
+ 'PageNumber' => [
+ 'description' => '页数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '每页条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '鉴权id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ 'Name' => [
+ 'description' => '鉴权规则名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Type' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT'."\n"
+ .'- OIDC'."\n"
+ .'- IDaaS'."\n"
+ .'- ExternalAuthZ(自建的鉴权服务)',
+ 'type' => 'string',
+ 'example' => 'JWT',
+ ],
+ 'Issuer' => [
+ 'description' => '鉴权类型为JWT/OIDC时使用:'."\n"
+ ."\n"
+ .'- JWT:表示JWT claims 的iss(issuer),即签发人。'."\n"
+ .'- OIDC:表示OIDC claims 的iss(issuer),即签发人',
+ 'type' => 'string',
+ 'example' => 'https://example.com/auth',
+ ],
+ 'Jwks' => [
+ 'description' => 'JWT公钥,JSON格式',
+ 'type' => 'string',
+ 'example' => '{\\"keys\\":[{\\"kty\\":\\"oct\\",\\"k\\":\\"9V9lpiuAQsME1efQChI0kEQz6fdVlJbDRFFa1lvEB_A\\",\\"alg\\":\\"HS256\\"}]}',
+ ],
+ 'TokenPosition' => [
+ 'description' => 'JWT Token类型:'."\n"
+ ."\n"
+ .'- HEADER:通过Header传输'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:Authorization: Bearer token。',
+ 'type' => 'string',
+ 'example' => 'HEADER',
+ ],
+ 'TokenName' => [
+ 'description' => 'JWT Token保存的位置。'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'example' => 'Authorization',
+ ],
+ 'TokenNamePrefix' => [
+ 'description' => 'JWT Token的前缀。'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'example' => 'Bearer',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-09-13 19:24:23',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2021-09-13 19:24:23',
+ ],
+ 'TokenPass' => [
+ 'description' => '是否透传Token。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'IsWhite' => [
+ 'description' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Status' => [
+ 'description' => '启用状态。'."\n"
+ ."\n"
+ .'- 未启用:false'."\n"
+ ."\n"
+ .'- 启用:true',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RedirectUrl' => [
+ 'description' => '授权成功后的重定向地址(OIDC/IDaaS使用,需要与OIDC/IDaaS中配置的重定向地址保持一致。)',
+ 'type' => 'string',
+ 'example' => 'http://test.com/oauth2/callback',
+ ],
+ 'ClientId' => [
+ 'description' => '服务注册的应用ID(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'app_mnvxaavggw7hcdcnr6usi6***',
+ ],
+ 'ClientSecret' => [
+ 'description' => '服务注册的应用Secret(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'CS6EYfx3k9yTRR9EtQ2MXWP97P6UAUwFg4teoWJ19Z****',
+ ],
+ 'CookieDomain' => [
+ 'description' => 'Cookie的域名,认证通过后会将Cookie发送到指定的域名,保持登录状态(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'ScopesList' => [
+ 'description' => 'OIDC授权作用域(OIDC使用)。',
+ 'type' => 'string',
+ 'example' => '["openid"]',
+ ],
+ 'LoginUrl' => [
+ 'description' => 'IDaaS实例用户登录页地址(IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => ' '."\n"
+ .'https://daxxxxcn.aliyunidaas.com/',
+ ],
+ 'Sub' => [
+ 'description' => '鉴权类型为JWT时使用;JWT claims 的sub(subject),即主体。',
+ 'type' => 'string',
+ 'example' => 'example-app',
+ ],
+ 'ExternalAuthZ' => [
+ 'description' => '自定义鉴权信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '鉴权服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '45186',
+ ],
+ 'PrefixPath' => [
+ 'description' => '鉴权服务提供的鉴权API的Path,API的Path需是前缀匹配。',
+ 'type' => 'string',
+ 'example' => '/auth',
+ ],
+ 'TokenKey' => [
+ 'description' => 'Token位置,表示Token位于请求报文中哪个Header中,常见的有Authorization和Cookie',
+ 'type' => 'string',
+ 'example' => 'Authorization',
+ ],
+ 'AllowRequestHeaders' => [
+ 'description' => '允许的请求头名称。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的请求头名称。',
+ 'type' => 'string',
+ 'example' => 'x-req',
+ ],
+ ],
+ 'AllowUpstreamHeaders' => [
+ 'description' => '允许的响应头名称。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '允许的响应头名称。',
+ 'type' => 'string',
+ 'example' => 'x-resp',
+ ],
+ ],
+ 'Timeout' => [
+ 'description' => '鉴权服务的超时时间,单位:秒',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'WithRequestBody' => [
+ 'description' => '是否允许携带Body。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'WithRematchRoute' => [
+ 'description' => '是否在鉴权完成后重新匹配路由。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'BodyMaxBytes' => [
+ 'description' => 'Body的最大字节数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1024',
+ ],
+ 'IsRestrict' => [
+ 'description' => '自定义鉴权模式:'."\n"
+ ."\n"
+ .'- true:严格模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关拒绝客户端请求'."\n"
+ .'- false:宽松模式,当鉴权服务不可用时(鉴权服务建立连接失败或者返回5xx请求),网关放过客户端请求',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Service' => [
+ 'description' => '鉴权服务信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '鉴权服务名称',
+ 'type' => 'string',
+ 'example' => 'updatetime',
+ ],
+ 'SourceType' => [
+ 'description' => '鉴权服务来源类型',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'example' => 'com.mse.console.test.3YXO',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'AuthResourceMode' => [
+ 'description' => '授权资源模式:'."\n"
+ ."\n"
+ .'- 0:简单模式'."\n"
+ .'- 1:复杂模式',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EC1EED4A-B147-597B-B949-FD3131AB4298\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TotalSize\\": 9,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"Id\\": 549,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"GatewayId\\": 1,\\n \\"Type\\": \\"JWT\\",\\n \\"Issuer\\": \\"https://example.com/auth\\",\\n \\"Jwks\\": \\"{\\\\\\\\\\\\\\"keys\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"kty\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"oct\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"k\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"9V9lpiuAQsME1efQChI0kEQz6fdVlJbDRFFa1lvEB_A\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"alg\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"HS256\\\\\\\\\\\\\\"}]}\\",\\n \\"TokenPosition\\": \\"HEADER\\",\\n \\"TokenName\\": \\"Authorization\\",\\n \\"TokenNamePrefix\\": \\"Bearer\\",\\n \\"GmtCreate\\": \\"2021-09-13 19:24:23\\",\\n \\"GmtModified\\": \\"2021-09-13 19:24:23\\",\\n \\"TokenPass\\": true,\\n \\"IsWhite\\": true,\\n \\"Status\\": true,\\n \\"RedirectUrl\\": \\"http://test.com/oauth2/callback\\",\\n \\"ClientId\\": \\"app_mnvxaavggw7hcdcnr6usi6***\\",\\n \\"ClientSecret\\": \\"CS6EYfx3k9yTRR9EtQ2MXWP97P6UAUwFg4teoWJ19Z****\\",\\n \\"CookieDomain\\": \\"test.com\\",\\n \\"ScopesList\\": \\"[\\\\\\"openid\\\\\\"]\\",\\n \\"LoginUrl\\": \\"\\\\t\\\\nhttps://daxxxxcn.aliyunidaas.com/\\",\\n \\"Sub\\": \\"example-app\\",\\n \\"ExternalAuthZ\\": {\\n \\"ServiceId\\": 45186,\\n \\"PrefixPath\\": \\"/auth\\",\\n \\"TokenKey\\": \\"Authorization\\",\\n \\"AllowRequestHeaders\\": [\\n \\"x-req\\"\\n ],\\n \\"AllowUpstreamHeaders\\": [\\n \\"x-resp\\"\\n ],\\n \\"Timeout\\": 30,\\n \\"WithRequestBody\\": true,\\n \\"WithRematchRoute\\": true,\\n \\"BodyMaxBytes\\": 1024,\\n \\"IsRestrict\\": true,\\n \\"Service\\": {\\n \\"Name\\": \\"updatetime\\",\\n \\"SourceType\\": \\"MSE\\",\\n \\"GroupName\\": \\"com.mse.console.test.3YXO\\",\\n \\"Namespace\\": \\"default\\"\\n }\\n },\\n \\"AuthResourceMode\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取网关鉴权列表',
+ ],
+ 'DeleteGatewayAuth' => [
+ 'summary' => '删除网关鉴权',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '37109',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseFZIQVY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '鉴权id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '120',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'description' => '用于和Success同步,当Success为true时,Code为200',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '鉴权id',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '120',
+ ],
+ 'Name' => [
+ 'description' => '鉴权名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一id',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '399',
+ ],
+ 'Type' => [
+ 'description' => '鉴权类型:'."\n"
+ ."\n"
+ .'- JWT'."\n"
+ .'- OIDC'."\n"
+ .'- IDaaS'."\n"
+ .'- ExternalAuthZ(自建的鉴权服务)',
+ 'type' => 'string',
+ 'example' => 'JWT',
+ ],
+ 'Issuer' => [
+ 'description' => '鉴权类型为JWT/OIDC时使用:'."\n"
+ ."\n"
+ .'- JWT:表示JWT claims 的iss(issuer),即签发人。'."\n"
+ .'- OIDC:表示OIDC claims 的iss(issuer),即签发人',
+ 'type' => 'string',
+ 'example' => 'https://example.com/auth',
+ ],
+ 'Jwks' => [
+ 'description' => 'JWT公钥,JSON格式',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "keys": ['."\n"
+ .' {'."\n"
+ .' "e": "AQAB",'."\n"
+ .' "kid": "DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ",'."\n"
+ .' "kty": "RSA",'."\n"
+ .' "n": "xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}',
+ ],
+ 'IsWhite' => [
+ 'description' => '授权黑白名单模式:'."\n"
+ ."\n"
+ .'- true:白名单模式(名单中的 hosts + paths 不需要校验即可访问,其余都需要校验)'."\n"
+ .'- false:黑名单模式(名单中的 hosts + paths 需要校验,其余可直接访问)',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'TokenPosition' => [
+ 'description' => 'JWT Token类型:'."\n"
+ ."\n"
+ .'- HEADER:通过Header传输'."\n"
+ ."\n"
+ .'要校验的Token参数信息,默认是以Bearer为前缀放在Authorization header中,例如:Authorization: Bearer token。',
+ 'type' => 'string',
+ 'example' => 'HEADER',
+ ],
+ 'TokenName' => [
+ 'description' => '要校验的Token参数信息的名称,默认是以Bearer为前缀放在Authorization header中,例如:`Authorization: Bearer token`。',
+ 'type' => 'string',
+ 'example' => 'Authorization',
+ ],
+ 'TokenNamePrefix' => [
+ 'description' => 'JWT Token的前缀',
+ 'type' => 'string',
+ 'example' => 'Bearer ',
+ ],
+ 'TokenPass' => [
+ 'description' => '是否透传Token',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Status' => [
+ 'description' => '启用状态。'."\n"
+ ."\n"
+ .'- 未启用:false'."\n"
+ ."\n"
+ .'- 启用:true',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RedirectUrl' => [
+ 'description' => '授权成功后的重定向地址(OIDC/IDaaS使用,需要与OIDC/IDaaS中配置的重定向地址保持一致。)',
+ 'type' => 'string',
+ 'example' => 'https://yourdomain/path',
+ ],
+ 'ClientId' => [
+ 'description' => '服务注册的应用ID(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'example-app',
+ ],
+ 'ClientSecret' => [
+ 'description' => '服务注册的应用Secret(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'xxxxx',
+ ],
+ 'CookieDomain' => [
+ 'description' => 'Cookie的域名,认证通过后会将Cookie发送到指定的域名,保持登录状态(OIDC/IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'ScopesList' => [
+ 'description' => 'OIDC作用域(OIDC使用)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'OIDC作用域(OIDC使用)。',
+ 'type' => 'string',
+ 'example' => 'openid',
+ ],
+ ],
+ 'LoginUrl' => [
+ 'description' => 'IDaaS实例用户登录页地址(IDaaS使用)。',
+ 'type' => 'string',
+ 'example' => 'https://daxxxxcn.aliyunidaas.com/',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 120,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"GatewayId\\": 399,\\n \\"Type\\": \\"JWT\\",\\n \\"Issuer\\": \\"https://example.com/auth\\",\\n \\"Jwks\\": \\"{\\\\n \\\\\\"keys\\\\\\": [\\\\n {\\\\n \\\\\\"e\\\\\\": \\\\\\"AQAB\\\\\\",\\\\n \\\\\\"kid\\\\\\": \\\\\\"DHFbpoIUqrY8t2zpA2qXfCmr5VO5ZEr4RzHU_-envvQ\\\\\\",\\\\n \\\\\\"kty\\\\\\": \\\\\\"RSA\\\\\\",\\\\n \\\\\\"n\\\\\\": \\\\\\"xAE7eB6qugXyCAG3yhh7pkDkT65pHymX-P7KfIupjf59vsdo91bSP9C8H07pSAGQO1MV_xFj9VswgsCg4R6otmg5PV2He95lZdHtOcU5DXIg_pbhLdKXbi66GlVeK6ABZOUW3WYtnNHD-91gVuoeJT_DwtGGcp4ignkgXfkiEm4sw-4sfb4qdt5oLbyVpmW6x9cfa7vs2WTfURiCrBoUqgBo_-4WTiULmmHSGZHOjzwa8WtrtOQGsAFjIbno85jp6MnGGGZPYZbDAa_b3y5u-YpW7ypZrvD8BgtKVjgtQgZhLAGezMt0ua3DRrWnKqTZ0BJ_EyxOGuHJrLsn00fnMQ\\\\\\"\\\\n }\\\\n ]\\\\n}\\",\\n \\"IsWhite\\": true,\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2022-01-07 18:07:57\\",\\n \\"TokenPosition\\": \\"HEADER\\",\\n \\"TokenName\\": \\"Authorization\\",\\n \\"TokenNamePrefix\\": \\"Bearer \\",\\n \\"TokenPass\\": true,\\n \\"Status\\": true,\\n \\"RedirectUrl\\": \\"https://yourdomain/path\\",\\n \\"ClientId\\": \\"example-app\\",\\n \\"ClientSecret\\": \\"xxxxx\\",\\n \\"CookieDomain\\": \\"test.com\\",\\n \\"ScopesList\\": [\\n \\"openid\\"\\n ],\\n \\"LoginUrl\\": \\"https://daxxxxcn.aliyunidaas.com/\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除网关鉴权',
+ ],
+ 'AddAuthResource' => [
+ 'summary' => '网关鉴权-创建授权信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '37110',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseFZIQVY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AuthId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '授权ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '13',
+ ],
+ ],
+ [
+ 'name' => 'DomainId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '128',
+ ],
+ ],
+ [
+ 'name' => 'Path',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '/abc',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-86575c0bc9f04ecfbacb92b8e392****',
+ ],
+ ],
+ [
+ 'name' => 'MatchType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '匹配类型。'."\n"
+ ."\n"
+ .'- 精确匹配:EQUAL'."\n"
+ ."\n"
+ .'- 前缀匹配:PRE'."\n"
+ ."\n"
+ .'- 正则匹配:ERGULAR',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRE',
+ ],
+ ],
+ [
+ 'name' => 'IgnoreCase',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否忽略大小写。(默认为true)',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AuthResourceHeaderList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '鉴权资源头列表',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'HeaderKey' => [
+ 'description' => 'HTTP头参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Access-Control-Allow-Origin',
+ ],
+ 'HeaderMethod' => [
+ 'description' => 'Header匹配方式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'SUFFIX' => '后缀',
+ 'EXIST' => '存在',
+ 'PREFIX' => '前缀',
+ 'EQUAL' => '等于',
+ 'EXCLUDE' => '不包含',
+ 'NOT_EQUAL' => '不等于',
+ 'NOT_EXIST' => '不存在',
+ 'REGREX' => '正则',
+ 'INCLUDE' => '包含',
+ ],
+ 'example' => 'EQUAL',
+ ],
+ 'HeaderValue' => [
+ 'description' => 'HTTP头参数的取值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '*',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4BBCF560-4DD7-5DBD-B849-CCB135BBBAB7',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '403',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '24',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4BBCF560-4DD7-5DBD-B849-CCB135BBBAB7\\",\\n \\"HttpStatusCode\\": 403,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 24\\n}","type":"json"}]',
+ 'title' => '添加鉴权资源',
+ ],
+ 'DeleteAuthResource' => [
+ 'summary' => '删除授权资源。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '37111',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseFZIQVY',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '36',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-3f97e2989c344f35ab3fd62b19f1****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '559412D1-BFCE-53CC-B88E-0192C331EF44',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '主键ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'AuthId' => [
+ 'description' => '鉴权ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '253',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597cd4a9****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => 'gw-7ea3da97b96543e19f6c597cd4a9****',
+ ],
+ 'DomainId' => [
+ 'description' => '域ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '235',
+ ],
+ 'DomainName' => [
+ 'description' => '域名。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/zookeeper',
+ ],
+ 'IsWhite' => [
+ 'description' => '是否为白名单。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改日期',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"559412D1-BFCE-53CC-B88E-0192C331EF44\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 1,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 12,\\n \\"AuthId\\": 253,\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597cd4a9****\\",\\n \\"GatewayId\\": 0,\\n \\"DomainId\\": 235,\\n \\"DomainName\\": \\"name\\",\\n \\"Path\\": \\"/zookeeper\\",\\n \\"IsWhite\\": true,\\n \\"GmtCreate\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除网关授权资源',
+ ],
+ 'AddGatewayRoute' => [
+ 'summary' => '添加网关路由。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '25612',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseVZLJSD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '526',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'RouteOrder',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由顺序。(数值越小优先级越高)',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Predicates',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '匹配规则。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PathPredicates' => [
+ 'description' => '路由匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ 'Type' => [
+ 'description' => '路由匹配:'."\n"
+ ."\n"
+ .'- 前缀:PRE。'."\n"
+ .'- 精确:EQUAL。'."\n"
+ .'- 正则:ERGULAR。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'PRE',
+ ],
+ 'IgnoreCase' => [
+ 'description' => '忽略大小写。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'MethodPredicates' => [
+ 'description' => '方法匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '具体方法。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GET',
+ ],
+ 'required' => false,
+ ],
+ 'HeaderPredicates' => [
+ 'description' => '请求头匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '请求头。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '请求头Key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'debug',
+ ],
+ 'Value' => [
+ 'description' => '对应的Value。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRE',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'QueryPredicates' => [
+ 'description' => 'URL参数匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'URL参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '参数名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'userid',
+ ],
+ 'Value' => [
+ 'description' => '匹配值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRE',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Services',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '服务列表(路由指向为单服务、多服务、标签路由时填写)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '353',
+ ],
+ 'Percent' => [
+ 'description' => '当前服务/服务版本分流百分比(只在使用多服务、标签路由时填写)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ 'Version' => [
+ 'description' => '服务版本(只在使用标签路由时填写)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'user',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '服务所在命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DUBBO',
+ ],
+ 'HttpDubboTranscoder' => [
+ 'description' => 'Dubbo协议转换体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboServiceName' => [
+ 'description' => 'Dubbo服务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'org.apache.dubbo.samples.basic.api.DemoService',
+ ],
+ 'DubboServiceVersion' => [
+ 'description' => 'Dubbot服务版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.0.0',
+ ],
+ 'DubboServiceGroup' => [
+ 'description' => '服务组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'group',
+ ],
+ 'MothedMapList' => [
+ 'description' => 'Dubbo转发规则列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法映射。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboMothedName' => [
+ 'description' => 'Dubbo方法名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sayHello',
+ ],
+ 'HttpMothed' => [
+ 'description' => 'HTTP方法。'."\n"
+ .'> 支持HTTP方法参数值。'."\n"
+ .'> - ALL_GET。'."\n"
+ .'> - ALL_POST。'."\n"
+ .'> - ALL_PUT。'."\n"
+ .'> - ALL_DELETE。'."\n"
+ .'> - ALL_PATCH。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ALL_GET',
+ ],
+ 'Mothedpath' => [
+ 'description' => '方法匹配路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/mytestzbk/sayhello',
+ ],
+ 'PassThroughAllHeaders' => [
+ 'description' => 'Header透传类型。'."\n"
+ .'> 透传类型枚举值。'."\n"
+ .'> - 透传所有:PASS_ALL。'."\n"
+ .'> - 不透传:PASS_NOT。'."\n"
+ .'> - 指定参数:PASS_ASSIGN。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PASS_NOT',
+ ],
+ 'PassThroughList' => [
+ 'description' => '指定透传Header列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指定Header透传值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-forward',
+ ],
+ 'required' => false,
+ ],
+ 'ParamMapsList' => [
+ 'description' => '参数映射列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数映射体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExtractKeySpec' => [
+ 'description' => '入参位置。'."\n"
+ .'> 入参位置枚举值。'."\n"
+ .'> - 请求参数:`ALL_QUERY_PARAMETER`'."\n"
+ .'- 请求头:`ALL_HEADER`'."\n"
+ .'- 请求路径:`ALL_PATH`'."\n"
+ .'- 请求体:`ALL_BODY`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ALL_QUERY_PARAMETER',
+ ],
+ 'ExtractKey' => [
+ 'description' => '入参位提取Key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ 'MappingType' => [
+ 'description' => '后端参数类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'java.lang.String',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '443',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'DomainId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'DestinationType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标服务类型。'."\n"
+ .'- Single:单服务'."\n"
+ .'- Multiple:多服务'."\n"
+ .'- VersionOriented:标签路由'."\n"
+ .'- Mock:Mock'."\n"
+ .'- Redirect:重定向',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'VersionOriented' => 'VersionOriented',
+ 'Multiple' => 'Multiple',
+ 'Single' => 'Single',
+ 'Redirect' => 'Redirect',
+ 'Mock' => 'Mock',
+ ],
+ 'example' => 'Multiple',
+ ],
+ ],
+ [
+ 'name' => 'DirectResponseJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Mock响应配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'Mock返回码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '403',
+ ],
+ 'Body' => [
+ 'description' => 'Mock返回值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hello',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-492af9b04bb4474cae9d645be8*****',
+ ],
+ ],
+ [
+ 'name' => 'DomainIdListJSON',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '域名列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '[0,94]',
+ ],
+ ],
+ [
+ 'name' => 'RedirectJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '重定向配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '302',
+ ],
+ 'Host' => [
+ 'description' => '重定向主机名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test.com',
+ ],
+ 'Path' => [
+ 'description' => '重定向路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EnableWaf',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '已废弃,请使用UpdateGatewayRouteWafStatus更新路由WAF状态。',
+ 'type' => 'boolean',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Fallback',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启Fallback服务。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'FallbackServices',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Fallback服务。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '353',
+ ],
+ 'Percent' => [
+ 'description' => '权重百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ 'Version' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'user',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '服务所在命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DUBBO',
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '443',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RouteType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由类型:'."\n"
+ ."\n"
+ .'Op:管控路由。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Op',
+ ],
+ ],
+ [
+ 'name' => 'Policies',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由策略JSON字符串。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"CORS":"{\\"allowMethods\\":\\"GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH\\",\\"allowHeaders\\":\\"*\\",\\"exposeHeaders\\":\\"*\\",\\"unitNum\\":12,\\"allowCredentials\\":true,\\"status\\":\\"off\\",\\"allowOrigins\\":\\"*\\",\\"timeUnit\\":\\"h\\"}","Timeout":"{\\"unitNum\\":10,\\"timeUnit\\":\\"s\\",\\"status\\":\\"off\\"}","Retry":"{\\"attempts\\":2,\\"retryOn\\":[\\"5xx\\"],\\"status\\":\\"off\\"}","HTTPRewrite":"{\\"pathType\\":\\"EQUAL\\",\\"path\\":\\"/o\\",\\"status\\":\\"off\\"}","Waf":"{\\"enabled\\":false}","HeaderOp":"{\\"status\\":\\"off\\",\\"headerOpItems\\":[{\\"directionType\\":\\"Request\\",\\"opType\\":\\"Add\\",\\"key\\":\\"kkk\\",\\"value\\":\\"ll\\"}]}"}',
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '路由描述',
+ 'description' => '路由描述',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'a route for xxx',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '03A3E2F4-6804-5663-9D5D-2EC47A1*****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回代码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '创建的路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '555',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。'."\n"
+ ."\n"
+ .'- InvalidParameter:参数错误:缺失、格式不对'."\n"
+ .'- IllegalRequest:请求非法:参数越权'."\n"
+ .'- NoPermission:权限专用'."\n"
+ .'- NotFound:资源404'."\n"
+ .'- InternalError:内部错误',
+ 'type' => 'string',
+ 'example' => 'InvalidParameter',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"03A3E2F4-6804-5663-9D5D-2EC47A1*****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 555,\\n \\"ErrorCode\\": \\"InvalidParameter\\"\\n}","type":"json"}]',
+ 'title' => '添加网关路由',
+ ],
+ 'DeleteGatewayRoute' => [
+ 'summary' => '删除网关路由。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '25970',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseVZLJSD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由条目ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '252',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'gw-492af9b04bb4474cae9d645be850e3d7',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ADDD8AB7-8D1C-4697-A83E-410D2607****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '报错信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14cebbrvec4a5****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '125',
+ ],
+ 'Predicates' => [
+ 'description' => '匹配规则',
+ 'type' => 'string',
+ 'example' => '{\\"PathPredicates\\":{\\"Path\\":\\"/metas\\",\\"Type\\":\\"PRE\\",\\"IgnoreCase\\":false}}',
+ ],
+ 'DefaultServiceId' => [
+ 'description' => '默认服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'RouteOrder' => [
+ 'description' => '路由顺序。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Status' => [
+ 'description' => '路由状态。'."\n"
+ .'- 未发布:0'."\n"
+ .'- 发布中:2'."\n"
+ .'- 已发布:3'."\n"
+ .'- 编辑中(有更新未发布):4'."\n"
+ .'- 下线中:5'."\n"
+ .'- 不可用:6',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2021-12-30T06:41:52.000+0000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ADDD8AB7-8D1C-4697-A83E-410D2607****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 12,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14cebbrvec4a5****\\",\\n \\"GatewayId\\": 125,\\n \\"Predicates\\": \\"{\\\\\\\\\\\\\\"PathPredicates\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Path\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/metas\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PRE\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"IgnoreCase\\\\\\\\\\\\\\":false}}\\",\\n \\"DefaultServiceId\\": 1,\\n \\"RouteOrder\\": 1,\\n \\"Status\\": 2,\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2021-12-30T06:41:52.000+0000\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除网关路由',
+ ],
+ 'UpdateGatewayRouteHTTPRewrite' => [
+ 'summary' => '更新网关路由的重写策略。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '59359',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXCPJ75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '238',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '430',
+ ],
+ ],
+ [
+ 'name' => 'HttpRewriteJSON',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP重写信息,支持JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"pathType":"PRE","path":"/","status":"off"}',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-90392d768a3847a7b804c505254da96d',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AE60DA1E-B234-5105-897B-68372453A5A2',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '411',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AE60DA1E-B234-5105-897B-68372453A5A2\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 411\\n}","type":"json"}]',
+ 'title' => '更新网关路由的重写策略',
+ ],
+ 'UpdateGatewayRoute' => [
+ 'summary' => '更新网关路由。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '25973',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseVZLJSD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '501',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '路由名称(已废弃,不支持修改路由名称,填入和当前不同的路由名称会导致更新失败)',
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'route-web',
+ ],
+ ],
+ [
+ 'name' => 'RouteOrder',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由顺序。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Predicates',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '路由匹配条件。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PathPredicates' => [
+ 'description' => 'Path匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Path' => [
+ 'description' => '路由Path路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRE',
+ ],
+ 'IgnoreCase' => [
+ 'description' => '忽略大小写。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ 'MethodPredicates' => [
+ 'description' => '方法匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '具体方法。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GET',
+ ],
+ 'required' => false,
+ ],
+ 'HeaderPredicates' => [
+ 'description' => '请求头匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '请求头。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '请求头Key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'debug',
+ ],
+ 'Value' => [
+ 'description' => '对应的Value。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'on',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRE',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'QueryPredicates' => [
+ 'description' => '参数匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'URL参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '参数名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'userid',
+ ],
+ 'Value' => [
+ 'description' => '匹配值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRE',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'Services',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '目标服务(路由指向为单服务、多服务、标签路由时填写)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'Percent' => [
+ 'description' => '当前服务/服务版本分流百分比(只在使用多服务、标签路由时填写)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ 'Version' => [
+ 'description' => '服务版本(只在使用标签路由时填写)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'web',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '服务所在命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DUBBO'."\n",
+ ],
+ 'HttpDubboTranscoder' => [
+ 'description' => 'Dubbo协议转换体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboServiceName' => [
+ 'description' => 'Dubbo服务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'org.apache.dubbo.samples.basic.api.DemoService',
+ ],
+ 'DubboServiceVersion' => [
+ 'description' => 'Dubbot服务版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.0.0',
+ ],
+ 'DubboServiceGroup' => [
+ 'description' => 'Dubbo服务组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'service name',
+ ],
+ 'MothedMapList' => [
+ 'description' => 'Dubbo转发规则列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法映射体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboMothedName' => [
+ 'description' => 'Dubbo方法名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sayHello',
+ ],
+ 'HttpMothed' => [
+ 'description' => 'Http方法。'."\n"
+ .'> 支持http方法参数值。'."\n"
+ .'> - ALL_GET。'."\n"
+ .'> - ALL_POST。'."\n"
+ .'> - ALL_PUT。'."\n"
+ .'> - ALL_DELETE。'."\n"
+ .'> - ALL_PATCH。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ALL_GET',
+ ],
+ 'Mothedpath' => [
+ 'description' => '方法匹配路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/mytestzbk/sayhello'."\n",
+ ],
+ 'PassThroughAllHeaders' => [
+ 'description' => 'Header透传类型。'."\n"
+ .'> 透传类型枚举值。'."\n"
+ .'> - 透传所有:PASS_ALL。'."\n"
+ .'> - 不透传:PASS_NOT。'."\n"
+ .'> - 指定参数:PASS_ASSIGN。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PASS_NOT'."\n",
+ ],
+ 'PassThroughList' => [
+ 'description' => '指定透传Header列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指定Header透传值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x-forward'."\n",
+ ],
+ 'required' => false,
+ ],
+ 'ParamMapsList' => [
+ 'description' => '参数映射列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数映射体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExtractKeySpec' => [
+ 'description' => '入参位置。'."\n"
+ .'> 入参位置枚举值。'."\n"
+ .'> - 请求参数:`ALL_QUERY_PARAMETER`'."\n"
+ .'> - 请求头:`ALL_HEADER`'."\n"
+ .'> - 请求路径:`ALL_PATH`'."\n"
+ .'> - 请求体:`ALL_BODY`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ALL_QUERY_PARAMETER'."\n",
+ ],
+ 'ExtractKey' => [
+ 'description' => '入参位提取Key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ 'MappingType' => [
+ 'description' => '后端参数类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'java.lang.String',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'ServicePort' => [
+ 'description' => 'Dubbo端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20880',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '139',
+ ],
+ ],
+ [
+ 'name' => 'DestinationType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '目标服务类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Mock',
+ ],
+ ],
+ [
+ 'name' => 'DirectResponseJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Mock内容。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'Mock返回码。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '200',
+ ],
+ 'Body' => [
+ 'description' => 'Mock返回值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'hello',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-86575c0bc9f04ecfbacb92b8e392a2c4',
+ ],
+ ],
+ [
+ 'name' => 'DomainIdListJSON',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '关联域名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '[90]',
+ ],
+ ],
+ [
+ 'name' => 'RedirectJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '重定向。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '302',
+ ],
+ 'Host' => [
+ 'description' => '重定向主机名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test.com',
+ ],
+ 'Path' => [
+ 'description' => '重定向路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EnableWaf',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请使用UpdateGatewayRouteWafStatus更新路由WAF状态',
+ 'description' => '已废弃,请使用UpdateGatewayRouteWafStatus更新路由WAF状态。',
+ 'type' => 'boolean',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Fallback',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启Fallback服务。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'FallbackServices',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Fallback服务。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'Percent' => [
+ 'description' => '权重百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '80',
+ ],
+ 'Version' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '服务所在命名空间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Namespace'."\n",
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DUBBO'."\n",
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '8848',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '路由描述',
+ 'description' => '路由描述',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'a route for xxx',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '73785414-2C5B-5E28-BD91-B2C742269C48',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP返回码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应描述',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '337',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'NoPermission',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"73785414-2C5B-5E28-BD91-B2C742269C48\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 337,\\n \\"ErrorCode\\": \\"NoPermission\\"\\n}","type":"json"}]',
+ 'title' => '更新网关路由',
+ ],
+ 'UpdateGatewayRouteCORS' => [
+ 'summary' => '修改网关路由跨域策略。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '101484',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXCPJ75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '关联记录ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '55',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '85',
+ ],
+ ],
+ [
+ 'name' => 'CorsJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '跨域信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '开启状态。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'off',
+ ],
+ 'AllowOrigins' => [
+ 'description' => '允许的域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://api.aliyun-inc.com/',
+ ],
+ 'AllowMethods' => [
+ 'description' => '允许的方法。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GET,POST',
+ ],
+ 'AllowHeaders' => [
+ 'description' => '允许的Header。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'content-type',
+ ],
+ 'ExposeHeaders' => [
+ 'description' => '允许的响应头部。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '*',
+ ],
+ 'TimeUnit' => [
+ 'description' => '时间单位。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'h',
+ ],
+ 'UnitNum' => [
+ 'description' => '时间数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '24',
+ ],
+ 'AllowCredentials' => [
+ 'description' => '允许携带凭证。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-f70a6ddf2f0941a2bb997b2d16028f37',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '参照国际标准 [RFC7231](https://tools.ietf.org/html/rfc7231),后端服务需要按用户语言要求返回结果'."\n"
+ .'* 默认值:无'."\n"
+ .'* 中文:zh-CN'."\n"
+ .'* 英文:en-US',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ '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' => '41BE990E-44E4-5ED3-AEEB-A276941B1854',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP返回码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '报错信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation. ',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '数据结构。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '618',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"41BE990E-44E4-5ED3-AEEB-A276941B1854\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation. \\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 618\\n}","type":"json"}]',
+ 'title' => '修改网关路由跨域策略',
+ ],
+ 'UpdateGatewayRouteHeaderOp' => [
+ 'summary' => '修改网关路由Header设置。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '72158',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXCPJ75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '记录ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '411',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '324',
+ ],
+ ],
+ [
+ 'name' => 'HeaderOpJSON',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用户header设置描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"status":"on","headerOpItems":[{"directionType":"Request","opType":"Update","key":"hosts","value":"test.com"}]}',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-6bdc977deda44bf589c49d063b4c2d1d',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ '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' => '7C8CB294-BED8-5F32-A416-7517725E8F27',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '报错信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明 200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '666',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7C8CB294-BED8-5F32-A416-7517725E8F27\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 666\\n}","type":"json"}]',
+ 'title' => '修改网关路由Header设置',
+ ],
+ 'UpdateGatewayRouteTimeout' => [
+ 'summary' => '修改网关路由超时策略。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '114050',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXCPJ75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '关联记录ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '567',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '85',
+ ],
+ ],
+ [
+ 'name' => 'TimeoutJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '超时时间。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UnitNum' => [
+ 'description' => '超时时间数值',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'TimeUnit' => [
+ 'description' => '时间单元,如下:s:秒',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 's',
+ ],
+ 'Status' => [
+ 'description' => '开启状态',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'off',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-533290d279c1405f9628c64f7c8272ee',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ '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' => '5359729E-A059-5942-98AF-E981E89C99FA',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应描述',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '操作是否成功。取值:true:成功。false:失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '400',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5359729E-A059-5942-98AF-E981E89C99FA\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 400\\n}","type":"json"}]',
+ 'title' => '修改网关路由超时策略',
+ ],
+ 'UpdateGatewayRouteRetry' => [
+ 'summary' => '修改网关路由重试策略。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '114051',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXCPJ75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '关联记录ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '508',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '501',
+ ],
+ ],
+ [
+ 'name' => 'RetryJSON',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '重试。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Attempts' => [
+ 'description' => '重试次数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ 'RetryOn' => [
+ 'description' => '重试触发条件',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '具体条件',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '5xx',
+ ],
+ 'required' => false,
+ ],
+ 'HttpCodes' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'Status' => [
+ 'description' => '开启状态',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'off',
+ ],
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-3f97e2989c344f35ab3fd62b19f1d10a',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ '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' => '9297B27D-D932-5E9F-93B9-99D6C5F3A879',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP返回码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '报错信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '返回代码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '640',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9297B27D-D932-5E9F-93B9-99D6C5F3A879\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": 640\\n}","type":"json"}]',
+ 'title' => '修改网关路由重试策略',
+ ],
+ 'GetGatewayRouteDetail' => [
+ 'summary' => '查询网关路由详情。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1050',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-5d3a78a53ec947aa928212d671d400ac',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'FDF2D16C-5D28-5FAA-A56B-30BDE3559880',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明 200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1050',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597c****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'DefaultServiceId' => [
+ 'description' => '默认服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3',
+ ],
+ 'DefaultServiceName' => [
+ 'description' => '默认服务名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Status' => [
+ 'description' => '路由状态。'."\n"
+ ."\n"
+ .'- 未发布:0'."\n"
+ ."\n"
+ .'- 发布中:2'."\n"
+ ."\n"
+ .'- 已发布:3'."\n"
+ ."\n"
+ .'- 编辑中(有更新未发布):4'."\n"
+ ."\n"
+ .'- 下线中:5'."\n"
+ ."\n"
+ .'- 不可用:6',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'GmtModified' => [
+ 'description' => '最后修改时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-07T10:07:57.000+0000',
+ ],
+ 'RouteOrder' => [
+ 'description' => '路由顺序。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Predicates' => [
+ 'description' => '匹配条件。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'RoutePredicates' => [
+ 'description' => '路由匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PathPredicates' => [
+ 'description' => '路由匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/api',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ 'IgnoreCase' => [
+ 'description' => '是否忽略大小写。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'MethodPredicates' => [
+ 'description' => '方法匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法。',
+ 'type' => 'string',
+ 'example' => 'GET',
+ ],
+ ],
+ 'HeaderPredicates' => [
+ 'description' => '头匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '请求头。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '请求头KEY。',
+ 'type' => 'string',
+ 'example' => 'id',
+ ],
+ 'Value' => [
+ 'description' => '匹配值。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ ],
+ ],
+ ],
+ 'QueryPredicates' => [
+ 'description' => '参数匹配。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '参数名称。',
+ 'type' => 'string',
+ 'example' => 'userid',
+ ],
+ 'Value' => [
+ 'description' => '匹配值。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DomainId' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '235',
+ ],
+ 'DomainName' => [
+ 'description' => '域名。',
+ 'type' => 'string',
+ 'example' => '123.com',
+ ],
+ 'Services' => [
+ 'description' => '服务的配置信息。',
+ 'type' => 'string',
+ 'example' => '[{\\"Percent\\":100,\\"ServiceId\\":126}]',
+ ],
+ 'RouteServices' => [
+ 'description' => '服务。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '782',
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'xkc-crm',
+ ],
+ 'Percent' => [
+ 'description' => '权重。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'Version' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'dubbo4',
+ ],
+ 'SourceType' => [
+ 'description' => '服务来源。',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'acs_ecs_dashboard',
+ ],
+ 'GroupName' => [
+ 'description' => '服务组名称。',
+ 'type' => 'string',
+ 'example' => 'api',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'example' => 'DUBBO',
+ ],
+ 'HttpDubboTranscoder' => [
+ 'description' => 'Dubbo协议转换体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboServiceName' => [
+ 'description' => 'Dubbo服务名称。',
+ 'type' => 'string',
+ 'example' => 'org.apache.dubbo.samples.basic.api.DemoService'."\n",
+ ],
+ 'DubboServiceVersion' => [
+ 'description' => 'Dubbo服务版本。',
+ 'type' => 'string',
+ 'example' => '0.0.0',
+ ],
+ 'MothedMapList' => [
+ 'description' => 'Dubbo转发规则列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboMothedName' => [
+ 'description' => 'Dubbo方法名。',
+ 'type' => 'string',
+ 'example' => 'sayHello',
+ ],
+ 'HttpMothed' => [
+ 'description' => 'Http方法。'."\n"
+ .'> 支持http方法参数值。'."\n"
+ .'> - ALL_GET'."\n"
+ .'> - ALL_POST'."\n"
+ .'> - ALL_PUT'."\n"
+ .'> - ALL_DELETE'."\n"
+ .'> - ALL_PATCH'."\n",
+ 'type' => 'string',
+ 'example' => 'ALL_GET',
+ ],
+ 'Mothedpath' => [
+ 'description' => '方法匹配路径。',
+ 'type' => 'string',
+ 'example' => '/mytestzbk/sayhello',
+ ],
+ 'PassThroughAllHeaders' => [
+ 'description' => 'Header透传类型。'."\n"
+ .'> 透传类型枚举值。'."\n"
+ .'> - 透传所有:PASS_ALL'."\n"
+ .'> - 不透传:PASS_NOT'."\n"
+ .'> - 指定参数:PASS_ASSIGN',
+ 'type' => 'string',
+ 'example' => 'PASS_NOT',
+ ],
+ 'PassThroughList' => [
+ 'description' => '指定Header透传列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指定Header透传值。',
+ 'type' => 'string',
+ 'example' => 'x-forward',
+ ],
+ ],
+ 'ParamMapsList' => [
+ 'description' => '参数映射列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ExtractKeySpec' => [
+ 'description' => '入参位置。'."\n"
+ .'> 入参位置枚举值。'."\n"
+ .'> - 请求参数:`ALL_QUERY_PARAMETER`'."\n"
+ .'> - 请求头:`ALL_HEADER`'."\n"
+ .'> - 请求路径:`ALL_PATH`'."\n"
+ .'> - 请求体:`ALL_BODY`'."\n",
+ 'type' => 'string',
+ 'example' => 'ALL_QUERY_PARAMETER',
+ ],
+ 'ExtractKey' => [
+ 'description' => '入参位提取Key。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'MappingType' => [
+ 'description' => '后端参数类型。',
+ 'type' => 'string',
+ 'example' => 'java.lang.String',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DubboServiceGroup' => [
+ 'description' => 'Dubbo服务组。',
+ 'type' => 'string',
+ 'example' => 'service group',
+ ],
+ ],
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20880',
+ ],
+ 'HealthStatus' => [
+ 'title' => '健康状态'."\n"
+ ."\n"
+ .'- Health'."\n"
+ ."\n"
+ .'- Unhealthy'."\n"
+ ."\n"
+ .'- Checking'."\n"
+ ."\n"
+ .'- Unknown',
+ 'description' => '健康状态'."\n"
+ ."\n"
+ .'- Health'."\n"
+ ."\n"
+ .'- Unhealthy'."\n"
+ ."\n"
+ .'- Checking'."\n"
+ ."\n"
+ .'- Unknown',
+ 'type' => 'string',
+ 'example' => 'Health',
+ ],
+ 'UnhealthyEndpoints' => [
+ 'title' => '非健康Endpoint列表',
+ 'description' => '非健康Endpoint列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '非健康Endpoint',
+ 'description' => '非健康Endpoint',
+ 'type' => 'string',
+ 'example' => '192.168.1.2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'HTTPRewrite' => [
+ 'description' => '重写策略信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '开启状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ 'Path' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'example' => '/test/client',
+ ],
+ 'Host' => [
+ 'description' => '实例地址。',
+ 'type' => 'string',
+ 'example' => 'aliyuncs.com',
+ ],
+ 'PathType' => [
+ 'description' => '重写类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ 'Pattern' => [
+ 'description' => '匹配Pattern。',
+ 'type' => 'string',
+ 'example' => '/test',
+ ],
+ 'Substitution' => [
+ 'description' => '替换。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'HeaderOp' => [
+ 'description' => 'Header设置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ 'HeaderOpItems' => [
+ 'description' => '头字段对象。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '设置策略。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DirectionType' => [
+ 'description' => '请求或响应。',
+ 'type' => 'string',
+ 'example' => 'Response',
+ ],
+ 'OpType' => [
+ 'description' => '操作类型。',
+ 'type' => 'string',
+ 'example' => 'Add',
+ ],
+ 'Key' => [
+ 'description' => 'Header Key。',
+ 'type' => 'string',
+ 'example' => 'debug',
+ ],
+ 'Value' => [
+ 'description' => '设置值。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DestinationType' => [
+ 'description' => '目标服务类型。',
+ 'type' => 'string',
+ 'example' => 'Single',
+ ],
+ 'DirectResponse' => [
+ 'description' => 'Mock信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Body' => [
+ 'description' => 'Mock返回值。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ 'Cors' => [
+ 'description' => '跨域配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ 'AllowOrigins' => [
+ 'description' => '跨域。',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'AllowMethods' => [
+ 'description' => '跨域方法。',
+ 'type' => 'string',
+ 'example' => 'GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH',
+ ],
+ 'AllowHeaders' => [
+ 'description' => '跨域Header。',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'ExposeHeaders' => [
+ 'description' => '响应头。',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'TimeUnit' => [
+ 'description' => '时间单位。',
+ 'type' => 'string',
+ 'example' => 'h',
+ ],
+ 'UnitNum' => [
+ 'description' => '时间数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '24',
+ ],
+ 'AllowCredentials' => [
+ 'description' => '允许携带凭证。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'Timeout' => [
+ 'description' => '超时配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UnitNum' => [
+ 'description' => '时间数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TimeUnit' => [
+ 'description' => '时间单位。',
+ 'type' => 'string',
+ 'example' => 's',
+ ],
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ ],
+ ],
+ 'Retry' => [
+ 'description' => '重试配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Attempts' => [
+ 'description' => '重试次数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'RetryOn' => [
+ 'description' => '重试条件。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '重试条件。',
+ 'type' => 'string',
+ 'example' => '5xx',
+ ],
+ ],
+ 'HttpCodes' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '500',
+ ],
+ ],
+ 'Status' => [
+ 'description' => '重试状态。',
+ 'type' => 'string',
+ 'example' => 'on',
+ ],
+ ],
+ ],
+ 'DomainIdList' => [
+ 'description' => '域名列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名ID列表。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ 'DomainNameList' => [
+ 'description' => '域名列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名列表。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ ],
+ 'Redirect' => [
+ 'description' => '重定向配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Host' => [
+ 'description' => '主机。',
+ 'type' => 'string',
+ 'example' => '16',
+ ],
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '10111',
+ ],
+ ],
+ ],
+ 'FlowMirror' => [
+ 'description' => '流量镜像配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TargetServiceId' => [
+ 'description' => '目标服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '21',
+ ],
+ 'TargetServiceName' => [
+ 'description' => '目标服务名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Port' => [
+ 'description' => '目标服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8790',
+ ],
+ 'Percentage' => [
+ 'description' => '流量复制比例(%),取值0-100。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '90',
+ ],
+ 'Status' => [
+ 'description' => '开启状态,取值:'."\n"
+ ."\n"
+ .'- on:开启'."\n"
+ .'- off:关闭',
+ 'type' => 'string',
+ 'example' => 'on',
+ ],
+ ],
+ ],
+ 'EnableWaf' => [
+ 'description' => '是否开启Waf。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AhasStatus' => [
+ 'description' => 'Ahas状态。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Fallback' => [
+ 'description' => '是否开启Fallback服务。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'FallbackServices' => [
+ 'description' => 'Fallback服务。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'Percent' => [
+ 'description' => '权重百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'Version' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '服务所在命名空间。',
+ 'type' => 'string',
+ 'example' => 'namespace',
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'example' => 'DUBBO',
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8848',
+ ],
+ ],
+ ],
+ ],
+ 'Policies' => [
+ 'description' => '路由策略Json字符串。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "CORS": "{\\"allowMethods\\":\\"GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH\\",\\"allowHeaders\\":\\"*\\",\\"exposeHeaders\\":\\"*\\",\\"unitNum\\":12,\\"allowCredentials\\":true,\\"status\\":\\"off\\",\\"allowOrigins\\":\\"*\\",\\"timeUnit\\":\\"h\\"}",'."\n"
+ .' "Timeout": "{\\"unitNum\\":10,\\"timeUnit\\":\\"s\\",\\"status\\":\\"off\\"}",'."\n"
+ .' "Retry": "{\\"attempts\\":2,\\"retryOn\\":[\\"5xx\\"],\\"status\\":\\"off\\"}",'."\n"
+ .' "HTTPRewrite": "{\\"pathType\\":\\"EQUAL\\",\\"path\\":\\"/o\\",\\"status\\":\\"off\\"}",'."\n"
+ .' "Waf": "{\\"enabled\\":false}",'."\n"
+ .' "HeaderOp": "{\\"status\\":\\"off\\",\\"headerOpItems\\":[{\\"directionType\\":\\"Request\\",\\"opType\\":\\"Add\\",\\"key\\":\\"kkk\\",\\"value\\":\\"ll\\"}]}"'."\n"
+ .'}',
+ ],
+ 'Description' => [
+ 'title' => '路由描述',
+ 'description' => '路由描述',
+ 'type' => 'string',
+ 'example' => 'a route for xxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"FDF2D16C-5D28-5FAA-A56B-30BDE3559880\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 1050,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597c****\\",\\n \\"GatewayId\\": 1,\\n \\"DefaultServiceId\\": 3,\\n \\"DefaultServiceName\\": \\"test\\",\\n \\"Status\\": 0,\\n \\"GmtCreate\\": \\"2022-01-07 18:07:57\\",\\n \\"GmtModified\\": \\"2022-01-07T10:07:57.000+0000\\",\\n \\"RouteOrder\\": 1,\\n \\"Predicates\\": \\"{}\\",\\n \\"RoutePredicates\\": {\\n \\"PathPredicates\\": {\\n \\"Path\\": \\"/api\\",\\n \\"Type\\": \\"PRE\\",\\n \\"IgnoreCase\\": true\\n },\\n \\"MethodPredicates\\": [\\n \\"GET\\"\\n ],\\n \\"HeaderPredicates\\": [\\n {\\n \\"Key\\": \\"id\\",\\n \\"Value\\": \\"200\\",\\n \\"Type\\": \\"PRE\\"\\n }\\n ],\\n \\"QueryPredicates\\": [\\n {\\n \\"Key\\": \\"userid\\",\\n \\"Value\\": \\"test\\",\\n \\"Type\\": \\"PRE\\"\\n }\\n ]\\n },\\n \\"DomainId\\": 235,\\n \\"DomainName\\": \\"123.com\\",\\n \\"Services\\": \\"[{\\\\\\\\\\\\\\"Percent\\\\\\\\\\\\\\":100,\\\\\\\\\\\\\\"ServiceId\\\\\\\\\\\\\\":126}]\\",\\n \\"RouteServices\\": [\\n {\\n \\"ServiceId\\": 782,\\n \\"ServiceName\\": \\"xkc-crm\\",\\n \\"Percent\\": 80,\\n \\"Version\\": \\"v1\\",\\n \\"Name\\": \\"dubbo4\\",\\n \\"SourceType\\": \\"MSE\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"GroupName\\": \\"api\\",\\n \\"AgreementType\\": \\"DUBBO\\",\\n \\"HttpDubboTranscoder\\": {\\n \\"DubboServiceName\\": \\"org.apache.dubbo.samples.basic.api.DemoService\\\\n\\",\\n \\"DubboServiceVersion\\": \\"0.0.0\\",\\n \\"MothedMapList\\": [\\n {\\n \\"DubboMothedName\\": \\"sayHello\\",\\n \\"HttpMothed\\": \\"ALL_GET\\",\\n \\"Mothedpath\\": \\"/mytestzbk/sayhello\\",\\n \\"PassThroughAllHeaders\\": \\"PASS_NOT\\",\\n \\"PassThroughList\\": [\\n \\"x-forward\\"\\n ],\\n \\"ParamMapsList\\": [\\n {\\n \\"ExtractKeySpec\\": \\"ALL_QUERY_PARAMETER\\",\\n \\"ExtractKey\\": \\"name\\",\\n \\"MappingType\\": \\"java.lang.String\\"\\n }\\n ]\\n }\\n ],\\n \\"DubboServiceGroup\\": \\"service group\\"\\n },\\n \\"ServicePort\\": 20880,\\n \\"HealthStatus\\": \\"Health\\",\\n \\"UnhealthyEndpoints\\": [\\n \\"192.168.1.2\\"\\n ]\\n }\\n ],\\n \\"HTTPRewrite\\": {\\n \\"Status\\": \\"off\\",\\n \\"Path\\": \\"/test/client\\",\\n \\"Host\\": \\"aliyuncs.com\\",\\n \\"PathType\\": \\"PRE\\",\\n \\"Pattern\\": \\"/test\\",\\n \\"Substitution\\": \\"test\\"\\n },\\n \\"HeaderOp\\": {\\n \\"Status\\": \\"off\\",\\n \\"HeaderOpItems\\": [\\n {\\n \\"DirectionType\\": \\"Response\\",\\n \\"OpType\\": \\"Add\\",\\n \\"Key\\": \\"debug\\",\\n \\"Value\\": \\"test\\"\\n }\\n ]\\n },\\n \\"DestinationType\\": \\"Single\\",\\n \\"DirectResponse\\": {\\n \\"Code\\": 200,\\n \\"Body\\": \\"{}\\"\\n },\\n \\"Cors\\": {\\n \\"Status\\": \\"off\\",\\n \\"AllowOrigins\\": \\"*\\",\\n \\"AllowMethods\\": \\"GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH\\",\\n \\"AllowHeaders\\": \\"*\\",\\n \\"ExposeHeaders\\": \\"*\\",\\n \\"TimeUnit\\": \\"h\\",\\n \\"UnitNum\\": 24,\\n \\"AllowCredentials\\": true\\n },\\n \\"Timeout\\": {\\n \\"UnitNum\\": 10,\\n \\"TimeUnit\\": \\"s\\",\\n \\"Status\\": \\"off\\"\\n },\\n \\"Retry\\": {\\n \\"Attempts\\": 1,\\n \\"RetryOn\\": [\\n \\"5xx\\"\\n ],\\n \\"HttpCodes\\": [\\n \\"500\\"\\n ],\\n \\"Status\\": \\"on\\"\\n },\\n \\"DomainIdList\\": [\\n 1\\n ],\\n \\"DomainNameList\\": [\\n \\"test.com\\"\\n ],\\n \\"Redirect\\": {\\n \\"Code\\": 200,\\n \\"Host\\": \\"16\\",\\n \\"Path\\": \\"10111\\"\\n },\\n \\"FlowMirror\\": {\\n \\"TargetServiceId\\": 21,\\n \\"TargetServiceName\\": \\"test\\",\\n \\"Port\\": 8790,\\n \\"Percentage\\": 90,\\n \\"Status\\": \\"on\\"\\n },\\n \\"EnableWaf\\": true,\\n \\"AhasStatus\\": 1,\\n \\"Fallback\\": true,\\n \\"FallbackServices\\": [\\n {\\n \\"ServiceId\\": 1,\\n \\"ServiceName\\": \\"name\\",\\n \\"Percent\\": 80,\\n \\"Version\\": \\"v1\\",\\n \\"Name\\": \\"name\\",\\n \\"SourceType\\": \\"MSE\\",\\n \\"Namespace\\": \\"namespace\\",\\n \\"GroupName\\": \\"test\\",\\n \\"AgreementType\\": \\"DUBBO\\",\\n \\"ServicePort\\": 8848\\n }\\n ],\\n \\"Policies\\": \\"{\\\\n \\\\\\"CORS\\\\\\": \\\\\\"{\\\\\\\\\\\\\\"allowMethods\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"allowHeaders\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"exposeHeaders\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"unitNum\\\\\\\\\\\\\\":12,\\\\\\\\\\\\\\"allowCredentials\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"off\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"allowOrigins\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timeUnit\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"h\\\\\\\\\\\\\\"}\\\\\\",\\\\n \\\\\\"Timeout\\\\\\": \\\\\\"{\\\\\\\\\\\\\\"unitNum\\\\\\\\\\\\\\":10,\\\\\\\\\\\\\\"timeUnit\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"s\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"off\\\\\\\\\\\\\\"}\\\\\\",\\\\n \\\\\\"Retry\\\\\\": \\\\\\"{\\\\\\\\\\\\\\"attempts\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"retryOn\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"5xx\\\\\\\\\\\\\\"],\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"off\\\\\\\\\\\\\\"}\\\\\\",\\\\n \\\\\\"HTTPRewrite\\\\\\": \\\\\\"{\\\\\\\\\\\\\\"pathType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EQUAL\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/o\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"off\\\\\\\\\\\\\\"}\\\\\\",\\\\n \\\\\\"Waf\\\\\\": \\\\\\"{\\\\\\\\\\\\\\"enabled\\\\\\\\\\\\\\":false}\\\\\\",\\\\n \\\\\\"HeaderOp\\\\\\": \\\\\\"{\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"off\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"headerOpItems\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"directionType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Request\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"opType\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Add\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"kkk\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"ll\\\\\\\\\\\\\\"}]}\\\\\\"\\\\n}\\",\\n \\"Description\\": \\"a route for xxx\\"\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关路由详情',
+ ],
+ 'ListGatewayRoute' => [
+ 'summary' => '查询网关路由列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '25969',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseVZLJSD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页展示实例数(暂未生效,默认查询全量)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'OrderItem',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序属性。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreate',
+ ],
+ ],
+ [
+ 'name' => 'DescSort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序。该字段目前不可用,下线中。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '过滤条件,格式为{"key1":"value1"}。',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '81',
+ ],
+ 'Name' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ 'Status' => [
+ 'description' => '路由状态:'."\n"
+ ."\n"
+ .'- 未发布:0'."\n"
+ .'- 发布中:2'."\n"
+ .'- 已发布:3'."\n"
+ .'- 编辑中(有更新未发布):4'."\n"
+ .'- 下线中:5'."\n"
+ .'- 不可用:6',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '3',
+ ],
+ 'DefaultServiceId' => [
+ 'title' => '默认服务ID(已废弃)',
+ 'description' => '缺省服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'RouteOrder' => [
+ 'description' => '顺序(未使用)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'DomainId' => [
+ 'description' => '域名id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '284',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-30a0106924c94bca8712ec4e79fc5acc',
+ ],
+ 'DomainName' => [
+ 'description' => '关联域名',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '*.alites.com',
+ ],
+ 'Path' => [
+ 'title' => '按路由路径模糊搜索',
+ 'description' => '路由路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/test',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '83F02EAB-ECDF-55C6-B332-8649E5E7AF2C',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'You are not authorized to perform this operation.',
+ ],
+ 'Code' => [
+ 'description' => '代码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalSize' => [
+ 'description' => '总条数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '36',
+ ],
+ 'PageNumber' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'PageSize' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'Result' => [
+ 'description' => '数据结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '47',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识。',
+ 'type' => 'string',
+ 'example' => 'gw-cf0e7f52ecc7429dbc7ba4d5e3656100',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '496',
+ ],
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'RouteOrder' => [
+ 'description' => '顺序',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'DefaultServiceName' => [
+ 'description' => '默认服务名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'DefaultServiceId' => [
+ 'description' => '默认服务id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Predicates' => [
+ 'description' => '匹配规则',
+ 'type' => 'string',
+ 'example' => '{\\"PathPredicates\\":{\\"Path\\":\\"/rpc/compute \\",\\"Type\\":\\"PRE\\",\\"IgnoreCase\\":true}}',
+ ],
+ 'RoutePredicates' => [
+ 'description' => '匹配规则',
+ 'type' => 'object',
+ 'properties' => [
+ 'PathPredicates' => [
+ 'description' => '路由Path匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Path' => [
+ 'description' => '节点路径。',
+ 'type' => 'string',
+ 'example' => '/getIp',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ 'IgnoreCase' => [
+ 'description' => '忽略大小写',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'MethodPredicates' => [
+ 'description' => 'HTTP方法匹配',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法',
+ 'type' => 'string',
+ 'example' => 'GET',
+ ],
+ ],
+ 'HeaderPredicates' => [
+ 'description' => 'Header匹配',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Header列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => 'Header KEY ',
+ 'type' => 'string',
+ 'example' => 'userid',
+ ],
+ 'Value' => [
+ 'description' => '匹配值',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ ],
+ ],
+ ],
+ 'QueryPredicates' => [
+ 'description' => '参数匹配',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '参数名称',
+ 'type' => 'string',
+ 'example' => 'userid',
+ ],
+ 'Value' => [
+ 'description' => '匹配值',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-25T07:14:01.817+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2022-01-07 18:07:57',
+ ],
+ 'Services' => [
+ 'description' => '服务。',
+ 'type' => 'string',
+ 'example' => '[]',
+ ],
+ 'RouteServices' => [
+ 'description' => '服务。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1563',
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'hu',
+ ],
+ 'Percent' => [
+ 'description' => '权重百分比',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'Version' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型',
+ 'type' => 'string',
+ 'example' => 'MSE',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '服务组名称。',
+ 'type' => 'string',
+ 'example' => 'api',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'example' => 'DUBBO',
+ ],
+ 'HttpDubboTranscoder' => [
+ 'description' => 'Dubbo协议转换体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboServiceName' => [
+ 'description' => 'Dubbo服务名称。',
+ 'type' => 'string',
+ 'example' => 'org.apache.dubbo.samples.basic.api.DemoService',
+ ],
+ 'DubboServiceVersion' => [
+ 'description' => 'Dubbo服务版本。',
+ 'type' => 'string',
+ 'example' => '0.0.0',
+ ],
+ 'MothedMapList' => [
+ 'description' => 'Dubbo转发规则列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法映射体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DubboMothedName' => [
+ 'description' => 'Dubbo方法名。',
+ 'type' => 'string',
+ 'example' => 'sayHello',
+ ],
+ 'HttpMothed' => [
+ 'description' => 'Http方法。'."\n"
+ .'> 支持http方法参数值。'."\n"
+ .'> - ALL_GET'."\n"
+ .'> - ALL_POST'."\n"
+ .'> - ALL_PUT'."\n"
+ .'> - ALL_DELETE'."\n"
+ .'> - ALL_PATCH'."\n",
+ 'type' => 'string',
+ 'example' => 'ALL_GET',
+ ],
+ 'Mothedpath' => [
+ 'description' => '方法匹配路径。',
+ 'type' => 'string',
+ 'example' => '/mytestzbk/sayhello',
+ ],
+ 'PassThroughAllHeaders' => [
+ 'description' => 'Header透传类型。'."\n"
+ .'> 透传类型枚举值。'."\n"
+ .'> - 透传所有:PASS_ALL'."\n"
+ .'> - 不透传:PASS_NOT'."\n"
+ .'> - 指定参数:PASS_ASSIGN',
+ 'type' => 'string',
+ 'example' => 'PASS_NOT',
+ ],
+ 'PassThroughList' => [
+ 'description' => '指定透传Header列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指定Header透传值。',
+ 'type' => 'string',
+ 'example' => 'x-forward',
+ ],
+ ],
+ 'ParamMapsList' => [
+ 'description' => '参数映射列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数映射体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExtractKeySpec' => [
+ 'description' => '入参位置。'."\n"
+ .'> 入参位置枚举值。'."\n"
+ .'> - 请求参数:`ALL_QUERY_PARAMETER`'."\n"
+ .'> - 请求头:`ALL_HEADER`'."\n"
+ .'> - 请求路径:`ALL_PATH`'."\n"
+ .'> - 请求体:`ALL_BODY`'."\n",
+ 'type' => 'string',
+ 'example' => 'ALL_QUERY_PARAMETER',
+ ],
+ 'ExtractKey' => [
+ 'description' => '入参位提取Key。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'MappingType' => [
+ 'description' => '后端参数类型。',
+ 'type' => 'string',
+ 'example' => 'java.lang.String',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DubboServiceGroup' => [
+ 'description' => 'Dubbo服务组。',
+ 'type' => 'string',
+ 'example' => 'service group',
+ ],
+ ],
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20880',
+ ],
+ 'HealthStatus' => [
+ 'title' => '健康状态'."\n"
+ ."\n"
+ .'- Health'."\n"
+ ."\n"
+ .'- Unhealthy'."\n"
+ ."\n"
+ .'- Checking'."\n"
+ ."\n"
+ .'- Unknown',
+ 'description' => '健康状态'."\n"
+ ."\n"
+ .'- Health'."\n"
+ ."\n"
+ .'- Unhealthy'."\n"
+ ."\n"
+ .'- Checking'."\n"
+ ."\n"
+ .'- Unknown',
+ 'type' => 'string',
+ 'example' => 'Health',
+ ],
+ 'UnhealthyEndpoints' => [
+ 'title' => '非健康Endpoint列表',
+ 'description' => '非健康Endpoint列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '非健康Endpoint',
+ 'description' => '非健康Endpoint',
+ 'type' => 'string',
+ 'example' => '192.168.1.2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DomainId' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '265',
+ ],
+ 'DomainName' => [
+ 'description' => '域名。',
+ 'type' => 'string',
+ 'example' => 'y.com',
+ ],
+ 'DestinationType' => [
+ 'description' => '目标类型。',
+ 'type' => 'string',
+ 'example' => 'Single',
+ ],
+ 'DirectResponse' => [
+ 'description' => 'Mock配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Body' => [
+ 'description' => 'Mock返回值',
+ 'type' => 'string',
+ 'example' => 'hello',
+ ],
+ ],
+ ],
+ 'DomainIdList' => [
+ 'description' => '域名列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名ID',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '123',
+ ],
+ ],
+ 'DomainNameList' => [
+ 'description' => '域名列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ ],
+ 'Redirect' => [
+ 'description' => '重定向',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Host' => [
+ 'description' => '重定向主机名',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/test',
+ ],
+ ],
+ ],
+ 'Type' => [
+ 'description' => '路由类型',
+ 'type' => 'string',
+ 'example' => 'Op',
+ ],
+ 'Comment' => [
+ 'description' => '路由备注(ingress)',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'string',
+ 'example' => 'error',
+ ],
+ ],
+ ],
+ 'EnableWaf' => [
+ 'description' => '是否开启waf',
+ 'type' => 'string',
+ 'example' => 'false',
+ ],
+ 'Fallback' => [
+ 'description' => '是否开启Fallback服务。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'FallbackServices' => [
+ 'description' => 'Fallback服务。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '353'."\n",
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'service name',
+ ],
+ 'Percent' => [
+ 'description' => '权重百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'Version' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'SourceType' => [
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'example' => 'MSE'."\n",
+ ],
+ 'Namespace' => [
+ 'description' => '服务所在命名空间。',
+ 'type' => 'string',
+ 'example' => 'Namespace',
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'AgreementType' => [
+ 'description' => '协议类型。',
+ 'type' => 'string',
+ 'example' => 'DUBBO',
+ ],
+ 'ServicePort' => [
+ 'description' => '服务端口。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8848',
+ ],
+ ],
+ ],
+ ],
+ 'DynamicRoute' => [
+ 'title' => '是否开启动态路由',
+ 'description' => '是否开启动态路由',
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"83F02EAB-ECDF-55C6-B332-8649E5E7AF2C\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"You are not authorized to perform this operation.\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TotalSize\\": 36,\\n \\"PageNumber\\": 11,\\n \\"PageSize\\": 10,\\n \\"Result\\": [\\n {\\n \\"Id\\": 47,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-cf0e7f52ecc7429dbc7ba4d5e3656100\\",\\n \\"GatewayId\\": 496,\\n \\"Status\\": 2,\\n \\"RouteOrder\\": 1,\\n \\"DefaultServiceName\\": \\"test\\",\\n \\"DefaultServiceId\\": 1,\\n \\"Predicates\\": \\"{\\\\\\\\\\\\\\"PathPredicates\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Path\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/rpc/compute \\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PRE\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"IgnoreCase\\\\\\\\\\\\\\":true}}\\",\\n \\"RoutePredicates\\": {\\n \\"PathPredicates\\": {\\n \\"Path\\": \\"/getIp\\",\\n \\"Type\\": \\"PRE\\",\\n \\"IgnoreCase\\": true\\n },\\n \\"MethodPredicates\\": [\\n \\"GET\\"\\n ],\\n \\"HeaderPredicates\\": [\\n {\\n \\"Key\\": \\"userid\\",\\n \\"Value\\": \\"test\\",\\n \\"Type\\": \\"PRE\\"\\n }\\n ],\\n \\"QueryPredicates\\": [\\n {\\n \\"Key\\": \\"userid\\",\\n \\"Value\\": \\"test\\",\\n \\"Type\\": \\"PRE\\"\\n }\\n ]\\n },\\n \\"GmtCreate\\": \\"2022-01-25T07:14:01.817+0000\\",\\n \\"GmtModified\\": \\"2022-01-07 18:07:57\\",\\n \\"Services\\": \\"[]\\",\\n \\"RouteServices\\": [\\n {\\n \\"ServiceId\\": 1563,\\n \\"ServiceName\\": \\"hu\\",\\n \\"Percent\\": 11,\\n \\"Version\\": \\"v1\\",\\n \\"Name\\": \\"test\\",\\n \\"SourceType\\": \\"MSE\\",\\n \\"Namespace\\": \\"default\\",\\n \\"GroupName\\": \\"api\\",\\n \\"AgreementType\\": \\"DUBBO\\",\\n \\"HttpDubboTranscoder\\": {\\n \\"DubboServiceName\\": \\"org.apache.dubbo.samples.basic.api.DemoService\\",\\n \\"DubboServiceVersion\\": \\"0.0.0\\",\\n \\"MothedMapList\\": [\\n {\\n \\"DubboMothedName\\": \\"sayHello\\",\\n \\"HttpMothed\\": \\"ALL_GET\\",\\n \\"Mothedpath\\": \\"/mytestzbk/sayhello\\",\\n \\"PassThroughAllHeaders\\": \\"PASS_NOT\\",\\n \\"PassThroughList\\": [\\n \\"x-forward\\"\\n ],\\n \\"ParamMapsList\\": [\\n {\\n \\"ExtractKeySpec\\": \\"ALL_QUERY_PARAMETER\\",\\n \\"ExtractKey\\": \\"name\\",\\n \\"MappingType\\": \\"java.lang.String\\"\\n }\\n ]\\n }\\n ],\\n \\"DubboServiceGroup\\": \\"service group\\"\\n },\\n \\"ServicePort\\": 20880,\\n \\"HealthStatus\\": \\"Health\\",\\n \\"UnhealthyEndpoints\\": [\\n \\"192.168.1.2\\"\\n ]\\n }\\n ],\\n \\"DomainId\\": 265,\\n \\"DomainName\\": \\"y.com\\",\\n \\"DestinationType\\": \\"Single\\",\\n \\"DirectResponse\\": {\\n \\"Code\\": 200,\\n \\"Body\\": \\"hello\\"\\n },\\n \\"DomainIdList\\": [\\n 123\\n ],\\n \\"DomainNameList\\": [\\n \\"test.com\\"\\n ],\\n \\"Redirect\\": {\\n \\"Code\\": 200,\\n \\"Host\\": \\"test.com\\",\\n \\"Path\\": \\"/test\\"\\n },\\n \\"Type\\": \\"Op\\",\\n \\"Comment\\": {\\n \\"Status\\": \\"error\\"\\n },\\n \\"EnableWaf\\": \\"false\\",\\n \\"Fallback\\": true,\\n \\"FallbackServices\\": [\\n {\\n \\"ServiceId\\": 353,\\n \\"ServiceName\\": \\"service name\\",\\n \\"Percent\\": 100,\\n \\"Version\\": \\"v1\\",\\n \\"Name\\": \\"name\\",\\n \\"SourceType\\": \\"MSE\\\\n\\",\\n \\"Namespace\\": \\"Namespace\\",\\n \\"GroupName\\": \\"test\\",\\n \\"AgreementType\\": \\"DUBBO\\",\\n \\"ServicePort\\": 8848\\n }\\n ],\\n \\"DynamicRoute\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '网关路由列表',
+ ],
+ 'UpdateGatewayRouteWafStatus' => [
+ 'summary' => '更新路由waf状态。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '131361',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseXCPJ75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由条目ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '645',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-86575c0bc9f04ecfbacb92b8e392****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'EnableWaf',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启WAF。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ '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' => '7466566F-F30F-4A29-965D-3E0AF21D****',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Code' => [
+ 'description' => '状态码。说明200表示成功。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'Name' => [
+ 'description' => '消息路由名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'example' => 'gw-7ea3da97b96543e19f6c597cd4a9****',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '102',
+ ],
+ 'DefaultServiceId' => [
+ 'description' => '默认服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'DefaultServiceName' => [
+ 'description' => '默认服务名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Status' => [
+ 'description' => '路由状态。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'GmtCreate' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-01-26T09:52:41.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '修改日期。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'example' => '2022-02-24T06:08:29.230+0000',
+ ],
+ 'RouteOrder' => [
+ 'description' => '路由顺序。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Predicates' => [
+ 'description' => '匹配规则。',
+ 'type' => 'string',
+ 'example' => '{\\"PathPredicates\\":{\\"Path\\":\\"/metas\\",\\"Type\\":\\"PRE\\",\\"IgnoreCase\\":false}}',
+ ],
+ 'RoutePredicates' => [
+ 'description' => '路由匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PathPredicates' => [
+ 'description' => '路由匹配。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/zookeeper/mmgw/unlogined/common.getBu',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ 'IgnoreCase' => [
+ 'description' => '是否忽略大小写。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'MethodPredicates' => [
+ 'description' => '匹配方法。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '方法。',
+ 'type' => 'string',
+ 'example' => 'GET',
+ ],
+ ],
+ 'HeaderPredicates' => [
+ 'description' => '请求头匹配规则。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '请求头。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '请求头KEY。',
+ 'type' => 'string',
+ 'example' => 'alibo',
+ ],
+ 'Value' => [
+ 'description' => '值。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Type' => [
+ 'description' => '匹配类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ ],
+ ],
+ ],
+ 'QueryPredicates' => [
+ 'description' => '参数匹配规则。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '参数名称。',
+ 'type' => 'string',
+ 'example' => 'instanceId',
+ ],
+ 'Value' => [
+ 'description' => '匹配值。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Type' => [
+ 'description' => '类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DomainId' => [
+ 'description' => '域名ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '235',
+ ],
+ 'DomainName' => [
+ 'description' => '域名。',
+ 'type' => 'string',
+ 'example' => 'nbhamster.com',
+ ],
+ 'Services' => [
+ 'description' => '服务。',
+ 'type' => 'string',
+ 'example' => '[{\\"Percent\\":100,\\"ServiceId\\":126}]',
+ ],
+ 'RouteServices' => [
+ 'description' => '服务。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '服务。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceId' => [
+ 'description' => '服务id。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '547',
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'b-service',
+ ],
+ 'Percent' => [
+ 'description' => '权重。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'Version' => [
+ 'description' => '服务版本。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Name' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'test-aixue-gray',
+ ],
+ 'SourceType' => [
+ 'description' => '服务来源。',
+ 'type' => 'string',
+ 'example' => 'K8s',
+ ],
+ 'Namespace' => [
+ 'description' => '命名空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'GroupName' => [
+ 'description' => '服务分组名称。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ ],
+ ],
+ 'HTTPRewrite' => [
+ 'description' => '重写策略信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'HTTP状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ 'Path' => [
+ 'description' => 'HTTP请求路径。',
+ 'type' => 'string',
+ 'example' => '/test/client',
+ ],
+ 'Host' => [
+ 'description' => '域名。',
+ 'type' => 'string',
+ 'example' => 'aliyuncs.com',
+ ],
+ 'PathType' => [
+ 'description' => 'HTTP请求路径类型。',
+ 'type' => 'string',
+ 'example' => 'PRE',
+ ],
+ 'Pattern' => [
+ 'description' => '匹配Pattern。',
+ 'type' => 'string',
+ 'example' => '/test',
+ ],
+ 'Substitution' => [
+ 'description' => '替换。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'HeaderOp' => [
+ 'description' => 'Header设置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ 'HeaderOpItems' => [
+ 'description' => '设置策略。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '设置策略。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DirectionType' => [
+ 'description' => '请求或者响应。',
+ 'type' => 'string',
+ 'example' => 'Response',
+ ],
+ 'OpType' => [
+ 'description' => '操作类型。',
+ 'type' => 'string',
+ 'example' => 'Add',
+ ],
+ 'Key' => [
+ 'description' => 'Header Key。',
+ 'type' => 'string',
+ 'example' => 'debug',
+ ],
+ 'Value' => [
+ 'description' => '设置值。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DestinationType' => [
+ 'description' => '目标服务类型。',
+ 'type' => 'string',
+ 'example' => 'Single',
+ ],
+ 'DirectResponse' => [
+ 'description' => 'Mock信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '返回值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Body' => [
+ 'description' => 'Mock返回值。',
+ 'type' => 'string',
+ 'example' => '[{\\"key\\":\\"h68d13466.sqa.eu95\\",\\"dims\\":\\"groupName=All}]',
+ ],
+ ],
+ ],
+ 'Cors' => [
+ 'description' => '跨域配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ 'AllowOrigins' => [
+ 'description' => '跨域。',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'AllowMethods' => [
+ 'description' => '跨域方法。',
+ 'type' => 'string',
+ 'example' => 'GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH',
+ ],
+ 'AllowHeaders' => [
+ 'description' => '跨域Header。',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'ExposeHeaders' => [
+ 'description' => '响应头。',
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ 'TimeUnit' => [
+ 'description' => '时间单位。',
+ 'type' => 'string',
+ 'example' => 's',
+ ],
+ 'UnitNum' => [
+ 'description' => '时间数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'AllowCredentials' => [
+ 'description' => '允许携带凭证。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'Timeout' => [
+ 'description' => '超时配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UnitNum' => [
+ 'description' => '时间数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TimeUnit' => [
+ 'description' => '时间单位。',
+ 'type' => 'string',
+ 'example' => 's',
+ ],
+ 'Status' => [
+ 'description' => '状态。',
+ 'type' => 'string',
+ 'example' => 'off',
+ ],
+ ],
+ ],
+ 'Retry' => [
+ 'description' => '重试配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Attempts' => [
+ 'description' => '给定请求允许的重试次数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'RetryOn' => [
+ 'description' => '重试条件。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '重试条件。',
+ 'type' => 'string',
+ 'example' => '5xx',
+ ],
+ ],
+ 'HttpCodes' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'string',
+ 'example' => '500',
+ ],
+ ],
+ 'Status' => [
+ 'description' => '重试状态。',
+ 'type' => 'string',
+ 'example' => 'on',
+ ],
+ ],
+ ],
+ 'DomainIdList' => [
+ 'description' => '域名ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名ID列表。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ 'DomainNameList' => [
+ 'description' => '域名列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '域名列表。',
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ ],
+ 'Redirect' => [
+ 'description' => '重定向配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Host' => [
+ 'description' => '主机。',
+ 'type' => 'string',
+ 'example' => 'ww.al.c',
+ ],
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ ],
+ ],
+ 'EnableWaf' => [
+ 'description' => '是否开启WAF。',
+ 'type' => 'boolean',
+ 'example' => '0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7466566F-F30F-4A29-965D-3E0AF21D****\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Id\\": 12,\\n \\"Name\\": \\"test\\",\\n \\"GatewayUniqueId\\": \\"gw-7ea3da97b96543e19f6c597cd4a9****\\",\\n \\"GatewayId\\": 102,\\n \\"DefaultServiceId\\": 1,\\n \\"DefaultServiceName\\": \\"test\\",\\n \\"Status\\": 1,\\n \\"GmtCreate\\": \\"2022-01-26T09:52:41.000+0000\\",\\n \\"GmtModified\\": \\"2022-02-24T06:08:29.230+0000\\",\\n \\"RouteOrder\\": 1,\\n \\"Predicates\\": \\"{\\\\\\\\\\\\\\"PathPredicates\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Path\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/metas\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PRE\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"IgnoreCase\\\\\\\\\\\\\\":false}}\\",\\n \\"RoutePredicates\\": {\\n \\"PathPredicates\\": {\\n \\"Path\\": \\"/zookeeper/mmgw/unlogined/common.getBu\\",\\n \\"Type\\": \\"PRE\\",\\n \\"IgnoreCase\\": true\\n },\\n \\"MethodPredicates\\": [\\n \\"GET\\"\\n ],\\n \\"HeaderPredicates\\": [\\n {\\n \\"Key\\": \\"alibo\\",\\n \\"Value\\": \\"200\\",\\n \\"Type\\": \\"PRE\\"\\n }\\n ],\\n \\"QueryPredicates\\": [\\n {\\n \\"Key\\": \\"instanceId\\",\\n \\"Value\\": \\"test\\",\\n \\"Type\\": \\"PRE\\"\\n }\\n ]\\n },\\n \\"DomainId\\": 235,\\n \\"DomainName\\": \\"nbhamster.com\\",\\n \\"Services\\": \\"[{\\\\\\\\\\\\\\"Percent\\\\\\\\\\\\\\":100,\\\\\\\\\\\\\\"ServiceId\\\\\\\\\\\\\\":126}]\\",\\n \\"RouteServices\\": [\\n {\\n \\"ServiceId\\": 547,\\n \\"ServiceName\\": \\"b-service\\",\\n \\"Percent\\": 80,\\n \\"Version\\": \\"v1\\",\\n \\"Name\\": \\"test-aixue-gray\\",\\n \\"SourceType\\": \\"K8s\\",\\n \\"Namespace\\": \\"default\\",\\n \\"GroupName\\": \\"DEFAULT_GROUP\\"\\n }\\n ],\\n \\"HTTPRewrite\\": {\\n \\"Status\\": \\"off\\",\\n \\"Path\\": \\"/test/client\\",\\n \\"Host\\": \\"aliyuncs.com\\",\\n \\"PathType\\": \\"PRE\\",\\n \\"Pattern\\": \\"/test\\",\\n \\"Substitution\\": \\"test\\"\\n },\\n \\"HeaderOp\\": {\\n \\"Status\\": \\"off\\",\\n \\"HeaderOpItems\\": [\\n {\\n \\"DirectionType\\": \\"Response\\",\\n \\"OpType\\": \\"Add\\",\\n \\"Key\\": \\"debug\\",\\n \\"Value\\": \\"test\\"\\n }\\n ]\\n },\\n \\"DestinationType\\": \\"Single\\",\\n \\"DirectResponse\\": {\\n \\"Code\\": 200,\\n \\"Body\\": \\"[{\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"h68d13466.sqa.eu95\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"dims\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"groupName=All}]\\"\\n },\\n \\"Cors\\": {\\n \\"Status\\": \\"off\\",\\n \\"AllowOrigins\\": \\"*\\",\\n \\"AllowMethods\\": \\"GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH\\",\\n \\"AllowHeaders\\": \\"*\\",\\n \\"ExposeHeaders\\": \\"*\\",\\n \\"TimeUnit\\": \\"s\\",\\n \\"UnitNum\\": 1,\\n \\"AllowCredentials\\": true\\n },\\n \\"Timeout\\": {\\n \\"UnitNum\\": 10,\\n \\"TimeUnit\\": \\"s\\",\\n \\"Status\\": \\"off\\"\\n },\\n \\"Retry\\": {\\n \\"Attempts\\": 1,\\n \\"RetryOn\\": [\\n \\"5xx\\"\\n ],\\n \\"HttpCodes\\": [\\n \\"500\\"\\n ],\\n \\"Status\\": \\"on\\"\\n },\\n \\"DomainIdList\\": [\\n 1\\n ],\\n \\"DomainNameList\\": [\\n \\"test.com\\"\\n ],\\n \\"Redirect\\": {\\n \\"Code\\": 200,\\n \\"Host\\": \\"ww.al.c\\",\\n \\"Path\\": \\"/\\"\\n },\\n \\"EnableWaf\\": true\\n }\\n}","type":"json"}]',
+ 'title' => '更新路由防护状态',
+ ],
+ 'ApplyGatewayRoute' => [
+ 'summary' => '发布网关路由。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '28369',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseVZLJSD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由条目ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '950',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-1a4ab101d5924b6f92c5ec98a841761f',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1DB1AB36-8395-540E-AACC-7571D6B2057A',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '节点数据。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1DB1AB36-8395-540E-AACC-7571D6B2057A\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '发布网关路由',
+ ],
+ 'OfflineGatewayRoute' => [
+ 'summary' => '下线网关路由。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由条目ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '645',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'gw-77e1153db6e14c0a8b1fae20bcb89ca5',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回信息的语言类型:'."\n"
+ ."\n"
+ .'- zh:中文'."\n"
+ .'- en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8EB24742-AB15-5953-BEFB-1FA18E770EEE',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '报错信息。',
+ 'type' => 'string',
+ 'example' => '请求处理成功',
+ ],
+ 'Code' => [
+ 'description' => '返回码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ ."\n"
+ .'- `true`:请求成功。 '."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Data' => [
+ 'description' => '下线是否成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8EB24742-AB15-5953-BEFB-1FA18E770EEE\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"请求处理成功\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '下线网关路由',
+ ],
+ 'GetGatewayConfig' => [
+ 'summary' => '获取网关参数配置。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '141101',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseS26K2N',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-61f465fa2dd044069e2208c4912*****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<GatewayConfig>',
+ 'description' => 'RestResult<GatewayConfig>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'F6092602-C357-4750-89D9-E572FBEA****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '暂未使用,请忽略。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '暂未使用,请忽略。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'example' => 'gw-61f465fa2dd044069e2208c4912*****',
+ ],
+ 'EnableGenerateRequestId' => [
+ 'title' => '是否生成requestId',
+ 'description' => '作用于请求范围,根据配置会在请求头中生成requestId,以便追踪请求。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'EnableGzip' => [
+ 'title' => '是否启用gzip进行压缩',
+ 'description' => '作用于请求与响应环节,启用gzip会对请求响应进行压缩,会减少网关流量,增加网关cpu消耗。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'EnableSlashMerge' => [
+ 'title' => '是否合并‘/’, 开启后www.a.com//b多余的\'/\'会被合并,将会同www.a.com/b一致',
+ 'description' => '作用于请求环节,是否合并请求中多余的‘/’, 开启后www.a.com//b多余的\'/\'会被合并,将会同www.a.com/b一致。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'DownstreamIdleTime' => [
+ 'title' => '客户端到网关处于指定的时间内[0-600]没有请求,则会断开链接',
+ 'description' => '作用于网关连接,客户端到网关处于指定的时间内没有请求,则会断开链接。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '180',
+ ],
+ 'PreserveHeaderFormat' => [
+ 'title' => '是否保持header头大小写, http1.1规范中 header头不区分大小写进行识别,为了保证与http2规范兼容,默认会统一转化为小写',
+ 'description' => '作用于请求和响应环节,是否保持请求header头大小写, http1.1规范中 header头不区分大小写进行识别,为了保证与http2规范兼容,默认会统一转化为小写。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'DownstreamConnectionBufferLimits' => [
+ 'title' => '单条链接的buffer大小',
+ 'description' => '作用于网关连接,单条链接的buffer大小,配置后会影响吞吐和网关的内存使用(单位:Byte)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '32768',
+ ],
+ 'EnableHardwareAccelerate' => [
+ 'title' => '是否开启硬件加速(若您的地域处于底层不支持地域,或购买时未指定硬件加速会生效失败)',
+ 'description' => '是否开启硬件加速(若您的地域处于底层不支持地域,或购买时未指定硬件加速会生效失败)。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'XffTrustedNum' => [
+ 'title' => '网关前可信任的设备个数',
+ 'description' => '作用于请求环节,网关前可信任的代理个数,会影响网关是否会使用客户端产生的x-forwarded-for和x-request-id等请求头。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'EnableHttp2' => [
+ 'title' => '是否默认开启http2',
+ 'description' => '作用于请求环节,服务端与客户端协商时是否使用http2(修改后1~2分钟后生效)。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'DownstreamHttp2MaxConcurrentStream' => [
+ 'title' => '下游http最大并发数',
+ 'description' => '作用于请求环节,客户端使用http2时一条链接上最大并发数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'InitialStreamWindowSize' => [
+ 'title' => 'http2 stream 初始窗口大小',
+ 'description' => '作用于请求环节,网关同客户端使用http2时协商的stream初始窗口大小(单位:Byte)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '65535',
+ ],
+ 'InitialConnectionWindowSize' => [
+ 'title' => 'http2 连接 初始窗口大小',
+ 'description' => '作用于请求环节,网关同客户端使用http2时连接级别初始窗口大小(单位:Byte)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1048576',
+ ],
+ 'XtraceDetails' => [
+ 'description' => '链路追踪信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TraceOn' => [
+ 'description' => '是否开启链路追踪。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Id' => [
+ 'description' => '链路追踪信息ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '255',
+ ],
+ 'Sample' => [
+ 'description' => '采样率(%)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '500',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'example' => 'gw-61f465fa2dd044069e2208c4912*****',
+ ],
+ 'GmtCreate' => [
+ 'description' => '链路追踪信息创建时间。',
+ 'type' => 'string',
+ 'example' => '2024-08-12T09:39:07.000+0000',
+ ],
+ 'GmtModified' => [
+ 'description' => '链路追踪信息修改时间。',
+ 'type' => 'string',
+ 'example' => '2024-08-12T09:39:07.000+0000',
+ ],
+ 'TraceType' => [
+ 'description' => '链路追踪类型:'."\n"
+ ."\n"
+ .'- XTRACE:可观测链路OpenTelemetry版,链路追踪协议Zipkin'."\n"
+ ."\n"
+ .'- SKYWALKING:自建Skywalking'."\n"
+ ."\n"
+ .'- OPENTELEMETRY:可观测链路OpenTelemetry版,链路追踪协议OpenTelemetry'."\n"
+ ."\n"
+ .'- OTSKYWALKING:可观测链路OpenTelemetry版,链路追踪协议Skywalking',
+ 'type' => 'string',
+ 'example' => 'OPENTELEMETRY',
+ ],
+ 'ServiceId' => [
+ 'description' => '自建Skywalking,Skywalking服务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '333',
+ ],
+ 'ServicePort' => [
+ 'description' => '自建Skywalking,Skywalking服务端口。',
+ 'type' => 'string',
+ 'example' => '8888',
+ ],
+ ],
+ ],
+ 'SlsConfigDetails' => [
+ 'description' => '日志投递信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LogOn' => [
+ 'description' => '是否开启日志投递。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Id' => [
+ 'description' => '未开放使用。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ 'ProjectName' => [
+ 'description' => '日志投递目标Project',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'LogStoreName' => [
+ 'description' => '日志投递目标Logstore,取值:'."\n"
+ ."\n"
+ .'- 未开启兼容Nginx Ingress:mse_gw_access_log'."\n"
+ ."\n"
+ .'- 开启兼容Nginx Ingress:nginx-ingress',
+ 'type' => 'string',
+ 'example' => 'mse_gw_access_log',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一ID。',
+ 'type' => 'string',
+ 'example' => 'gw-61f465fa2dd044069e2208c4912*****'."\n",
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '500',
+ ],
+ 'GmtCreate' => [
+ 'description' => '未开放使用。',
+ 'type' => 'string',
+ 'example' => '""',
+ ],
+ 'GmtModified' => [
+ 'description' => '未开放使用。',
+ 'type' => 'string',
+ 'example' => ' ""',
+ ],
+ 'NginxCompatible' => [
+ 'description' => '是否开启兼容 Nginx Ingress',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'SupportWaf' => [
+ 'description' => '网关是否支持WAF。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'EnableWaf' => [
+ 'description' => '是否开启WAF。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AccessLogHeader' => [
+ 'description' => '自定义日志格式。',
+ 'type' => 'string',
+ 'example' => '{"requestMetadata":[],"responseHeaders":[],"requestHeaders":["x-test"],"responseMetadata":[]}',
+ ],
+ 'EnableHttp3' => [
+ 'description' => '是否支持http3协议。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'UpstreamIdleTimeout' => [
+ 'description' => '默认到上游的idle时间。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'ZipAlgorithm' => [
+ 'description' => '开启压缩后使用的算法,可以选择brotli,gzip,如果此时EnableGzip未开启,将自动开启EnableGzip选项。',
+ 'type' => 'string',
+ 'example' => '["gzip"]',
+ ],
+ 'PathWithEscapedSlashes' => [
+ 'description' => '确定 URI 路径中包含 %2F、%2f、%5C 或 %5c 这些转义的请求的操作, 默认为KEEP_UNCHANGED(保持不变)'."\n"
+ ."\n"
+ .'取值:'."\n"
+ ."\n"
+ .'- KEEP_UNCHANGED'."\n"
+ ."\n"
+ .'- REJECT_REQUEST'."\n"
+ ."\n"
+ .'- UNESCAPE_AND_REDIRECT'."\n"
+ ."\n"
+ .'- UNESCAPE_AND_FORWARD',
+ 'type' => 'string',
+ 'example' => 'KEEP_UNCHANGED',
+ ],
+ 'NoSupportedConfigList' => [
+ 'description' => '不支持的配置列表。',
+ 'type' => 'string',
+ 'example' => '"EnableProxyProtocol,EnableCustomAuthConfigPush"',
+ ],
+ 'LogFilterConfig' => [
+ 'description' => '未开放使用。',
+ 'type' => 'string',
+ 'example' => ' ""',
+ ],
+ 'EnableProxyProtocol' => [
+ 'description' => '是否开启Proxy协议,如果网关入口流量使用NLB接入,如果不开启则无法获取客户端的真实IP,开启后对于非Proxy协议请求没有影响。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'EnableCustomAuthConfigPush' => [
+ 'description' => '作用于使用自建的鉴权服务的场景,开启后鉴权规则变更不会引起连接中断,适用于WebSocket和在线业务场景。',
+ 'type' => 'string',
+ 'example' => 'false',
+ ],
+ 'KeepaliveHeaderTimeout' => [
+ 'description' => '用于生成Keep-Alive响应头返回给客户端,告知连接的保活时间。例如配置为10时,会返回响应头: `keep-alive: timeout=10`。配置为0时,不会返回该响应头。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'WebsocketTermGracePeriod' => [
+ 'title' => '',
+ 'description' => '当网关实例升级、重启等需要关闭连接的场景下,为Websocket连接维持的保活时间(单位:s)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'EnableK8sSourceWorkloadFilter' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Enable' => [
+ 'type' => 'boolean',
+ ],
+ 'LabelKey' => [
+ 'type' => 'string',
+ ],
+ 'LabelValue' => [
+ 'type' => 'string',
+ ],
+ 'FilterOpt' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'EnableXffTrustedCidrs' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Enable' => [
+ 'type' => 'boolean',
+ ],
+ 'IpListContent' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'EnableGzipHardwareAccelerate' => [
+ 'type' => 'boolean',
+ ],
+ 'PreserveExternalRequestID' => [
+ 'type' => 'boolean',
+ ],
+ 'LiteMetrics' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F6092602-C357-4750-89D9-E572FBEA****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": {\\n \\"GatewayUniqueId\\": \\"gw-61f465fa2dd044069e2208c4912*****\\",\\n \\"EnableGenerateRequestId\\": true,\\n \\"EnableGzip\\": false,\\n \\"EnableSlashMerge\\": true,\\n \\"DownstreamIdleTime\\": 180,\\n \\"PreserveHeaderFormat\\": true,\\n \\"DownstreamConnectionBufferLimits\\": 32768,\\n \\"EnableHardwareAccelerate\\": true,\\n \\"XffTrustedNum\\": 0,\\n \\"EnableHttp2\\": false,\\n \\"DownstreamHttp2MaxConcurrentStream\\": 100,\\n \\"InitialStreamWindowSize\\": 65535,\\n \\"InitialConnectionWindowSize\\": 1048576,\\n \\"XtraceDetails\\": {\\n \\"TraceOn\\": true,\\n \\"Id\\": 255,\\n \\"Sample\\": 100,\\n \\"GatewayId\\": 500,\\n \\"GatewayUniqueId\\": \\"gw-61f465fa2dd044069e2208c4912*****\\",\\n \\"GmtCreate\\": \\"2024-08-12T09:39:07.000+0000\\",\\n \\"GmtModified\\": \\"2024-08-12T09:39:07.000+0000\\",\\n \\"TraceType\\": \\"OPENTELEMETRY\\",\\n \\"ServiceId\\": 333,\\n \\"ServicePort\\": \\"8888\\"\\n },\\n \\"SlsConfigDetails\\": {\\n \\"LogOn\\": true,\\n \\"Id\\": 0,\\n \\"ProjectName\\": \\"test\\",\\n \\"LogStoreName\\": \\"mse_gw_access_log\\",\\n \\"GatewayUniqueId\\": \\"gw-61f465fa2dd044069e2208c4912*****\\\\n\\",\\n \\"GatewayId\\": 500,\\n \\"GmtCreate\\": \\"\\\\\\"\\\\\\"\\",\\n \\"GmtModified\\": \\" \\\\\\"\\\\\\"\\",\\n \\"NginxCompatible\\": false\\n },\\n \\"SupportWaf\\": true,\\n \\"EnableWaf\\": true,\\n \\"AccessLogHeader\\": \\"{\\\\\\"requestMetadata\\\\\\":[],\\\\\\"responseHeaders\\\\\\":[],\\\\\\"requestHeaders\\\\\\":[\\\\\\"x-test\\\\\\"],\\\\\\"responseMetadata\\\\\\":[]}\\",\\n \\"EnableHttp3\\": false,\\n \\"UpstreamIdleTimeout\\": 30,\\n \\"ZipAlgorithm\\": \\"[\\\\\\"gzip\\\\\\"]\\",\\n \\"PathWithEscapedSlashes\\": \\"KEEP_UNCHANGED\\",\\n \\"NoSupportedConfigList\\": \\"\\\\\\"EnableProxyProtocol,EnableCustomAuthConfigPush\\\\\\"\\",\\n \\"LogFilterConfig\\": \\" \\\\\\"\\\\\\"\\",\\n \\"EnableProxyProtocol\\": true,\\n \\"EnableCustomAuthConfigPush\\": \\"false\\",\\n \\"KeepaliveHeaderTimeout\\": 0,\\n \\"WebsocketTermGracePeriod\\": 30,\\n \\"EnableK8sSourceWorkloadFilter\\": {\\n \\"Enable\\": true,\\n \\"LabelKey\\": \\"\\",\\n \\"LabelValue\\": \\"\\",\\n \\"FilterOpt\\": \\"\\"\\n },\\n \\"EnableXffTrustedCidrs\\": {\\n \\"Enable\\": true,\\n \\"IpListContent\\": \\"\\"\\n },\\n \\"EnableGzipHardwareAccelerate\\": true,\\n \\"PreserveExternalRequestID\\": true,\\n \\"LiteMetrics\\": true\\n }\\n}","type":"json"}]',
+ 'title' => '获取网关参数配置',
+ ],
+ 'EnableProxyProtocol' => [
+ 'summary' => '开启Proxy协议。如果网关入口流量使用NLB接入,如果不开启则无法获取客户端的真实IP,开启后对于非Proxy协议请求没有影响。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491*****',
+ ],
+ ],
+ [
+ 'name' => 'EnableProxyProtocol',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否使用ProxyProtocol方式开启保持客户端源IP功能,取值:'."\n"
+ ."\n"
+ .'- **true**:开启保持客户端源IP功能。'."\n"
+ ."\n"
+ .'- **false**(默认值):不开启保持客户端源IP功能。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<List<GatewayPlugin>>',
+ 'description' => 'RestResult<List<GatewayPlugin>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的 **%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '是否操作成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '开启Proxy协议',
+ ],
+ 'EnableHttp2' => [
+ 'summary' => '服务端与客户端协商时是否使用http2(修改后1~2分钟后生效)',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '142072',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseS26K2N',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-0adf3ad751284cc69fcf9669fba*****',
+ ],
+ ],
+ [
+ 'name' => 'EnableHttp2',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务端与客户端协商时是否使用http2。取值:'."\n"
+ .'- **true**:是。'."\n"
+ .'- **false**:否。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。'."\n",
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '是否开启成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '开启HTTP 2',
+ ],
+ 'PreserveHeaderFormat' => [
+ 'summary' => '作用于请求和响应环节,是否保持请求header头大小写, http1.1规范中 header头不区分大小写进行识别,为了保证与http2规范兼容,默认会统一转化为小写。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '142071',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseS26K2N',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-3f97e2989c344f35ab3fd62b19f1****',
+ ],
+ ],
+ [
+ 'name' => 'PreserveHeaderFormat',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否保持请求header头大小写。取值:'."\n"
+ ."\n"
+ .'- **true**:是。'."\n"
+ .'- **false**:否。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'title' => 'code仅仅用来和success同步',
+ 'description' => 'code仅仅用来和success同步',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'ErrorCode' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '响应信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'DynamicCode' => [
+ 'title' => '动态错误信息中的占位符',
+ 'description' => '动态错误信息中的占位符。',
+ 'type' => 'string',
+ 'example' => 'code',
+ ],
+ 'DynamicMessage' => [
+ 'description' => '动态错误信息,用于替换返回参数**ErrMessage**错误信息中的**%s**。'."\n"
+ .'> 如果**ErrMessage**返回**The Value of Input Parameter %s is not valid**,且**DynamicMessage**返回**DtsJobId**,则代表所传入的请求参数**DtsJobId**不合法。',
+ 'type' => 'string',
+ 'example' => 'The specified parameter is invalid.',
+ ],
+ 'Data' => [
+ 'description' => '是否开启成功。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"ErrorCode\\": \\"Success\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"DynamicCode\\": \\"code\\",\\n \\"DynamicMessage\\": \\"The specified parameter is invalid.\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '开启保持请求header头大小写',
+ ],
+ 'CreateGatewayFlowRule' => [
+ 'summary' => '创建网关流控规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '14407',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '52853',
+ ],
+ ],
+ [
+ 'name' => 'RouteName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'routeName',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '总体QPS阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'BehaviorType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Web fallbac行为类型。'."\n"
+ ."\n"
+ .'0:返回指定文本。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'BodyEncoding',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ResponseStatusCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'ResponseContentBody',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'ResponseRedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'www.******.com',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Long>',
+ 'description' => 'RestResult<Long>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '72FC625E-9629-591B-9C01-3F0BFDAB****',
+ ],
+ 'Data' => [
+ 'description' => '返回规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '608',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"72FC625E-9629-591B-9C01-3F0BFDAB****\\",\\n \\"Data\\": 608\\n}","type":"json"}]',
+ 'title' => '创建网关流控规则',
+ ],
+ 'DeleteGatewayFlowRule' => [
+ 'summary' => '删除该网关流控规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '11151',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '流控规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2B74E7F7-DF54-5AB1-B8F2-67391B83****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2B74E7F7-DF54-5AB1-B8F2-67391B83****\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '删除网关流控规则',
+ ],
+ 'UpdateGatewayFlowRule' => [
+ 'summary' => '更新该网关流控规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '流控规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '549',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '14407',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '48811',
+ ],
+ ],
+ [
+ 'name' => 'RouteName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'routeA',
+ ],
+ ],
+ [
+ 'name' => 'Threshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '总体QPS阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'BehaviorType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定文本'."\n"
+ ."\n"
+ .'1:跳转到指定页面',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'BodyEncoding',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ResponseStatusCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'ResponseContentBody',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Http返回文本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'ResponseRedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'www.******.com',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<GatewayRouteFlowRule>',
+ 'description' => 'RestResult<GatewayRouteFlowRule>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2B74E7F7-DF54-5AB1-B8F2-67391B83****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '流控规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '14407',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '48811',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeA',
+ ],
+ 'Threshold' => [
+ 'description' => '总体QPS阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'StatDurationMs' => [
+ 'description' => '统计持续时间。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化模式。'."\n"
+ ."\n"
+ .'0:单机。'."\n"
+ ."\n"
+ .'1:集群。'."\n"
+ ."\n"
+ .'2:集群转单机。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallbaco行为类型。'."\n"
+ ."\n"
+ .'0:返回指定文本。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'Http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '429',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'example' => 'Text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对。',
+ 'type' => 'string',
+ 'example' => 'key=value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2B74E7F7-DF54-5AB1-B8F2-67391B83****\\",\\n \\"Data\\": {\\n \\"Id\\": 549,\\n \\"GatewayId\\": 14407,\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"RouteId\\": 48811,\\n \\"RouteName\\": \\"routeA\\",\\n \\"Threshold\\": 10,\\n \\"StatDurationMs\\": 10,\\n \\"LimitMode\\": 0,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 429,\\n \\"ResponseContentBody\\": \\"Text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key=value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 549\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '更新网关流控规则',
+ ],
+ 'ListGatewayFlowRule' => [
+ 'summary' => '查询该网关流控规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'just for POP',
+ 'description' => 'just for POP',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'param',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<PageResult<GatewayRouteFlowRule>>',
+ 'description' => 'RestResult<PageResult<GatewayRouteFlowRule>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '0951EBF0-798E-5E0B-8D38-460A14AD****',
+ ],
+ 'Data' => [
+ 'description' => 'Meta返回信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'title' => '实例列表的页码',
+ 'description' => '实例列表的页码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalSize' => [
+ 'title' => '查询到的实例总数',
+ 'description' => '查询到的实例总数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '输入时设置的每页行数',
+ 'description' => '输入时设置的每页行数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'Result' => [
+ 'description' => '返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '路由流控规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '14407',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '48811',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeA',
+ ],
+ 'Threshold' => [
+ 'description' => '总体QPS阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容'."\n"
+ ."\n"
+ .'1:跳转到指定页面',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'Http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '429',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'Http返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ ],
+ ],
+ ],
+ 'Results' => [
+ 'title' => '从 com.alibaba.mse.common.dto.FetchListResponse#results',
+ 'description' => '分页数据集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '路由流控规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '14407',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '48811',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeA',
+ ],
+ 'Threshold' => [
+ 'description' => '总体QPS阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'StatDurationMs' => [
+ 'description' => '统计持续时间。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化模式。'."\n"
+ ."\n"
+ .'0:单机。'."\n"
+ ."\n"
+ .'1:集群。'."\n"
+ ."\n"
+ .'2:集群转单机。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容'."\n"
+ ."\n"
+ .'1:跳转到指定页面',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'Http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '429',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'Http返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对。',
+ 'type' => 'string',
+ 'example' => 'key=value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '549',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0951EBF0-798E-5E0B-8D38-460A14AD****\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"TotalSize\\": 1,\\n \\"PageSize\\": 100,\\n \\"Result\\": [\\n {\\n \\"Id\\": 549,\\n \\"GatewayId\\": 14407,\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"RouteId\\": 48811,\\n \\"RouteName\\": \\"routeA\\",\\n \\"Threshold\\": 10,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 429,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"Enable\\": 0\\n }\\n ],\\n \\"Results\\": [\\n {\\n \\"Id\\": 549,\\n \\"GatewayId\\": 14407,\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"RouteId\\": 48811,\\n \\"RouteName\\": \\"routeA\\",\\n \\"Threshold\\": 10,\\n \\"StatDurationMs\\": 10,\\n \\"LimitMode\\": 0,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 429,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key=value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 549\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关流控规则',
+ ],
+ 'CreateGatewayCircuitBreakerRule' => [
+ 'summary' => '创建网关熔断规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '14407',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491*****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '645',
+ ],
+ ],
+ [
+ 'name' => 'RouteName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'routeName',
+ ],
+ ],
+ [
+ 'name' => 'Strategy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '阈值类型。'."\n"
+ ."\n"
+ .'0:慢调用类型。'."\n"
+ ."\n"
+ .'1:异常类型。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'TriggerRatio',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '触发熔断百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'StatDurationSec',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '熔断统计时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '11',
+ ],
+ ],
+ [
+ 'name' => 'RecoveryTimeoutSec',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '熔断恢复时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '12',
+ ],
+ ],
+ [
+ 'name' => 'MinRequestAmount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '触发熔断的最小请求数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'MaxAllowedMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '慢调用模式下慢调用阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'BehaviorType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Web fallbac行为类型。'."\n"
+ ."\n"
+ .'0:返回指定文本。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'BodyEncoding',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ResponseStatusCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'ResponseContentBody',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'ResponseRedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'www.******.com',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Long>',
+ 'description' => 'RestResult<Long>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'Data' => [
+ 'description' => '返回规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '28',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"Data\\": 28\\n}","type":"json"}]',
+ 'title' => '创建网关熔断规则',
+ ],
+ 'DeleteGatewayCircuitBreakerRule' => [
+ 'summary' => '删除该网关熔断规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1cef5440bf2d484db419fb264d4f****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '11151',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '熔断规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '52BA6DA6-A702-4362-A32F-DFF79655****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"52BA6DA6-A702-4362-A32F-DFF79655****\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '删除网关熔断规则',
+ ],
+ 'UpdateGatewayCircuitBreakerRule' => [
+ 'summary' => '更新该网关熔断规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '熔断规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '369',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '14407',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '645',
+ ],
+ ],
+ [
+ 'name' => 'RouteName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'routeName',
+ ],
+ ],
+ [
+ 'name' => 'Strategy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '阈值类型。'."\n"
+ ."\n"
+ .'0:慢调用类型。'."\n"
+ ."\n"
+ .'1:异常类型。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'TriggerRatio',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '触发熔断百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'StatDurationSec',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '熔断统计时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '11',
+ ],
+ ],
+ [
+ 'name' => 'RecoveryTimeoutSec',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '熔断恢复时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '12',
+ ],
+ ],
+ [
+ 'name' => 'MinRequestAmount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '触发熔断的最小请求数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'MaxAllowedMs',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '慢调用模式下慢调用阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'BehaviorType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定文本'."\n"
+ ."\n"
+ .'1:跳转到指定页面',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'BodyEncoding',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ResponseStatusCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'ResponseContentBody',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'ResponseRedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'www.******.com',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<GatewayRouteCircuitBreakerRule>',
+ 'description' => 'RestResult<GatewayRouteCircuitBreakerRule>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '熔断规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '369',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '14407',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-c9bc5afd61014165bd58f621b491****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '645',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeName',
+ ],
+ 'Strategy' => [
+ 'description' => '阈值类型。'."\n"
+ ."\n"
+ .'0:慢调用类型。'."\n"
+ ."\n"
+ .'1:异常类型。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'TriggerRatio' => [
+ 'description' => '触发熔断的百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'StatDurationSec' => [
+ 'description' => '熔断统计时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'RecoveryTimeoutSec' => [
+ 'description' => '熔断恢复时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '12',
+ ],
+ 'MinRequestAmount' => [
+ 'description' => '触发熔断的最小请求数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'MaxAllowedMs' => [
+ 'description' => '慢调用模式下慢调用阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化模式。'."\n"
+ ."\n"
+ .'0:单机。'."\n"
+ ."\n"
+ .'1:集群。'."\n"
+ ."\n"
+ .'2:集群转单机。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallbaco行为类型。'."\n"
+ ."\n"
+ .'0:返回指定文本。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '201',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对。',
+ 'type' => 'string',
+ 'example' => 'key=value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '369',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"Data\\": {\\n \\"Id\\": 369,\\n \\"GatewayId\\": 14407,\\n \\"GatewayUniqueId\\": \\"gw-c9bc5afd61014165bd58f621b491****\\",\\n \\"RouteId\\": 645,\\n \\"RouteName\\": \\"routeName\\",\\n \\"Strategy\\": 0,\\n \\"TriggerRatio\\": 10,\\n \\"StatDurationSec\\": 11,\\n \\"RecoveryTimeoutSec\\": 12,\\n \\"MinRequestAmount\\": 10,\\n \\"MaxAllowedMs\\": 10,\\n \\"LimitMode\\": 0,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 201,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key=value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 369\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '更新网关熔断规则',
+ ],
+ 'ListGatewayCircuitBreakerRule' => [
+ 'summary' => '查询该网关熔断规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'just for POP',
+ 'description' => 'just for POP',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'param',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<PageResult<GatewayRouteCircuitBreakerRule>>',
+ 'description' => 'RestResult<PageResult<GatewayRouteCircuitBreakerRule>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DC34E4A3-5F1C-4E40-86EA-02EDF967****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'title' => '实例列表的页码',
+ 'description' => '实例列表的页码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalSize' => [
+ 'title' => '查询到的实例总数',
+ 'description' => '查询到的实例总数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'PageSize' => [
+ 'title' => '输入时设置的每页行数',
+ 'description' => '输入时设置的每页行数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '熔断规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '467',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '11919',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-5017305290e14centbrveca****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3091',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeName',
+ ],
+ 'Strategy' => [
+ 'description' => '阈值模式。'."\n"
+ ."\n"
+ .'0:慢调用模式。'."\n"
+ ."\n"
+ .'1:异常模式。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'TriggerRatio' => [
+ 'description' => '触发熔断百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'StatDurationSec' => [
+ 'description' => '熔断统计时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'RecoveryTimeoutSec' => [
+ 'description' => '熔断恢复时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '12',
+ ],
+ 'MinRequestAmount' => [
+ 'description' => '触发熔断的最小请求数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'MaxAllowedMs' => [
+ 'description' => '慢调用模式下慢调用阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '14',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化模式。'."\n"
+ ."\n"
+ .'0:单机。'."\n"
+ ."\n"
+ .'1:集群。'."\n"
+ ."\n"
+ .'2:集群转单机。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'Http状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '204',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对。',
+ 'type' => 'string',
+ 'example' => 'key=value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '467',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Results' => [
+ 'title' => '从 com.alibaba.mse.common.dto.FetchListResponse#results',
+ 'description' => '返回结果集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '熔断规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '467',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '11919',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-1ee34548c68f4778a25c05abd657****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3450',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeName',
+ ],
+ 'Strategy' => [
+ 'description' => '阈值模式。'."\n"
+ ."\n"
+ .'0:慢调用模式。'."\n"
+ ."\n"
+ .'1:异常模式。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'TriggerRatio' => [
+ 'description' => '触发熔断的百分比。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'StatDurationSec' => [
+ 'description' => '熔断统计时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '11',
+ ],
+ 'RecoveryTimeoutSec' => [
+ 'description' => '熔断恢复时长。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '12',
+ ],
+ 'MinRequestAmount' => [
+ 'description' => '触发熔断的最小请求数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'MaxAllowedMs' => [
+ 'description' => '慢调用模式下慢调用阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化模式。'."\n"
+ ."\n"
+ .'0:单机。'."\n"
+ ."\n"
+ .'1:集群。'."\n"
+ ."\n"
+ .'2:集群转单机。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容'."\n"
+ ."\n"
+ .'1:跳转到指定页面',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本'."\n"
+ ."\n"
+ .'1:JSON',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '204',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对。',
+ 'type' => 'string',
+ 'example' => 'key=value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '467',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC34E4A3-5F1C-4E40-86EA-02EDF967****\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"TotalSize\\": 11,\\n \\"PageSize\\": 100,\\n \\"Result\\": [\\n {\\n \\"Id\\": 467,\\n \\"GatewayId\\": 11919,\\n \\"GatewayUniqueId\\": \\"gw-5017305290e14centbrveca****\\",\\n \\"RouteId\\": 3091,\\n \\"RouteName\\": \\"routeName\\",\\n \\"Strategy\\": 0,\\n \\"TriggerRatio\\": 10,\\n \\"StatDurationSec\\": 11,\\n \\"RecoveryTimeoutSec\\": 12,\\n \\"MinRequestAmount\\": 10,\\n \\"MaxAllowedMs\\": 14,\\n \\"LimitMode\\": 0,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 204,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key=value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 467\\n ]\\n }\\n ],\\n \\"Results\\": [\\n {\\n \\"Id\\": 467,\\n \\"GatewayId\\": 11919,\\n \\"GatewayUniqueId\\": \\"gw-1ee34548c68f4778a25c05abd657****\\",\\n \\"RouteId\\": 3450,\\n \\"RouteName\\": \\"routeName\\",\\n \\"Strategy\\": 0,\\n \\"TriggerRatio\\": 10,\\n \\"StatDurationSec\\": 11,\\n \\"RecoveryTimeoutSec\\": 12,\\n \\"MinRequestAmount\\": 10,\\n \\"MaxAllowedMs\\": 10,\\n \\"LimitMode\\": 0,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 204,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key=value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 467\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关熔断规则',
+ ],
+ 'CreateGatewayIsolationRule' => [
+ 'summary' => '创建网关并发规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '14407',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '52853',
+ ],
+ ],
+ [
+ 'name' => 'RouteName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'routeName',
+ ],
+ ],
+ [
+ 'name' => 'MaxConcurrency',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '总体并发数阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'BehaviorType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'BodyEncoding',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ResponseStatusCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'ResponseContentBody',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'ResponseRedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跳转路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'www.******.com',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Long>',
+ 'description' => 'RestResult<Long>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '94B12406-E44D-57C9-BF93-A8B35BFF****',
+ ],
+ 'Data' => [
+ 'description' => '返回规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '608',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"94B12406-E44D-57C9-BF93-A8B35BFF****\\",\\n \\"Data\\": 608\\n}","type":"json"}]',
+ 'title' => '创建网关并发规则',
+ ],
+ 'DeleteGatewayIsolationRule' => [
+ 'summary' => '删除该网关并发规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '11151',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '并发规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '94B12406-E44D-57C9-BF93-A8B35BFF****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"94B12406-E44D-57C9-BF93-A8B35BFF****\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '删除网关并发规则',
+ ],
+ 'UpdateGatewayIsolationRule' => [
+ 'summary' => '更新该网关并发规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '并发规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '358',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '14407',
+ ],
+ ],
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ ],
+ [
+ 'name' => 'RouteId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '52853',
+ ],
+ ],
+ [
+ 'name' => 'RouteName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'routeName',
+ ],
+ ],
+ [
+ 'name' => 'MaxConcurrency',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '总体并发数阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'BehaviorType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'BodyEncoding',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'ResponseStatusCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '429',
+ ],
+ ],
+ [
+ 'name' => 'ResponseContentBody',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'ResponseRedirectUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跳转路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'www.******.com',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '0',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<GatewayRouteIsolationRule>',
+ 'description' => 'RestResult<GatewayRouteIsolationRule>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '94B12406-E44D-57C9-BF93-A8B35BFF****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '并发规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '358',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '14407',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '52853',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeName',
+ ],
+ 'MaxConcurrency' => [
+ 'description' => '总体并发数阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化模式。'."\n"
+ ."\n"
+ .'0:单机。'."\n"
+ ."\n"
+ .'1:集群。'."\n"
+ ."\n"
+ .'2:集群转单机。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '429',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转路径。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对。',
+ 'type' => 'string',
+ 'example' => 'key=value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '358',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"94B12406-E44D-57C9-BF93-A8B35BFF****\\",\\n \\"Data\\": {\\n \\"Id\\": 358,\\n \\"GatewayId\\": 14407,\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"RouteId\\": 52853,\\n \\"RouteName\\": \\"routeName\\",\\n \\"MaxConcurrency\\": 100,\\n \\"LimitMode\\": 0,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 429,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key=value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 358\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '更新网关并发规则',
+ ],
+ 'ListGatewayIsolationRule' => [
+ 'summary' => '查询该网关并发规则。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FilterParams',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'just for POP',
+ 'description' => 'just for POP',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'param',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<PageResult<GatewayRouteIsolationRule>>',
+ 'description' => 'RestResult<PageResult<GatewayRouteIsolationRule>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '6F025D43-8632-5716-AE9B-7EDDF16C****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'title' => '实例列表的页码',
+ 'description' => '实例列表的页码',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalSize' => [
+ 'title' => '查询到的实例总数',
+ 'description' => '查询到的实例总数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '输入时设置的每页行数',
+ 'description' => '输入时设置的每页行数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '并发规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '358',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '14407',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '52853',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeName',
+ ],
+ 'MaxConcurrency' => [
+ 'description' => '总体并发数阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化模式。'."\n"
+ ."\n"
+ .'0:单机'."\n"
+ ."\n"
+ .'1:集群'."\n"
+ ."\n"
+ .'2:集群转单机',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '429',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对',
+ 'type' => 'string',
+ 'example' => 'key:value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '358',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Results' => [
+ 'title' => '从 com.alibaba.mse.common.dto.FetchListResponse#results',
+ 'description' => '返回结果集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回集合。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => '并发规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '358',
+ ],
+ 'GatewayId' => [
+ 'description' => '网关ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '14407',
+ ],
+ 'GatewayUniqueId' => [
+ 'description' => '网关唯一标识ID。',
+ 'type' => 'string',
+ 'example' => 'gw-e2d226bba4b2445c9e29fa7f8216****',
+ ],
+ 'RouteId' => [
+ 'description' => '路由ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '52853',
+ ],
+ 'RouteName' => [
+ 'description' => '路由名称。',
+ 'type' => 'string',
+ 'example' => 'routeName',
+ ],
+ 'MaxConcurrency' => [
+ 'description' => '总体并发数阈值。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'LimitMode' => [
+ 'description' => '阈值转化类型。'."\n"
+ ."\n"
+ .'0:单机。'."\n"
+ ."\n"
+ .'1:集群。'."\n"
+ ."\n"
+ .'2:单机转集群。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'BehaviorType' => [
+ 'description' => 'Web fallback行为类型。'."\n"
+ ."\n"
+ .'0:返回指定内容。'."\n"
+ ."\n"
+ .'1:跳转到指定页面。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'BodyEncoding' => [
+ 'description' => '编码类型。'."\n"
+ ."\n"
+ .'0:普通文本。'."\n"
+ ."\n"
+ .'1:JSON。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'ResponseStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '429',
+ ],
+ 'ResponseContentBody' => [
+ 'description' => 'HTTP返回文本。',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'ResponseRedirectUrl' => [
+ 'description' => '跳转地址。',
+ 'type' => 'string',
+ 'example' => 'www.******.com',
+ ],
+ 'ResponseAdditionalHeaders' => [
+ 'description' => '自定义header,输入为key-value键值对',
+ 'type' => 'string',
+ 'example' => 'key=value',
+ ],
+ 'Enable' => [
+ 'description' => '是否开启。'."\n"
+ ."\n"
+ .'0:不开启。'."\n"
+ ."\n"
+ .'1:开启。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ ],
+ 'IdList' => [
+ 'title' => '筛选规则id',
+ 'description' => '筛选规则id',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规则ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '358',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6F025D43-8632-5716-AE9B-7EDDF16C****\\",\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"TotalSize\\": 1,\\n \\"PageSize\\": 100,\\n \\"Result\\": [\\n {\\n \\"Id\\": 358,\\n \\"GatewayId\\": 14407,\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"RouteId\\": 52853,\\n \\"RouteName\\": \\"routeName\\",\\n \\"MaxConcurrency\\": 100,\\n \\"LimitMode\\": 0,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 429,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key:value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 358\\n ]\\n }\\n ],\\n \\"Results\\": [\\n {\\n \\"Id\\": 358,\\n \\"GatewayId\\": 14407,\\n \\"GatewayUniqueId\\": \\"gw-e2d226bba4b2445c9e29fa7f8216****\\",\\n \\"RouteId\\": 52853,\\n \\"RouteName\\": \\"routeName\\",\\n \\"MaxConcurrency\\": 100,\\n \\"LimitMode\\": 1,\\n \\"BehaviorType\\": 0,\\n \\"BodyEncoding\\": 0,\\n \\"ResponseStatusCode\\": 429,\\n \\"ResponseContentBody\\": \\"text\\",\\n \\"ResponseRedirectUrl\\": \\"www.******.com\\",\\n \\"ResponseAdditionalHeaders\\": \\"key=value\\",\\n \\"Enable\\": 0,\\n \\"IdList\\": [\\n 358\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询网关并发规则',
+ ],
+ 'InitializeServiceLinkRole' => [
+ 'summary' => '创建MSE SLR。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'common',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17049',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseRIJL6U',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Token',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保留参数,暂未使用',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '""',
+ ],
+ ],
+ [
+ 'name' => 'RoleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务角色名称,固定为AliyunServiceRoleForMSE',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AliyunServiceRoleForMSE',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '信息。',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A5E7D4E3-D30C-56C1-817F-F2B8CE6BXXXX',
+ ],
+ 'Data' => [
+ 'description' => '数据概览。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RoleName' => [
+ 'description' => '创建的角色名称。',
+ 'type' => 'string',
+ 'example' => 'AliyunServiceRoleForMSE',
+ ],
+ 'RequiredPermission' => [
+ 'description' => '调用接口的RAM权限点。',
+ 'type' => 'string',
+ 'example' => 'ram:CreateServiceLinkedRole',
+ ],
+ 'ServiceName' => [
+ 'description' => '归属服务。',
+ 'type' => 'string',
+ 'example' => 'mse.aliyuncs.com',
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"A5E7D4E3-D30C-56C1-817F-F2B8CE6BXXXX\\",\\n \\"Data\\": {\\n \\"RoleName\\": \\"AliyunServiceRoleForMSE\\",\\n \\"RequiredPermission\\": \\"ram:CreateServiceLinkedRole\\",\\n \\"ServiceName\\": \\"mse.aliyuncs.com\\"\\n },\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '创建MSE SLR',
+ ],
+ 'CloneSentinelRuleFromAhas' => [
+ 'summary' => 'AHAS规则迁移。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '209225',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseHJJ9Z1',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '命名空间',
+ 'description' => '命名空间',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'MseAppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '迁移后目标 mse 应用名。未填写的情况下默认和 ahas 应用名一致。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名称',
+ 'description' => '应用名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'AhasNamespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'AHAS侧命名空间(环境)。',
+ 'description' => 'AHAS侧命名空间(环境)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'IsAHASPublicRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'AHAS侧是否为公网地域。',
+ 'description' => 'AHAS侧是否为公网地域。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Map<String, List<String>>>',
+ 'description' => 'RestResult<Map<String, List<String>>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求Id。',
+ 'description' => '请求Id。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Data' => [
+ 'title' => '返回结果。',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'title' => '执行结果。',
+ 'description' => '执行结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ 'example' => '"完成 AHAS prod:spring-cloud-b -> MSE prod:spring-cloud-b 应用的流控规则迁移。AHAS 侧总规则数: 14 ;成功迁移的规则数: 7 ;完成迁移但存在异常的规则数: 2 ;迁移失败的规则数: 5"',
+ 'description' => '执行结果详情',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Data\\": {\\n \\"key\\": [\\n \\"\\\\\\"完成 AHAS prod:spring-cloud-b -> MSE prod:spring-cloud-b 应用的流控规则迁移。AHAS 侧总规则数: 14 ;成功迁移的规则数: 7 ;完成迁移但存在异常的规则数: 2 ;迁移失败的规则数: 5\\\\\\"\\"\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => 'AHAS规则迁移',
+ ],
+ 'ChangeResourceGroup' => [
+ 'summary' => '资源转组',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'common',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '150111',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseYGMCYE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型,例如注册配置中心集群、网关实例',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Cluster,Gateway',
+ 'default' => 'Cluster',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源Id',
+ 'description' => '资源Id,即注册配置中心实例ID或网关唯一ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse-cn-xxxxxxxxxxx,'."\n"
+ .'gw-xxxxxxxxxxxxxxxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'ResourceRegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域Id',
+ 'description' => '地域Id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '目标资源组',
+ 'description' => '目标资源组',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rg-acfm34x43l*****',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ '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' => '54973C90-F379-4372-9AA5-053A3F7****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'NoPermission.ChangeResourceGroup',
+ 'errorMessage' => 'You are not authorized to change resourcegroup',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceRegionId',
+ 'errorMessage' => 'The ResourceRegionId parameters that are required for processing this request are missing',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceId',
+ 'errorMessage' => 'The ResourceId parameters that are required for processing this request are missing',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceGroupId',
+ 'errorMessage' => 'The ResourceGroupId parameters that are required for processing this request are missing',
+ ],
+ [
+ 'errorCode' => 'InvalidResourceGroup',
+ 'errorMessage' => 'The specified ResourceGroupId is invalid',
+ ],
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred while processing your request',
+ ],
+ [
+ 'errorCode' => 'ResourceNotFound',
+ 'errorMessage' => ' The specified resource is not found',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"54973C90-F379-4372-9AA5-053A3F7****\\"\\n}","type":"json"}]',
+ 'title' => '更改实例所在资源组',
+ ],
+ 'UpdateNacosGrayConfig' => [
+ 'summary' => '更新灰度配置,包含基于Beta发布和标签灰度的灰度配置信息更新',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '215876',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseK09GZC',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例id',
+ 'description' => '实例id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse_prepaid_public_cn-st2212****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '命名空间ID,默认为public',
+ 'description' => '命名空间ID,默认为public',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '6cf708a5-****-89f2-3ba62c5ee9ba',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置分组,默认为DEFAULT_GROUP',
+ 'description' => '配置分组,默认为DEFAULT_GROUP',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置dataId',
+ 'description' => '配置dataId',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Content',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置内容',
+ 'description' => '配置内容',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'asdf',
+ ],
+ ],
+ [
+ 'name' => 'GrayType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '灰度类型,支持Beta灰度(根据IP灰度)和标签灰度',
+ 'description' => '灰度类型,支持Beta灰度(根据IP灰度)和标签灰度',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Tags',
+ 'enum' => [
+ 'Beta',
+ 'Tags',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'GrayRule',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '灰度规则,如果是Beta灰度,此处是灰度的客户端的ip,使用逗号分隔;如果是标签灰度,此处是 标签名=标签值,多个标签值使用逗号分隔',
+ 'description' => '灰度规则,如果是Beta灰度,此处是灰度的客户端的ip,使用逗号分隔;如果是标签灰度,此处是 标签名=标签值,多个标签值使用逗号分隔',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key=value1,value2',
+ ],
+ ],
+ [
+ 'name' => 'StopGray',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否停止灰度',
+ 'description' => '是否停止灰度',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '参数弃用,无需填写',
+ 'description' => '扩展请求参数,JSON格式。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '应用名',
+ 'description' => '应用名',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'spring-cloud-a',
+ ],
+ ],
+ [
+ 'name' => 'GrayRuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '灰度版本名称',
+ 'description' => '灰度版本名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'GrayRulePriority',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '灰度版本优先级',
+ 'description' => '灰度版本优先级',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'OpType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '操作类型,Create(创建新的灰度配置),Update(更新存在的灰度配置)',
+ 'description' => '操作类型,Create(创建新的灰度配置),Update(更新存在的灰度配置)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Create',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '316F5F64-F73D-42DC-8632-01E308B6****',
+ ],
+ 'Data' => [
+ 'title' => '是否更新成功',
+ 'description' => '是否更新成功',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'Nacos.Intercepted',
+ 'errorMessage' => 'The request is blocked by the security barrier detection. Check the request content and modify the retry.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"316F5F64-F73D-42DC-8632-01E308B6****\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '更新Nacos灰度配置信息',
+ ],
+ 'UpdateGatewayConfig' => [
+ 'summary' => '更新网关配置',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'tags' => [
+ 'gateway',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '261694',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseS26K2N',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayUniqueId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '网关唯一ID',
+ 'description' => '网关唯一ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-b525dc1adf3c486ab96224a6346*****',
+ ],
+ ],
+ [
+ 'name' => 'ConfigName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '参数配置名称',
+ 'description' => '参数配置名称,支持的配置项:'."\n"
+ ."\n"
+ .'- EnableHttp2'."\n"
+ ."\n"
+ .'- DownstreamIdleTime'."\n"
+ ."\n"
+ .'- PreserveHeaderFormat'."\n"
+ ."\n"
+ .'- UpstreamIdleTimeout'."\n"
+ ."\n"
+ .'- EnableXffTrustedCidrs'."\n"
+ ."\n"
+ .'- EnableK8sSourceWorkloadFilter',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'EnableK8sSourceWorkloadFilter',
+ ],
+ ],
+ [
+ 'name' => 'ConfigValue',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '参数配置值',
+ 'description' => '参数配置值,配置示例:'."\n"
+ ."\n"
+ .'- EnableHttp2'."\n"
+ ."\n"
+ .'```'."\n"
+ .'true / false'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- DownstreamIdleTime'."\n"
+ ."\n"
+ .'```'."\n"
+ .'15'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- PreserveHeaderFormat'."\n"
+ ."\n"
+ .'```'."\n"
+ .'true / false'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- UpstreamIdleTimeout'."\n"
+ ."\n"
+ .'```'."\n"
+ .'60'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- EnableXffTrustedCidrs'."\n"
+ ."\n"
+ .'```json'."\n"
+ .'{"enable":true,"ipListContent":"192.168.1.0/24\\n2.2.2.2"}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- EnableK8sSourceWorkloadFilter'."\n"
+ ."\n"
+ .'```json'."\n"
+ .' '."\n"
+ .'{"enable":true,"filterOpt":"EQUAL","labelKey":"key","labelValue":"value"}'."\n"
+ .'```',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '{"enable":true,"filterOpt":"EQUAL","labelKey":"key","labelValue":"value"}',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Void>',
+ 'description' => 'RestResult<Void>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AF21683A-29C7-4853-AC0F-B5ADEE4D****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AF21683A-29C7-4853-AC0F-B5ADEE4D****\\"\\n}","type":"json"}]',
+ 'title' => '更新网关参数配置',
+ ],
+ 'CreateSentinelBlockFallbackDefinition' => [
+ 'summary' => '创建行为管理',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'msc',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '163988',
+ 'abilityTreeNodes' => [
+ 'FEATUREmse6JRV3O',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AppName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用名',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'example-app',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '冗余参数,暂时忽略',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'edasmsc',
+ ],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '语言,如 Java、Go。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'JAVA',
+ ],
+ ],
+ [
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'MSE命名空间名字',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'AppId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '应用id,可省略',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abcde@12345',
+ ],
+ ],
+ [
+ 'name' => 'Scenario',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '场景,统一填写 default',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'ResourceClassification',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '针对的资源类型',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1 Web'."\n"
+ .'2 Rpc',
+ ],
+ ],
+ [
+ 'name' => 'FallbackBehavior',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '行为详情',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"webFallbackMode":0,"webRespMessage":"{}","webRespStatusCode":429,"webRespContentType":0}',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '行为名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MyFallback',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => '返回信息。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ADDD8AB7-8D1C-4697-A83E-410D2607****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceClassification' => [
+ 'description' => '针对的资源类型',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'UserId' => [
+ 'description' => '用户id',
+ 'type' => 'string',
+ 'example' => '123456',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'Id' => [
+ 'description' => '行为ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '34726',
+ ],
+ 'Namespace' => [
+ 'description' => '应用所属的微服务命空间。',
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ 'Name' => [
+ 'description' => '行为名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'FallbackBehavior' => [
+ 'description' => '行为详情。',
+ 'type' => 'string',
+ 'example' => '{"webRespStatusCode":429,"webRespMessage":"test","webFallbackMode":0,"webRespContentType":0}',
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '响应码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Success' => [
+ 'description' => '请求结果,取值如下:'."\n"
+ .'- `true`:请求成功。'."\n"
+ .'- `false`:请求失败。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'HttpStatusCode' => [
+ 'description' => 'HTTP状态码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"ADDD8AB7-8D1C-4697-A83E-410D2607****\\",\\n \\"Data\\": {\\n \\"ResourceClassification\\": 1,\\n \\"UserId\\": \\"123456\\",\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"Id\\": 34726,\\n \\"Namespace\\": \\"default\\",\\n \\"Name\\": \\"test\\",\\n \\"FallbackBehavior\\": \\"{\\\\\\"webRespStatusCode\\\\\\":429,\\\\\\"webRespMessage\\\\\\":\\\\\\"test\\\\\\",\\\\\\"webFallbackMode\\\\\\":0,\\\\\\"webRespContentType\\\\\\":0}\\"\\n },\\n \\"Code\\": 200,\\n \\"Success\\": \\"true\\",\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
+ 'title' => '创建流量防护自定义行为',
+ ],
+ 'CreateNacosMcpServer' => [
+ 'summary' => '创建一个MCP Server。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '273078',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'public',
+ ],
+ ],
+ [
+ 'name' => 'ServerSpecification',
+ 'in' => 'formData',
+ 'schema' => [
+ 'title' => 'Server描述的JSON字符串',
+ 'description' => 'Server描述的JSON字符串',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"description":"a mcp demo service","capabilities":[],"allVersions":[{"version":"1.0.0","release_date":"2025-08-13T01:58:42Z","is_latest":true}],"remoteServerConfig":{"exportPath":"/sse"},"enabled":true,"versionDetail":{"version":"1.0.1"},"backendEndpoints":[{"path":"/sse","address":"127.0.0.1","port":8080}],"protocol":"mcp-sse","name":"mcp-demo","frontProtocol":"mcp-sse"}',
+ ],
+ ],
+ [
+ 'name' => 'ToolSpecification',
+ 'in' => 'formData',
+ 'schema' => [
+ 'title' => 'Tool的描述的JSON字符串',
+ 'description' => 'Tool的描述的JSON字符串',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"tools":[{"name":"demo-tool","description":"a demo tool","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"name"}}}}],"toolsMeta":{"demo-tool":{"enabled":true}}}',
+ ],
+ ],
+ [
+ 'name' => 'EndpointSpecification',
+ 'in' => 'formData',
+ 'schema' => [
+ 'title' => 'Endpoint描述的Json字符串',
+ 'description' => 'Endpoint描述的Json字符串',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"type":"REF","data":{"namespaceId":"public","groupName":"mcp-endpoints","serviceName":"mcp-demo"}}',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'ServerName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mcp-demo',
+ ],
+ ],
+ [
+ 'name' => 'YamlConfig',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => 'AI 网关 Yaml 配置,选填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'allowTools:'."\n"
+ .'- demo-tool'."\n"
+ .'securityScheme: {}'."\n"
+ .'server:'."\n"
+ .' name: mcp-demo'."\n"
+ .'tools:'."\n"
+ .'- args:'."\n"
+ .' - name: name'."\n"
+ .' description: name'."\n"
+ .' type: string'."\n"
+ .' description: a demo tool'."\n"
+ .' name: demo-tool'."\n",
+ ],
+ ],
+ [
+ 'name' => 'EncryptToolSpec',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AF21683A-29C7-4853-AC0F-B5ADEE4****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'Resource.exist',
+ 'errorMessage' => 'Resource %s already exists, cannot be created repeatedly.',
+ ],
+ [
+ 'errorCode' => 'Nacos.Intercepted',
+ 'errorMessage' => 'The request is blocked by the security barrier detection. Check the request content and modify the retry.',
+ ],
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AF21683A-29C7-4853-AC0F-B5ADEE4****\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '创建MCP服务',
+ ],
+ 'DeleteNacosMcpServer' => [
+ 'summary' => '删除一个MCP Server',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '273079',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-u0t2xzvxa06',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'fc0f6e40-****-946b-45e3af313707',
+ ],
+ ],
+ [
+ 'name' => 'McpServerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MCP Server 的 Id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '5e3c5211-d365-4013-8540-c4106ec2a5dc',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Boolean>',
+ 'description' => 'RestResult<Boolean>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA\\",\\n \\"Data\\": true\\n}","type":"json"}]',
+ 'title' => '删除 MCP Server',
+ ],
+ 'GetNacosMcpServer' => [
+ 'summary' => '获取MCP Server的详情',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '273076',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse_prepaid_public_cn-tl327w****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '5e3ee449-b5c0-4aee-b857-32c0acbebf26',
+ ],
+ ],
+ [
+ 'name' => 'McpServerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MCP Server 的 Id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '5e3c5211-d365-4013-8540-c4106ec2a5dc',
+ ],
+ ],
+ [
+ 'name' => 'McpServerVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MCP Server的版本',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0.0',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<McpServerDetail>',
+ 'description' => 'RestResult<McpServerDetail>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '72FC625E-9629-591B-9C01-3F0BFDAB****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RemoteServerConfig' => [
+ 'description' => 'Remote Server配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceRef' => [
+ 'description' => '服务引用',
+ 'type' => 'object',
+ 'properties' => [
+ 'NamespaceId' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'example' => 'public',
+ ],
+ 'GroupName' => [
+ 'description' => '服务所在的分组。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT',
+ ],
+ 'ServiceName' => [
+ 'description' => '服务名称。',
+ 'type' => 'string',
+ 'example' => 'mcp-service',
+ ],
+ ],
+ ],
+ 'ExportPath' => [
+ 'description' => '对外暴露的路径',
+ 'type' => 'string',
+ 'example' => '/sse',
+ ],
+ ],
+ ],
+ 'LocalServerConfig' => [
+ 'description' => 'Local MCP Server 的配置',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'any',
+ 'description' => '具体的LocalServer配置',
+ 'example' => '{'."\n"
+ .' "mcpServers":'."\n"
+ .' {'."\n"
+ .' "amap-mcp-server":'."\n"
+ .' {'."\n"
+ .' "description": "高德地图服务",'."\n"
+ .' "command": "npx",'."\n"
+ .' "args":'."\n"
+ .' ['."\n"
+ .' "-y",'."\n"
+ .' "@amap/amap-maps-mcp-server"'."\n"
+ .' ],'."\n"
+ .' "env":'."\n"
+ .' {'."\n"
+ .' "AMAP_MAPS_API_KEY": "<API_KEY>"'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .'}'."\n",
+ ],
+ ],
+ 'BackendEndpoints' => [
+ 'description' => '后端服务 endpoint',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Address' => [
+ 'description' => '地址。',
+ 'type' => 'string',
+ 'example' => '127.0.0.1',
+ ],
+ 'Port' => [
+ 'description' => '端口号',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '80',
+ ],
+ 'Path' => [
+ 'description' => '路径。',
+ 'type' => 'string',
+ 'example' => '/sse',
+ ],
+ ],
+ ],
+ ],
+ 'ToolSpec' => [
+ 'description' => 'Tool的描述',
+ 'type' => 'object',
+ 'properties' => [
+ 'Tools' => [
+ 'description' => '工具列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工具详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '工具名称',
+ 'type' => 'string',
+ 'example' => 'get_weather',
+ ],
+ 'Description' => [
+ 'description' => '描述说明。',
+ 'type' => 'string',
+ 'example' => 'a weather query tool',
+ ],
+ 'InputSchema' => [
+ 'description' => 'Tool 入参结构',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'any',
+ 'example' => '{"type":"object","properties":{"name":{"type":"string","description":"name"}}}',
+ 'description' => '具体的参数结构',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ToolsMeta' => [
+ 'description' => 'Tool 的元信息MAP',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Enabled' => [
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'description' => 'Tool 是否启用',
+ ],
+ 'Templates' => [
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'any',
+ 'description' => '具体的模版配置',
+ 'example' => '{"requestTemplate":{"url":"https://api.example.com/endpoint/{{.args.NewArg1}}","method":"GET","headers":[{"key":"Authorization","value":"Bearer {{.security.token}}"}]},"responseTemplate":{"body":"{{.}}"},"argsPosition":{"NewArg1":"path"}}',
+ ],
+ 'description' => '协议转化模版配置',
+ ],
+ ],
+ 'description' => '具体的元信息配置',
+ ],
+ ],
+ 'SpecificationType' => [
+ 'type' => 'string',
+ ],
+ 'SecuritySchemes' => [
+ 'type' => 'any',
+ ],
+ 'ToolDecryptStatus' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'AllVersions' => [
+ 'description' => '当前 MCP Server 的所有版本信息',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Version' => [
+ 'description' => '版本号。',
+ 'type' => 'string',
+ 'example' => '1.0.9',
+ ],
+ 'Release_date' => [
+ 'description' => '发布时间',
+ 'type' => 'string',
+ 'example' => '2025-07-16'."\n",
+ ],
+ 'Is_latest' => [
+ 'description' => '是否为最新版本',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ 'Enabled' => [
+ 'description' => '该网关是否处于启用状态。'."\n"
+ ."\n"
+ .'- true:启用状态。'."\n"
+ ."\n"
+ .'- false:停用状态。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'string',
+ 'example' => '5e3c5211-d365-4013-8540-c4106ec2a5dc',
+ ],
+ 'Name' => [
+ 'description' => '名称。',
+ 'type' => 'string',
+ 'example' => 'mcp-demo',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => '描述',
+ ],
+ 'Protocol' => [
+ 'description' => '协议。',
+ 'type' => 'string',
+ 'example' => 'mcp-sse',
+ ],
+ 'FrontProtocol' => [
+ 'description' => '对外暴露的协议类型',
+ 'type' => 'string',
+ 'example' => 'mcp-sse',
+ ],
+ 'Capabilities' => [
+ 'description' => '当前 MCP Server 的能力',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '能力描述',
+ 'type' => 'string',
+ 'example' => 'TOOL',
+ ],
+ ],
+ 'VersionDetail' => [
+ 'description' => '版本明细',
+ 'type' => 'object',
+ 'properties' => [
+ 'Version' => [
+ 'description' => '版本号',
+ 'type' => 'string',
+ 'example' => '1.11.0',
+ ],
+ 'ReleaseDate' => [
+ 'description' => '发布时间',
+ 'type' => 'string',
+ 'example' => '2025-07-16',
+ ],
+ 'IsLatest' => [
+ 'description' => '是否为最新版本',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'YamlConfig' => [
+ 'description' => 'AI 网关 Yaml 配置。',
+ 'type' => 'string',
+ 'example' => 'allowTools:'."\n"
+ .'- demo-tool'."\n"
+ .'securityScheme: {}'."\n"
+ .'server:'."\n"
+ .' name: mcp-demo'."\n"
+ .'tools:'."\n"
+ .'- args:'."\n"
+ .' - name: name'."\n"
+ .' description: name'."\n"
+ .' type: string'."\n"
+ .' description: a demo tool'."\n"
+ .' name: demo-tool'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"72FC625E-9629-591B-9C01-3F0BFDAB****\\",\\n \\"Data\\": {\\n \\"RemoteServerConfig\\": {\\n \\"ServiceRef\\": {\\n \\"NamespaceId\\": \\"public\\",\\n \\"GroupName\\": \\"DEFAULT\\",\\n \\"ServiceName\\": \\"mcp-service\\"\\n },\\n \\"ExportPath\\": \\"/sse\\"\\n },\\n \\"LocalServerConfig\\": {\\n \\"key\\": \\"{\\\\n \\\\\\"mcpServers\\\\\\":\\\\n {\\\\n \\\\\\"amap-mcp-server\\\\\\":\\\\n {\\\\n \\\\\\"description\\\\\\": \\\\\\"高德地图服务\\\\\\",\\\\n \\\\\\"command\\\\\\": \\\\\\"npx\\\\\\",\\\\n \\\\\\"args\\\\\\":\\\\n [\\\\n \\\\\\"-y\\\\\\",\\\\n \\\\\\"@amap/amap-maps-mcp-server\\\\\\"\\\\n ],\\\\n \\\\\\"env\\\\\\":\\\\n {\\\\n \\\\\\"AMAP_MAPS_API_KEY\\\\\\": \\\\\\"<API_KEY>\\\\\\"\\\\n }\\\\n }\\\\n }\\\\n}\\\\n\\"\\n },\\n \\"BackendEndpoints\\": [\\n {\\n \\"Address\\": \\"127.0.0.1\\",\\n \\"Port\\": 80,\\n \\"Path\\": \\"/sse\\"\\n }\\n ],\\n \\"ToolSpec\\": {\\n \\"Tools\\": [\\n {\\n \\"Name\\": \\"get_weather\\",\\n \\"Description\\": \\"a weather query tool\\",\\n \\"InputSchema\\": {\\n \\"key\\": \\"{\\\\\\"type\\\\\\":\\\\\\"object\\\\\\",\\\\\\"properties\\\\\\":{\\\\\\"name\\\\\\":{\\\\\\"type\\\\\\":\\\\\\"string\\\\\\",\\\\\\"description\\\\\\":\\\\\\"name\\\\\\"}}}\\"\\n }\\n }\\n ],\\n \\"ToolsMeta\\": {\\n \\"key\\": {\\n \\"Enabled\\": true,\\n \\"Templates\\": {\\n \\"key\\": \\"{\\\\\\"requestTemplate\\\\\\":{\\\\\\"url\\\\\\":\\\\\\"https://api.example.com/endpoint/{{.args.NewArg1}}\\\\\\",\\\\\\"method\\\\\\":\\\\\\"GET\\\\\\",\\\\\\"headers\\\\\\":[{\\\\\\"key\\\\\\":\\\\\\"Authorization\\\\\\",\\\\\\"value\\\\\\":\\\\\\"Bearer {{.security.token}}\\\\\\"}]},\\\\\\"responseTemplate\\\\\\":{\\\\\\"body\\\\\\":\\\\\\"{{.}}\\\\\\"},\\\\\\"argsPosition\\\\\\":{\\\\\\"NewArg1\\\\\\":\\\\\\"path\\\\\\"}}\\"\\n }\\n }\\n },\\n \\"SpecificationType\\": \\"\\",\\n \\"SecuritySchemes\\": \\"\\",\\n \\"ToolDecryptStatus\\": \\"\\"\\n },\\n \\"AllVersions\\": [\\n {\\n \\"Version\\": \\"1.0.9\\",\\n \\"Release_date\\": \\"2025-07-16\\\\n\\",\\n \\"Is_latest\\": true\\n }\\n ],\\n \\"Enabled\\": true,\\n \\"Id\\": \\"5e3c5211-d365-4013-8540-c4106ec2a5dc\\",\\n \\"Name\\": \\"mcp-demo\\",\\n \\"Description\\": \\"描述\\",\\n \\"Protocol\\": \\"mcp-sse\\",\\n \\"FrontProtocol\\": \\"mcp-sse\\",\\n \\"Capabilities\\": [\\n \\"TOOL\\"\\n ],\\n \\"VersionDetail\\": {\\n \\"Version\\": \\"1.11.0\\",\\n \\"ReleaseDate\\": \\"2025-07-16\\",\\n \\"IsLatest\\": true\\n },\\n \\"YamlConfig\\": \\"allowTools:\\\\n- demo-tool\\\\nsecurityScheme: {}\\\\nserver:\\\\n name: mcp-demo\\\\ntools:\\\\n- args:\\\\n - name: name\\\\n description: name\\\\n type: string\\\\n description: a demo tool\\\\n name: demo-tool\\\\n\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取MCP Server详细信息',
+ ],
+ 'ListNacosMcpServers' => [
+ 'summary' => '获取McpServer列表',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '273080',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseU5ZGQF',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '命名空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '5e3ee449-b5c0-4aee-b857-32c0acbebf26',
+ ],
+ ],
+ [
+ 'name' => 'Search',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询模式',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'blur',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'MCP Server名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<Page<McpServer>>',
+ 'description' => 'RestResult<Page<McpServer>>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ADDD8AB7-8D1C-4697-A83E-410D2607****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalCount' => [
+ 'description' => '总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ ],
+ 'PageNumber' => [
+ 'title' => 'pageNumber.',
+ 'description' => 'pageNumber.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PagesAvailable' => [
+ 'title' => 'pagesAvailable.',
+ 'description' => 'pagesAvailable.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageItems' => [
+ 'description' => '分页的mcp server列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'mcp server信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'description' => 'ID。',
+ 'type' => 'string',
+ 'example' => '2385420b-6176-4a37-aba4-d3d382e4bb84',
+ ],
+ 'Name' => [
+ 'description' => '名称',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => 'test ',
+ ],
+ 'Protocol' => [
+ 'description' => 'MCP Server的类型',
+ 'type' => 'string',
+ 'example' => 'stdio',
+ ],
+ 'FrontProtocol' => [
+ 'description' => '前端协议类型',
+ 'type' => 'string',
+ 'example' => 'mcp-sse',
+ ],
+ 'Capabilities' => [
+ 'description' => '当前 MCP Server 的能力',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '当前 MCP Server 的能力',
+ 'type' => 'string',
+ 'example' => 'TOOL',
+ ],
+ ],
+ 'VersionDetail' => [
+ 'description' => '版本明细',
+ 'type' => 'object',
+ 'properties' => [
+ 'Version' => [
+ 'description' => '版本号',
+ 'type' => 'string',
+ 'example' => '1.0.0',
+ ],
+ 'Release_date' => [
+ 'description' => '发布时间',
+ 'type' => 'string',
+ 'example' => '2025-07-16',
+ ],
+ 'Is_latest' => [
+ 'description' => '是否为最新版本',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'Version' => [
+ 'description' => '当前最新版本',
+ 'type' => 'string',
+ 'example' => '1.1.0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ADDD8AB7-8D1C-4697-A83E-410D2607****\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 4,\\n \\"PageNumber\\": 1,\\n \\"PagesAvailable\\": 1,\\n \\"PageItems\\": [\\n {\\n \\"Id\\": \\"2385420b-6176-4a37-aba4-d3d382e4bb84\\",\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test \\",\\n \\"Protocol\\": \\"stdio\\",\\n \\"FrontProtocol\\": \\"mcp-sse\\",\\n \\"Capabilities\\": [\\n \\"TOOL\\"\\n ],\\n \\"VersionDetail\\": {\\n \\"Version\\": \\"1.0.0\\",\\n \\"Release_date\\": \\"2025-07-16\\",\\n \\"Is_latest\\": true\\n },\\n \\"Version\\": \\"1.1.0\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '查询 MCP 服务列表',
+ ],
+ 'QueryNacosGrayConfig' => [
+ 'summary' => '查询nacos灰度配置',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'tags' => [
+ 'cluster',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '216072',
+ 'abilityTreeNodes' => [
+ 'FEATUREmseK09GZC',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例ID',
+ 'description' => '实例ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'mse-cn-st21ri2****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '命名空间id',
+ 'description' => '命名空间id',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '6bafdde3-4fa7-4d67-b3da-a607ab87f7e4',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置分组',
+ 'description' => '配置分组',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DEFAULT_GROUP',
+ ],
+ ],
+ [
+ 'name' => 'DataId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置dataId',
+ 'description' => '配置dataId',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'demo-develop',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '集群所在地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RequestPars',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '字段弃用',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ [
+ 'name' => 'GrayName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '灰度规则名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'description' => '返回结果显示的语言。取值:zh(默认值):中文,en:英文',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'RestResult<GrayConfig>',
+ 'description' => 'RestResult<GrayConfig>',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EE5C32A1-BC0E-4B79-817C-103E4EDF****',
+ ],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'GrayType' => [
+ 'title' => '灰度类型,Beta或者Tag',
+ 'description' => '灰度类型,Beta或者Tag',
+ 'type' => 'string',
+ 'example' => 'Tags',
+ ],
+ 'GrayRule' => [
+ 'title' => '灰度规则',
+ 'description' => '灰度规则',
+ 'type' => 'string',
+ 'example' => 'nacos.config.gray.label=test',
+ ],
+ 'Group' => [
+ 'title' => '配置分组',
+ 'description' => '配置分组',
+ 'type' => 'string',
+ 'example' => 'dubbo',
+ ],
+ 'DataId' => [
+ 'title' => '配置dataId',
+ 'description' => '配置dataId',
+ 'type' => 'string',
+ 'example' => 'test.yaml',
+ ],
+ 'Content' => [
+ 'title' => '配置内容',
+ 'description' => '配置内容',
+ 'type' => 'string',
+ 'example' => 'text',
+ ],
+ 'Md5' => [
+ 'title' => '配置内容md5',
+ 'description' => '配置内容md5',
+ 'type' => 'string',
+ 'example' => '87d14faf58a103ac8840b9c5f1c2a0fe',
+ ],
+ 'LastModified' => [
+ 'title' => '配置最后修改时间',
+ 'description' => '配置最后修改时间',
+ 'type' => 'string',
+ 'example' => '1742277568000',
+ ],
+ 'AppName' => [
+ 'description' => '应用名称。',
+ 'type' => 'string',
+ 'example' => 'spring-cloud-a',
+ ],
+ 'GrayRuleName' => [
+ 'description' => '灰度版本名称',
+ 'type' => 'string',
+ 'example' => 'Beta(IP)',
+ ],
+ 'GrayRulePriority' => [
+ 'description' => '灰度版本优先级',
+ 'type' => 'string',
+ 'example' => '100',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IllegalRequest',
+ 'errorMessage' => 'Invalid request:%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'Parameter error:%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'You are not authorized to perform this operation:%s',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'NotFound',
+ 'errorMessage' => 'Not found:%s',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'Console error. Try again later:%s',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EE5C32A1-BC0E-4B79-817C-103E4EDF****\\",\\n \\"Data\\": {\\n \\"GrayType\\": \\"Tags\\",\\n \\"GrayRule\\": \\"nacos.config.gray.label=test\\",\\n \\"Group\\": \\"dubbo\\",\\n \\"DataId\\": \\"test.yaml\\",\\n \\"Content\\": \\"text\\",\\n \\"Md5\\": \\"87d14faf58a103ac8840b9c5f1c2a0fe\\",\\n \\"LastModified\\": \\"1742277568000\\",\\n \\"AppName\\": \\"spring-cloud-a\\",\\n \\"GrayRuleName\\": \\"Beta(IP)\\",\\n \\"GrayRulePriority\\": \\"100\\"\\n }\\n}","type":"json"}]',
+ 'title' => '查询Nacos灰度配置',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'mse.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'mse.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-jva',
+ 'endpoint' => 'mse.cn-zhengzhou-jva.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'mse.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan-lr',
+ 'endpoint' => 'mse.cn-wuhan-lr.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'mse.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'mse.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'mse.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'mse.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'mse.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'mse.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'mse.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fuzhou',
+ 'endpoint' => 'mse.cn-fuzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'mse.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'mse.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'mse.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'mse.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'mse.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'mse.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-6',
+ 'endpoint' => 'mse.ap-southeast-6.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'mse.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'mse.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'mse.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'mse.eu-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'mse.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'mse.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'mse.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'mse.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'mse.cn-hangzhou-finance.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'mse.cn-shenzhen-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'mse.cn-beijing-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'mse.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ ],
+];