查询消费者授权规则列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
apig:QueryConsumerAuthorizationRules |
none |
*全部资源
|
无 | 无 |
请求语法
GET /v1/authorization-rules HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| apiNameLike |
string |
否 |
API 名。 |
api-xx |
| pageNumber |
integer |
否 |
分页页码。 |
1 |
| pageSize |
integer |
否 |
分页大小。 |
10 |
| consumerId |
string |
否 |
消费者 ID。resourceId、parentResourceId、consumerId、consumerGroupId 四个参数不可全为空,至少需提供其中一个作为查询条件。 |
cs-ct21c16m1hkp64hk6qmg |
| principalType |
string |
否 |
授权主体类型,取值为 Consumer 或 ConsumerGroup。 |
ConsumerGroup |
| consumerGroupId |
string |
否 |
消费者组 ID。传入后查询该消费者组的授权规则。resourceId、parentResourceId、consumerId、consumerGroupId 四个参数不可全为空,至少需提供其中一个作为查询条件。 |
csg-8c13d2b4f8a1 |
| resourceId |
string |
否 |
资源 ID。resourceId、parentResourceId、consumerId、consumerGroupId 四个参数不可全为空,至少需提供其中一个作为查询条件。 |
ha-cn-li942gy8p03 |
| resourceType |
string |
否 |
资源类型。 |
HttpApiRoute |
| environmentId |
string |
否 |
环境 ID。 |
env-cpqnr6tlhtgubc*** |
| groupByApi |
boolean |
否 |
通过 API 分组。 |
true |
| parentResourceId |
string |
否 |
父项资源 ID。resourceId、parentResourceId、consumerId、consumerGroupId 四个参数不可全为空,至少需提供其中一个作为查询条件。 |
ha-cn-li942gy8p01 |
| consumerNameLike |
string |
否 |
消费者名称。 |
consumer-xxx |
| consumerGroupNameLike |
string |
否 |
消费者组名称模糊查询 |
team |
| resourceTypes |
string |
否 |
服务来源类型 |
K8S |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| code |
string |
响应状态码。 |
Ok |
| data |
object |
响应数据。 |
|
| items |
array<object> |
消费者规则列表。 |
|
|
array<object> |
消费者鉴权规则详情。 |
||
| apiInfo | HttpApiApiInfo |
API 信息详情。 |
|
| consumerAuthorizationRuleId |
string |
消费者授权规则 ID。 |
car-csgeka5lhtggrjcprok0 |
| consumerGroupId |
string |
消费者组 ID。消费者组授权规则返回该字段。 |
csg-8c13d2b4f8a1 |
| consumerGroupInfo | ConsumerGroupInfo |
消费者组信息。消费者组授权规则返回该字段。 |
|
| consumerId |
string |
消费者 ID。 |
cs-csheiftlhtgmp0j0hp4g |
| consumerInfo | ConsumerInfo |
消费者信息详情。 |
|
| createTimestamp |
integer |
创建时间戳。单位: 毫秒。 |
1719386834548 |
| deployStatus |
string |
API 在当前环境的发布状态 |
{} |
| environmentInfo | EnvironmentInfo |
环境信息。 |
|
| expireMode |
string |
失效模式。LongTerm、ShortTerm,二选一。 |
ShortTerm |
| expireStatus |
string |
失效状态。 |
InEffect |
| expireTimestamp |
integer |
到期时间。 |
172086834548 |
| gatewayInfo | GatewayInfo |
网关信息。 |
|
| principalType |
string |
授权主体类型,取值为 Consumer 或 ConsumerGroup。 |
ConsumerGroup |
| resourceId |
string |
资源 ID。 |
2351944 |
| resourceInfo |
object |
资源信息详情。 |
|
| operationInfo | HttpApiOperationInfo |
接口信息。 |
|
| route | HttpRoute |
路由规则。 |
|
| resourceType |
string |
资源类型。 |
HttpApiRoute |
| updateTimestamp |
integer |
更新时间戳。单位: 毫秒。 |
1719386834548 |
| pageNumber |
integer |
分页页码。 |
1 |
| pageSize |
integer |
分页大小。 |
10 |
| totalSize |
string |
总数量。 |
6 |
| message |
string |
响应消息。 |
success |
| requestId |
string |
Id of the request |
A60EE5CA-1294-532A-9775-8D2FD1C6EFBF |
示例
正常返回示例
JSON格式
{
"code": "Ok",
"data": {
"items": [
{
"apiInfo": {
"agentProtocols": [
"DashScope"
],
"aiProtocols": [
"OpenAI/v1"
],
"authConfig": {
"authMode": "NoAuth",
"authType": "Jwt"
},
"basePath": "/v1",
"deployCntMap": {
"key": {
"cnt": 10,
"deployedCnt": 3
}
},
"deployConfigs": [
{
"autoDeploy": true,
"backendScene": "SingleService",
"builtinRouteNames": [
"[\"chat\",\"completions\"]"
],
"customDomainIds": [
"d-xxx"
],
"customDomainInfos": [
{
"domainId": "d-cshee6dlhtgk******",
"name": "hello-server.com",
"protocol": "HTTP"
}
],
"enableSystemModels": true,
"envDomainIds": [
"d-xxx"
],
"envDomainInfos": [
{
"domainId": "d-env-xxx",
"name": "api.example.com",
"protocol": "HTTPS"
}
],
"environmentId": "env-xxx",
"gatewayId": "gw-xx",
"gatewayInfo": {
"gatewayId": "gw-cq7og15lhtgi6qasrj60",
"name": "apitest-gw",
"vpcInfo": {
"vpcId": "vpc-uf664nyle5kh***",
"name": "商品中心预发环境专有网络"
},
"engineVersion": "2.0.7",
"gatewayEdition": "MultiTenantServerless"
},
"gatewayType": "API",
"mock": {
"enable": false,
"responseCode": 200,
"responseContent": "Mock测试"
},
"policyConfigs": [
{
"type": "K8S",
"enable": false,
"semanticRouterConfig": {
"timeoutMillisecond": 2000
},
"aiFallbackConfig": {
"onlyRedirectUpstreamCode": true,
"serviceConfigs": [
{
"serviceId": "svc-bbb",
"name": "—",
"targetModelName": "qwen-max",
"passThroughModelName": false
}
]
},
"aiSecurityGuardConfig": {
"bufferLimit": 1000,
"checkRequest": true,
"checkRequestImage": false,
"checkResponse": true,
"checkResponseImage": false,
"consumerConfigBindings": [
{
"matchType": "exact",
"name": "example-consumer",
"templateId": "apig_0123456789abcdef"
}
],
"consumerRequestCheckService": [
{
"matchType": "exact",
"modalityType": "Text",
"name": "consumer-a",
"requestCheckService": "query_security_check",
"requestImageCheckService": "img_query_guard"
}
],
"consumerResponseCheckService": [
{
"matchType": "exact",
"modalityType": "Text",
"name": "consumer-a\n",
"responseCheckService": "query_security_check",
"responseImageCheckService": "img_query_guard\n"
}
],
"consumerRiskLevel": [
{
"level": "high",
"matchType": "exact",
"name": "consumer-a",
"type": "ContentModeration"
}
],
"defaultGenerated": true,
"longTermEnabled": true,
"pluginStatus": {
"serviceHealthy": true,
"pluginId": "pi-xxx",
"errorLogs": [
{
"key": "[{\"timestamp\":\"2026-06-29T10:00:00Z\",\"message\":\"redis connection timeout\"}]"
}
]
},
"requestCheckService": "query_security_check",
"requestImageCheckService": "img_query_guard",
"responseCheckService": "response_security_check",
"responseImageCheckService": "img_response_guard",
"riskAlertLevel": "high",
"riskConfig": [
{
"consumerRules": {
"matchType": "Exact",
"pattern": "consumer-a"
},
"level": "high",
"type": "ContentModeration"
}
],
"serviceAddress": "https://green-cip-vpc.cn-shanghai.aliyuncs.com"
},
"aiTokenRateLimitConfig": {
"redisConfig": {
"host": "r-xxx.redis.rds.aliyuncs.com",
"port": 6379,
"username": "user",
"password": "pass",
"timeout": 5000,
"databaseNumber": 0
},
"pluginStatus": {
"serviceHealthy": true,
"pluginId": "pi-xxx",
"errorLogs": [
{
"key": "[{\"timestamp\":\"2026-06-29T10:00:00Z\",\"message\":\"redis connection timeout\"}]"
}
]
},
"rules": [
{
"limitType": "Consumer",
"matchKey": "X-API-Key",
"matchType": "Exact",
"matchValue": "consumer-a",
"limitMode": "TokenPerMinute",
"limitValue": 1000
}
],
"globalRules": [
{
"limitType": "Consumer",
"matchKey": "X-API-Key",
"matchType": "Exact",
"matchValue": "consumer-a",
"limitMode": "TokenPerMinute",
"limitValue": 1000
}
],
"enableGlobalRules": true
},
"policyReference": {
"policyId": "pol-9f2exxx",
"policyAttachmentId": "pa-3c8ayyy"
},
"aiCacheConfig": {
"cacheTTL": 3600,
"redisConfig": {
"host": "r-xxx.redis.rds.aliyuncs.com",
"port": 6379,
"username": "user",
"password": "pass",
"timeout": 5000,
"databaseNumber": 0
},
"vectorConfig": {
"type": "dashvector",
"serviceHost": "vdb-xxx.dashvector.aliyuncs.com",
"apiKey": "sk-xxx",
"timeout": 5000,
"collectionId": "col-xxx",
"threshold": 0.95
},
"embeddingConfig": {
"type": "dashscope",
"serviceId": "svc-xxx",
"timeout": 5000,
"modelName": "text-embedding-v2"
},
"cacheKeyStrategy": "-",
"cacheMode": "exact",
"pluginStatus": {
"serviceHealthy": true,
"pluginId": "pi-xxx",
"errorLogs": [
{
"key": "[{\"timestamp\":\"2026-06-29T10:00:00Z\",\"message\":\"redis connection timeout\"}]"
}
]
}
},
"aiNetworkSearchConfig": {
"needReference": true,
"referenceFormat": "参考来源:\\n%s",
"referenceLocation": "head",
"defaultLang": "zh-CN",
"defaultEnable": true,
"searchFrom": [
{
"type": "aliyunQuark",
"apiKey": "sk-xxx",
"count": 5,
"start": 0,
"timeoutMillisecond": 5000,
"optionArgs": {
"key": "{\"market\":\"zh-CN\"}"
},
"endpoint": "https://cloud-iqs.aliyuncs.com",
"contentMode": "summary",
"industry": "互联网",
"timeRange": "7d"
}
],
"searchEngineConfig": {
"type": "aliyunQuark",
"apiKey": "sk-xxx",
"count": 5,
"start": 0,
"timeoutMillisecond": 5000,
"optionArgs": {
"key": "{\"market\":\"zh-CN\"}"
},
"endpoint": "https://cloud-iqs.aliyuncs.com",
"contentMode": "summary",
"industry": "互联网",
"timeRange": "7d"
},
"searchRewrite": {
"enable": true,
"serviceId": "svc-xxx",
"modelName": "qwen-max",
"timeoutMillisecond": 5000,
"maxCount": 3
}
},
"aiToolSelectionConfig": {
"enableConditions": {
"toolCountThreshold": 10
},
"toolReranking": {
"modelService": {
"serviceId": "svc-xxx\n",
"modelName": "gte-rerank-v2",
"timeoutMillisecond": 5000
},
"filteringMethod": "topN",
"topKPercent": 50,
"topNCount": 5,
"scoreThreshold": 0.5,
"fallbackStrategy": "skip"
},
"queryRewriting": {
"enabled": true,
"modelService": {
"serviceId": "svc-xxx",
"modelName": "gte-rerank-v2",
"timeoutMillisecond": 5000
},
"promptConfig": {
"type": "builtIn",
"customPrompt": "请将以下用户问题改写为..."
},
"maxOutputTokens": 50,
"triggerConditions": {
"messageCountThreshold": 1
},
"contextSelection": {
"type": "allMessages",
"value": 5
},
"fallbackStrategy": "skip"
}
},
"aiStatisticsConfig": {
"logRequestContent": true,
"logResponseContent": true,
"pathFieldConfigs": [
{
"path": "/v1/chat/completions",
"fieldPaths": {
"key": {
"fieldKey": "question",
"jsonPath": "messages.#.content",
"rule": "append",
"name": "问题内容",
"description": "用户输入的问题内容",
"source": "request_body",
"category": "conversation",
"io": "request",
"sensitive": false,
"recordEnabled": true
}
}
}
]
}
}
],
"restApiRouteMode": "ordinary",
"routeBackend": {
"scene": "Single",
"enableSystemModels": true,
"services": [
{
"serviceId": "service-cq2bmmdlhtgj***",
"modelName": "qwen-plus",
"name": "item-service",
"protocol": "HTTP",
"port": 0,
"weight": 49,
"version": "v1",
"sourceType": "MSE_NACOS",
"groupName": "DEFAULT_GROUP",
"namespace": "public",
"httpDubboTranscoder": {
"dubboServiceName": "com.example.DemoService",
"dubboServiceVersion": "1.0.0",
"dubboServiceGroup": "DEV",
"methodMapList": [
{
"dubboMethodName": "sayName",
"httpMethod": "ALL_GET",
"methodPath": "/mytestzbk/sayhello",
"passThroughAllHeaders": "PASS_NOT",
"passThroughList": [
"[\"x-request-id\", \"x-tenant\"]"
],
"paramMapsList": [
{
"extractKeySpec": "ALL_QUERY_PARAMETER",
"extractKey": "name",
"mappingType": "java.lang.String"
}
]
}
]
}
}
]
},
"serviceConfigs": [
{
"capabilityTier": "standard",
"gatewayServiceId": "gw-svc-abc123",
"intentCode": "INQUIRY",
"match": {
"default": true,
"conditions": [
{
"type": "Query",
"key": "color",
"value": "gray",
"operator": "equal"
}
]
},
"modelName": "qwen-max",
"modelNamePattern": "qwen-*",
"multiServiceRouteStrategy": "ByWeight",
"name": "Qwen-Max-Service",
"observabilityRouteConfig": {
"mode": "LeastBusy",
"queueSize": 100,
"rateLimit": 0.8
},
"port": 80,
"protocol": "HTTP",
"serviceId": "svc-xxx",
"version": "V2",
"weight": 100
}
],
"subDomains": [
{
"domainId": "d-csmn42um******",
"name": "test",
"networkType": "Intranet",
"protocol": "HTTP"
}
],
"systemModelTiers": [
"economy"
]
}
],
"description": "测试专用API",
"enableAuth": true,
"environments": [
{
"alias": "test",
"backendScene": "SingleService",
"backendType": "Service",
"customDomains": [
{
"domainId": "d-xxx",
"name": "www.example.com",
"protocol": "HTTP"
}
],
"deployStatus": "Deployed",
"environmentId": "env-xxx",
"gatewayInfo": {
"gatewayEdition": "MultiTenantServerless",
"gatewayId": "gw-xxx",
"name": "test"
},
"name": "test",
"serviceConfigs": [
{
"gatewayServiceId": "gs-xxx",
"match": {
"default": true,
"conditions": [
{
"type": "Query",
"key": "color",
"value": "gray",
"operator": "equal"
}
]
},
"name": "demo-service",
"port": "8080",
"protocol": "HTTP",
"serviceId": "svc-xxx",
"version": "v1",
"weight": 100
}
],
"subDomains": [
{
"domainId": "d-xxx",
"name": "www.example.com",
"networkType": "Internet",
"protocol": "HTTP"
}
]
}
],
"gatewayId": "gw-cpv4sqdl****",
"httpApiId": "api-xxx",
"ingressInfo": {
"environmentInfo": {
"environmentId": "env-xxx"
},
"ingressClass": "mse",
"k8sClusterInfo": {
"clusterId": "ca435c77cba1547cca9311957bcxxxxxx"
},
"overrideIngressIp": true,
"sourceId": "src-xxx",
"watchNamespace": "default"
},
"modelCategory": "Text",
"name": "test",
"protocols": [
"HTTP"
],
"resourceGroupId": "rg-xxx",
"type": "Rest",
"versionInfo": {
"enable": true,
"headerName": "my-version",
"queryName": "myVersion",
"scheme": "Query",
"version": "v1"
}
},
"consumerAuthorizationRuleId": "car-csgeka5lhtggrjcprok0",
"consumerGroupId": "csg-8c13d2b4f8a1",
"consumerGroupInfo": {
"consumerGroupId": "csg-8c13d2b4f8a1",
"gatewayType": "API",
"name": "api-consumer-group"
},
"consumerId": "cs-csheiftlhtgmp0j0hp4g",
"consumerInfo": {
"consumerId": "cs-ctd4l1um1hkph7ki1k80",
"enable": false,
"name": "test"
},
"createTimestamp": 1719386834548,
"deployStatus": "{}",
"environmentInfo": {
"environmentId": "env-cq7l5s5lhtgi6qasrdc0",
"name": "test",
"alias": "测试环境",
"description": "这是xxx的xx项目测试环境",
"gatewayInfo": {
"gatewayId": "gw-cq7og15lhtgi6qasrj60",
"name": "apitest-gw",
"vpcInfo": {
"vpcId": "vpc-uf664nyle5kh***",
"name": "商品中心预发环境专有网络"
},
"engineVersion": "2.0.7",
"gatewayEdition": "MultiTenantServerless"
},
"subDomainInfos": [
{
"domainId": "d-cpudb0llhtgl2djvq2sg",
"name": "abc.com",
"protocol": "HTTP",
"networkType": "Intranet"
}
],
"default": false,
"createTimestamp": 1721116090326,
"updateTimestamp": 1721116090326,
"resourceGroupId": "rg-xxxx"
},
"expireMode": "ShortTerm",
"expireStatus": "InEffect",
"expireTimestamp": 172086834548,
"gatewayInfo": {
"gatewayId": "gw-cq7og15lhtgi6qasrj60",
"name": "apitest-gw",
"vpcInfo": {
"vpcId": "vpc-uf664nyle5kh***",
"name": "商品中心预发环境专有网络"
},
"engineVersion": "2.0.7",
"gatewayEdition": "MultiTenantServerless"
},
"principalType": "ConsumerGroup",
"resourceId": "2351944",
"resourceInfo": {
"operationInfo": {
"authConfig": {
"authMode": "NoAuth",
"authType": "Jwt"
},
"createTimestamp": 1719386834548,
"deployConfigs": [
{
"autoDeploy": true,
"backendScene": "SingleService",
"builtinRouteNames": [
"[\"chat\",\"completions\"]"
],
"customDomainIds": [
"d-xxx"
],
"customDomainInfos": [
{
"domainId": "d-cshee6dlhtgk******",
"name": "hello-server.com",
"protocol": "HTTP"
}
],
"enableSystemModels": true,
"envDomainIds": [
"d-xxx"
],
"envDomainInfos": [
{
"domainId": "d-env-xxx",
"name": "api.example.com",
"protocol": "HTTPS"
}
],
"environmentId": "env-xxx",
"gatewayId": "gw-xx",
"gatewayType": "API",
"mock": {
"enable": false,
"responseCode": 200,
"responseContent": "Mock测试"
},
"policyConfigs": [
{
"type": "K8S",
"enable": false,
"semanticRouterConfig": {
"timeoutMillisecond": 2000
},
"aiFallbackConfig": {
"onlyRedirectUpstreamCode": true,
"serviceConfigs": [
{
"serviceId": "svc-bbb",
"name": "—",
"targetModelName": "qwen-max",
"passThroughModelName": false
}
]
},
"aiSecurityGuardConfig": {
"bufferLimit": 1000,
"checkRequest": true,
"checkRequestImage": false,
"checkResponse": true,
"checkResponseImage": false,
"consumerConfigBindings": [
{
"matchType": "exact",
"name": "example-consumer",
"templateId": "apig_0123456789abcdef"
}
],
"consumerRequestCheckService": [
{
"matchType": "exact",
"modalityType": "Text",
"name": "consumer-a",
"requestCheckService": "query_security_check",
"requestImageCheckService": "img_query_guard"
}
],
"consumerResponseCheckService": [
{
"matchType": "exact",
"modalityType": "Text",
"name": "consumer-a\n",
"responseCheckService": "query_security_check",
"responseImageCheckService": "img_query_guard\n"
}
],
"consumerRiskLevel": [
{
"level": "high",
"matchType": "exact",
"name": "consumer-a",
"type": "ContentModeration"
}
],
"defaultGenerated": true,
"longTermEnabled": true,
"requestCheckService": "query_security_check",
"requestImageCheckService": "img_query_guard",
"responseCheckService": "response_security_check",
"responseImageCheckService": "img_response_guard",
"riskAlertLevel": "high",
"riskConfig": [
{
"consumerRules": {
"matchType": "Exact",
"pattern": "consumer-a"
},
"level": "high",
"type": "ContentModeration"
}
],
"serviceAddress": "https://green-cip-vpc.cn-shanghai.aliyuncs.com"
},
"aiTokenRateLimitConfig": {
"redisConfig": {
"host": "r-xxx.redis.rds.aliyuncs.com",
"port": 6379,
"username": "user",
"password": "pass",
"timeout": 5000,
"databaseNumber": 0
},
"rules": [
{
"limitType": "Consumer",
"matchKey": "X-API-Key",
"matchType": "Exact",
"matchValue": "consumer-a",
"limitMode": "TokenPerMinute",
"limitValue": 1000
}
],
"globalRules": [],
"enableGlobalRules": true
},
"policyReference": {
"policyId": "pol-9f2exxx",
"policyAttachmentId": "pa-3c8ayyy"
},
"aiCacheConfig": {
"cacheTTL": 3600,
"vectorConfig": {
"type": "dashvector",
"serviceHost": "vdb-xxx.dashvector.aliyuncs.com",
"apiKey": "sk-xxx",
"timeout": 5000,
"collectionId": "col-xxx",
"threshold": 0.95
},
"embeddingConfig": {
"type": "dashscope",
"serviceId": "svc-xxx",
"timeout": 5000,
"modelName": "text-embedding-v2"
},
"cacheKeyStrategy": "-",
"cacheMode": "exact"
},
"aiNetworkSearchConfig": {
"needReference": true,
"referenceFormat": "参考来源:\\n%s",
"referenceLocation": "head",
"defaultLang": "zh-CN",
"defaultEnable": true,
"searchFrom": [
{
"type": "aliyunQuark",
"apiKey": "sk-xxx",
"count": 5,
"start": 0,
"timeoutMillisecond": 5000,
"optionArgs": {
"key": "{\"market\":\"zh-CN\"}"
},
"endpoint": "https://cloud-iqs.aliyuncs.com",
"contentMode": "summary",
"industry": "互联网",
"timeRange": "7d"
}
],
"searchRewrite": {
"enable": true,
"serviceId": "svc-xxx",
"modelName": "qwen-max",
"timeoutMillisecond": 5000,
"maxCount": 3
}
},
"aiToolSelectionConfig": {
"enableConditions": {
"toolCountThreshold": 10
},
"toolReranking": {
"modelService": {
"serviceId": "svc-xxx\n",
"modelName": "gte-rerank-v2",
"timeoutMillisecond": 5000
},
"filteringMethod": "topN",
"topKPercent": 50,
"topNCount": 5,
"scoreThreshold": 0.5,
"fallbackStrategy": "skip"
},
"queryRewriting": {
"enabled": true,
"modelService": {
"serviceId": "svc-xxx",
"modelName": "gte-rerank-v2",
"timeoutMillisecond": 5000
},
"promptConfig": {
"type": "builtIn",
"customPrompt": "请将以下用户问题改写为..."
},
"maxOutputTokens": 50,
"triggerConditions": {
"messageCountThreshold": 1
},
"contextSelection": {
"type": "allMessages",
"value": 5
},
"fallbackStrategy": "skip"
}
},
"aiStatisticsConfig": {
"logRequestContent": true,
"logResponseContent": true,
"pathFieldConfigs": [
{
"path": "/v1/chat/completions",
"fieldPaths": {
"key": {
"fieldKey": "question",
"jsonPath": "messages.#.content",
"rule": "append",
"name": "问题内容",
"description": "用户输入的问题内容",
"source": "request_body",
"category": "conversation",
"io": "request",
"sensitive": false,
"recordEnabled": true
}
}
}
]
}
}
],
"restApiRouteMode": "ordinary",
"routeBackend": {
"scene": "Single",
"enableSystemModels": true,
"services": [
{
"serviceId": "service-cq2bmmdlhtgj***",
"modelName": "qwen-plus",
"name": "item-service",
"protocol": "HTTP",
"port": 0,
"weight": 49,
"version": "v1",
"sourceType": "MSE_NACOS",
"groupName": "DEFAULT_GROUP",
"namespace": "public",
"httpDubboTranscoder": {
"dubboServiceName": "com.example.DemoService",
"dubboServiceVersion": "1.0.0",
"dubboServiceGroup": "DEV",
"methodMapList": [
{
"dubboMethodName": "sayName",
"httpMethod": "ALL_GET",
"methodPath": "/mytestzbk/sayhello",
"passThroughAllHeaders": "PASS_NOT",
"passThroughList": [
"[\"x-request-id\", \"x-tenant\"]"
],
"paramMapsList": [
{
"extractKeySpec": "ALL_QUERY_PARAMETER",
"extractKey": "name",
"mappingType": "java.lang.String"
}
]
}
]
}
}
]
},
"serviceConfigs": [
{
"capabilityTier": "standard",
"gatewayServiceId": "gw-svc-abc123",
"intentCode": "INQUIRY",
"match": {
"default": true,
"conditions": [
{
"type": "Query",
"key": "color",
"value": "gray",
"operator": "equal"
}
]
},
"modelName": "qwen-max",
"modelNamePattern": "qwen-*",
"multiServiceRouteStrategy": "ByWeight",
"name": "Qwen-Max-Service",
"observabilityRouteConfig": {
"mode": "LeastBusy",
"queueSize": 100,
"rateLimit": 0.8
},
"port": 80,
"protocol": "HTTP",
"serviceId": "svc-xxx",
"version": "V2",
"weight": 100
}
],
"subDomains": [
{
"domainId": "d-csmn42um******",
"name": "test",
"networkType": "Intranet",
"protocol": "HTTP"
}
],
"systemModelTiers": [
"economy"
]
}
],
"description": "获取用户信息",
"enableAuth": true,
"method": "GET",
"mock": {
"enable": false,
"responseCode": 200,
"responseContent": "Mock测试"
},
"name": "GetUserInfo",
"operationId": "op-xxx",
"path": "/user/123",
"request": {
"body": {
"contentType": "application/json",
"description": "body参数描述",
"example": "{\"result\":\"ok\"}",
"jsonSchema": "{\n \"type\": \"object\",\n \"required\": [\n \"result\"\n ],\n \"properties\": {\n \"result\": {\n \"type\": \"string\",\n \"description\": \"操作结果,'ok' 表示成功\"\n }\n }\n}\n"
},
"headerParameters": [
{
"defaultValue": "123",
"description": "用户ID",
"exampleValue": "123",
"name": "userId",
"required": true,
"type": "String"
}
],
"pathParameters": [
{
"defaultValue": "123",
"description": "用户ID",
"exampleValue": "123",
"name": "userId",
"required": true,
"type": "String"
}
],
"queryParameters": [
{
"defaultValue": "123",
"description": "用户ID",
"exampleValue": "123",
"name": "userId",
"required": true,
"type": "String"
}
]
},
"response": {
"contentType": "application/json",
"items": [
{
"code": 200,
"description": "正常接口响应",
"example": "{\"result\": \"ok\"}",
"jsonSchema": "{\n \"type\": \"object\",\n \"required\": [\n \"result\"\n ],\n \"properties\": {\n \"result\": {\n \"type\": \"string\",\n \"description\": \"操作结果,'ok' 表示成功\"\n }\n }\n}"
}
]
},
"status": "Deployed"
},
"route": {
"routeId": "hr-crf5l7tlhtgp91t***",
"name": "itemcenter-pre-route",
"deployStatus": "Deployed",
"description": "商品中心预发路由",
"match": {
"ignoreUriCase": true,
"path": {
"type": "Prefix",
"value": "/user"
},
"headers": [
{
"type": "Exact",
"name": "dev",
"value": "true"
}
],
"methods": [
"GET"
],
"queryParams": [
{
"type": "Exact",
"name": "age",
"value": "17"
}
]
},
"backend": {
"scene": "Single",
"enableSystemModels": true,
"services": [
{
"serviceId": "service-cq2bmmdlhtgj***",
"modelName": "qwen-plus",
"name": "item-service",
"protocol": "HTTP",
"port": 0,
"weight": 49,
"version": "v1",
"sourceType": "MSE_NACOS",
"groupName": "DEFAULT_GROUP",
"namespace": "public",
"httpDubboTranscoder": {
"dubboServiceName": "com.example.DemoService",
"dubboServiceVersion": "1.0.0",
"dubboServiceGroup": "DEV",
"methodMapList": [
{
"dubboMethodName": "sayName",
"httpMethod": "ALL_GET",
"methodPath": "/mytestzbk/sayhello",
"passThroughAllHeaders": "PASS_NOT",
"passThroughList": [
"[\"x-request-id\", \"x-tenant\"]"
],
"paramMapsList": [
{
"extractKeySpec": "ALL_QUERY_PARAMETER",
"extractKey": "name",
"mappingType": "java.lang.String"
}
]
}
]
}
}
]
},
"environmentInfo": {
"environmentId": "env-crhq1u5lhtgju***",
"name": "itemcenter-pre",
"alias": "商品中心预发环境",
"gatewayInfo": {
"gatewayId": "gw-cqoohqtlh***",
"name": "itemcenter-gateway",
"gatewayEdition": "MultiTenantServerless"
},
"subDomains": [
{
"domainId": "d-cqu19hdlhtgjuv4***",
"name": "env-crmic3llht***-cn-hangzhou-vpc.alicloudapi.com",
"protocol": "HTTP",
"networkType": "Internet"
}
]
},
"createTimestamp": 1726649310593,
"updateTimestamp": 1726819895636,
"mcpServerInfo": {
"importInstanceId": "import-001",
"importNamespace": "default",
"importMcpServerId": "mcp-002",
"createFromType": "Nacos",
"mcpServerConfig": "{\\\"config\\\":{}}",
"mcpRouteConfig": {
"protocol": "SSE",
"exposedUriPath": "/mcp"
}
},
"domainInfos": [
{
"domainId": "d-cr3v7dllhtgi9s***",
"name": "itemcenter.dev",
"protocol": "HTTP"
}
],
"gatewayStatus": {
"key": "Running"
},
"builtin": "true"
}
},
"resourceType": "HttpApiRoute",
"updateTimestamp": 1719386834548
}
],
"pageNumber": 1,
"pageSize": 10,
"totalSize": "6"
},
"message": "success",
"requestId": "A60EE5CA-1294-532A-9775-8D2FD1C6EFBF"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。