# 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="LATIN1",
collation_server="UTF8MB4_LV_0900_AS_CS",
connection_memory_chunk_size=34014421,
connection_memory_limit=5953368956165297152,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=7808671660052207616,
global_connection_memory_tracking=True,
transaction_isolation="REPEATABLE-READ",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=True,
group_replication_consistency="BEFORE",
group_concat_max_len=7108163689831235588,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=True,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=208,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=2014639537955375872,
innodb_ft_result_cache_limit=2832779112,
max_binlog_cache_size=7902468451035,
max_connect_errors=1454666357246400513,
max_heap_table_size=8478368129591550976,
max_connections=28588,
max_prepared_stmt_count=1387426,
connect_timeout=17097659,
cte_max_recursion_depth=3919280264,
generated_random_password_length=151,
information_schema_stats_expiry=19279442,
innodb_buffer_pool_dump_pct=67,
innodb_buffer_pool_instances=19,
innodb_ddl_buffer_size=3209862918,
innodb_ddl_threads=25,
innodb_ft_max_token_size=68,
innodb_ft_min_token_size=1,
innodb_ft_num_word_optimize=731,
innodb_lock_wait_timeout=472532242,
innodb_max_purge_lag=2662603320,
innodb_max_purge_lag_delay=257794,
interactive_timeout=26568255,
innodb_stats_persistent_sample_pages=3713081705917777921,
innodb_stats_transient_sample_pages=3165724819897360385,
innodb_strict_mode=False,
max_allowed_packet=563740945,
max_execution_time=4038794304998627328,
mysqlx_connect_timeout=550165441,
mysqlx_document_id_unique_prefix=11173,
mysqlx_idle_worker_thread_timeout=1333,
mysqlx_interactive_timeout=1638902,
mysqlx_max_allowed_packet=130994376,
mysqlx_min_worker_threads=3,
mysqlx_read_timeout=1588653,
mysqlx_wait_timeout=628876,
mysqlx_write_timeout=1408357,
net_read_timeout=14501130,
net_write_timeout=11210456,
parser_max_mem_size=3067198751788723328,
query_alloc_block_size=3088431987,
query_prealloc_size=6311897095977351168,
regexp_time_limit=1573760986,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=8439912595558514688,
mysqlx_deflate_default_compression_level=7,
mysqlx_deflate_max_client_compression_level=1,
mysqlx_lz4_max_client_compression_level=11,
mysqlx_lz4_default_compression_level=11,
mysqlx_zstd_max_client_compression_level=3,
mysqlx_zstd_default_compression_level=4,
mysql_zstd_default_compression_level=14,
sort_buffer_size=1062566319373294976,
wait_timeout=861399,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=19445,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=165671,
binlog_group_commit_sync_no_delay_count=98038,
replica_net_timeout=7416225,
require_secure_transport=False,
innodb_redo_log_capacity=52024530782,
thread_pool_transaction_delay=221664,
thread_pool_query_threads_per_group=1046,
explain_format="JSON",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=7675871922306725888,
innodb_change_buffering="NONE",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=24003,
table_open_cache=492295,
relay_log_space_limit=664693600488965120,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=887,
skip_name_resolve=False,
max_user_connections=2708637574,
join_buffer_size=6386746217900580992,
max_seeks_for_key=1584359400333176833,
range_optimizer_max_mem_size=8967939895684717568,
auto_increment_increment=46551,
auto_increment_offset=56252,
innodb_autoinc_lock_mode=495,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=7017017204300546048,
innodb_sort_buffer_size=45589125,
innodb_numa_interleave=True,
thread_pool_size=97,
long_query_time=25044096),
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_FaAOG': 'EXAMPLE_VALUE_vHWCYAE7iaZqNmmaOBjI'},
defined_tags={
'EXAMPLE_KEY_2bxgW': {
'EXAMPLE_KEY_ihy2E': 'EXAMPLE--Value'}}),
opc_request_id="6WKT5Z6COL2YXQUKDJUA<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)