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.
- Use
CaptureConsoleHistory
to request the capture of up to a megabyte of the most recent console history. This call returns aConsoleHistory
object. The object will have a state of REQUESTED. - Wait for the capture operation to succeed by polling
GetConsoleHistory
with the identifier of the console history metadata. The state of theConsoleHistory
object will go from REQUESTED to GETTING-HISTORY and then SUCCEEDED (or FAILED). - Use
GetConsoleHistoryContent
to get the actual console history data (not the metadata). - Optionally, use
DeleteConsoleHistory
to delete the console history metadata and the console history data.
Request Body
{"instanceId"=>"Excepteur", "displayName"=>"in est ex"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | A 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-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (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":{}}