Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $TOKEN" 'http://kapua.solidsense.tk:8081/v1/fjf_5cVAh0s/users/ZSNnttc46kg' | json_pp
- {
- "status" : "ENABLED",
- "optlock" : 1,
- "name" : "kost",
- "modifiedOn" : "2019-06-05T13:39:09.832Z",
- "email" : "kosta@mainflux.com",
- "userType" : "EXTERNAL",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "modifiedBy" : "AQ",
- "type" : "user",
- "createdOn" : "2019-06-05T13:39:09.832Z",
- "id" : "ZSNnttc46kg",
- "externalId" : "kosta@mainflux.com"
- }
- curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $TOKEN" 'http://kapua.solidsense.tk:8081/v1/fjf_5cVAh0s/accessinfos/JsrMl0eKhrw' | json_pp
- {
- "type" : "accessInfo",
- "modifiedOn" : "2019-06-05T13:39:09.851Z",
- "createdBy" : "AQ",
- "userId" : "ZSNnttc46kg",
- "optlock" : 1,
- "id" : "JsrMl0eKhrw",
- "scopeId" : "fjf_5cVAh0s",
- "createdOn" : "2019-06-05T13:39:09.851Z",
- "modifiedBy" : "AQ"
- }
- --------------
- curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $TOKEN" 'http://kapua.solidsense.tk:8081/v1/fjf_5cVAh0s/accessinfos/JsrMl0eKhrw/permissions'
- {
- "limitExceeded" : false,
- "type" : "accessPermissionListResult",
- "items" : [
- {
- "createdOn" : "2019-06-05T13:39:09.853Z",
- "id" : "CZ7CSHM-64U",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "forwardable" : false,
- "domain" : "domain",
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "read"
- }
- },
- {
- "id" : "GMguCuyZE4I",
- "createdOn" : "2019-06-05T13:39:09.855Z",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "permission" : {
- "domain" : "device_management",
- "forwardable" : false,
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "execute"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw"
- },
- {
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "createdOn" : "2019-06-05T13:39:09.857Z",
- "id" : "Z5xwgNVDGz0",
- "permission" : {
- "forwardable" : false,
- "domain" : "credential",
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "read"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw"
- },
- {
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "createdOn" : "2019-06-05T13:39:09.859Z",
- "id" : "MbGEOYO_lfY",
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "forwardable" : false,
- "domain" : "datastore",
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "write"
- }
- },
- {
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "id" : "LKPtYtbFNI4",
- "createdOn" : "2019-06-05T13:39:09.860Z",
- "permission" : {
- "action" : "delete",
- "targetScopeId" : "fjf_5cVAh0s",
- "forwardable" : false,
- "domain" : "device"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw"
- },
- {
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "id" : "d9vZj2w08Ho",
- "createdOn" : "2019-06-05T13:39:09.862Z",
- "permission" : {
- "domain" : "device",
- "forwardable" : false,
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "read"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw"
- },
- {
- "permission" : {
- "action" : "write",
- "targetScopeId" : "fjf_5cVAh0s",
- "forwardable" : false,
- "domain" : "device_event"
- },
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "id" : "A4VXO5j24D8",
- "createdOn" : "2019-06-05T13:39:09.864Z",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ"
- },
- {
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "permission" : {
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "write",
- "forwardable" : false,
- "domain" : "device_connection"
- },
- "createdOn" : "2019-06-05T13:39:09.866Z",
- "id" : "N4tYQg3osVk",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s"
- },
- {
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "write",
- "domain" : "group",
- "forwardable" : false
- },
- "id" : "cnxJhFEd2r0",
- "createdOn" : "2019-06-05T13:39:09.868Z",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s"
- },
- {
- "permission" : {
- "domain" : "role",
- "forwardable" : false,
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "read"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "createdOn" : "2019-06-05T13:39:09.870Z",
- "id" : "GrzLgOrL1BI",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ"
- },
- {
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "forwardable" : false,
- "domain" : "group",
- "action" : "read",
- "targetScopeId" : "fjf_5cVAh0s"
- },
- "id" : "H7Lkk2D4RkE",
- "createdOn" : "2019-06-05T13:39:09.872Z",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s"
- },
- {
- "id" : "X3sClhCAgJ4",
- "createdOn" : "2019-06-05T13:39:09.873Z",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "permission" : {
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "delete",
- "domain" : "datastore",
- "forwardable" : false
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw"
- },
- {
- "createdOn" : "2019-06-05T13:39:09.875Z",
- "id" : "eG6-2paZmyY",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "forwardable" : false,
- "domain" : "account",
- "action" : "write",
- "targetScopeId" : "fjf_5cVAh0s"
- }
- },
- {
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "id" : "RSGNUyrHM30",
- "createdOn" : "2019-06-05T13:39:09.877Z",
- "permission" : {
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "delete",
- "domain" : "device_event",
- "forwardable" : false
- },
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission"
- },
- {
- "permission" : {
- "forwardable" : false,
- "domain" : "role",
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "write"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "createdOn" : "2019-06-05T13:39:09.879Z",
- "id" : "MCMB6qqml3o"
- },
- {
- "id" : "Ewj_hb3D2Sc",
- "createdOn" : "2019-06-05T13:39:09.881Z",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "domain" : "account",
- "forwardable" : false,
- "action" : "read",
- "targetScopeId" : "fjf_5cVAh0s"
- }
- },
- {
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "id" : "O2G2pgosfJM",
- "createdOn" : "2019-06-05T13:39:09.883Z",
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "forwardable" : false,
- "domain" : "credential",
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "write"
- }
- },
- {
- "createdOn" : "2019-06-05T13:39:09.885Z",
- "id" : "RHzalLdZLeI",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "permission" : {
- "domain" : "device_connection",
- "forwardable" : false,
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "read"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw"
- },
- {
- "permission" : {
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "delete",
- "forwardable" : false,
- "domain" : "account"
- },
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "createdOn" : "2019-06-05T13:39:09.887Z",
- "id" : "B79rEMPOY8I"
- },
- {
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "id" : "N262ru905l8",
- "createdOn" : "2019-06-05T13:39:09.889Z",
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "domain" : "role",
- "forwardable" : false,
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "delete"
- }
- },
- {
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "createdOn" : "2019-06-05T13:39:09.891Z",
- "id" : "MseP75KKcc4",
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "write",
- "forwardable" : false,
- "domain" : "domain"
- }
- },
- {
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "permission" : {
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "read",
- "domain" : "device_management",
- "forwardable" : false
- },
- "createdOn" : "2019-06-05T13:39:09.892Z",
- "id" : "do-kVp2czH4",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s"
- },
- {
- "createdOn" : "2019-06-05T13:39:09.894Z",
- "id" : "cJD0YjyM2Do",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "permission" : {
- "action" : "write",
- "targetScopeId" : "fjf_5cVAh0s",
- "forwardable" : false,
- "domain" : "device_management"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw"
- },
- {
- "permission" : {
- "action" : "read",
- "targetScopeId" : "fjf_5cVAh0s",
- "forwardable" : false,
- "domain" : "user"
- },
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "createdOn" : "2019-06-05T13:39:09.895Z",
- "id" : "EveUeMlDxyc"
- },
- {
- "permission" : {
- "forwardable" : false,
- "domain" : "credential",
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "delete"
- },
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "createdOn" : "2019-06-05T13:39:09.896Z",
- "id" : "FAzw5Bhcz2E",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ"
- },
- {
- "permission" : {
- "forwardable" : false,
- "domain" : "user",
- "action" : "write",
- "targetScopeId" : "fjf_5cVAh0s"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "createdOn" : "2019-06-05T13:39:09.898Z",
- "id" : "ClbTmx7RWOs",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ"
- },
- {
- "id" : "RWMGmJM8t2A",
- "createdOn" : "2019-06-05T13:39:09.899Z",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "permission" : {
- "forwardable" : false,
- "domain" : "device",
- "action" : "write",
- "targetScopeId" : "fjf_5cVAh0s"
- }
- },
- {
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "createdOn" : "2019-06-05T13:39:09.901Z",
- "id" : "VnKGUHegqog",
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "permission" : {
- "domain" : "device_event",
- "forwardable" : false,
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "read"
- }
- },
- {
- "permission" : {
- "domain" : "datastore",
- "forwardable" : false,
- "action" : "read",
- "targetScopeId" : "fjf_5cVAh0s"
- },
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "id" : "M3q5Ao0nAPQ",
- "createdOn" : "2019-06-05T13:39:09.902Z"
- },
- {
- "permission" : {
- "domain" : "device_connection",
- "forwardable" : false,
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "delete"
- },
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "createdOn" : "2019-06-05T13:39:09.904Z",
- "id" : "PrnW22jUEuo",
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ"
- },
- {
- "scopeId" : "fjf_5cVAh0s",
- "createdBy" : "AQ",
- "createdOn" : "2019-06-05T13:39:09.909Z",
- "id" : "Ofgv4eb54sQ",
- "permission" : {
- "domain" : "access_info",
- "forwardable" : false,
- "action" : "read",
- "targetScopeId" : "fjf_5cVAh0s"
- },
- "accessInfoId" : "JsrMl0eKhrw",
- "type" : "accessPermission"
- },
- {
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "createdOn" : "2019-06-05T13:39:09.911Z",
- "id" : "QzBtA8l7b-U",
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "permission" : {
- "forwardable" : false,
- "domain" : "group",
- "targetScopeId" : "fjf_5cVAh0s",
- "action" : "delete"
- }
- },
- {
- "id" : "NNYtdQb3xXE",
- "createdOn" : "2019-06-05T13:39:09.913Z",
- "createdBy" : "AQ",
- "scopeId" : "fjf_5cVAh0s",
- "type" : "accessPermission",
- "accessInfoId" : "JsrMl0eKhrw",
- "permission" : {
- "action" : "write",
- "targetScopeId" : "fjf_5cVAh0s",
- "domain" : "access_info",
- "forwardable" : false
- }
- }
- ],
- "size" : 33
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement