# 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="NO_CHAIN",
big_tables=True,
character_set_server="BIG5",
collation_server="GB18030_CHINESE_CI",
connection_memory_chunk_size=189474889,
connection_memory_limit=6794665999996441600,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=3417464115558462464,
global_connection_memory_tracking=True,
transaction_isolation="READ-COMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=True,
group_replication_consistency="AFTER",
group_concat_max_len=4818423346108952580,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=True,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=307,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=8602150342671764480,
innodb_ft_result_cache_limit=2210688374,
max_binlog_cache_size=18685793413035,
max_connect_errors=1932320583002706945,
max_heap_table_size=3052318777522523648,
max_connections=36488,
max_prepared_stmt_count=2610363,
connect_timeout=19654985,
cte_max_recursion_depth=2408414948,
generated_random_password_length=33,
information_schema_stats_expiry=29824563,
innodb_buffer_pool_dump_pct=35,
innodb_buffer_pool_instances=5,
innodb_ddl_buffer_size=2257735091,
innodb_ddl_threads=20,
innodb_ft_max_token_size=66,
innodb_ft_min_token_size=8,
innodb_ft_num_word_optimize=593,
innodb_lock_wait_timeout=435186152,
innodb_max_purge_lag=1596484495,
innodb_max_purge_lag_delay=871722,
interactive_timeout=15515062,
innodb_stats_persistent_sample_pages=8869767954428353537,
innodb_stats_transient_sample_pages=6227804618707211265,
innodb_strict_mode=True,
max_allowed_packet=249301338,
max_execution_time=8679949015850989568,
mysqlx_connect_timeout=887663923,
mysqlx_document_id_unique_prefix=45826,
mysqlx_idle_worker_thread_timeout=3222,
mysqlx_interactive_timeout=145897,
mysqlx_max_allowed_packet=154750834,
mysqlx_min_worker_threads=93,
mysqlx_read_timeout=450827,
mysqlx_wait_timeout=2126283,
mysqlx_write_timeout=748470,
net_read_timeout=13843852,
net_write_timeout=7911286,
parser_max_mem_size=1795978807236799360,
query_alloc_block_size=1211837308,
query_prealloc_size=1189326831376439296,
regexp_time_limit=800393342,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=9047608257704213504,
mysqlx_deflate_default_compression_level=8,
mysqlx_deflate_max_client_compression_level=4,
mysqlx_lz4_max_client_compression_level=15,
mysqlx_lz4_default_compression_level=9,
mysqlx_zstd_max_client_compression_level=15,
mysqlx_zstd_default_compression_level=15,
mysql_zstd_default_compression_level=7,
sort_buffer_size=7481396639029683200,
wait_timeout=1710033,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=55263,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=72987,
binlog_group_commit_sync_no_delay_count=81962,
replica_net_timeout=27988797,
require_secure_transport=False,
innodb_redo_log_capacity=127364254292,
thread_pool_transaction_delay=128297,
thread_pool_query_threads_per_group=699,
explain_format="JSON",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=5620876677407240192,
innodb_change_buffering="ALL",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=501776,
table_open_cache=150497,
relay_log_space_limit=8127422354396001280,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=475,
skip_name_resolve=False,
max_user_connections=1731766034,
join_buffer_size=9108603613891809408,
max_seeks_for_key=8942941478686596097,
range_optimizer_max_mem_size=8688455613288130560,
auto_increment_increment=17792,
auto_increment_offset=35820,
innodb_autoinc_lock_mode=313,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=7493572556568284160,
innodb_sort_buffer_size=51225170,
innodb_numa_interleave=True,
thread_pool_size=201,
long_query_time=15997235),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_UMpbP': 'EXAMPLE_VALUE_iRr44PxcZUie1mmLkSBT'},
defined_tags={
'EXAMPLE_KEY_1ahwY': {
'EXAMPLE_KEY_cYn9l': 'EXAMPLE--Value'}}),
opc_request_id="T7OV2LVTAEMDZDHMFJ2H<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)