Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field 

Type

Description

Mandatory?

Notes

data
EventThe payload of an event

Mandatory

Cloud event standard (data
data.responses[0, 1, 2, ...]
Array contains an array or batch response that includes both success and failure.

Mandatory


data.responses[0].operationId
Stringspecified to distinguish multiple operations using same cmhandleId

Mandatory


data.responses[0].ids
Stringcmhandle-ids

Mandatory

Example : ["0df4d39af6514d99b816758148389cfd"]
Note: Ids array should contain only a single element in the array in case of success messages and In case of error it can have any number of elements.

data.responses[0].statusCode
String

Mandatory

Common NCMP defined error codes:

  • status-code 0-99 is reserved for any success response
  • status-code from 100 to 199 is reserved for any failed response. 
data.responses[0].statusMessage
String

Mandatory

Examples for code & message :

statusCodestatusMessage
1"Successfully applied changes"
101"cmHandle(s) do not exist"


data.responses[0].dataObject

Optional

  1. In case of success :
    • Optional,  for write operations then no need to return configurations
      application/yang-patch+json | application/yang-data+json
  2. In case of failure :
    • Optional, any supplementary error data matching the error status-code


kieran mccarthy please confirm : we are using 'responseContent' as name of this field as 'data' is already used for cloud event standard payload.

Now it is like : data.responses[0].responseContent

Sourabh Sourabh Suggest to use "result".  This is after all where the actual result output.  the other tags in responses[x] are status related to the request  :

                        data.responses[0].result

Implementation

Bulk Request Message Flow

...