Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-562

Write data for cmHandle using ncmp-datastores:passthrough-running (DMI Plugin.)

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • None
    • DMI
    • None

      We will break this task into 4 subtasks;

      all operations will use the same uri

      {dmiRoot}

      /dmi/v1/ch/<cmHandle>/data/ds/ncmp-datastore:running/

      {resourceIdentifier}

      POST,PUT and PATCH will have the possibility of fields and depth params (content = config is mandatory)

      • POST
        {
          “operation”: “create”,         // Valid operations are: “create”, “read”, “update” and “delete”.
                                              // For update, replace and patch is distinguished by the HTTP method (PUT or PATCH).
         
          “dataType”: “<mimeType>”,          // Indicates format for the embedded data.
                                              // Shall use MIME type syntax, e g “application/yang-data+json”.
                                              // required for create and update operations. Optional filter-data for read-operations
         
          “data”: {                           // Embedded data. Must be valid JSON object.
            <data>                            // required for create and update operations. Optional filter-data for read-operations
          },
         
          “cmHandleProperties”: {           // Additional properties for CM handle previously added by DMI plugin and stored in NCMP.
            <properties>
          }
        }
        
      • PUT
        {
          “operation”: “update”,         // Valid operations are: “create”, “read”, “update” and “delete”.
                                              // For update, replace and patch is distinguished by the HTTP method (PUT or PATCH).
         
          “dataType”: “<mimeType>”,          // Indicates format for the embedded data.
                                              // Shall use MIME type syntax, e g “application/yang-data+json”.
                                              // required for create and update operations. Optional filter-data for read-operations
         
          “data”: {                           // Embedded data. Must be valid JSON object.
            <data>                            // required for create and update operations. Optional filter-data for read-operations
          },
         
          “cmHandleProperties”: {           // Additional properties for CM handle previously added by DMI plugin and stored in NCMP.
            <properties>
          }
        }
        
      • Patch
        {
          “operation”: “update”,         // Valid operations are: “create”, “read”, “update” and “delete”.
                                              // For update, replace and patch is distinguished by the HTTP method (PUT or PATCH).
         
          “dataType”: “<mimeType>”,          // Indicates format for the embedded data.
                                              // Shall use MIME type syntax, e g “application/yang-data+json”.
                                              // required for create and update operations. Optional filter-data for read-operations
         
          “data”: {                           // Embedded data. Must be valid JSON object.
            <data>                            // required for create and update operations. Optional filter-data for read-operations
          },
         
          “cmHandleProperties”: {           // Additional properties for CM handle previously added by DMI plugin and stored in NCMP.
            <properties>
          }
        }
        
      • Delete
        {
          “operation”: “delete”,         // Valid operations are: “create”, “read”, “update” and “delete”.
                                              // For update, replace and patch is distinguished by the HTTP method (PUT or PATCH).
         
          “cmHandleProperties”: {           // Additional properties for CM handle previously added by DMI plugin and stored in NCMP.
            <properties>
          }
        }
        

            Unassigned Unassigned
            niamhcore niamhcore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: