Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ include::partial$examples/allow-read-complete-api.json[]
include::partial$examples/allow-read-list-semanticids.json[]
----

== Allow READ access for Anonymous to submodels only if machine not-running

[source,json,linenums]
----
include::partial$examples/allow-read-list-semanticids-machinestate.json[]
----

== Allow READ and UPDATE for specific authenticated users

[source,json,linenums]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ include::partial$examples/allow-read-complete-api.bnf[]
include::partial$examples/allow-read-list-semanticids.bnf[]
----

== Allow READ access for Anonymous to submodels only if machine not-running

[source,bnf,linenums]
----
include::partial$examples/allow-read-list-semanticids-machinestate.bnf[]
----

== Allow READ and UPDATE for specific authenticated users

[source,bnf,linenums]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ACCESSRULE:

Check warning on line 1 in documentation/IDTA-01004/modules/ROOT/partials/examples/allow-read-list-semanticids-machinestate.bnf

View workflow job for this annotation

GitHub Actions / qodana

Typo

Typo: In word 'ACCESSRULE'

Check warning

Code scanning / QDJVMC

Typo Warning documentation

Typo: In word 'ACCESSRULE'
ATTRIBUTES:
GLOBAL(ANONYMOUS)
RIGHTS: READ
ACCESS: ALLOW
OBJECTS:
ROUTE "*"
FORMULA:
$and(
REFERENCE($sme("SubmodelID-OperationalData").machineState#value) $eq "not-running",
$or(
$sm#semanticId $eq "SemanticID-Nameplate",
$sm#semanticId $eq "SemanticID-TechnicalData"
)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"AllAccessPermissionRules": {
"rules": [
{
"ACL": {
"ATTRIBUTES": [
{
"GLOBAL": "ANONYMOUS"
}
],
"RIGHTS": [
"READ"
],
"ACCESS": "ALLOW"
},
"OBJECTS": [
{
"ROUTE": "*"
}
],
"FORMULA": {
"$and": [
{
"$eq": [
{
"REFERENCE": {
"$sme(\"SubmodelID-OperationalData\").machineState#value"
}
},
{
"$strVal": "not-running"
}
]
},
{
"$or": [
{
"$eq": [
{
"$field": "$sm#semanticId"
},
{
"$strVal": "SemanticID-Nameplate"
}
]
},
{
"$eq": [
{
"$field": "$sm#semanticId"
},
{
"$strVal": "SemanticID-TechnicalData"
}
]
}
]
}
]
}
}
]
}
}
Loading