Get Lifecycle Maintenance History
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/lcmOperations/actions/getLcmHistory
Gets the database maintenance history for update (patching) and upgrade operations.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
limit: number
Limit for the current fetch (to fetch only the 'total' count of items need to set the limit=0)Example:
10
-
page: string
Base 64 encoded pageExample:
b2Zmc2V0OjA
-
sort: string
Field along with an optional sort direction. The supported attributes of sorting are targetName, targetType, timeStarted, timeEnded, status, task.Valid sort directions are 'asc' and 'desc'. If sort direction is not specified, 'asc' is used by default.Example:
targetName:asc
Match All
Show Source
-
object
allOf
LcmHistoryDetails
Request to retrieve LCM history data
Nested Schema : LcmHistoryDetails
Type:
object
Request to retrieve LCM history data
Show Source
-
exclusions: array
exclusions
Exclude the given details in response
Match All
Show Source
-
object
LcmHistoryFilter
Filter for LCM history data
Nested Schema : LcmHistoryFilter
Type:
object
Filter for LCM history data
Show Source
-
status: string
Allowed Values:
[ "SCHEDULED", "RUNNING", "ACTION_REQUIRED", "PAUSED", "FAILED", "COMPLETED", "ABORTED", "SKIPPED", "SAVED", "COMPLETED_WITH_ERROR" ]
status of taskExample:COMPLETED
-
submittedBy: string
OEM user that submitted the operationExample:
SYSMAN
-
targetIds: array
targetIds
List of target IDs
-
targetNames: array
targetNames
List of target names
-
targetType: string
Allowed Values:
[ "oracle_database", "oracle_pdb", "cluster", "rac_database", "has" ]
Target type -
tasks: string
Allowed Values:
[ "UPDATE", "UPGRADE" ]
List of tasks -
timeStartedGreaterThanOrEqualTo: string
Since the given timeExample:
2023-01-30 10:00:00
-
timeStartedLesserThanOrEqualTo: string
Until the given timeExample:
2023-01-30 10:00:11
Nested Schema : targetIds
Type:
array
List of target IDs
Show Source
Example:
[
"E5B98897FE871AC1E05380FE4564F682",
"ADB98897FE871AC1E05380FE4564F555"
]
Nested Schema : targetNames
Type:
array
List of target names
Show Source
Example:
[
"Prod DB",
"HR DB"
]
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Ok. LCM History retrieved successfully.
Root Schema : schema
Type:
object
Match All
Show Source
-
object
LcmHistoryCollection
List of LCM history data
Nested Schema : LcmHistoryCollection
Type:
object
List of LCM history data
Show Source
-
count: integer
Count of LCM history records in the current fetch
-
currentPage: string
Base 64 encoded current pageExample:
b2Zmc2V0OjA
-
items(required): array
items
List of LCM history
-
nextPage: string
Base 64 encoded next pageExample:
b2Zmc2V0OjC
-
previousPage: string
Base 64 encoded previous pageExample:
b2Zmc2V0OjB
-
timeStartedGreaterThanOrEqualTo: string
Since the given time of startExample:
2022-08-13 04:36:54
-
timeStartedLessThanOrEqualTo: string
Until the given time of startExample:
2022-08-13 04:36:54
-
total: integer
Total count of LCM history records
Nested Schema : items
Type:
array
List of LCM history
Show Source
-
Array of:
object LcmHistorySummary
LCM history summary
Nested Schema : LcmHistorySummary
Type:
object
LCM history summary
Show Source
-
additionalProperties: object
additionalProperties
Additional properties of this task
-
status: string
Allowed Values:
[ "SCHEDULED", "RUNNING", "ACTION_REQUIRED", "PAUSED", "FAILED", "COMPLETED", "ABORTED", "SKIPPED", "SAVED", "COMPLETED_WITH_ERROR" ]
status of taskExample:COMPLETED
-
submittedBy: string
OEM user that submitted the operationExample:
SYSMAN
-
targetDisplayName: string
Target display nameExample:
Prod DB
-
targetId: string
Target IdExample:
39D9DA5C367AE68C9087A71B2C46FEAE
-
targetName: string
Target nameExample:
Prod DB
-
targetType: string
Target typeExample:
oracle_database
-
task: string
Allowed Values:
[ "UPDATE", "UPGRADE" ]
Database management taskExample:UPDATE
-
timeEnded: string
(date-time)
End time of the task
-
timeStarted: string
(date-time)
Start time of the task
Nested Schema : additionalProperties
Type:
object
Additional properties of this task
Show Source
-
Array of:
object AdditionalProperties
Additional properties of task
Nested Schema : AdditionalProperties
Type:
object
Additional properties of task
Show Source
-
patchIds: array
patchIds
List of patch Ids
Examples
401 Response
Unauthorized. The user does not have permissions to perform the requested operation
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
403 Response
Forbidden. The user is forbidden to perform the requested operation
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
500 Response
Internal Server Error. Exception in execution of REST API.
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
503 Response
Service Unavailable. The server is unable to process the request.
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string