Skip to main content

db_connection_bundles

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

Overview​

Namedb_connection_bundles
TypeResource
Idoci.database.db_connection_bundles

Fields​

The following fields are returned by SELECT queries:

The specified database connection bundle object.

NameDatatypeDescription
idstringThe OCID of the database connection bundle.
associatedResourceDetailsarrayDetails about the resources associated with the connection bundle.
compartmentIdstringThe OCID of the compartment containing the database connection bundle.
dbConnectionBundleTypestringThe type of the database connection bundle. (TLS, MTLS)
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https:​//docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
displayNamestringDisplay name for the connection bundle.
freeformTagsobjectFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https:​//docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
isProtectedbooleanTrue for the default, service-created Database Connection Bundle.
lifecycleStatestringThe current lifecycle state of the database connection bundle. (CREATING, ACTIVE, INACTIVE, UPDATING, DELETING, DELETED, FAILED)
systemTagsobjectSystem tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https:​//docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
timeCreatedstring (date-time)The time the database connection bundle was created. An RFC3339 formatted datetime string.
timeLastRefreshedstring (date-time)The time the database connection bundle was last refreshed. An RFC3339 formatted datetime string.
timeUpdatedstring (date-time)The time the database connection bundle was updated. An RFC3339 formatted datetime string.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdbConnectionBundleId, regionopc-request-idGets information about the specified database connection bundle.
listselectcompartmentId, regionlimit, page, sortOrder, sortBy, lifecycleState, opc-request-id, displayName, dbConnectionBundleType, associatedResourceIdLists all database connection bundles that match the query parameters.<br />
download_db_connection_bundleexecdbConnectionBundleId, region, passwordopc-request-id, if-match, opc-retry-tokenDownloads the specified database connection bundle content.<br />The bundle is returned as a binary file containing the connection details.<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
compartmentIdstringThe compartment [OCID](/Content/General/Concepts/identifiers.htm).
dbConnectionBundleIdstringThe OCID of the database connection bundle.
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)
associatedResourceIdstringThe OCID of the VM cluster associated with the connection bundle. If the parameter is set to null, all bundles are returned.
dbConnectionBundleTypestringA filter that returns only resources that match the specified database connection bundle type.
displayNamestringA filter to return only resources that match the entire display name given. The match is not case sensitive.
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
lifecycleStatestringA filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
opc-retry-tokenstringA 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).
pagestringThe pagination token to continue listing from.
sortBystringThe field to sort by. You can specify only one sort order. The default order for TIMECREATED is descending. The default order for TIMEREFRESHED is descending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Gets information about the specified database connection bundle.

SELECT
id,
associatedResourceDetails,
compartmentId,
dbConnectionBundleType,
definedTags,
displayName,
freeformTags,
isProtected,
lifecycleState,
systemTags,
timeCreated,
timeLastRefreshed,
timeUpdated
FROM oci.database.db_connection_bundles
WHERE dbConnectionBundleId = '{{ dbConnectionBundleId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

Lifecycle Methods​

Downloads the specified database connection bundle content.<br />The bundle is returned as a binary file containing the connection details.<br />

EXEC oci.database.db_connection_bundles.download_db_connection_bundle
@dbConnectionBundleId='{{ dbConnectionBundleId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"password": "{{ password }}"
}'
;