Generate Application Instance Recording
post
/paas/service/apaas/api/v1.1/apps/{identityDomainId}/{appName}/instances/{instanceId}/recordings
Generates a Java Flight Recorder recording for an instance of an application, which includes profiling and event information. If you started your application with Java Flight Recorder running in continuous mode, the data is retrieved and added to the recordings list. If Java Flight Recorder is not running in continuous mode, then 60 seconds of profile and event information is recorded and added to the recordings list. Download the recordings and analyze them with Java Mission Control.
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
Examples
The following example shows how to create a recording 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/recordings
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