GetUserGateways - 获取网关列表

更新时间:
复制为 MD 格式

调用此API可以获取用户创建的DG网关列表。

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

PageSize

integer

分页大小。

100

PageNumber

integer

当前页码。

1

SearchKey

string

搜索关键字。

gateway

RegionId

string

网关所在地域。

cn-hangzhou

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID,用于定位日志,排查问题。

41FC4DFE-EA8A-5A56-A16C-F607C3409C79

Success

boolean

请求是否成功,返回值如下:

  • true:请求成功。

  • false:请求失败。

true

Code

string

响应码。

200

ErrorMsg

string

报错信息。

Gateway exception, please launch local dg first

Count

integer

已创建的网关数量。

20

GatewayList

object

Gateway

array<object>

网关列表信息。

object

网关信息。

GatewayDesc

string

网关描述。

test

GatewayName

string

网关名称。

test

RegionId

string

地域 ID。

cn-hangzhou

GatewayId

string

网关 ID。

dg-lch384wg5701****

Status

string

状态。

RUNNING

UserId

string

用户 ID。

100****

CreatorId

string

网关创建者 ID。

100****

DgVersion

string

网关版本。

3.0

ExceptionMsg

string

网关异常信息。

exception

NumOfExceptionInstance

integer

异常实例数量。

3

NumOfRunningInstance

integer

运行中实例数量。

3

AccessDeniedDetail

object

请求失败详情。

AuthAction

string

接口名。

dms-dg:GetUserGateways

AuthPrincipalDisplayName

string

请求中用于鉴权的身份标识。

23894333884425****

AuthPrincipalOwnerId

string

授权主体所有者 ID。

1218522260143***

AuthPrincipalType

string

授权主体类型。

SubUser

EncodedDiagnosticMessage

string

加密后的完整诊断信息。

AQFprivgaa4r4EEyRDc1QjgxLUY2QkMtNTZDNS1BMkFELTQ5NEUzNURBMjQwNQ==

NoPermissionType

string

导致鉴权失败的原因。

ExplicitDeny

PolicyType

string

导致鉴权失败的策略类型。

COST_OPTIMIZED

示例

正常返回示例

JSON格式

{
  "RequestId": "41FC4DFE-EA8A-5A56-A16C-F607C3409C79",
  "Success": true,
  "Code": "200",
  "ErrorMsg": "Gateway exception, please launch local dg first",
  "Count": 20,
  "GatewayList": {
    "Gateway": [
      {
        "GatewayDesc": "test",
        "GatewayName": "test",
        "RegionId": "cn-hangzhou",
        "GatewayId": "dg-lch384wg5701****",
        "Status": "RUNNING",
        "UserId": "100****",
        "CreatorId": "100****",
        "DgVersion": "3.0",
        "ExceptionMsg": "exception",
        "NumOfExceptionInstance": 3,
        "NumOfRunningInstance": 3
      }
    ]
  },
  "AccessDeniedDetail": {
    "AuthAction": "dms-dg:GetUserGateways",
    "AuthPrincipalDisplayName": "23894333884425****",
    "AuthPrincipalOwnerId": "1218522260143***",
    "AuthPrincipalType": "SubUser",
    "EncodedDiagnosticMessage": "AQFprivgaa4r4EEyRDc1QjgxLUY2QkMtNTZDNS1BMkFELTQ5NEUzNURBMjQwNQ==",
    "NoPermissionType": "ExplicitDeny",
    "PolicyType": "COST_OPTIMIZED"
  }
}

错误码

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

变更历史

更多信息,参考变更详情