# 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=False,
character_set_server="TIS620",
collation_server="UTF8MB4_IS_0900_AI_CI",
connection_memory_chunk_size=444928959,
connection_memory_limit=1779809046443234048,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=796719751768767616,
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_AND_AFTER",
group_concat_max_len=6976300315461806084,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=True,
sql_warnings=True,
binlog_expire_logs_seconds=436,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=197250744075257344,
innodb_ft_result_cache_limit=1337011166,
max_binlog_cache_size=11148636000115,
max_connect_errors=5757196447823366145,
max_heap_table_size=1532169626551137536,
max_connections=9520,
max_prepared_stmt_count=3456645,
connect_timeout=3365919,
cte_max_recursion_depth=2943435277,
generated_random_password_length=121,
information_schema_stats_expiry=10259209,
innodb_buffer_pool_dump_pct=18,
innodb_buffer_pool_instances=33,
innodb_ddl_buffer_size=2514331077,
innodb_ddl_threads=50,
innodb_ft_max_token_size=55,
innodb_ft_min_token_size=15,
innodb_ft_num_word_optimize=51,
innodb_lock_wait_timeout=909204618,
innodb_max_purge_lag=3084466911,
innodb_max_purge_lag_delay=75844,
interactive_timeout=21204075,
innodb_stats_persistent_sample_pages=6524628888985753601,
innodb_stats_transient_sample_pages=8943033358045469697,
innodb_strict_mode=True,
max_allowed_packet=649578518,
max_execution_time=3277974893269520384,
mysqlx_connect_timeout=270368276,
mysqlx_document_id_unique_prefix=11015,
mysqlx_idle_worker_thread_timeout=779,
mysqlx_interactive_timeout=1267566,
mysqlx_max_allowed_packet=929149895,
mysqlx_min_worker_threads=70,
mysqlx_read_timeout=786638,
mysqlx_wait_timeout=1514925,
mysqlx_write_timeout=1007895,
net_read_timeout=15264411,
net_write_timeout=30296292,
parser_max_mem_size=1819943721849683584,
query_alloc_block_size=4040605479,
query_prealloc_size=5582771319791666176,
regexp_time_limit=1310077361,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=2218884270330644224,
mysqlx_deflate_default_compression_level=6,
mysqlx_deflate_max_client_compression_level=1,
mysqlx_lz4_max_client_compression_level=15,
mysqlx_lz4_default_compression_level=14,
mysqlx_zstd_max_client_compression_level=6,
mysqlx_zstd_default_compression_level=11,
mysql_zstd_default_compression_level=17,
sort_buffer_size=324829350471426944,
wait_timeout=145030,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=7804,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=862740,
binlog_group_commit_sync_no_delay_count=56587,
replica_net_timeout=14051920,
require_secure_transport=False,
innodb_redo_log_capacity=127878942095,
thread_pool_transaction_delay=228417,
thread_pool_query_threads_per_group=1288,
explain_format="TREE",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=2189091671747878912,
innodb_change_buffering="INSERTS",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=381674,
table_open_cache=83050,
relay_log_space_limit=4270206564102543360,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=255,
skip_name_resolve=False,
max_user_connections=603959820,
join_buffer_size=4357130642725985408,
max_seeks_for_key=7826821919283146753,
range_optimizer_max_mem_size=6909227111023285248,
auto_increment_increment=62554,
auto_increment_offset=60959,
innodb_autoinc_lock_mode=334,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=4000768067028408320,
innodb_sort_buffer_size=15153112,
innodb_numa_interleave=False,
thread_pool_size=278,
long_query_time=24173967),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_PAYR9': 'EXAMPLE_VALUE_x4UFH5h6HmERilcEBUId'},
defined_tags={
'EXAMPLE_KEY_Nv6XX': {
'EXAMPLE_KEY_MP5rd': 'EXAMPLE--Value'}}),
opc_request_id="KQ9Q7TWFMRLU3NHYAGOQ<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)