# 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="NO_CHAIN",
big_tables=True,
character_set_server="UTF8MB3",
collation_server="DEC8_SWEDISH_CI",
connection_memory_chunk_size=489904988,
connection_memory_limit=6824277977846197248,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=7141263325446345728,
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=True,
group_replication_consistency="AFTER",
group_concat_max_len=9000273612616367108,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=True,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=191,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=1549431409173517312,
innodb_ft_result_cache_limit=4255499681,
max_binlog_cache_size=61090703643138,
max_connect_errors=6419427421414654977,
max_heap_table_size=359809980182281600,
max_connections=20396,
max_prepared_stmt_count=3578415,
connect_timeout=12801547,
cte_max_recursion_depth=108136663,
generated_random_password_length=212,
information_schema_stats_expiry=3865272,
innodb_buffer_pool_dump_pct=79,
innodb_buffer_pool_instances=54,
innodb_ddl_buffer_size=1793441457,
innodb_ddl_threads=33,
innodb_ft_max_token_size=71,
innodb_ft_min_token_size=4,
innodb_ft_num_word_optimize=826,
innodb_lock_wait_timeout=517466723,
innodb_max_purge_lag=1014032294,
innodb_max_purge_lag_delay=740497,
interactive_timeout=16317247,
innodb_stats_persistent_sample_pages=8400364564332630017,
innodb_stats_transient_sample_pages=8011299969814076417,
innodb_strict_mode=True,
max_allowed_packet=344135726,
max_execution_time=4531095097326848000,
mysqlx_connect_timeout=399508880,
mysqlx_document_id_unique_prefix=38781,
mysqlx_idle_worker_thread_timeout=1327,
mysqlx_interactive_timeout=1505006,
mysqlx_max_allowed_packet=71450252,
mysqlx_min_worker_threads=34,
mysqlx_read_timeout=1899387,
mysqlx_wait_timeout=568210,
mysqlx_write_timeout=1976927,
net_read_timeout=21784028,
net_write_timeout=237899,
parser_max_mem_size=3071494127965451904,
query_alloc_block_size=4284340754,
query_prealloc_size=3785561253679058432,
regexp_time_limit=173071299,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=1882670159127159552,
mysqlx_deflate_default_compression_level=8,
mysqlx_deflate_max_client_compression_level=2,
mysqlx_lz4_max_client_compression_level=8,
mysqlx_lz4_default_compression_level=1,
mysqlx_zstd_max_client_compression_level=6,
mysqlx_zstd_default_compression_level=11,
mysql_zstd_default_compression_level=2,
sort_buffer_size=3898982256955303424,
wait_timeout=924278,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=50625,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=33387,
binlog_group_commit_sync_no_delay_count=52449,
replica_net_timeout=25175469,
require_secure_transport=True,
innodb_redo_log_capacity=28552445388,
thread_pool_transaction_delay=133034,
thread_pool_query_threads_per_group=2284,
explain_format="TREE",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=134342865087657136,
innodb_change_buffering="CHANGES",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=175157,
table_open_cache=420895,
relay_log_space_limit=3838131339158135808,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=750,
skip_name_resolve=False,
max_user_connections=1835905269,
join_buffer_size=3201540028233300096,
max_seeks_for_key=5515530418514224129,
range_optimizer_max_mem_size=5818800606156440576,
auto_increment_increment=62679,
auto_increment_offset=50811,
innodb_autoinc_lock_mode=916,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=7539184175402037248,
innodb_sort_buffer_size=29735914,
innodb_numa_interleave=True,
thread_pool_size=25,
long_query_time=22251817),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_KuMjo': 'EXAMPLE_VALUE_hoFMcipmzR0kYECggpWK'},
defined_tags={
'EXAMPLE_KEY_oXMYK': {
'EXAMPLE_KEY_1RGJ2': 'EXAMPLE--Value'}}),
opc_request_id="JIYAGKYSKIWNGUGQTVAN<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)