Add¶
POST /api/v1/wksp_share/add
Overview¶
Body Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
workspaceUUID | commaArray | Y | The authorized workspace ID Allow empty: False |
type | array | Y | Data type, ["*"] means all Example: ['metric', 'keyevent', 'network', 'rum', 'dialtest', 'billing', 'logging', 'tracing', 'object', 'custom_object', 'profiling', 'llm'] Allow empty: True |
indexes | array | Y | Index name, [""] means all Example: [''] Allow empty: False |
regionCode | string | The site code of the authorized workspace, default is the current site Allow empty: False Allow empty string: True |
Parameter Additional Notes¶
1. Request Parameter Description
Parameter | Description |
---|---|
regionCode | The authorized site code (can be obtained through the workspace/website/list interface), the site information for data access configuration, default authorizes the data of the current site |
workspaceUUID | The authorized workspace uuid |
type | Authorization type, ["*"] means all, optional types: ["metric","keyevent","network","rum","dialtest","billing","logging","tracing","object","custom_object","profiling","llm"] |
indexes | The authorized log index name |
Request Example¶
curl 'https://openapi.truewatch.com/api/v1/wksp_share/add' \
-H 'Content-Type: application/json' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"regionCode":"testing","workspaceUUID":"wksp_a810008c0e4e4e70ad9222c01f083287","type":["*"],"indexes":["*"]}' \
--compressed
Response¶
{
"code": 200,
"content": {
"authorizationCode": null,
"createAt": 1757572382,
"creator": "wsak_7e0689c908774efda1b345c20c5d23d7",
"declaration": {
"asd": "aa,bb,cc,1,True",
"asdasd": "dawdawd",
"business": "aaa",
"dd": "dd",
"fawf": "afawf",
"organization": "64fe7b4062f74d0007b46676"
},
"delayDeleteAt": -1,
"deleteAt": -1,
"id": 468,
"indexes": [
"*"
],
"name": "doris testing",
"regionCode": "testing",
"status": 0,
"toRegionCode": "testing",
"toWorkspaceName": "doris testing",
"toWorkspaceUUID": "wksp_a810008c0e4e4e70ad9222c01f083287",
"type": [
"*"
],
"updateAt": -1,
"updator": "",
"uuid": "grant_2ee1f355abf84a038f4aacb9319fd747",
"workspaceName": "testing workspace",
"workspaceUUID": "wksp_4b57c7bab38e4a2d9630f675dc20015d"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-AF6A234D-7804-4A1C-BC38-7861088BA6B5"
}