# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
import oci
# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()
# Initialize service client with default config file
mysql_client = oci.mysql.MysqlaasClient(config)
# Send the request to service, some parameters are not required, see API
# doc for more info
create_configuration_response = mysql_client.create_configuration(
create_configuration_details=oci.mysql.models.CreateConfigurationDetails(
compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
shape_name="EXAMPLE-shapeName-Value",
description="EXAMPLE-description-Value",
display_name="EXAMPLE-displayName-Value",
init_variables=oci.mysql.models.InitializationVariables(
lower_case_table_names="CASE_INSENSITIVE_LOWERCASE"),
variables=oci.mysql.models.ConfigurationVariables(
completion_type="CHAIN",
big_tables=False,
character_set_server="GEOSTD8",
collation_server="UTF8_UNICODE_CI",
connection_memory_chunk_size=513077494,
connection_memory_limit=278183918774485216,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=7780853812187881472,
global_connection_memory_tracking=False,
transaction_isolation="REPEATABLE-READ",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=False,
group_replication_consistency="EVENTUAL",
group_concat_max_len=4068005291902911492,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=795,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=1383393501658505216,
innodb_ft_result_cache_limit=3121124215,
max_binlog_cache_size=7275315026122,
max_connect_errors=5827156992757895169,
max_heap_table_size=5953856887816675328,
max_connections=12798,
max_prepared_stmt_count=3301237,
connect_timeout=6311443,
cte_max_recursion_depth=4291649597,
generated_random_password_length=172,
information_schema_stats_expiry=27678777,
innodb_buffer_pool_dump_pct=7,
innodb_buffer_pool_instances=60,
innodb_ddl_buffer_size=2204555946,
innodb_ddl_threads=41,
innodb_ft_max_token_size=68,
innodb_ft_min_token_size=2,
innodb_ft_num_word_optimize=84,
innodb_lock_wait_timeout=928354321,
innodb_max_purge_lag=365524474,
innodb_max_purge_lag_delay=458941,
interactive_timeout=15951172,
innodb_stats_persistent_sample_pages=4160827126621297665,
innodb_stats_transient_sample_pages=6120678734011977729,
innodb_strict_mode=True,
max_allowed_packet=260641622,
max_execution_time=8230662133533297664,
mysqlx_connect_timeout=800017173,
mysqlx_document_id_unique_prefix=9069,
mysqlx_idle_worker_thread_timeout=2900,
mysqlx_interactive_timeout=836491,
mysqlx_max_allowed_packet=969665002,
mysqlx_min_worker_threads=61,
mysqlx_read_timeout=1313151,
mysqlx_wait_timeout=1843557,
mysqlx_write_timeout=841251,
net_read_timeout=523260,
net_write_timeout=12771226,
parser_max_mem_size=8726709853136100992,
query_alloc_block_size=1703628361,
query_prealloc_size=5696603593825029120,
regexp_time_limit=176075938,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=8673875313668121600,
mysqlx_deflate_default_compression_level=5,
mysqlx_deflate_max_client_compression_level=6,
mysqlx_lz4_max_client_compression_level=0,
mysqlx_lz4_default_compression_level=2,
mysqlx_zstd_max_client_compression_level=3,
mysqlx_zstd_default_compression_level=7,
mysql_zstd_default_compression_level=14,
sort_buffer_size=3896382931926648320,
wait_timeout=55419,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=46711,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=279224,
binlog_group_commit_sync_no_delay_count=39823,
replica_net_timeout=20474302,
require_secure_transport=False,
innodb_redo_log_capacity=89476224832,
thread_pool_transaction_delay=193047,
thread_pool_query_threads_per_group=3193,
explain_format="TREE",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=4433026728186823168,
innodb_change_buffering="INSERTS",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=233113,
table_open_cache=272682,
relay_log_space_limit=3468140067493939200,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=1014,
skip_name_resolve=True,
max_user_connections=792299178,
join_buffer_size=1350762844281136256,
max_seeks_for_key=5063811302309806081,
range_optimizer_max_mem_size=1938158235583880192,
auto_increment_increment=31706,
auto_increment_offset=27912,
innodb_autoinc_lock_mode=783,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=5615837326355737600,
innodb_sort_buffer_size=27600266,
innodb_numa_interleave=False,
thread_pool_size=340,
long_query_time=30289643),
options=[
oci.mysql.models.Option(
name="EXAMPLE-name-Value",
value="EXAMPLE-value-Value")],
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_Kbec4': 'EXAMPLE_VALUE_syxukP6zHaka5rEkOSXC'},
defined_tags={
'EXAMPLE_KEY_wpM8g': {
'EXAMPLE_KEY_nRmGG': 'EXAMPLE--Value'}}),
opc_request_id="ZK8PAP0T5O7TJI00G0VZ<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)