Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Anchor
_Toc341972434
_Toc341972434
/policy/search


Wiki Markup
+Examples:+
Method:/policy/search
Parameters: 
\{
 "match":
\[
 \["includeInherited", "=", false\],
\["category.name", "=", "staticpass"\]
\],
 "return":\["name", "id", "holder.id"\],
 "sort":"id",
 "order":"asc",
 "max": 20,
 "offset": 10
\}
Response: 
\{
 "error":0,
"result":
\[
 \{
  "id":"1",
  "name":"default password policy",
"holder.id":3
\},
 \{
...
\}
\]
\}


Anchor
_Toc341972435
_Toc341972435
/policy/get


Wiki Markup
Method:/policy/get
Parameters: 
\{
 "match":
\[
 \["id", "=", 2\],
\],
 "return":\["category","name", "id", "domains.id", "options"\],
\}
Response: 
\{
 "error":0,
"result":
\{
 "id":"1",
 "name":"default password policy",
"domains.id":\[2,3\],
 "category":"staticpass",
"options":
\[
"minlen":6,
"lefetime":0,
"history":10,
"characters":"N",
"characters":"S"
\]
\}
\}


Anchor
_Toc341972436
_Toc341972436
/policy/set

...