変更¶
POST /api/v1/blacklist/{blist_uuid}/modify
概要¶
ブラックリストを変更します。
ルートパラメータ¶
| パラメータ名 | 型 | 必須 | 説明 |
|---|---|---|---|
| blist_uuid | string | Y | ブラックリストルールの UUID 空を許可: False |
Body リクエストパラメータ¶
| パラメータ名 | 型 | 必須 | 説明 |
|---|---|---|---|
| name | string | Y | 名前(2024-11-27 リリースで追加) 空を許可: False 空文字列を許可: False 最大長: 50 |
| desc | string | 説明(2024-11-27 リリースで追加) 例: 説明1 空を許可: False 空文字列を許可: True 最大長: 256 |
|
| type | string | Y | ブラックリストタイプ。列挙値のタイプ: ('object', 'custom_object', 'logging', 'keyevent', 'tracing', 'rum', 'network', 'security', 'profiling', 'metric') 空を許可: False |
| source | string | データソース。すべてのソースの場合、source は re(.*) となります。空を許可: True 空文字列を許可: False 最大長: 128 |
|
| sources | array | データソース。複数ソースの場合はこのフィールドを使用します。すべてのソースでない場合(すべてのソースの場合は source フィールドに re(.*) を使用)空を許可: True |
|
| filters | array | フィルター条件 空を許可: True |
パラメータ補足説明¶
リクエスト例¶
curl 'https://openapi.guance.com/api/v1/blacklist/blist_xxxx32/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name":"Rule1","desc":"","type":"logging","source":"kodo-log","filters":[{"name":"hostname","value":["127.0.0.1"],"operation":"in","condition":"and"}]}' \
--compressed
レスポンス¶
{
"code": 200,
"content": {
"conditions": "{ source = 'kodo-log' and ( hostname in [ '127.0.0.1' ] )}",
"createAt": 1677653414,
"creator": "acnt_xxxx32",
"deleteAt": -1,
"desc": "",
"filters": [
{
"condition": "and",
"name": "hostname",
"operation": "in",
"value": [
"127.0.0.1"
]
}
],
"id": 24,
"name": "Rule1",
"source": "kodo-log",
"status": 0,
"type": "logging",
"updateAt": 1678029845.282458,
"updator": "xxxx",
"uuid": "blist_xxxx32",
"workspaceUUID": "wksp_xxxx32"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-BC365EB4-B4BA-4194-B0BB-B1AC8FA29804"
}