콘텐츠로 이동

목록



GET /api/v1/wksp_share/list

개요

Query 요청 파라미터

파라미터명 유형 필수 설명
type string 유형, grant: 부여 목록; granted: 부여받은 목록
빈 값 허용: False
namespace commaArray 해당 namespace 조회 권한이 있는 워크스페이스 필터링, 선택 가능 필드: ["metric","keyevent","network","rum","dialtest","billing","logging","tracing","object","custom_object","profiling","llm","agent_monitor"]
빈 값 허용: False
regionCode string 사이트 필터, 조회 가능한 워크스페이스 필터링
빈 값 허용: False
toRegionCode string 사이트 필터, 권한을 부여할 워크스페이스 필터링
빈 값 허용: False
filterWsUUIDs commaArray 워크스페이스 UUID, 여러 워크스페이스는 쉼표(,)로 구분
빈 값 허용: False
search string 필드 이름 검색
빈 값 허용: False
pageIndex integer 페이지 번호
빈 값 허용: False
예시: 10
$minValue: 1
pageSize integer 페이지당 반환 개수
빈 값 허용: False
예시: 10
$minValue: 1
$maxValue: 100

파라미터 추가 설명

1. 응답 파라미터 설명

파라미터명 설명
type 권한 유형, ["*"]는 전체를 의미, 선택 가능 유형: ["metric","keyevent","network","rum","dialtest","billing","logging","tracing","object","custom_object","profiling","llm","agent_monitor"]
indexes 권한이 부여된 로그 인덱스 이름
regionCode 권한이 부여된 사이트 code
regionName 권한이 부여된 사이트 이름
workspaceUUID 권한을 부여한 워크스페이스 uuid
workspaceName 권한을 부여한 워크스페이스 이름
toRegionCode 권한을 부여받은 사이트 code
toRegionName 권한을 부여받은 사이트 이름
toWorkspaceUUID 권한을 부여받은 워크스페이스 uuid
toWorkspaceName 권한을 부여받은 워크스페이스 이름

요청 예시

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

응답

{
    "code": 200,
    "content": {
        "data": [
            {
                "createAt": 1754361156,
                "creator": "acnt_8775d346f997436c8918e9a5c8a3dffc",
                "creatorInfo": {
                    "acntWsNickname": "feifei",
                    "email": "xxx@guance.com",
                    "iconUrl": "",
                    "mobile": "",
                    "name": "gtf",
                    "status": 0,
                    "username": "xxx@guance.com",
                    "uuid": "acnt_8775d346f997436c8918e9a5c8a3dffc",
                    "wsAccountStatus": 0
                },
                "delayDeleteAt": -1,
                "deleteAt": -1,
                "id": 457,
                "indexes": [
                    "default"
                ],
                "regionCode": "testing",
                "regionName": "testing-guance",
                "status": 0,
                "toRegionCode": "testing",
                "toRegionName": "testing-guance",
                "toWorkspaceName": "gary-test-006",
                "toWorkspaceUUID": "wksp_99dfb8e18426433f8b6529bd0f87f668",
                "type": [
                    "*"
                ],
                "updateAt": -1,
                "updator": "",
                "updatorInfo": {},
                "uuid": "grant_6b96bcda20a4423190237a6808000cd2",
                "workspaceName": "testing workspace ",
                "workspaceUUID": "wksp_4b57c7bab38e4a2d9630f675dc20015d"
            },
            {
                "createAt": 1750303597,
                "creator": "acnt_349ee5f70a89442fa94b4f754b5acbfe",
                "creatorInfo": {
                    "acntWsNickname": "",
                    "email": "xxx@guance.com",
                    "iconUrl": "http://static.cloudcare.cn:10561/icon/acnt_349ee5f70a89442fa94b4f754b5acbfe.png",
                    "mobile": "12343543422",
                    "name": "88 testing",
                    "status": 0,
                    "username": "xxx@guance.com",
                    "uuid": "acnt_349ee5f70a89442fa94b4f754b5acbfe",
                    "wsAccountStatus": 0
                },
                "delayDeleteAt": -1,
                "deleteAt": -1,
                "id": 448,
                "indexes": [
                    "default",
                    "*",
                    "jindds"
                ],
                "regionCode": "testing",
                "regionName": "testing-guance",
                "status": 0,
                "toRegionCode": "testing",
                "toRegionName": "testing-guance",
                "toWorkspaceName": "Hd_test_saas02",
                "toWorkspaceUUID": "wksp_1776556484b7412db06d6c428d3aaa6e",
                "type": [
                    "network",
                    "object",
                    "dialtest",
                    "billing",
                    "logging",
                    "tracing",
                    "metric",
                    "rum",
                    "keyevent",
                    "custom_object",
                    "security",
                    "profiling"
                ],
                "updateAt": -1,
                "updator": "",
                "updatorInfo": {},
                "uuid": "grant_b7bddd877017408d9a57c4da43f938ff",
                "workspaceName": "testing workspace",
                "workspaceUUID": "wksp_4b57c7bab38e4a2d9630f675dc20015d"
            }
        ],
        "declaration": {
            "asd": "aa,bb,cc,1,True",
            "asdasd": "dawdawd",
            "business": "aaa",
            "dd": "dd",
            "fawf": "afawf",
            "organization": "64fe7b4062f74d0007b46676"
        }
    },
    "errorCode": "",
    "message": "",
    "pageInfo": {
        "count": 16,
        "pageIndex": 1,
        "pageSize": 20,
        "totalCount": 16
    },
    "success": true,
    "traceId": "TRACE-4A7BB095-CDDE-435E-B427-BE9938540EDE"
}

문서 평가

이 페이지가 도움이 되었나요?