# 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=True,
character_set_server="UCS2",
collation_server="UTF8MB4_HU_0900_AS_CS",
connection_memory_chunk_size=87714363,
connection_memory_limit=1302781551288466176,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=6987583020349070336,
global_connection_memory_tracking=False,
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="EVENTUAL",
group_concat_max_len=6234558439526876164,
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=True,
sql_warnings=True,
binlog_expire_logs_seconds=775,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=8718838134913520640,
innodb_ft_result_cache_limit=1342120970,
max_binlog_cache_size=48788430002477,
max_connect_errors=372787573269212161,
max_heap_table_size=7551088308016977920,
max_connections=96654,
max_prepared_stmt_count=475139,
connect_timeout=17916302,
cte_max_recursion_depth=1833243188,
generated_random_password_length=129,
information_schema_stats_expiry=15075165,
innodb_buffer_pool_dump_pct=71,
innodb_buffer_pool_instances=59,
innodb_ddl_buffer_size=209608393,
innodb_ddl_threads=51,
innodb_ft_max_token_size=12,
innodb_ft_min_token_size=3,
innodb_ft_num_word_optimize=951,
innodb_lock_wait_timeout=67471721,
innodb_max_purge_lag=2646579915,
innodb_max_purge_lag_delay=877393,
interactive_timeout=4138803,
innodb_stats_persistent_sample_pages=1867718340625121281,
innodb_stats_transient_sample_pages=7187344604729881601,
innodb_strict_mode=True,
max_allowed_packet=272399787,
max_execution_time=654022392761131008,
mysqlx_connect_timeout=911869161,
mysqlx_document_id_unique_prefix=40827,
mysqlx_idle_worker_thread_timeout=2939,
mysqlx_interactive_timeout=1746435,
mysqlx_max_allowed_packet=297280819,
mysqlx_min_worker_threads=72,
mysqlx_read_timeout=1858202,
mysqlx_wait_timeout=593586,
mysqlx_write_timeout=122727,
net_read_timeout=19275929,
net_write_timeout=18838353,
parser_max_mem_size=3442994440094119040,
query_alloc_block_size=3158607128,
query_prealloc_size=7170044889964884992,
regexp_time_limit=2122397055,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=7445376267417293824,
mysqlx_deflate_default_compression_level=2,
mysqlx_deflate_max_client_compression_level=5,
mysqlx_lz4_max_client_compression_level=6,
mysqlx_lz4_default_compression_level=10,
mysqlx_zstd_max_client_compression_level=7,
mysqlx_zstd_default_compression_level=17,
mysql_zstd_default_compression_level=13,
sort_buffer_size=2433246661044910592,
wait_timeout=1233038,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=82571,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=973916,
binlog_group_commit_sync_no_delay_count=50680,
replica_net_timeout=4709693,
require_secure_transport=False,
innodb_redo_log_capacity=90419292239,
thread_pool_transaction_delay=32329,
thread_pool_query_threads_per_group=477,
explain_format="JSON",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=8597950491692692480,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=255189,
table_open_cache=23395,
relay_log_space_limit=3173143815997181952,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=754,
skip_name_resolve=True,
max_user_connections=2855926647,
join_buffer_size=5850457475436773504,
max_seeks_for_key=8689371855537452033,
range_optimizer_max_mem_size=5657565114191774720,
auto_increment_increment=23918,
auto_increment_offset=17993,
innodb_autoinc_lock_mode=94,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=2851060450339506176,
innodb_sort_buffer_size=1272180,
innodb_numa_interleave=True,
thread_pool_size=411,
long_query_time=14710141),
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_Cc11y': 'EXAMPLE_VALUE_KZuuErHG4DeNZosbaNUn'},
defined_tags={
'EXAMPLE_KEY_aPnKH': {
'EXAMPLE_KEY_SkQ9w': 'EXAMPLE--Value'}}),
opc_request_id="2ZV351FT8WME3SDDUUZ3<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)