# 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_SENSITIVE"),
variables=oci.mysql.models.ConfigurationVariables(
completion_type="RELEASE",
big_tables=True,
character_set_server="GREEK",
collation_server="UTF8_ICELANDIC_CI",
connection_memory_chunk_size=146946486,
connection_memory_limit=3101511352342754816,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=6794791770612070400,
global_connection_memory_tracking=True,
transaction_isolation="READ-COMMITED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=False,
group_replication_consistency="BEFORE",
group_concat_max_len=4530464852045923332,
innodb_ft_enable_stopword=False,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=153,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=3902242041584099328,
innodb_ft_result_cache_limit=1840157009,
max_binlog_cache_size=43469221311578,
max_connect_errors=3540497050100704257,
max_heap_table_size=5110749563960673280,
max_connections=99183,
max_prepared_stmt_count=2791860,
connect_timeout=18852588,
cte_max_recursion_depth=4046002611,
generated_random_password_length=24,
information_schema_stats_expiry=25217285,
innodb_buffer_pool_dump_pct=14,
innodb_buffer_pool_instances=23,
innodb_ddl_buffer_size=2268582239,
innodb_ddl_threads=56,
innodb_ft_max_token_size=51,
innodb_ft_min_token_size=9,
innodb_ft_num_word_optimize=828,
innodb_lock_wait_timeout=434096357,
innodb_max_purge_lag=1453038383,
innodb_max_purge_lag_delay=544061,
interactive_timeout=17969547,
innodb_stats_persistent_sample_pages=9036618117102511105,
innodb_stats_transient_sample_pages=8607862413260794881,
innodb_strict_mode=True,
max_allowed_packet=558946371,
max_execution_time=3435538222730237952,
mysqlx_connect_timeout=489954440,
mysqlx_document_id_unique_prefix=34734,
mysqlx_idle_worker_thread_timeout=551,
mysqlx_interactive_timeout=75171,
mysqlx_max_allowed_packet=760696622,
mysqlx_min_worker_threads=38,
mysqlx_read_timeout=176741,
mysqlx_wait_timeout=1635533,
mysqlx_write_timeout=441424,
net_read_timeout=16638850,
net_write_timeout=29225094,
parser_max_mem_size=2350092501629279360,
query_alloc_block_size=526597556,
query_prealloc_size=7701969218258717696,
regexp_time_limit=804623001,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=6749202364322662400,
mysqlx_deflate_default_compression_level=1,
mysqlx_deflate_max_client_compression_level=2,
mysqlx_lz4_max_client_compression_level=1,
mysqlx_lz4_default_compression_level=2,
mysqlx_zstd_max_client_compression_level=4,
mysqlx_zstd_default_compression_level=13,
mysql_zstd_default_compression_level=14,
sort_buffer_size=5881477123341546496,
wait_timeout=984143,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=63465,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=832620,
binlog_group_commit_sync_no_delay_count=54046,
replica_net_timeout=25468772,
require_secure_transport=True,
innodb_redo_log_capacity=56451810044,
thread_pool_transaction_delay=251852,
thread_pool_query_threads_per_group=2,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=7891775102660934656,
innodb_change_buffering="NONE",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=506186,
table_open_cache=345138,
relay_log_space_limit=5941224763427213312,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=213,
skip_name_resolve=False,
max_user_connections=4085265778,
join_buffer_size=8190008702877641856,
max_seeks_for_key=2877017671513601025,
range_optimizer_max_mem_size=259519949107460096,
auto_increment_increment=19922,
auto_increment_offset=59811,
innodb_autoinc_lock_mode=548,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=1091036881275261312,
innodb_sort_buffer_size=33751695,
innodb_numa_interleave=False,
thread_pool_size=8,
long_query_time=718287),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_da3Bv': 'EXAMPLE_VALUE_QwjYg2UWF4dDdUU4S9cF'},
defined_tags={
'EXAMPLE_KEY_oWdCd': {
'EXAMPLE_KEY_BWx72': 'EXAMPLE--Value'}}),
opc_request_id="FMO18WHLXW3LW0MTE5C2<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)