due to documentation a "private-endpoint-type" autonomous database can be updated to "public-endpoint-type" one by executing the following command :
oci db autonomous-database update --autonomous-database-id "$ADB_ID" --private-endpoint-label ""
i.e. - setting --private-endpoint-label to an empty string
Source:
https://docs.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/db/autonomous-database/update.html
however - when executed this command raises the following error:
"message": "The DNS prefix or Subnet ID for Autonomous AI Database private endpoints cannot be updated."
...
"operation_name": "update_autonomous_database",
...
"status": 400,
"target_service": "database",
which means, that although updating an ADB from public to private network works fine, it is not possible, by using OCI CLI to rollback the change
due to documentation a "private-endpoint-type" autonomous database can be updated to "public-endpoint-type" one by executing the following command :
oci db autonomous-database update --autonomous-database-id "$ADB_ID" --private-endpoint-label ""
i.e. - setting --private-endpoint-label to an empty string
Source:
https://docs.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/db/autonomous-database/update.html
however - when executed this command raises the following error:
"message": "The DNS prefix or Subnet ID for Autonomous AI Database private endpoints cannot be updated."
...
"operation_name": "update_autonomous_database",
...
"status": 400,
"target_service": "database",
which means, that although updating an ADB from public to private network works fine, it is not possible, by using OCI CLI to rollback the change