跳转至

获取角色



GET /api/v1/role/{role_uuid}/get

概述

获取角色

路由参数

参数名 类型 必选 说明
role_uuid string Y 角色UUID

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/role/role_xxxx32/get' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

响应

{
    "code": 200,
    "content": {
        "createAt": 1677140944,
        "creator": "acnt_xxxx32",
        "creatorInfo": {
            "acntWsNickname": "",
            "email": "lwc@qq.com",
            "iconUrl": "",
            "name": "lwc@qq.com",
            "username": "lwc@qq.com"
        },
        "deleteAt": -1,
        "desc": "",
        "id": 92,
        "isSystem": 0,
        "name": "付费计划与账单",
        "permissions": [
            "billing.billingRead",
            "routine.defaultAccess",
            "metric.Query",
            "log.Query",
            "infrastructure.Query",
            "event.Query",
            "trace.Query",
            "rum.Query",
            "security.Query",
            "anomaly.issueManage",
            "anomaly.issueReplyRead",
            "anomaly.issueRead",
            "anomaly.issueReplyManage",
            "snapshot.create",
            "snapshot.delete",
            "dataScanner.cfgManage",
            "scene.serviceManage",
            "label.labelCfgManage",
            "anomaly.issueLevelManage"
        ],
        "status": 0,
        "updateAt": 1677140944,
        "updator": "acnt_xxxx32",
        "updatorInfo": {
            "acntWsNickname": "",
            "email": "lwc@qq.com",
            "iconUrl": "",
            "name": "lwc@qq.com",
            "username": "lwc@qq.com"
        },
        "uuid": "role_xxxx32",
        "workspaceUUID": "wksp_xxxx32"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-BC3B2F08-DEC1-4EDA-9958-4391F976A981"
} 

文档评价

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