Skip to main content

flex_components

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

Overview​

Nameflex_components
TypeResource
Idoci.database.flex_components

Fields​

The following fields are returned by SELECT queries:

Supported DB system flex Components for a given DB System shape.

NameDatatypeDescription
namestringThe name of the Flex Component used for the DB system.
availableCoreCountinteger (int32)The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
availableDbStorageInGBsinteger (int32)The maximum storage that can be enabled on the Storage Server for this Flex Component.
availableLocalStorageInGBsinteger (int32)The maximum local storage that can be enabled on the DB Server for this Flex Component.
availableMemoryInGBsintegerThe maximum memory size that can be enabled on the DB Server for this Flex Component.
computeModelstringThe compute model of the DB Server for this Flex Component.
descriptionSummarystringThe description summary for this Flex Component.
hardwareTypestringThe hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component. (COMPUTE, CELL)
minimumCoreCountinteger (int32)The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
runtimeMinimumCoreCountinteger (int32)The runtime minimum number of CPU cores that can be enabled for this Flex Component.
shapestringThe name of the DB system shape for this Flex Component.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcompartmentId, regionname, shape, sortOrder, sortBy, limit, pageGets a list of the flex components that can be used to launch a new DB system. The flex component determines resources to allocate to the DB system - Database Servers and Storage Servers.

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
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)
limitintegerThe maximum number of items to return per page.
namestringA filter to return only resources that match the entire name given. The match is not case sensitive.
pagestringThe pagination token to continue listing from.
shapestringA filter to return only resources that belong to the entire shape name given. The match is not case sensitive.
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for NAME is ascending. The NAME sort order is case sensitive.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Gets a list of the flex components that can be used to launch a new DB system. The flex component determines resources to allocate to the DB system - Database Servers and Storage Servers.

SELECT
name,
availableCoreCount,
availableDbStorageInGBs,
availableLocalStorageInGBs,
availableMemoryInGBs,
computeModel,
descriptionSummary,
hardwareType,
minimumCoreCount,
runtimeMinimumCoreCount,
shape
FROM oci.database.flex_components
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND name = '{{ name }}'
AND shape = '{{ shape }}'
AND sortOrder = '{{ sortOrder }}'
AND sortBy = '{{ sortBy }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
;