Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2603

The CLI should be capable of updating/adding/removing indivisual items in a list

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 8.0.0.Beta1
    • CLI
    • None
    • WildFly current build

      Here is an example using a security domain. The issue is of course valid for all locations where a list of objects is expected.

      (for brevity, I only list a couple of options)

      /subsystem=security/security-domain=LdapRealm:add(cache-type=default)
      /subsystem=security/security-domain=LdapRealm/authentication=classic:add(login-modules=[{"code" => "LdapExtended", "flag" => "required", "module-options" => {"java.naming.provider.url" => "ldap://server.redhat.com:389/", "roleRecursion" => "0" }}])

      There is currently no way to change a single option in that list. You can only remove the attribute "module-options" completely and re-add it.

      We need something like:

      /subsystem=security/security-domain=LdapRealm/authentication=classic/login-module=LdapExtended:write-list-attribute(name=module-options,value=

      {"roleRecursion" => "1"}

      )

      and similarly for "read" and "undefine" methods

              tomazcerar Tomaž Cerar (Inactive)
              tfonteyn Tom Fonteyne (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: