View Application Instance Logs

get

/paas/service/apaas/api/v1.1/apps/{identityDomainId}/{appName}/instances/{instanceId}/logs

Retrieves a list of downloadable logs for an application instance. You must generate logs before you can view them.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
The response body contains information about application instance logs.
Root Schema : viewLog-response
Type: object
The response body contains information about application instance logs.
Show Source
Nested Schema : logs
Type: array
Log details of the application instance
Show Source
Nested Schema : viewLog
Type: object
The response body contains information about application instance logs.
Show Source
Back to Top

Examples

The following example shows how to get log details for all instances of an Oracle Application Cloud Service application by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, including how to determine your region, see Send Requests.

curl -i -X GET -u joe@example.com:Welcome1! -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://apaas.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/ExampleIdentityDomain/ExampleAppName/logs

You must generate logs before you can view them. See Generate Application Instance Log.

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 
200 OK  
Date: Wed, 04 Feb 2015 21:24:33 GMT  
Transfer-Encoding: chunked  
Content-Type: application/json

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "instances": [
    {
      "instanceName": "web.1",
      "logs": [
        {
           "contentType": "application/octet-stream",
             "logName": "logs/web.1/web.1_2015_06_17_20:36:37.log",
             "logURL": "https://storage.oraclecorp.com/v1/Storage-StorageEval02admin/535503db-d722-45ab-a040-f4d5dba86c02/logs/web.1/web.1_2015_06_17_20:36:37.log",
             "fileSize": 431,
             "lastModifiedTime": "2015-06-18T00:36:38.823-0700"        
        }
      ]
    }
  ]
}
Back to Top