resource: Sync CBOR files for examples
[iotivity.git] / resource / examples / oic_svr_db_server.json
1 {
2     "acl": {
3         "aclist": {
4             "aces": [
5                 {
6                     "subjectuuid": "*",
7                     "resources": [
8                         {
9                             "href": "/oic/res",
10                             "rel": "",
11                             "rt": ["oic.wk.res"],
12                             "if": ["oic.if.ll"]
13                         },
14                         {
15                             "href": "/oic/d",
16                             "rel": "",
17                             "rt": ["oic.wk.d"],
18                             "if": ["oic.if.baseline", "oic.if.r"]
19                         },
20                         {
21                             "href": "/oic/p",
22                             "rel": "",
23                             "rt": ["oic.wk.p"],
24                             "if": ["oic.if.baseline", "oic.if.r"]
25                         },
26                         {
27                             "href": "/oic/sec/acl",
28                             "rel": "",
29                             "rt": ["oic.r.acl"],
30                             "if": ["oic.if.baseline"]
31                         }
32                     ],
33                     "permission": 2
34                 },
35                 {
36                     "subjectuuid": "*",
37                     "resources": [
38                         {
39                             "href": "/oic/sec/doxm",
40                             "rel": "",
41                             "rt": ["oic.r.doxm"],
42                             "if": ["oic.if.baseline"]
43                         },
44                         {
45                             "href": "/oic/sec/pstat",
46                             "rel": "",
47                             "rt": ["oic.r.pstat"],
48                             "if": ["oic.if.baseline"]
49                         }
50                     ],
51                     "permission": 2
52                 },
53                 {
54                     "subjectuuid": "*",
55                     "resources": [
56                         {
57                             "href": "/a/light",
58                             "rel": "",
59                             "rt": ["oic.core"],
60                             "if": ["oic.if.baseline"]
61                         }
62                     ],
63                     "permission": 7
64                 }
65             ]
66         },
67         "rowneruuid" : "31313131-3131-3131-3131-313131313131"
68     },
69     "pstat": {
70         "dos": {"s": 3, "p": false},
71         "isop": true,
72         "deviceuuid": "31313131-3131-3131-3131-313131313131",
73         "rowneruuid": "31313131-3131-3131-3131-313131313131",
74         "cm": 0,
75         "tm": 0,
76         "om": 4,
77         "sm": 4
78         },
79     "doxm": {
80         "oxms": [0],
81         "oxmsel": 0,
82         "sct": 1,
83         "owned": true,
84         "deviceuuid": "31313131-3131-3131-3131-313131313131",
85         "devowneruuid": "32323232-3232-3232-3232-323232323232",
86         "rowneruuid": "31313131-3131-3131-3131-313131313131"
87     },
88     "cred": {
89         "creds": [
90             {
91                 "credid": 1,
92                 "subjectuuid": "32323232-3232-3232-3232-323232323232",
93                 "credtype": 1,
94                 "privatedata": {
95                     "data": "AAAAAAAAAAAAAAAA",
96                     "encoding": "oic.sec.encoding.raw"
97                 }
98             }
99         ],
100         "rowneruuid": "31313131-3131-3131-3131-313131313131"
101     }
102 }