Details
-
Story
-
Status: Closed
-
Medium
-
Resolution: Done
-
None
-
None
Description
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> } }