ListMaintenanceRuns

GET {{baseUrl}}/maintenanceRuns?compartmentId=<string>&targetResourceId=<string>&targetResourceType=<string>&maintenanceType=<string>&limit=10&page=<string>&sortBy=TIME_ENDED&sortOrder=ASC&lifecycleState=<string>&availabilityDomain=<string>&maintenanceSubtype=<string>

Gets a list of the maintenance runs in the specified compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The compartment OCID.
targetResourceIdstringThe target resource ID.
targetResourceTypestringThe type of the target resource.
maintenanceTypestringThe maintenance type.
limitnumberThe maximum number of items to return per page.
pagestringThe pagination token to continue listing from.
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIME_SCHEDULED and TIME_ENDED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.

Note: If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted. | | sortOrder | string | | The sort order to use, either ascending (ASC) or descending (DESC). | | lifecycleState | string | | A filter to return only resources that match the given lifecycle state exactly. | | availabilityDomain | string | | A filter to return only resources that match the given availability domain exactly. | | maintenanceSubtype | string | | The sub-type of the maintenance run. |

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;compartmentId&quot;:&quot;\u003cstring\u003e&quot;,&quot;displayName&quot;:&quot;\u003cstring\u003e&quot;,&quot;lifecycleState&quot;:&quot;CANCELED&quot;,&quot;timeScheduled&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;currentCustomActionTimeoutInMins&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currentPatchingComponent&quot;:&quot;\u003cstring\u003e&quot;,&quot;customActionTimeoutInMins&quot;:&quot;\u003cinteger\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;estimatedComponentPatchingStartTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;estimatedPatchingTime&quot;:{&quot;estimatedDbServerPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;,&quot;estimatedNetworkSwitchesPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;,&quot;estimatedStorageServerPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalEstimatedPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;},&quot;isCustomActionTimeoutEnabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;isDstFileUpdateEnabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;lifecycleDetails&quot;:&quot;\u003cstring\u003e&quot;,&quot;maintenanceSubtype&quot;:&quot;DATABASE&quot;,&quot;maintenanceType&quot;:&quot;PLANNED&quot;,&quot;patchFailureCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;patchId&quot;:&quot;\u003cstring\u003e&quot;,&quot;patchingEndTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;patchingMode&quot;:&quot;NONROLLING&quot;,&quot;patchingStartTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;patchingStatus&quot;:&quot;PATCHING&quot;,&quot;peerMaintenanceRunId&quot;:&quot;\u003cstring\u003e&quot;,&quot;targetDbServerVersion&quot;:&quot;\u003cstring\u003e&quot;,&quot;targetResourceId&quot;:&quot;\u003cstring\u003e&quot;,&quot;targetResourceType&quot;:&quot;CLOUD_EXADATA_INFRASTRUCTURE&quot;,&quot;targetStorageServerVersion&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeEnded&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeStarted&quot;:&quot;\u003cdateTime\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;compartmentId&quot;:&quot;\u003cstring\u003e&quot;,&quot;displayName&quot;:&quot;\u003cstring\u003e&quot;,&quot;lifecycleState&quot;:&quot;SCHEDULED&quot;,&quot;timeScheduled&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;currentCustomActionTimeoutInMins&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currentPatchingComponent&quot;:&quot;\u003cstring\u003e&quot;,&quot;customActionTimeoutInMins&quot;:&quot;\u003cinteger\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;estimatedComponentPatchingStartTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;estimatedPatchingTime&quot;:{&quot;estimatedDbServerPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;,&quot;estimatedNetworkSwitchesPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;,&quot;estimatedStorageServerPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalEstimatedPatchingTime&quot;:&quot;\u003cinteger\u003e&quot;},&quot;isCustomActionTimeoutEnabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;isDstFileUpdateEnabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;lifecycleDetails&quot;:&quot;\u003cstring\u003e&quot;,&quot;maintenanceSubtype&quot;:&quot;QUARTERLY&quot;,&quot;maintenanceType&quot;:&quot;UNPLANNED&quot;,&quot;patchFailureCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;patchId&quot;:&quot;\u003cstring\u003e&quot;,&quot;patchingEndTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;patchingMode&quot;:&quot;NONROLLING&quot;,&quot;patchingStartTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;patchingStatus&quot;:&quot;SCHEDULED&quot;,&quot;peerMaintenanceRunId&quot;:&quot;\u003cstring\u003e&quot;,&quot;targetDbServerVersion&quot;:&quot;\u003cstring\u003e&quot;,&quot;targetResourceId&quot;:&quot;\u003cstring\u003e&quot;,&quot;targetResourceType&quot;:&quot;AUTONOMOUS_EXADATA_INFRASTRUCTURE&quot;,&quot;targetStorageServerVersion&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeEnded&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeStarted&quot;:&quot;\u003cdateTime\u003e&quot;}]