文档

ListGatewayAuthConsumerResource - 获取网关鉴权消费者的授权列表

更新时间:

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

调试

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

授权信息

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

请求参数

名称类型必填描述示例值
GatewayUniqueIdstring

网关唯一标识 ID。

gw-3f97e2989c344f35ab3fd62b19f1****
ConsumerIdlong

网关鉴权消费者 ID。

2
RouteNamestring

路由名称。

test
ResourceStatusboolean

资源状态:

  • true:启用

  • false:停用

true
PageNumstring

页码。

1
PageSizestring

当前页的大小。

10
AcceptLanguagestring

返回信息的语言类型:

  • zh:中文
  • en:英文
zh

返回参数

名称类型描述示例值
object

RestResult<List>

RequestIdstring

请求 ID。

A73AC37C-C617-4E3A-8049-372CF49C****
Successboolean

请求结果,取值如下:

  • true:请求成功。
  • false:请求失败。
True
Codeinteger

code 仅仅用来和 success 同步。

200
ErrorCodestring

错误码。

mse-100-000
HttpStatusCodeinteger

HTTP 状态码。

200
Messagestring

返回信息。

请求处理成功
DynamicCodestring

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

code
DynamicMessagestring

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

说明 如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,则代表所传入的请求参数 DtsJobId 不合法。
The specified parameter is invalid.
Dataobject

返回结果。

TotalSizelong

总条数。

11
PageNumberinteger

页码。

1
PageSizeinteger

分页大小。

10
Resultobject []

数据结构。

Idlong

鉴权消费者授权 ID。

1
ConsumerIdlong

网关鉴权消费者 ID。

2
RouteIdlong

路由 ID。

3091
RouteNamestring

路由名称。

test
ResourceStatusboolean

资源授权状态:

  • true:启用

  • false:停用

true
GatewayUniqueIdstring

网关唯一标识。

gw-5017305290e14centbrveca****
GmtCreatestring

创建时间。

2022-01-07 18:07:57
GmtModifiedstring

修改时间。

2022-01-07 18:07:57

示例

正常返回示例

JSON格式

{
  "RequestId": "A73AC37C-C617-4E3A-8049-372CF49C****",
  "Success": true,
  "Code": 200,
  "ErrorCode": "mse-100-000",
  "HttpStatusCode": 200,
  "Message": "请求处理成功",
  "DynamicCode": "code",
  "DynamicMessage": "The specified parameter is invalid.",
  "Data": {
    "TotalSize": 11,
    "PageNumber": 1,
    "PageSize": 10,
    "Result": [
      {
        "Id": 1,
        "ConsumerId": 2,
        "RouteId": 3091,
        "RouteName": "test",
        "ResourceStatus": true,
        "GatewayUniqueId": "gw-5017305290e14centbrveca****",
        "GmtCreate": "2022-01-07 18:07:57",
        "GmtModified": "2022-01-07 18:07:57"
      }
    ]
  }
}

错误码

HTTP status code错误码错误信息描述
400IllegalRequestInvalid request:%s非法请求: %s
400InvalidParameterParameter error:%s请求参数错误:%s
403NoPermissionYou are not authorized to perform this operation:%s没有权限使用此接口:%s
404NotFoundNot found:%s资源不存在:%s
500InternalErrorConsole error. Try again later:%s控制台错误.稍后重试:%s

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

变更历史

变更时间变更内容概要操作
2024-02-23API 内部配置变更,不影响调用看变更集
变更项变更内容
API 内部配置变更,不影响调用
  • 本页导读 (1)
文档反馈