# 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="CHAIN",
big_tables=False,
character_set_server="KOI8U",
collation_server="ARMSCII8_BIN",
connection_memory_chunk_size=161972776,
connection_memory_limit=5010119284049467392,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=8415123663208298496,
global_connection_memory_tracking=True,
transaction_isolation="READ-COMMITED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=False,
group_replication_consistency="AFTER",
group_concat_max_len=9176724858019129348,
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=754,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=966247376194663040,
innodb_ft_result_cache_limit=1899394366,
max_binlog_cache_size=63520483059344,
max_connect_errors=5199338224821374977,
max_heap_table_size=4331117714896745984,
max_connections=55168,
max_prepared_stmt_count=212312,
connect_timeout=4868303,
cte_max_recursion_depth=1748103914,
generated_random_password_length=5,
information_schema_stats_expiry=7923069,
innodb_buffer_pool_dump_pct=69,
innodb_buffer_pool_instances=53,
innodb_ddl_buffer_size=3634052814,
innodb_ddl_threads=27,
innodb_ft_max_token_size=66,
innodb_ft_min_token_size=7,
innodb_ft_num_word_optimize=962,
innodb_lock_wait_timeout=52387237,
innodb_max_purge_lag=1311368286,
innodb_max_purge_lag_delay=688510,
interactive_timeout=18130667,
innodb_stats_persistent_sample_pages=8554043915039152129,
innodb_stats_transient_sample_pages=5662708563264241665,
innodb_strict_mode=False,
max_allowed_packet=542167231,
max_execution_time=1370521424035328000,
mysqlx_connect_timeout=413910781,
mysqlx_document_id_unique_prefix=46332,
mysqlx_idle_worker_thread_timeout=1917,
mysqlx_interactive_timeout=458427,
mysqlx_max_allowed_packet=1000527792,
mysqlx_min_worker_threads=76,
mysqlx_read_timeout=1509587,
mysqlx_wait_timeout=941202,
mysqlx_write_timeout=511363,
net_read_timeout=24208178,
net_write_timeout=24409186,
parser_max_mem_size=6863031301597855360,
query_alloc_block_size=1866430972,
query_prealloc_size=8308876262186179584,
regexp_time_limit=793960156,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=3438718071921851904,
mysqlx_deflate_default_compression_level=8,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=11,
mysqlx_lz4_default_compression_level=8,
mysqlx_zstd_max_client_compression_level=12,
mysqlx_zstd_default_compression_level=15,
mysql_zstd_default_compression_level=10,
sort_buffer_size=2886607089284784128,
wait_timeout=2127188,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=3542,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=349939,
binlog_group_commit_sync_no_delay_count=40141,
replica_net_timeout=12136857,
require_secure_transport=False,
innodb_redo_log_capacity=110740980690,
thread_pool_transaction_delay=178703,
thread_pool_query_threads_per_group=881,
explain_format="JSON",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=7308156375218361344,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=188711,
table_open_cache=334873,
relay_log_space_limit=4820619340698704896,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=515,
skip_name_resolve=False,
max_user_connections=2196600410,
join_buffer_size=9021189748521306240,
max_seeks_for_key=4030200064720629761,
range_optimizer_max_mem_size=9134441312562967552,
auto_increment_increment=62923,
auto_increment_offset=20842,
innodb_autoinc_lock_mode=914,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=6561029671729853440,
innodb_sort_buffer_size=37563283,
innodb_numa_interleave=False,
thread_pool_size=230,
long_query_time=2082440),
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_YpCck': 'EXAMPLE_VALUE_GT6u4ueE3ACnDwDyOdog'},
defined_tags={
'EXAMPLE_KEY_dfA7u': {
'EXAMPLE_KEY_M30eE': 'EXAMPLE--Value'}}),
opc_request_id="VIZBAFUCJ9YJRFNKWMOP<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)