跳转至

获取



GET /api/v1/wksp_share/{wksp_share_uuid}/get

概述

路由参数

参数名 类型 必选 说明
wksp_share_uuid string Y 数据授权的 uuid

参数补充说明

1. 响应参数说明

参数名 说明
type 授权类型,["*"]表示全部,可选类型: ["metric","keyevent","network","rum","dialtest","billing","logging","tracing","object","custom_object","profiling","llm"]
indexes 授权的日志索引名
regionCode 授权站点 code
regionName 授权站点名
workspaceUUID 授权空间 uuid
workspaceName 授权空间名
toRegionCode 被授权站点 code
toRegionName 被授权站点名
toWorkspaceUUID 被授权空间 uuid
toWorkspaceName 被授权空间名

请求例子

curl 'https://openapi.guance.com/api/v1/wksp_share/<wksp_share_uuid>/get' \
-H 'Content-Type: application/json' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

响应

{
    "code": 200,
    "content": {
        "createAt": 1748239945,
        "creator": "acnt_06d1380440d54f2d845cb1dd3c896e45",
        "creatorInfo": {
            "acntWsNickname": "wayne",
            "email": "xxx@guance.com",
            "iconUrl": "",
            "mobile": "15221535988",
            "name": "huangzhijie",
            "status": 0,
            "username": "xxx@guance.com",
            "uuid": "acnt_06d1380440d54f2d845cb1dd3c896e45",
            "wsAccountStatus": 0
        },
        "declaration": {
            "asd": "aa,bb,cc,1,True",
            "asdasd": "dawdawd",
            "business": "aaa",
            "dd": "dd",
            "fawf": "afawf",
            "organization": "64fe7b4062f74d0007b46676"
        },
        "delayDeleteAt": -1,
        "deleteAt": -1,
        "id": 432,
        "indexes": [],
        "regionCode": "testing",
        "regionName": "testing-guance",
        "status": 0,
        "toRegionCode": "testing",
        "toRegionName": "testing-guance",
        "toWorkspaceName": "Wayne",
        "toWorkspaceUUID": "wksp_dc1b82a836ba4f71a4c136c99f119a11",
        "type": [
            "object"
        ],
        "updateAt": -1,
        "updator": "",
        "updatorInfo": {},
        "uuid": "grant_991621bf749c484a90261eeb7468f18e",
        "workspaceName": "testing workspace",
        "workspaceUUID": "wksp_4b57c7bab38e4a2d9630f675dc20015d"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-7082B028-6C30-44D5-B7D1-7B749B780FDF"
} 

文档评价

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