全部产品
Search
文档中心

微服务引擎MSE:ListGatewayAuthConsumer - 获取网关鉴权消费者列表

更新时间:Aug 28, 2026

获取网关鉴权消费者列表。

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

mse:ListGatewayAuthConsumer

list

*Gateway

acs:mse:{#regionId}:{#accountId}:instance/{#GatewayUniqueId}

请求参数

名称

类型

必填

描述

示例值

GatewayUniqueId

string

网关唯一标识 ID。

gw-0fe488252dc44d55a9dd57875193****

Name

string

鉴权消费者名称。

test

Type

string

鉴权类型:

  • JWT

JWT

ConsumerStatus

boolean

鉴权消费者状态:

  • true:启用

  • false:停用

true

PageNum

string

当前页数值。

1

PageSize

string

当前页的大小。

10

AcceptLanguage

string

返回信息的语言类型:

  • zh:中文

  • en:英文

zh

返回参数

名称

类型

描述

示例值

object

RestResult<List>

RequestId

string

请求 ID。

dc63-465d-8ef5-20dc18af****

Success

boolean

请求结果,取值如下:

  • true:请求成功。

  • false:请求失败。

true

Code

integer

code 仅仅用来和 success 同步。

200

ErrorCode

string

错误码。

mse-100-000

HttpStatusCode

integer

HTTP 状态码。

200

Message

string

返回信息。

请求处理成功

DynamicCode

string

动态错误信息中的占位符。

code

DynamicMessage

string

动态错误信息,用于替换返回参数 ErrMessage 错误信息中的%s

说明

如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,则表示所传入的请求参数 DtsJobId 不合法。

The specified parameter is invalid.

Data

object

数据结构。

TotalSize

integer

查询到的总数。

9

PageNumber

integer

页码。

1

PageSize

integer

页面大小。

10

Result

array<object>

返回集合。

object

返回集合。

Id

integer

鉴权消费者 ID。

1

Name

string

鉴权消费者名称。

test

ConsumerStatus

boolean

鉴权消费者状态:

  • true:启用

  • false:停用

true

PrimaryUser

string

创建人。

123

GatewayUniqueId

string

网关唯一标识 ID。

gw-5017305290e14centbrveca****

Type

string

鉴权类型:

  • JWT

JWT

Description

string

鉴权消费者描述。

描述

GmtCreate

string

创建时间。

2021-09-13 19:24:23

GmtModified

string

修改时间。

2022-01-07 18:07:57

示例

正常返回示例

JSON格式

{
  "RequestId": "dc63-465d-8ef5-20dc18af****",
  "Success": true,
  "Code": 200,
  "ErrorCode": "mse-100-000",
  "HttpStatusCode": 200,
  "Message": "请求处理成功",
  "DynamicCode": "code",
  "DynamicMessage": "The specified parameter is invalid.",
  "Data": {
    "TotalSize": 9,
    "PageNumber": 1,
    "PageSize": 10,
    "Result": [
      {
        "Id": 1,
        "Name": "test",
        "ConsumerStatus": true,
        "PrimaryUser": "123",
        "GatewayUniqueId": "gw-5017305290e14centbrveca****",
        "Type": "JWT",
        "Description": "描述",
        "GmtCreate": "2021-09-13 19:24:23",
        "GmtModified": "2022-01-07 18:07:57"
      }
    ]
  }
}

错误码

HTTP status code

错误码

错误信息

描述

400 IllegalRequest Invalid request:%s 非法请求: %s
400 InvalidParameter Parameter error:%s 请求参数错误:%s
500 InternalError Console error. Try again later:%s 控制台错误.稍后重试:%s
403 NoPermission You are not authorized to perform this operation:%s 没有权限使用此接口:%s
404 NotFound Not found:%s 资源不存在:%s

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

变更历史

更多信息,参考变更详情