AnsweredAssumed Answered

Domain Type Schema with JSON file

Question asked by Shaik Khalid Akram Akbar Employee on Jul 30, 2018
Latest reply on Aug 16, 2018 by Shaik Khalid Akram Akbar

Hi all,

 

I am trying to use  "External Resource provider" to get values for a Input property.

The External Resource provider is a simply getting the values from a json file that  is created from CMRest call.

 

 

The Contents of the file /tmp/hostgroupinfo.json is like below

{

  "data" : [ {

    "hostGroup" : {

      "hostGroupId" : "CL1-A,0",

      "portId" : "CL1-A",

      "hostGroupNumber" : 0,

      "hostGroupName" : "1A-G00",

      "hostMode" : "LINUX/IRIX",

      "storageDeviceId" : "832000451572"

    },

    "ldev" : {

      "ldevId" : 1024,

      "clprId" : 0,

      "emulationType" : "OPEN-V-CVS",

      "byteFormatCapacity" : "50.00 G",

      "blockCapacity" : 104857600,

      "attributes" : [ "CVS", "HDP" ],

      "label" : "test to delete",

      "status" : "NML",

      "mpBladeId" : 0,

      "poolId" : 0,

      "numOfUsedBlock" : 0,

      "isFullAllocationEnabled" : false,

      "dataReductionStatus" : "DISABLED",

      "dataReductionMode" : "disabled",

      "storageDeviceId" : "832000451572",

      "isDefined" : true

    },

    "lun" : {

      "lunId" : "CL1-A,0,0",

      "lun" : 0,

      "storageDeviceId" : "832000451572"

    }

  } ],

  "offset" : 0,

  "count" : 1,

  "totalCount" : 79

}

While  defining the Domain Type and Domain type Schema for the Input property,  I am  having issues in reading the contents of the file :

I am defining the Domain Type Schema like below :

 

 

But the in the Service request preview  the data does not load up :

 

 

I am missing the Domain Type Schema, Tried to modify the Schema by parsing  the content in the https://jsonschema.net/  but still couldn't get the data parsed. Any pointers on how to create a Schema for the Contents in the file.

 

 

Thank  you  in advance

Akram

Outcomes