Skip to main content

autonomous_databases

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

Overview

Nameautonomous_databases
TypeResource
Idazure_isv.oracle.autonomous_databases

Fields

NameDatatypeDescription
actual_used_data_storage_size_in_tbstextfield from the properties object
admin_passwordtextfield from the properties object
allocated_storage_size_in_tbstextfield from the properties object
apex_detailstextfield from the properties object
autonomous_database_idtextfield from the properties object
autonomous_maintenance_schedule_typetextfield from the properties object
autonomousdatabasenametextfield from the properties object
available_upgrade_versionstextfield from the properties object
backup_retention_period_in_daystextfield from the properties object
character_settextfield from the properties object
compute_counttextfield from the properties object
compute_modeltextfield from the properties object
connection_stringstextfield from the properties object
connection_urlstextfield from the properties object
cpu_core_counttextfield from the properties object
customer_contactstextfield from the properties object
data_base_typetextfield from the properties object
data_safe_statustextfield from the properties object
data_storage_size_in_gbstextfield from the properties object
data_storage_size_in_tbstextfield from the properties object
database_editiontextfield from the properties object
db_versiontextfield from the properties object
db_workloadtextfield from the properties object
display_nametextfield from the properties object
failed_data_recovery_in_secondstextfield from the properties object
in_memory_area_in_gbstextfield from the properties object
is_auto_scaling_enabledtextfield from the properties object
is_auto_scaling_for_storage_enabledtextfield from the properties object
is_local_data_guard_enabledtextfield from the properties object
is_mtls_connection_requiredtextfield from the properties object
is_previewtextfield from the properties object
is_preview_version_with_service_terms_acceptedtextfield from the properties object
is_remote_data_guard_enabledtextfield from the properties object
license_modeltextfield from the properties object
lifecycle_detailstextfield from the properties object
lifecycle_statetextfield from the properties object
local_adg_auto_failover_max_data_loss_limittextfield from the properties object
local_disaster_recovery_typetextfield from the properties object
local_standby_dbtextfield from the properties object
locationtextThe geo-location where the resource lives
long_term_backup_scheduletextfield from the properties object
memory_per_oracle_compute_unit_in_gbstextfield from the properties object
ncharacter_settextfield from the properties object
next_long_term_backup_time_stamptextfield from the properties object
oci_urltextfield from the properties object
ocidtextfield from the properties object
open_modetextfield from the properties object
operations_insights_statustextfield from the properties object
peer_db_idtextfield from the properties object
peer_db_idstextfield from the properties object
permission_leveltextfield from the properties object
private_endpointtextfield from the properties object
private_endpoint_iptextfield from the properties object
private_endpoint_labeltextfield from the properties object
provisionable_cpustextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
roletextfield from the properties object
scheduled_operationstextfield from the properties object
service_console_urltextfield from the properties object
sql_web_developer_urltextfield from the properties object
subnet_idtextfield from the properties object
subscriptionIdtextfield from the properties object
supported_regions_to_clone_totextfield from the properties object
tagstextResource tags.
time_createdtextfield from the properties object
time_data_guard_role_changedtextfield from the properties object
time_deletion_of_free_autonomous_databasetextfield from the properties object
time_local_data_guard_enabledtextfield from the properties object
time_maintenance_begintextfield from the properties object
time_maintenance_endtextfield from the properties object
time_of_last_failovertextfield from the properties object
time_of_last_refreshtextfield from the properties object
time_of_last_refresh_pointtextfield from the properties object
time_of_last_switchovertextfield from the properties object
time_reclamation_of_free_autonomous_databasetextfield from the properties object
used_data_storage_size_in_gbstextfield from the properties object
used_data_storage_size_in_tbstextfield from the properties object
vnet_idtextfield from the properties object
whitelisted_ipstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautonomousdatabasename, resourceGroupName, subscriptionIdGet a AutonomousDatabase
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList AutonomousDatabase resources by resource group
list_by_subscriptionSELECTsubscriptionIdList AutonomousDatabase resources by subscription ID
create_or_updateINSERTautonomousdatabasename, resourceGroupName, subscriptionIdCreate a AutonomousDatabase
deleteDELETEautonomousdatabasename, resourceGroupName, subscriptionIdDelete a AutonomousDatabase
updateUPDATEautonomousdatabasename, resourceGroupName, subscriptionIdUpdate a AutonomousDatabase
failoverEXECautonomousdatabasename, resourceGroupName, subscriptionIdPerform failover action on Autonomous Database
generate_walletEXECautonomousdatabasename, resourceGroupName, subscriptionId, data__passwordGenerate wallet action on Autonomous Database
restoreEXECautonomousdatabasename, resourceGroupName, subscriptionId, data__timestampRestores an Autonomous Database based on the provided request parameters.
shrinkEXECautonomousdatabasename, resourceGroupName, subscriptionIdThis operation shrinks the current allocated storage down to the current actual used data storage.
switchoverEXECautonomousdatabasename, resourceGroupName, subscriptionIdPerform switchover action on Autonomous Database

SELECT examples

List AutonomousDatabase resources by subscription ID

SELECT
actual_used_data_storage_size_in_tbs,
admin_password,
allocated_storage_size_in_tbs,
apex_details,
autonomous_database_id,
autonomous_maintenance_schedule_type,
autonomousdatabasename,
available_upgrade_versions,
backup_retention_period_in_days,
character_set,
compute_count,
compute_model,
connection_strings,
connection_urls,
cpu_core_count,
customer_contacts,
data_base_type,
data_safe_status,
data_storage_size_in_gbs,
data_storage_size_in_tbs,
database_edition,
db_version,
db_workload,
display_name,
failed_data_recovery_in_seconds,
in_memory_area_in_gbs,
is_auto_scaling_enabled,
is_auto_scaling_for_storage_enabled,
is_local_data_guard_enabled,
is_mtls_connection_required,
is_preview,
is_preview_version_with_service_terms_accepted,
is_remote_data_guard_enabled,
license_model,
lifecycle_details,
lifecycle_state,
local_adg_auto_failover_max_data_loss_limit,
local_disaster_recovery_type,
local_standby_db,
location,
long_term_backup_schedule,
memory_per_oracle_compute_unit_in_gbs,
ncharacter_set,
next_long_term_backup_time_stamp,
oci_url,
ocid,
open_mode,
operations_insights_status,
peer_db_id,
peer_db_ids,
permission_level,
private_endpoint,
private_endpoint_ip,
private_endpoint_label,
provisionable_cpus,
provisioning_state,
resourceGroupName,
role,
scheduled_operations,
service_console_url,
sql_web_developer_url,
subnet_id,
subscriptionId,
supported_regions_to_clone_to,
tags,
time_created,
time_data_guard_role_changed,
time_deletion_of_free_autonomous_database,
time_local_data_guard_enabled,
time_maintenance_begin,
time_maintenance_end,
time_of_last_failover,
time_of_last_refresh,
time_of_last_refresh_point,
time_of_last_switchover,
time_reclamation_of_free_autonomous_database,
used_data_storage_size_in_gbs,
used_data_storage_size_in_tbs,
vnet_id,
whitelisted_ips
FROM azure_isv.oracle.vw_autonomous_databases
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.oracle.autonomous_databases (
autonomousdatabasename,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ autonomousdatabasename }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a autonomous_databases resource.

/*+ update */
UPDATE azure_isv.oracle.autonomous_databases
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
autonomousdatabasename = '{{ autonomousdatabasename }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified autonomous_databases resource.

/*+ delete */
DELETE FROM azure_isv.oracle.autonomous_databases
WHERE autonomousdatabasename = '{{ autonomousdatabasename }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';