Retrieve Resource Request Response

get

/iot/api/v2/requests/{requestId}/response

This interface should be used to get the request response body content

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Successfully processed
Body ()
Root Schema : ResourceRequestStatusImpl_Response
Type: object
Original response message payload JSON document
Show Source

400 Response

Bad Request. The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

401 Response

Unauthorized. The request requires user authentication.

404 Response

Not Found. The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
Back to Top

Examples

The following example shows how to get a response of a request with requestId, 330b5e4c447f-588d, by submitting a GET request on the REST resource using cURL. Note that in the request, iotserver will be replaced by the name and port of your assigned IoT cloud server. 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 -X GET -k -u username@example.com:welcome1 -H "Accept: application/json" 'https://iotserver/iot/api/v2/requests/330b5e4c447f-588d/response'

Example of Response Header

The following shows an example of the response header and there is empty body content.

HTTP/1.1 200 OK
Back to Top