Skip to main content

container_database_patches

Creates, updates, deletes, gets or lists a container_database_patches resource.

Overview​

Namecontainer_database_patches
TypeResource
Idoci.database.container_database_patches

Fields​

The following fields are returned by SELECT queries:

A patch for an Autonomous Exadata Infrastructure or Autonomous Container Database.<br /><br />To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,<br />talk to an administrator. If you're an administrator who needs to write policies to give users access,<br />see [Getting Started with Policies](/Content/Identity/Concepts/policygetstarted.htm).<br />

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the patch.
autonomousPatchTypestringMaintenance run type, either "QUARTERLY" or "TIMEZONE". (QUARTERLY, TIMEZONE) (default: QUARTERLY)
descriptionstringThe text describing this patch package.
lifecycleDetailsstringA descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
lifecycleStatestringThe current state of the patch as a result of lastAction. (AVAILABLE, SUCCESS, IN_PROGRESS, FAILED)
patchModelstringDatabase patching model preference. See [My Oracle Support note 2285040.1](https:​//support.oracle.com/rs?type=doc&id=2285040.1) for information on the Release Update (RU) and Release Update Revision (RUR) patching models. (RELEASE_UPDATES, RELEASE_UPDATE_REVISIONS)
quarterstringFirst month of the quarter in which the patch was released.
timeReleasedstring (date-time)The date and time that the patch was released.
typestringThe type of patch. BUNDLE is one example.
versionstringThe version of this patch package.
yearstringYear in which the patch was released.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectautonomousContainerDatabaseId, compartmentId, regionlimit, page, autonomousPatchTypeLists the patches applicable to the requested container database.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
autonomousContainerDatabaseIdstringThe Autonomous Container Database [OCID](/Content/General/Concepts/identifiers.htm).
compartmentIdstringThe compartment [OCID](/Content/General/Concepts/identifiers.htm).
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
autonomousPatchTypestringAutonomous patch type, either "QUARTERLY" or "TIMEZONE".
limitintegerThe maximum number of items to return per page.
pagestringThe pagination token to continue listing from.

SELECT examples​

Lists the patches applicable to the requested container database.<br />

SELECT
id,
autonomousPatchType,
description,
lifecycleDetails,
lifecycleState,
patchModel,
quarter,
timeReleased,
type,
version,
year
FROM oci.database.container_database_patches
WHERE autonomousContainerDatabaseId = '{{ autonomousContainerDatabaseId }}' -- required
AND compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND autonomousPatchType = '{{ autonomousPatchType }}'
;