获取API绑定的插件列表

最近更新时间:2020-08-21 11:17:44

查看PDF

获取API绑定的插件列表(GetApiBindPluginList)

描述

获取API绑定的插件列表

HTTP METHOD

GET | POST

请求参数

公共参数列表 详情

名称 类型 必填 长度限制(字符) 参数格式 描述
Action String 确定值 [a-zA-Z]+ 操作接口名,系统规定参数,取值: GetApiBindPluginList
Version String 确定值 固定为:2019-05-01
ApiId Integer API Id
PluginType Integer 插件类型
Page Integer 页码
Size Integer 每页数量
返回结果

通过指定 Accept:application/json,返回的数据格式为json

示例(调用成功)
请求示例
curl -X GET|POST \
'http://apigw.api.ksyun.com/?Action=GetApiBindPluginList&Version=2019-05-01&ApiId=252&PluginType=2&Page=1&Size=10' \
-H 'authorization: xxx, SignedHeaders=accept;content-type;host;x-amz-date, Signature=xxx' \
-H 'accept: application/json' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'host: apigw.api.ksyun.com' \
-H 'x-amz-date: 20170720T022802Z'
响应成功返回示例
{
    "Res": {
        "total": 1,
        "list": {
            "id": 349,
            "account_id": "2000091140",
            "plugin_id": 208,
            "plugin_uuid": "0VnGLgmqSz27LV5sGj8EIw",
            "api_id": 252,
            "env_type": 3,
            "plugin_type": 2,
            "is_valid": 1,
            "deleted": 0,
            "create_time": 1597837749,
            "update_time": 1597837749,
            "deleted_time": 0,
            "plugin_info": {
                "id": 208,
                "account_id": "2000091140",
                "plugin_name": "TestAccessPlugin",
                "plugin_desc": "",
                "plugin_uuid": "0VnGLgmqSz27LV5sGj8EIw",
                "type": 2,
                "is_valid": 1,
                "priority": 100,
                "bind_api_count": 0,
                "deleted": 0,
                "create_time": 1597837424,
                "update_time": 1597837964,
                "deleted_time": 0
            },
            "config_data": {
                "effect": "allow",
                "type": "1",
                "ips": [
                    {
                        "value": "127.0.0.1",
                        "add_time": 1597837424
                    },
                    {
                        "value": "127.0.0.2",
                        "add_time": 1597837440
                    },
                    {
                        "value": "127.0.0.3",
                        "add_time": 1597837964
                    }
                ]
            }
        }
    },
    "RequestId": "f0cde898-8187-410f-9553-fb99f0f4d0ad"
}

访问API错误码查看更多错误码

文档内容是否对您有帮助?

根本没帮助
文档较差
文档一般
文档不错
文档很好

在文档使用中是否遇到以下问题

内容不全,不深入
内容更新不及时
描述不清晰,比较混乱
系统或功能太复杂,缺乏足够的引导
内容冗长

更多建议

0/200

评价建议不能为空

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

问题反馈