Retrieve Failed Registration Entries
/iot/api/v2/registrations/{registration-id}/failedEntries
Request
-
registration-id: string
Registration id
Response
- application/json
- application/vnd.oracle.resource+json;type=singular
Examples
The following example shows how to get a list of the failed entries from a specific batch registration by submitting a GET request on the REST resource using cURL. Note that in both request and response, iotserver
will be replaced by the name and port of your assigned Oracle IoT Cloud Service instance. The format of the Cloud Service instance is myinstance-myidentitydomain.iot.us.oraclecloud.com
and the default port is 443. For more information about cURL, see Use cURL.
curl -k -X GET -u "username@example.com:password" https://iotserver/iot/api/v2/registrations/0-AI/failedEntries
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Content-Type: application/json
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "items" : [ { "rowNo" : 4, "status" : "ERROR", "reason" : "Parsing error" } ], "links" : [ { "href" : "http://iotserver/iot/api/v2/registrations/0-AI/failedEntries", "rel" : "self" }, { "href" : "http://iotserver/iot/api/v2/registrations/0-AI/failedEntries", "rel" : "canonical" } ] }
curl -X GET
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/iot/api/v2/registrations/{registration-id}/failedEntries
Complete cURL Example
The following example shows a complete cURL command that you can use to perform the described operation:
curl -X GET
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/iot/api/v2/registrations/17a26c9f32ae-206b/failedEntries
Note that in the request,
https://iotserver
will be replaced by the name and port of your assigned IoT Cloud Service instance. The format of the Cloud Service instance is
https://myinstance-myidentitydomain.iot.us.oraclecloud.com
and the default port is 443.