DLI ISO32 Object Model Reference
20241110T143134Z
Credentials
objectcred/
Security attributes of agent performing request

This object contains the following items:

nameClient username, if any
is_adminAdministrative user
outlet_accessOutlet access permissions
agentAgent identifier
ip_addressClient IP address, if any

Sample JS request write command:

request.put({url:"cred/",body:{"ip_address":"192.168.0.70","is_admin":true,"name":"admin","agent":"web ui","outlet_access":[true,true,true,true,true,true,true,true]}});

Sample curl read command:

curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/cred/"

{"ip_address":"192.168.0.40","is_admin":true,"name":"admin","agent":"web ui","outlet_access":[true,true,true,true,true,true,true,true]}

Browse more samples

Client username, if any

sum (optional string)cred/name/
Username of the client, as verified by the agent, if any

This sum does not support direct modification.

This sum can assume the following values:

constant nullUsername absent or unknownUsername could not be obtained
stringClient usernameUsername of the client, as verified by the agent

Sample requests read command:

print(requests.get('http://192.168.0.100/restapi/cred/name/',auth=auth,headers=headers).json())

'admin'

Sample CLI read command:

uom get "cred/name"

"admin"

Browse more samples

Administrative user

sum (boolean)cred/is_admin/
Flag indicating whether the user is an administrator

This sum does not support direct modification.

This sum can assume the following values:

constant trueAdministratorThe user is an administrator
constant falseRegular userThe user is a regular user

Sample uom library read command:

print(uom.dump(uom.cred.is_admin))

true

Sample JS request read command:

request.get({url:"cred/is_admin/"},function(error,response,body) {console.log(body)});

true

Browse more samples

Outlet access permissions

sum (variant)cred/outlet_access/
Access settings for outlets
dot_inline_dotgraph_792.png

The value is subject to the following constraints: any of the following is true:

This sum is composite, i.e. is modified as a whole.

This sum does not support direct modification.

This sum can assume the following values:

constant trueFullState of all outlets can be manipulated by the user
constant falseNoneOutlet states cannot be neither seen nor manipulated by the user
arrayOutlet access levelsAccess levels per outlet

Sample requests read command:

print(requests.get('http://192.168.0.100/restapi/cred/outlet_access/',auth=auth,headers=headers).json())

[True, True, True, True, True, True, True, True]

Sample curl read command:

curl --digest -u admin:1234 -H "Accept: application/json" "http://192.168.0.100/restapi/cred/outlet_access/"

[true,true,true,true,true,true,true,true]

Browse more samples

See also Outlet access permissions: Outlet access levels

Outlet access permissions: Outlet access levels

(possibly) arraycred/outlet_access/
Access levels per outlet

This array is a part of a composite value which is modified as a whole.

This array contains Outlet access elements.

Creating elements in this collection is not supported.

Browse more samples

Outlet access

sum (boolean)cred/outlet_access/N/
Access level for outlet by index
dot_inline_dotgraph_793.png

The value is subject to the following constraints: outlets[index of the value]

This sum is a part of a composite value which is modified as a whole.

This sum does not support direct modification.

This sum can assume the following values:

constant trueFullOutlet state can be manipulated by the user
constant falseNoneOutlet state cannot be neither seen nor manipulated by the user

Sample CLI read command (note that outlet_access_index is a variable):

uom get "cred/outlet_access/${outlet_access_index}"

true

Sample uom library read command (note that _outlet_access_index is a variable):

print(uom.dump(uom.cred.outlet_access[_outlet_access_index]))

true

Browse more samples

Agent identifier

stringcred/agent/
Identifier of the agent performing request

This string does not support direct modification.

Sample JS request read command:

request.get({url:"cred/agent/"},function(error,response,body) {console.log(body)});

"web ui"

Sample requests read command:

print(requests.get('http://192.168.0.100/restapi/cred/agent/',auth=auth,headers=headers).json())

'web ui'

Browse more samples

Client IP address, if any

sum (optional string)cred/ip_address/
IP address of the client performing request, if any

This sum does not support direct modification.

This sum can assume the following values:

constant nullClient IP address absent or unknownThe request is performed locally, or its origin is unknown
stringIPv4 addressIPv4 address in dotted quad notationthe value matches ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
stringIPv6 addressIPv6 address in colon notationthe value matches ^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$

Sample JS request read command:

request.get({url:"cred/ip_address/"},function(error,response,body) {console.log(body)});

"192.168.0.2"

Sample requests read command:

print(requests.get('http://192.168.0.100/restapi/cred/ip_address/',auth=auth,headers=headers).json())

'192.168.0.4'

Browse more samples