API网关 APIG-查询API下绑定的插件:响应参数

时间:2023-12-01 09:43:01

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

size

Integer

本次返回的列表长度

total

Long

满足条件的记录数

plugins

Array of AttachedPluginInfo objects

绑定API的插件列表。

表5 AttachedPluginInfo

参数

参数类型

描述

plugin_attach_id

String

插件绑定编码。

plugin_id

String

插件编码。

plugin_name

String

插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符

说明:

中文字符必须为UTF-8或者unicode编码。

plugin_type

String

插件类型

  • cors:跨域资源共享

  • set_resp_headers:HTTP响应头管理

  • kafka_log:Kafka日志推送

  • breaker:断路器

  • rate_limit: 流量控制

  • third_auth: 第三方认证

枚举值:

  • cors

  • set_resp_headers

  • kafka_log

  • breaker

  • rate_limit

  • third_auth

plugin_scope

String

插件可见范围。global:全局可见。

枚举值:

  • global

env_id

String

绑定API的环境编码。

env_name

String

api授权绑定的环境名称

attached_time

String

绑定时间。

plugin_content

String

插件定义内容,支持json。

最大长度:65535

remark

String

插件描述,255字符。

说明:

中文字符必须为UTF-8或者unicode编码。

最大长度:255

create_time

String

创建时间。

update_time

String

更新时间。

状态码: 400

表6 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 401

表7 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 403

表8 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 404

表9 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 500

表10 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

support.huaweicloud.com/api-apig/ListApiAttachedPlugins.html