Skip to main content

autonomous_databases

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

Overview

Nameautonomous_databases
TypeResource
Idgoogle.oracledatabase.autonomous_databases

Fields

NameDatatypeDescription
namestringIdentifier. The name of the Autonomous Database resource in the following format: projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
adminPasswordstringOptional. The password for the default ADMIN user.
cidrstringRequired. The subnet CIDR range for the Autonmous Database.
createTimestringOutput only. The date and time that the Autonomous Database was created.
databasestringOptional. The name of the Autonomous Database. The database name must be unique in the project. The name must begin with a letter and can contain a maximum of 30 alphanumeric characters.
displayNamestringOptional. The display name for the Autonomous Database. The name does not have to be unique within your project.
entitlementIdstringOutput only. The ID of the subscription entitlement associated with the Autonomous Database.
labelsobjectOptional. The labels or tags associated with the Autonomous Database.
networkstringRequired. The name of the VPC network used by the Autonomous Database. Format: projects/{project}/global/networks/{network}
propertiesobjectThe properties of an Autonomous Database.

Methods

NameAccessible byRequired ParamsDescription
getSELECTautonomousDatabasesId, locationsId, projectsIdGets the details of a single Autonomous Database.
listSELECTlocationsId, projectsIdLists the Autonomous Databases in a given project and location.
createINSERTlocationsId, projectsIdCreates a new Autonomous Database in a given project and location.
deleteDELETEautonomousDatabasesId, locationsId, projectsIdDeletes a single Autonomous Database.
generate_walletEXECautonomousDatabasesId, locationsId, projectsIdGenerates a wallet for a single Autonomous Database.
restoreEXECautonomousDatabasesId, locationsId, projectsIdRestores a single Autonomous Database.

SELECT examples

Lists the Autonomous Databases in a given project and location.

SELECT
name,
adminPassword,
cidr,
createTime,
database,
displayName,
entitlementId,
labels,
network,
properties
FROM google.oracledatabase.autonomous_databases
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new autonomous_databases resource.

/*+ create */
INSERT INTO google.oracledatabase.autonomous_databases (
locationsId,
projectsId,
name,
database,
displayName,
adminPassword,
properties,
labels,
network,
cidr
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ database }}',
'{{ displayName }}',
'{{ adminPassword }}',
'{{ properties }}',
'{{ labels }}',
'{{ network }}',
'{{ cidr }}'
;

DELETE example

Deletes the specified autonomous_databases resource.

/*+ delete */
DELETE FROM google.oracledatabase.autonomous_databases
WHERE autonomousDatabasesId = '{{ autonomousDatabasesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';