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
-
appName: string
Name of the application
-
identityDomainId: string
Name of the identity domain for the Oracle Application Container Cloud Service acount
-
instanceId: string
ID of the application instance
Response
Supported Media Types
- application/json
200 Response
OK
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
-
instanceName(optional):
string
Name of the instance
-
logs(optional):
array logs
Log details of the application instance
Nested Schema : logs
Type:
array
Log details of the application instance
Show Source
-
Array of:
object viewLog
The response body contains information about application instance logs.
Nested Schema : viewLog
Type:
object
The response body contains information about application instance logs.
Show Source
-
contentType(optional):
string
contentType of the logs
-
fileSize(optional):
string
fileSize of the logs
-
lastModifiedTime(optional):
string
lastModifiedTime of the logs
-
logName(optional):
string
Name of the logs
-
logURL(optional):
string
URL of the logs
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" } ] } ] }