跳转至

获取数据访问规则列表



GET /api/v1/data_query_rule/list

概述

列出 各个类型的数据访问规则

Query 请求参数

参数名 类型 必选 说明
type string Y 过滤字段, 类型
允许为空: True
可选值: ['logging', 'rum', 'tracing', 'metric']
roleUUIDs commaArray 过滤字段, 角色 uuid, ,号连接
允许为空: False
indexUUIDs commaArray 过滤字段, 索引 uuid, ,号连接
允许为空: False
sources commaArray 过滤字段, 资源名称, ,号连接
允许为空: False
isMask string 过滤字段, 是否脱敏
允许为空: False
可选值: ['true', 'false']
search string 搜索名称
允许为空: True
pageSize integer 每页返回数量
允许为空: False
例子: 10
pageIndex integer 页码
允许为空: False
例子: 10

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/data_query_rule/list?type=rum&pageIndex=1&pageSize=2' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

响应

{
    "code": 200,
    "content": {
        "data": [
            {
                "conditions": "`env` IN ['front'] and `province` IN ['jiangsu']",
                "createAt": 1730532068,
                "creator": "wsak_cd83804176e24ac18a8a683260ab0746",
                "creatorInfo": {
                    "acntWsNickname": "",
                    "email": "wsak_cd83804176e24ac18a8a683260ab0746",
                    "iconUrl": "",
                    "mobile": "",
                    "name": "hd_test",
                    "status": 0,
                    "username": "hd_test",
                    "uuid": "wsak_cd83804176e24ac18a8a683260ab0746",
                    "wsAccountStatus": 0
                },
                "deleteAt": -1,
                "desc": "",
                "extend": {
                    "env": [
                        "front"
                    ],
                    "province": [
                        "jiangsu"
                    ]
                },
                "id": 351,
                "indexes": [],
                "logic": "and",
                "maskFields": "source",
                "memberCount": 2,
                "name": "rum test",
                "reExprs": [
                    {
                        "enable": true,
                        "name": "liuyl",
                        "reExpr": ".*"
                    }
                ],
                "relMemberInfos": [
                    {
                        "acntWsNickname": "",
                        "email": "dcl@qq.com",
                        "iconUrl": "http://static.cloudcare.cn:10561/icon/acnt_664f5b3cfe7841a89143817f27267066.png",
                        "mobile": "",
                        "name": "dcl",
                        "status": 0,
                        "username": "dcl@qq.com",
                        "uuid": "acnt_664f5b3cfe7841a89143817f27267066",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "why@jiagouyun.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "whyPAAS",
                        "status": 0,
                        "username": "why@jiagouyun.com",
                        "uuid": "acnt_dd1bb947d2ac4c96ad99be7aa86c0e43",
                        "wsAccountStatus": 0
                    }
                ],
                "relRoleInfos": [
                    {
                        "name": "gary-test-1016",
                        "status": 0,
                        "uuid": "role_a1e8215c25474f0bb3809f2d56749ed9"
                    },
                    {
                        "name": "快捷筛选自定义",
                        "status": 0,
                        "uuid": "role_aa49795a5a5a4753a2a6350ab57f9497"
                    }
                ],
                "roleUUIDs": [
                    "role_a1e8215c25474f0bb3809f2d56749ed9",
                    "role_aa49795a5a5a4753a2a6350ab57f9497"
                ],
                "sources": [
                    "a2727170_7b1a_11ef_9de6_855cb2bccffb"
                ],
                "sourcesWsInfo": {
                    "a2727170_7b1a_11ef_9de6_855cb2bccffb": {
                        "sourcesInfo": {
                            "name": "新的应用-hd",
                            "status": 0,
                            "type": "web"
                        },
                        "wsInfo": {
                            "name": "【Doris】开发测试一起用_",
                            "status": 0
                        }
                    }
                },
                "status": 0,
                "type": "rum",
                "updateAt": 1730532376,
                "updator": "wsak_cd83804176e24ac18a8a683260ab0746",
                "updatorInfo": {
                    "acntWsNickname": "",
                    "email": "wsak_cd83804176e24ac18a8a683260ab0746",
                    "iconUrl": "",
                    "mobile": "",
                    "name": "hd_test",
                    "status": 0,
                    "username": "hd_test",
                    "uuid": "wsak_cd83804176e24ac18a8a683260ab0746",
                    "wsAccountStatus": 0
                },
                "uuid": "lqrl_dfe6330883ef4311afae5d380e2294a1",
                "workspaceUUID": "wksp_4b57c7bab38e4a2d9630f675dc20015d"
            },
            {
                "conditions": "",
                "createAt": 1728440913,
                "creator": "acnt_decf86471e4e4210a333b9f49bdec3da",
                "creatorInfo": {
                    "acntWsNickname": "",
                    "email": "newadmin@qq.com",
                    "iconUrl": "",
                    "mobile": "16543443437",
                    "name": "newadmin-hd",
                    "status": 3,
                    "username": "newadmin-hd",
                    "uuid": "acnt_decf86471e4e4210a333b9f49bdec3da",
                    "wsAccountStatus": 3
                },
                "deleteAt": -1,
                "desc": "",
                "extend": {},
                "id": 296,
                "indexes": [],
                "logic": "and",
                "maskFields": "",
                "memberCount": 17,
                "name": "222",
                "reExprs": [],
                "relMemberInfos": [
                    {
                        "acntWsNickname": "",
                        "email": "dcl@qq.com",
                        "iconUrl": "http://static.cloudcare.cn:10561/icon/acnt_664f5b3cfe7841a89143817f27267066.png",
                        "mobile": "",
                        "name": "dcl",
                        "status": 0,
                        "username": "dcl@qq.com",
                        "uuid": "acnt_664f5b3cfe7841a89143817f27267066",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "b@mm.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "b",
                        "status": 0,
                        "username": "b",
                        "uuid": "acnt_cf4b33a8fcf245eb90a06e5fce576da6",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "xujiqiu@guance.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "xujiqiu",
                        "status": 0,
                        "username": "xujiqiu",
                        "uuid": "acnt_886fe1e816a3444bae1ddc3a53dfb0d3",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "test100@qq.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "test100",
                        "status": 0,
                        "username": "test100",
                        "uuid": "acnt_2bcb7e2e0bc4414fb0b65017b6fe2b6d",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "jd@qq.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "jd",
                        "status": 0,
                        "username": "jd",
                        "uuid": "acnt_29811573510242a8a91843dbb57721b6",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "gw77@qq.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "gw7",
                        "status": 0,
                        "username": "gw77@qq.com",
                        "uuid": "acnt_671f6b0bb58142efb9fd74450b584015",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "chaixinyi@guance.com",
                        "iconUrl": "",
                        "mobile": "13966421853",
                        "name": "chaii",
                        "status": 0,
                        "username": "Chloe",
                        "uuid": "acnt_7df07453091748b08f5ea2514f6a22f2",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "why@jiagouyun.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "whyPAAS",
                        "status": 0,
                        "username": "why@jiagouyun.com",
                        "uuid": "acnt_dd1bb947d2ac4c96ad99be7aa86c0e43",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "66@qq.com",
                        "iconUrl": "http://static.cloudcare.cn:10561/icon/acnt_e85847e7fe894ea9938dd29c22bc1f9b.png",
                        "mobile": "10345678901",
                        "name": "我是66吖",
                        "status": 0,
                        "username": "66",
                        "uuid": "acnt_e85847e7fe894ea9938dd29c22bc1f9b",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "yz03@qq.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "yz03@qq.com",
                        "status": 0,
                        "username": "yz03",
                        "uuid": "acnt_ab3b0f6304cf4bb687a49541f19be50d",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "二号标准用户",
                        "email": "testd_standB@qq.com",
                        "iconUrl": "",
                        "mobile": "16332254353",
                        "name": "standB",
                        "status": 0,
                        "username": "testd_standB@qq.com",
                        "uuid": "acnt_629cfa1ef372423b95a93ac15bb0e40b",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "一号标准用户",
                        "email": "testd_standA@qq.com",
                        "iconUrl": "",
                        "mobile": "15435364654",
                        "name": "standA",
                        "status": 0,
                        "username": "testd_standA@qq.com",
                        "uuid": "acnt_4f3302d7503546848266e5eb167fb6a3",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "liuyl@jiagouyun.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "liuyl@jiagouyun.com",
                        "status": 0,
                        "username": "18521300004",
                        "uuid": "acnt_a71564d3390f486dba9f7c1580b9e02a",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "jinlei940@guance.com",
                        "iconUrl": "",
                        "mobile": "17621725046",
                        "name": "金磊lll",
                        "status": 0,
                        "username": "金磊lll",
                        "uuid": "acnt_8b4bd2b8782646f3ba8f6554193f5997",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "lwc_local_test1@qq.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "lwc_local_test1",
                        "status": 0,
                        "username": "lwc_local_test1@qq.com",
                        "uuid": "acnt_3dfb55c16128420e8ca70756f7292b67",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "lwc_local_test2@qq.com",
                        "iconUrl": "",
                        "mobile": "",
                        "name": "lwc_local_test2",
                        "status": 0,
                        "username": "lwc_local_test2@qq.com",
                        "uuid": "acnt_e2b3368ceb074efe8c6d96cf49362629",
                        "wsAccountStatus": 0
                    },
                    {
                        "acntWsNickname": "",
                        "email": "jon.jinlei@gmail.com",
                        "iconUrl": "",
                        "mobile": "17621725789",
                        "name": "jon_jinlei",
                        "status": 0,
                        "username": "jon_jinlei",
                        "uuid": "acnt_6bfe3b8147364534a7c7ee0dc5294909",
                        "wsAccountStatus": 0
                    }
                ],
                "relRoleInfos": [
                    {
                        "name": "Standard",
                        "status": 0,
                        "uuid": "general"
                    }
                ],
                "roleUUIDs": [
                    "general"
                ],
                "sources": [
                    "a2727170_7b1a_11ef_9de6_855cb2bccffb"
                ],
                "sourcesWsInfo": {
                    "a2727170_7b1a_11ef_9de6_855cb2bccffb": {
                        "sourcesInfo": {
                            "name": "新的应用-hd",
                            "status": 0,
                            "type": "web"
                        },
                        "wsInfo": {
                            "name": "【Doris】开发测试一起用_",
                            "status": 0
                        }
                    }
                },
                "status": 2,
                "type": "rum",
                "updateAt": 1730084928,
                "updator": "acnt_57a717791e094f35966907d4cf80b45f",
                "updatorInfo": {
                    "acntWsNickname": "昵称昵称昵称昵称昵称昵称昵称昵称昵称昵称nicn昵称nic昵称昵称昵称昵称昵称昵称昵称昵称昵称昵称昵",
                    "email": "liuyl@guance.com",
                    "iconUrl": "http://static.cloudcare.cn:10561/icon/acnt_57a717791e094f35966907d4cf80b45f.png",
                    "mobile": "18511111112",
                    "name": "修改修改修改",
                    "status": 0,
                    "username": "liuyl@guance.com",
                    "uuid": "acnt_57a717791e094f35966907d4cf80b45f",
                    "wsAccountStatus": 0
                },
                "uuid": "lqrl_36199bc9fe8e4c9a982919584ed55dae",
                "workspaceUUID": "wksp_4b57c7bab38e4a2d9630f675dc20015d"
            }
        ],
        "declaration": {
            "asd": "aa,bb,cc,1,True",
            "asdasd": "dawdawd",
            "business": "aaa",
            "dd": "dd",
            "fawf": "afawf",
            "organization": "64fe7b4062f74d0007b46676"
        }
    },
    "errorCode": "",
    "message": "",
    "pageInfo": {
        "count": 2,
        "pageIndex": 1,
        "pageSize": 2,
        "totalCount": 13
    },
    "success": true,
    "traceId": "TRACE-2876D3FF-291D-48E9-A9B1-E79C4FFA90CC"
} 

文档评价

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