example-data.json 3.04 KB
Newer Older
1
{
2 3 4 5 6 7 8 9 10 11 12 13 14
    "ietf-netconf-acm:nacm":{
        "enable-nacm":true,
        "read-default":"permit",
        "write-default":"deny",
        "exec-default":"deny",
        "groups":{
            "group":[
                {
                    "name":"admin",
                    "user-name":[
                        "alois@mail.cz"
                    ]
                }
15
            ]
16 17
        },
        "rule-list":[
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
                "name":"admin-acl",
                "group":[
                    "admin"
                ],
                "rule":[
                    {
                        "name":"permit-zone-config-access",
                        "path":"/dns-server:dns-server/zones",
                        "access-operations":"create update delete",
                        "comment":"Users can write zone configuration",
                        "action":"permit"
                    },
                    {
                        "name":"permit-server-config-access",
                        "path":"/dns-server:dns-server/server-options",
                        "access-operations":"create update delete",
                        "comment":"Users can write some server options.",
                        "action":"permit"
                    },
                    {
                        "name":"permit-zone-data-access",
                        "path":"/dns-zones:zone-data",
                        "access-operations":"create update delete",
                        "comment":"Users can edit zone data.",
                        "action":"permit"
                    },
                    {
                        "name":"deny-something",
                        "path":"/dns-server:dns-server/zones/zone[domain='example.com.']/file",
                        "access-operations":"*",
                        "comment":"Users can not read this.",
                        "action":"deny"
                    }
                ]
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
    },
    "example-jukebox:jukebox":{
        "library":{
            "artist":[
                {
                    "name":"Foo Fighters",
                    "album":[
                        {
                            "name":"Wasting Light",
                            "genre":"example-jukebox:alternative",
                            "year":2011,
                            "song":[
                                {
                                    "name":"Wasting Light",
                                    "location":"/media/foo/a7/wasting-light.mp3",
                                    "format":"MP3",
                                    "length":286
                                },
                                {
                                    "name":"Rope",
                                    "location":"/media/foo/a7/rope.mp3",
                                    "format":"MP3",
                                    "length":259
                                }
                            ]
                        }
                    ]
82 83
                }
            ]
84 85
        }
    }
86
}