민감 데이터 마스킹 테스트¶
POST /api/v1/workspace/sensitive_mask_rule/test
개요¶
워크스페이스 민감 데이터 마스킹 규칙 테스트
Body 요청 파라미터¶
| 파라미터명 | 유형 | 필수 | 설명 |
|---|---|---|---|
| roleUUIDs | array | Y | 계정에 해당하는 역할 빈 값 허용: False 예시: ['general', 'role_43f57c813b034c4b806a1a647b4ee387'] |
| namespace | string | Y | 마스킹 유형 빈 값 허용: False 빈 문자열 허용: False 예시: logging 선택 가능한 값: ['logging', 'metric', 'object', 'custom_object', 'keyevent', 'tracing', 'rum', 'security', 'network', 'profiling', 'billing'] |
| data | array | Y | 데이터 빈 값 허용: False 예시: [{'host': 'hangzhou_127', 'message': 'xxxL, id: 234887209348'}, {'host': 'xihu', 'message': 'xxxL, id: 234234234'}] |
파라미터 추가 설명¶
요청 예시¶
curl 'https://openapi.guance.com/api/v1/workspace/sensitive_mask_rule/test' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"namespace":"logging","roleUUIDs":["readOnly"],"data":[{"host":"jinlei","message":"sakldfu93w4urfjsndf / GET"},{"host":"hangzhou1234","message":"tokenUUID: 9083hsdf"}]}' \
--compressed
응답¶
{
"code": 200,
"content": [
{
"declaration": {
"asd": "aa,bb,cc,1,True",
"asdasd": "dawdawd",
"business": "aaa",
"dd": "dd",
"fawf": "afawf",
"organization": "64fe7b4062f74d0007b46676"
},
"host": "jinlei",
"message": "sakldfu93w4urfjsndf / GET"
},
{
"declaration": {
"asd": "aa,bb,cc,1,True",
"asdasd": "dawdawd",
"business": "aaa",
"dd": "dd",
"fawf": "afawf",
"organization": "64fe7b4062f74d0007b46676"
},
"host": "******",
"message": "tokenUUID: ***"
}
],
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-D402A9AC-2B08-4F14-A034-8DDBBBF20546"
}