ListApiMcpServerCores - 列出ApiMcpServerCore

更新时间:
复制为 MD 格式

列出资源ApiMcpServerCore。

接口说明

该接口查询的是公开信息,不涉及账号特殊归属等信息,故不支持授权。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /apimcpservercores HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

id

string

唯一 id

v6ZZ7ftCzEILW***

nextToken

string

分页游标。

说明

不为空表示有更多数据。

AAAAAZjtYxxxxxxxx

maxResults

integer

分页查询时每页的最大条目数。最大值为 100。默认值为 20。

10

skip

integer

跳过的数据数量。

5

返回参数

名称

类型

描述

示例值

object

requestId

string

请求 ID。

A707AFA8-1A4C-5B2A-A165-8436C1EA38DB

nextToken

string

分页游标。

说明

不为空表示有更多数据。

AAAAAZjtYxxxxxxxx

totalCount

integer

总数据条数。

5

maxResults

integer

分页查询时每页的最大条目数。最大值为 100。默认值为 20。

20

apiMcpServerCores

array<object>

MCP Core 服务列表

array<object>

id

string

MCP Core 服务 ID。

UFGUzvjc3cdrPy6Z

oauthClientId

string

选择自定义 OAuth 配置时的自定义 OAuth Client ID。

仅支持 Web/Native 应用,且 OAuth 范围必须包含 /acs/mcp-server

403*************370

createTime

string

创建时间

2025-05-16 11:17:02

vpcWhitelists

array

每一个限定的 VPC 白名单,值为来源 VPC ID。

string

每一个限定的 VPC 白名单,值为来源 VPC ID。

[]

enableAssumeRole

boolean

是否开启多账号访问。

true

assumeRoleOverridePolicy

string

角色扮演时的权限策略

{"Version":"1","Statement":[{"Effect":"Allow","Action":["ecs:Describe*"],"Resource":"*"}]}

assumeRoleName

string

开启多账号访问进行跨账号操作时,扮演的目标账号 RAM 角色名称。

test

publicAccessType

string

公网访问类型:允许公网访问、不允许公网访问、继承账号配置。 public(开启), private(关闭), inherit(跟随账号配置)

枚举值:

  • private :

    关闭

  • public :

    开启

  • inherit :

    跟随账号配置

public

enableCustomVpcWhitelist

boolean

是否开启自定义 VPC 白名单,不开启则跟随账户级别的配置。

true

urls

object

SSE 协议连接信息。

sse

string

SSE 协议连接信息。

https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/id/xxxx/sse

mcp

string

streamable HTTP 协议连接信息,推荐使用。

https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/id/xxxx/mcp

vpcSse

string

VPC 下 SSE 协议连接地址。

https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/id/xxxx/sse

vpcMcp

string

VPC 下 streamable HTTP 协议连接地址。

https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/id/xxxx/mcp

requiredRamPolicy

string

使用该 MCP Core Server 所需的 RAM 策略。

{"Version":"1","Statement":[{"Effect":"Allow","Action":["ecs:Describe*"],"Resource":"*"}]}

示例

正常返回示例

JSON格式

{
  "requestId": "A707AFA8-1A4C-5B2A-A165-8436C1EA38DB",
  "nextToken": "AAAAAZjtYxxxxxxxx",
  "totalCount": 5,
  "maxResults": 20,
  "apiMcpServerCores": [
    {
      "id": "UFGUzvjc3cdrPy6Z",
      "oauthClientId": "403*************370",
      "createTime": "2025-05-16 11:17:02",
      "vpcWhitelists": [
        "[]"
      ],
      "enableAssumeRole": true,
      "assumeRoleOverridePolicy": "{\"Version\":\"1\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"ecs:Describe*\"],\"Resource\":\"*\"}]}",
      "assumeRoleName": "test",
      "publicAccessType": "public",
      "enableCustomVpcWhitelist": true,
      "urls": {
        "sse": "https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/id/xxxx/sse",
        "mcp": "https://openapi-mcp.cn-hangzhou.aliyuncs.com/accounts/xxxx/id/xxxx/mcp",
        "vpcSse": "https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/id/xxxx/sse",
        "vpcMcp": "https://openapi-mcp-cn.vpc-proxy.aliyuncs.com/accounts/xxxx/id/xxxx/mcp"
      },
      "requiredRamPolicy": "{\"Version\":\"1\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"ecs:Describe*\"],\"Resource\":\"*\"}]}"
    }
  ]
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidParam.NextToken The specified NextToken is not valid. 指定的nextToken无效。
400 NextTokenParameterMismatch The request uses the same nextToken as the previous request, but with different parameters. NextTokens should not be reused across non-identical requests. Each unique request must have a distinct nextToken. 请求使用了与之前请求相同的nextToken,但参数不同。请勿在参数不同的请求中重复使用同一nextToken,每个独立请求必须使用唯一的nextToken。
500 InternalServerError The request has failed due to a temporary failure of the server. 由于服务器暂时故障,请求失败。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情