CaptureConsoleHistory

POST {{baseUrl}}/instanceConsoleHistories/

Captures the most recent serial console data (up to a megabyte) for the specified instance.

The CaptureConsoleHistory operation works with the other console history operations as described below.

  1. Use CaptureConsoleHistory to request the capture of up to a megabyte of the most recent console history. This call returns a ConsoleHistory object. The object will have a state of REQUESTED.
  2. Wait for the capture operation to succeed by polling GetConsoleHistory with the identifier of the console history metadata. The state of the ConsoleHistory object will go from REQUESTED to GETTING-HISTORY and then SUCCEEDED (or FAILED).
  3. Use GetConsoleHistoryContent to get the actual console history data (not the metadata).
  4. Optionally, use DeleteConsoleHistory to delete the console history metadata and the console history data.

Request Body

{"instanceId"=>"Excepteur", "displayName"=>"in est ex"}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"id":"mollit in ex cillum","compartmentId":"in","lifecycleState":"SUCCEEDED","availabilityDomain":"consequat in enim","timeCreated":"1965-06-11T15:32:56.754Z","instanceId":"nulla occaecat minim","definedTags":{},"displayName":"magna in eiusmod","freeformTags":{}}