# 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="CHAIN",
big_tables=True,
connection_memory_chunk_size=179630534,
connection_memory_limit=2131630321972882176,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=8894932283340143616,
global_connection_memory_tracking=True,
transaction_isolation="READ-UNCOMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=True,
group_replication_consistency="EVENTUAL",
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=778,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=5670393050704177152,
innodb_ft_result_cache_limit=996549198,
max_binlog_cache_size=23593802276557,
max_connect_errors=4488428437053456385,
max_heap_table_size=6100251510157139968,
max_connections=13682,
max_prepared_stmt_count=1814556,
connect_timeout=749218,
cte_max_recursion_depth=3598394615,
generated_random_password_length=181,
information_schema_stats_expiry=30791750,
innodb_buffer_pool_dump_pct=77,
innodb_buffer_pool_instances=25,
innodb_ddl_buffer_size=807545352,
innodb_ddl_threads=57,
innodb_ft_max_token_size=64,
innodb_ft_min_token_size=12,
innodb_ft_num_word_optimize=921,
innodb_lock_wait_timeout=372954931,
innodb_max_purge_lag=2189956668,
innodb_max_purge_lag_delay=72395,
interactive_timeout=14929791,
innodb_stats_persistent_sample_pages=2640150111290714113,
innodb_stats_transient_sample_pages=1927230187807495169,
max_allowed_packet=520910292,
max_execution_time=614131815960913920,
mysqlx_connect_timeout=505117725,
mysqlx_document_id_unique_prefix=38425,
mysqlx_idle_worker_thread_timeout=3504,
mysqlx_interactive_timeout=1255080,
mysqlx_max_allowed_packet=952629027,
mysqlx_min_worker_threads=24,
mysqlx_read_timeout=25809,
mysqlx_wait_timeout=378528,
mysqlx_write_timeout=581800,
net_read_timeout=11419218,
net_write_timeout=8117464,
parser_max_mem_size=8086695436445184640,
query_alloc_block_size=1499243356,
query_prealloc_size=1954242674588834048,
regexp_time_limit=381265053,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=5227708286435306496,
mysqlx_deflate_default_compression_level=3,
mysqlx_deflate_max_client_compression_level=1,
mysqlx_lz4_max_client_compression_level=5,
mysqlx_lz4_default_compression_level=8,
mysqlx_zstd_max_client_compression_level=8,
mysqlx_zstd_default_compression_level=9,
mysql_zstd_default_compression_level=8,
sort_buffer_size=1820858475891424000,
wait_timeout=1950120,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=99365,
time_zone="EXAMPLE-timeZone-Value"),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_F1Glg': 'EXAMPLE_VALUE_fNfQgOcZ1ieVc6KnUQDj'},
defined_tags={
'EXAMPLE_KEY_4LKQr': {
'EXAMPLE_KEY_H9pai': 'EXAMPLE--Value'}}),
opc_request_id="BWHMK0U2PYF9YPFWZMMA<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)