# 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="RELEASE",
big_tables=False,
character_set_server="CP852",
collation_server="UTF8MB4_SLOVENIAN_CI",
connection_memory_chunk_size=92755314,
connection_memory_limit=2923109944108244992,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=9102692157044662272,
global_connection_memory_tracking=True,
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="BEFORE_AND_AFTER",
group_concat_max_len=2735370721453346820,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=225,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=1868641686238706432,
innodb_ft_result_cache_limit=2923745329,
max_binlog_cache_size=6502440930954,
max_connect_errors=8025160299892603905,
max_heap_table_size=1813803280115608320,
max_connections=57797,
max_prepared_stmt_count=2354002,
connect_timeout=15070965,
cte_max_recursion_depth=2791764552,
generated_random_password_length=159,
information_schema_stats_expiry=23912590,
innodb_buffer_pool_dump_pct=5,
innodb_buffer_pool_instances=16,
innodb_ddl_buffer_size=3142220385,
innodb_ddl_threads=37,
innodb_ft_max_token_size=45,
innodb_ft_min_token_size=9,
innodb_ft_num_word_optimize=165,
innodb_lock_wait_timeout=679510976,
innodb_max_purge_lag=1795165031,
innodb_max_purge_lag_delay=924069,
interactive_timeout=27582068,
innodb_stats_persistent_sample_pages=6161190238214514689,
innodb_stats_transient_sample_pages=2285125425969973249,
innodb_strict_mode=True,
max_allowed_packet=555898941,
max_execution_time=8074249315760882688,
mysqlx_connect_timeout=840690594,
mysqlx_document_id_unique_prefix=31037,
mysqlx_idle_worker_thread_timeout=2936,
mysqlx_interactive_timeout=1476948,
mysqlx_max_allowed_packet=193090376,
mysqlx_min_worker_threads=50,
mysqlx_read_timeout=1717675,
mysqlx_wait_timeout=1420173,
mysqlx_write_timeout=1419839,
net_read_timeout=17906571,
net_write_timeout=24036767,
parser_max_mem_size=186695344885985216,
query_alloc_block_size=3840468961,
query_prealloc_size=679588221425305984,
regexp_time_limit=1643799217,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=2661299279953399296,
mysqlx_deflate_default_compression_level=1,
mysqlx_deflate_max_client_compression_level=8,
mysqlx_lz4_max_client_compression_level=8,
mysqlx_lz4_default_compression_level=13,
mysqlx_zstd_max_client_compression_level=10,
mysqlx_zstd_default_compression_level=11,
mysql_zstd_default_compression_level=8,
sort_buffer_size=8431583150254108672,
wait_timeout=818688,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=50950,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=99214,
binlog_group_commit_sync_no_delay_count=16435,
replica_net_timeout=24833839,
require_secure_transport=False,
innodb_redo_log_capacity=10119801358,
thread_pool_transaction_delay=229558,
thread_pool_query_threads_per_group=2454,
explain_format="JSON",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=4518051779076576256,
innodb_change_buffering="CHANGES",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=13464,
table_open_cache=134718,
relay_log_space_limit=4330674423268505600,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=686,
skip_name_resolve=False,
max_user_connections=974149500,
join_buffer_size=8507356597694859392,
max_seeks_for_key=5263875255063704577,
range_optimizer_max_mem_size=8650047051117569024,
auto_increment_increment=29782,
auto_increment_offset=22032,
innodb_autoinc_lock_mode=248,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=8532617150532644864,
innodb_sort_buffer_size=48556232,
innodb_numa_interleave=True,
thread_pool_size=328,
long_query_time=976981),
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_NeRKd': 'EXAMPLE_VALUE_zbYdIGBZb6wShcsnmnE4'},
defined_tags={
'EXAMPLE_KEY_SAHdP': {
'EXAMPLE_KEY_mCm1M': 'EXAMPLE--Value'}}),
opc_request_id="EKGH6VBLRGDMD4QMGXW8<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)