Skip to main content

odb_networks

Creates, updates, deletes, gets or lists an odb_networks resource.

Overview

Nameodb_networks
TypeResource
Idgoogle.oracledatabase.odb_networks

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
createTimestring (google-datetime)Output only. The date and time that the OdbNetwork was created.
entitlementIdstringOutput only. The ID of the subscription entitlement associated with the OdbNetwork.
labelsobjectOptional. Labels or tags associated with the resource.
networkstringRequired. The name of the VPC network in the following format: projects/{project}/global/networks/{network}
statestringOutput only. State of the ODB Network.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, odbNetworksIdGets details of a single ODB Network.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists the ODB Networks in a given project and location.
createinsertprojectsId, locationsIdodbNetworkId, requestIdCreates a new ODB Network in a given project and location.
deletedeleteprojectsId, locationsId, odbNetworksIdrequestIdDeletes a single ODB Network.

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

SELECT examples

Gets details of a single ODB Network.

SELECT
name,
createTime,
entitlementId,
labels,
network,
state
FROM google.oracledatabase.odb_networks
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND odbNetworksId = '{{ odbNetworksId }}' -- required;

INSERT examples

Creates a new ODB Network in a given project and location.

INSERT INTO google.oracledatabase.odb_networks (
data__name,
data__network,
data__labels,
projectsId,
locationsId,
odbNetworkId,
requestId
)
SELECT
'{{ name }}',
'{{ network }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ odbNetworkId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a single ODB Network.

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