Open APIs

 View Only

href levels in resource inventory 639 API?

  • 1.  href levels in resource inventory 639 API?

    Posted Aug 04, 2023 07:34

    Dear All,

    Need to know whether we need to define href as per levels or data represenation in JSON or we can pick up href level as is it model in DB.

    For example, Device is level 0 href now it will have chassis, slot, subslot, holder, card, ports etc. Now if we go by SID model chassis will be level1 resource relationship with its href link defined as level 1 in DB model and similarly up to level 2, 3 etc.

    Now suppose if we can just provide limited resource inventory details in 639 like only device, chassis and directly cards with its resource relationship instead providing entire hierarchical data. So in this href what we will give should follow level0, level 1 as per representation in JSON or we can provide href level as it is modelled in DB for resource relationship.

    https://{{hostname}}:{{port}}/tmf-api/resourceInventoryManagement/v4/resource?@type=card&id=XXXXX%3A%2Fshelf%3Dslot1&level=3&systemName=InventorySM

    Kindly guide in this regard whether any compliance to be followed while defined href in JSON for levels.



    ------------------------------
    Mahesh Choudhari
    UNSPECIFIED
    ------------------------------