Skip to main content

db_systems

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

Overview

Namedb_systems
TypeResource
Idgoogle.oracledatabase.db_systems

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the DbSystem resource in the following format: projects/{project}/locations/{region}/dbSystems/{db_system}
createTimestring (google-datetime)Output only. The date and time that the DbSystem was created.
displayNamestringRequired. The display name for the System db. The name does not have to be unique within your project.
entitlementIdstringOutput only. The ID of the subscription entitlement associated with the DbSystem
gcpOracleZonestringOptional. The GCP Oracle zone where Oracle DbSystem is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.
labelsobjectOptional. The labels or tags associated with the DbSystem.
ociUrlstringOutput only. HTTPS link to OCI resources exposed to Customer via UI Interface.
odbNetworkstringOptional. The name of the OdbNetwork associated with the DbSystem. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} It is optional but if specified, this should match the parent ODBNetwork of the OdbSubnet.
odbSubnetstringRequired. The name of the OdbSubnet associated with the DbSystem for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
propertiesobjectOptional. The properties of the DbSystem. (id: DbSystemProperties)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, dbSystemsIdGets details of a single DbSystem.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists all the DbSystems for the given project and location.
createinsertprojectsId, locationsIddbSystemId, requestIdCreates a new DbSystem in a given project and location.
deletedeleteprojectsId, locationsId, dbSystemsIdrequestIdDeletes a single DbSystem.

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
dbSystemsIdstring
locationsIdstring
projectsIdstring
dbSystemIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples

Gets details of a single DbSystem.

SELECT
name,
createTime,
displayName,
entitlementId,
gcpOracleZone,
labels,
ociUrl,
odbNetwork,
odbSubnet,
properties
FROM google.oracledatabase.db_systems
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dbSystemsId = '{{ dbSystemsId }}' -- required
;

INSERT examples

Creates a new DbSystem in a given project and location.

INSERT INTO google.oracledatabase.db_systems (
data__name,
data__properties,
data__gcpOracleZone,
data__labels,
data__odbNetwork,
data__odbSubnet,
data__displayName,
projectsId,
locationsId,
dbSystemId,
requestId
)
SELECT
'{{ name }}',
'{{ properties }}',
'{{ gcpOracleZone }}',
'{{ labels }}',
'{{ odbNetwork }}',
'{{ odbSubnet }}',
'{{ displayName }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dbSystemId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a single DbSystem.

DELETE FROM google.oracledatabase.db_systems
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dbSystemsId = '{{ dbSystemsId }}' --required
AND requestId = '{{ requestId }}'
;