Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-10866

Create Audit Service example creates a service named "{id}" by default

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:
      OpenAM 14.0.0-M30 Build 847682095e (2017-March-06 19:13)
    • Rank:
      1|hzt39b:

      Description

      When creating an audit service the default value for id is blank. Using this results in a poorly named service.

      curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
         "commonHandler": { \ 
           "enabled": true, \ 
           "topics": [ \ 
             "authentication", "access" \ 
           ] \ 
         }, \ 
         "commonHandlerPlugin": { \ 
           "handlerFactory": "string" \ 
         }, \ 
         "jsonConfig": { \ 
           "location": "string", \ 
           "elasticsearchCompatible": true, \ 
           "rotationRetentionCheckInterval": "string" \ 
         }, \ 
         "jsonFileRotation": { \ 
           "rotationEnabled": true, \ 
           "rotationMaxFileSize": "string", \ 
           "rotationFilePrefix": "string", \ 
           "rotationFileSuffix": "string", \ 
           "rotationInterval": "string", \ 
           "rotationTimes": [ \ 
             "string" \ 
           ] \ 
         }, \ 
         "jsonFileRetention": { \ 
           "retentionMaxNumberOfHistoryFiles": "string", \ 
           "retentionMaxDiskSpaceToUse": "string", \ 
           "retentionMinFreeSpaceRequired": "string" \ 
         }, \ 
         "jsonBuffering": { \ 
           "bufferingMaxSize": "string", \ 
           "bufferingWriteInterval": "string" \ 
         } \ 
       }' 'http://openam.test.forgerock.com/openam/json/global-config/services/audit/JSON/{id}'
      

      results in a audit service named

      Unknown macro: {id}

      {
        "_id": "{id}",
        "_rev": "-1317273412",
        "commonHandler": {
          "enabled": true,
          "topics": [
            "authentication",
            "access"
          ]
        },
        "jsonFileRotation": {
          "rotationFileSuffix": "string",
          "rotationFilePrefix": "string",
          "rotationEnabled": true,
          "rotationTimes": [
            "string"
          ],
          "rotationMaxFileSize": "string",
          "rotationInterval": "string"
        },
        "jsonFileRetention": {
          "retentionMinFreeSpaceRequired": "string",
          "retentionMaxDiskSpaceToUse": "string",
          "retentionMaxNumberOfHistoryFiles": "string"
        },
        "jsonConfig": {
          "location": "string",
          "elasticsearchCompatible": true,
          "rotationRetentionCheckInterval": "string"
        },
        "jsonBuffering": {
          "bufferingWriteInterval": "string",
          "bufferingMaxSize": "string"
        },
        "commonHandlerPlugin": {
          "handlerFactory": "string"
        },
        "_type": {
          "_id": "JSON",
          "name": "JSON",
          "collection": true
        }
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            AndrewVinall Andrew Vinall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: