Inventory service data

Information about the Password Rules managed by the console can be optionally included in the inventory data provided by the Inventory Service.

Inventory entries for Password Rule objects are included in the response to the Inventory Service's Get Inventory operation when the request specifies (explicitly by class, implicitly through a containing category, or by default) that objects of class "console" are to be included. An entry for a particular Password Rule is included only if the API user has access permission to that object as described in the Get Password Rule Properties operation.

For each Password Rule object to be included, the inventory response array includes an entry that is a JSON object with the same contents as is specified in the response body contents section for the Get Password Rule Properties operation. That is, the data provided is the same as would be provided if a Get Password Rule Properties operation were requested targeting this object.

Sample inventory data

The following fragment is an example of the JSON object that would be included in the Get Inventory response to describe a single Password Rule. This object would appear as one array entry in the response array:

Figure 1. Password Rule object: Sample inventory data
   {
      "case-sensitive": false, 
      "character-rules": [
         {
            "alphabetic": "required", 
            "custom-character-sets": [], 
            "max-characters": 1, 
            "min-characters": 1, 
            "numeric": "not-allowed", 
            "special": "not-allowed"
         }, 
         {
            "alphabetic": "allowed", 
            "custom-character-sets": [], 
            "max-characters": 6, 
            "min-characters": 4, 
            "numeric": "required", 
            "special": "not-allowed"
         }, 
         {
            "alphabetic": "required", 
            "custom-character-sets": [], 
            "max-characters": 1, 
            "min-characters": 1, 
            "numeric": "not-allowed", 
            "special": "not-allowed"
         }
      ], 
      "class": "password-rule", 
      "consecutive-characters": 2, 
      "description": "", 
      "element-id": "56d11882-eaff-11e2-9ec7-5cf3fcae8019", 
      "element-uri": "/api/console/password-rules/56d11882-eaff-11e2-
         9ec7-5cf3fcae8019", 
      "expiration": 180, 
      "history-count": 0, 
      "max-length": 8, 
      "min-length": 6, 
      "name": "Strict", 
      "parent": "/api/console", 
      "replication-overwrite-possible": false, 
      "similarity-count": 0, 
      "type": "system-defined"
   }