db_systems
Creates, updates, deletes, gets or lists a db_systems resource.
Overview
| Name | db_systems |
| Type | Resource |
| Id | google.oracledatabase.db_systems |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the DbSystem resource in the following format: projects/{project}/locations/{region}/dbSystems/{db_system} |
createTime | string (google-datetime) | Output only. The date and time that the DbSystem was created. |
displayName | string | Required. The display name for the System db. The name does not have to be unique within your project. |
entitlementId | string | Output only. The ID of the subscription entitlement associated with the DbSystem |
gcpOracleZone | string | Optional. 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. |
labels | object | Optional. The labels or tags associated with the DbSystem. |
ociUrl | string | Output only. HTTPS link to OCI resources exposed to Customer via UI Interface. |
odbNetwork | string | Optional. 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. |
odbSubnet | string | Required. The name of the OdbSubnet associated with the DbSystem for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} |
properties | object | Optional. The properties of the DbSystem. (id: DbSystemProperties) |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the DbSystem resource in the following format: projects/{project}/locations/{region}/dbSystems/{db_system} |
createTime | string (google-datetime) | Output only. The date and time that the DbSystem was created. |
displayName | string | Required. The display name for the System db. The name does not have to be unique within your project. |
entitlementId | string | Output only. The ID of the subscription entitlement associated with the DbSystem |
gcpOracleZone | string | Optional. 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. |
labels | object | Optional. The labels or tags associated with the DbSystem. |
ociUrl | string | Output only. HTTPS link to OCI resources exposed to Customer via UI Interface. |
odbNetwork | string | Optional. 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. |
odbSubnet | string | Required. The name of the OdbSubnet associated with the DbSystem for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} |
properties | object | Optional. The properties of the DbSystem. (id: DbSystemProperties) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, dbSystemsId | Gets details of a single DbSystem. | |
list | select | projectsId, locationsId | pageSize, pageToken, filter, orderBy | Lists all the DbSystems for the given project and location. |
create | insert | projectsId, locationsId | dbSystemId, requestId | Creates a new DbSystem in a given project and location. |
delete | delete | projectsId, locationsId, dbSystemsId | requestId | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
dbSystemsId | string | |
locationsId | string | |
projectsId | string | |
dbSystemId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string |
SELECT examples
- get
- list
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
;
Lists all the DbSystems for the given project and location.
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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
;
INSERT examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: db_systems
props:
- name: projectsId
value: string
description: Required parameter for the db_systems resource.
- name: locationsId
value: string
description: Required parameter for the db_systems resource.
- name: name
value: string
description: >
Identifier. The name of the DbSystem resource in the following format: projects/{project}/locations/{region}/dbSystems/{db_system}
- name: properties
value: object
description: >
Optional. The properties of the DbSystem.
- name: gcpOracleZone
value: string
description: >
Optional. 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.
- name: labels
value: object
description: >
Optional. The labels or tags associated with the DbSystem.
- name: odbNetwork
value: string
description: >
Optional. 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.
- name: odbSubnet
value: string
description: >
Required. The name of the OdbSubnet associated with the DbSystem for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
- name: displayName
value: string
description: >
Required. The display name for the System db. The name does not have to be unique within your project.
- name: dbSystemId
value: string
- name: requestId
value: string
DELETE examples
- delete
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 }}'
;