# 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=True,
character_set_server="CP1251",
collation_server="CP850_BIN",
connection_memory_chunk_size=279042593,
connection_memory_limit=477848915218831232,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=550120687378494336,
global_connection_memory_tracking=True,
transaction_isolation="READ-UNCOMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=False,
group_replication_consistency="BEFORE_AND_AFTER",
group_concat_max_len=75066418317647876,
innodb_ft_enable_stopword=False,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=227,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=7703591186239923200,
innodb_ft_result_cache_limit=3140228240,
max_binlog_cache_size=50636184460750,
max_connect_errors=7821268590769159169,
max_heap_table_size=6920224048638327808,
max_connections=67021,
max_prepared_stmt_count=3273398,
connect_timeout=7507995,
cte_max_recursion_depth=3521134524,
generated_random_password_length=5,
information_schema_stats_expiry=22119951,
innodb_buffer_pool_dump_pct=75,
innodb_buffer_pool_instances=63,
innodb_ddl_buffer_size=2178272381,
innodb_ddl_threads=18,
innodb_ft_max_token_size=77,
innodb_ft_min_token_size=12,
innodb_ft_num_word_optimize=449,
innodb_lock_wait_timeout=761527608,
innodb_max_purge_lag=260394112,
innodb_max_purge_lag_delay=277712,
interactive_timeout=14968117,
innodb_stats_persistent_sample_pages=7253012352300534785,
innodb_stats_transient_sample_pages=325101658762340353,
innodb_strict_mode=True,
max_allowed_packet=824523870,
max_execution_time=6555685071564592128,
mysqlx_connect_timeout=220362923,
mysqlx_document_id_unique_prefix=16827,
mysqlx_idle_worker_thread_timeout=3022,
mysqlx_interactive_timeout=1612743,
mysqlx_max_allowed_packet=389958864,
mysqlx_min_worker_threads=61,
mysqlx_read_timeout=488533,
mysqlx_wait_timeout=2018701,
mysqlx_write_timeout=282862,
net_read_timeout=2228495,
net_write_timeout=2521134,
parser_max_mem_size=8452393448934283904,
query_alloc_block_size=398147489,
query_prealloc_size=808067337403738368,
regexp_time_limit=1315498325,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=1504819385717539584,
mysqlx_deflate_default_compression_level=8,
mysqlx_deflate_max_client_compression_level=5,
mysqlx_lz4_max_client_compression_level=12,
mysqlx_lz4_default_compression_level=11,
mysqlx_zstd_max_client_compression_level=13,
mysqlx_zstd_default_compression_level=16,
mysql_zstd_default_compression_level=4,
sort_buffer_size=3670897491579043328,
wait_timeout=525904,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=79619,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=613126,
binlog_group_commit_sync_no_delay_count=13601,
replica_net_timeout=28463355,
require_secure_transport=False,
innodb_redo_log_capacity=80336442496,
thread_pool_transaction_delay=81318,
thread_pool_query_threads_per_group=1391,
explain_format="TREE",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=589900610981389312,
innodb_change_buffering="INSERTS",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=139061,
table_open_cache=414742,
relay_log_space_limit=2996261878529462272,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=518,
skip_name_resolve=True,
max_user_connections=3823837368,
join_buffer_size=386528688832957568,
max_seeks_for_key=8830923228614678529,
range_optimizer_max_mem_size=1547466987926876160,
auto_increment_increment=1232,
auto_increment_offset=5560,
innodb_autoinc_lock_mode=933,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=5415194644790185984,
innodb_sort_buffer_size=43471508,
innodb_numa_interleave=True,
thread_pool_size=127,
long_query_time=6922852),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_vuuwI': 'EXAMPLE_VALUE_RlJKtqT3X4XhMGvPc3Ii'},
defined_tags={
'EXAMPLE_KEY_HVYr7': {
'EXAMPLE_KEY_sV7g8': 'EXAMPLE--Value'}}),
opc_request_id="RYZGEVHEH9FJFQBKMT6G<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)