summaryrefslogtreecommitdiff
path: root/src/commands/acl-log.json
blob: de5f029e4757eb8ef6299b57bc724ed944fa6a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
    "LOG": {
        "summary": "Lists recent security events generated due to ACL rules.",
        "complexity": "O(N) with N being the number of entries shown.",
        "group": "server",
        "since": "6.0.0",
        "arity": -2,
        "container": "ACL",
        "function": "aclCommand",
        "history": [
            [
                "7.2.0",
                "Added entry ID, timestamp created, and timestamp last updated."
            ]
        ],
        "command_flags": [
            "ADMIN",
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "reply_schema": {
            "oneOf": [
                {
                    "description": "In case `RESET` was not given, a list of recent ACL security events.",
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                            "count": {
                                "type": "integer"
                            },
                            "reason": {
                                "type": "string"
                            },
                            "context": {
                                "type": "string"
                            },
                            "object": {
                                "type": "string"
                            },
                            "username": {
                                "type": "string"
                            },
                            "age-seconds": {
                                "type": "number"
                            },
                            "client-info": {
                                "type": "string"
                            },
                            "entry-id": {
                                "type": "integer"
                            },
                            "timestamp-created": {
                                "type": "integer"
                            },
                            "timestamp-last-updated": {
                                "type": "integer"
                            }
                        }
                    }
                },
                {
                    "const": "OK",
                    "description": "In case `RESET` was given, OK indicates ACL log was cleared."
                }
            ]
        },
        "arguments": [
            {
                "name": "operation",
                "type": "oneof",
                "optional": true,
                "arguments": [
                    {
                        "name": "count",
                        "type": "integer"
                    },
                    {
                        "name": "reset",
                        "type": "pure-token",
                        "token": "RESET"
                    }
                ]
            }
        ]
    }
}