Generate Application Instance Log
post
/paas/service/apaas/api/v1.1/apps/{identityDomainId}/{appName}/instances/{instanceId}/logs
Generates a log for an instance of an application.
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
The request body is empty.
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json
202 Response
Accepted
409 Response
Conflict. Returned if a second log generation request is sent before the first has completed.
Examples
The following example shows how to create logs for an Oracle Application Cloud Service instance by submitting a POST 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 POST -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/instances/web.1/logs
Example of Response Header
The following shows an example of the response header.
Date:Thu,16Apr201508:43:38GMT Location:https://apaas.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/apaasmaster/ExampleAppName/opStatus/157 Retry-After:5 Service-URI:https://apaas.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/apaasmaster/ExampleAppName Transfer-Encoding:chunked X-Frame-Options:DENY X-Powered-By:Servlet/2.5JSP/2.1