# 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="NO_CHAIN",
big_tables=True,
character_set_server="ARMSCII8",
collation_server="EUCJPMS_BIN",
connection_memory_chunk_size=22962945,
connection_memory_limit=4535887233147313152,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=2154853687122263552,
global_connection_memory_tracking=True,
transaction_isolation="READ-COMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=False,
group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
group_concat_max_len=8171782700016249860,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=711,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=7800092847453232128,
innodb_ft_result_cache_limit=1740936595,
max_binlog_cache_size=27328089591608,
max_connect_errors=1719369702728024065,
max_heap_table_size=1607160388828142848,
max_connections=40249,
max_prepared_stmt_count=2813756,
connect_timeout=2360891,
cte_max_recursion_depth=1122819488,
generated_random_password_length=137,
information_schema_stats_expiry=26494051,
innodb_buffer_pool_dump_pct=51,
innodb_buffer_pool_instances=12,
innodb_ddl_buffer_size=4248917659,
innodb_ddl_threads=22,
innodb_ft_max_token_size=70,
innodb_ft_min_token_size=13,
innodb_ft_num_word_optimize=789,
innodb_lock_wait_timeout=68894507,
innodb_max_purge_lag=2197845304,
innodb_max_purge_lag_delay=548158,
interactive_timeout=2579791,
innodb_stats_persistent_sample_pages=9068272854687135745,
innodb_stats_transient_sample_pages=4693389852321451009,
innodb_strict_mode=False,
max_allowed_packet=145968120,
max_execution_time=8238720083855443968,
mysqlx_connect_timeout=791298321,
mysqlx_document_id_unique_prefix=31089,
mysqlx_idle_worker_thread_timeout=440,
mysqlx_interactive_timeout=890423,
mysqlx_max_allowed_packet=1056773022,
mysqlx_min_worker_threads=56,
mysqlx_read_timeout=1246984,
mysqlx_wait_timeout=335191,
mysqlx_write_timeout=39799,
net_read_timeout=1909586,
net_write_timeout=18405839,
parser_max_mem_size=8452961434313550464,
query_alloc_block_size=1193024868,
query_prealloc_size=769496249764325760,
regexp_time_limit=79014387,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=306336902757653440,
mysqlx_deflate_default_compression_level=6,
mysqlx_deflate_max_client_compression_level=6,
mysqlx_lz4_max_client_compression_level=14,
mysqlx_lz4_default_compression_level=6,
mysqlx_zstd_max_client_compression_level=8,
mysqlx_zstd_default_compression_level=16,
mysql_zstd_default_compression_level=2,
sort_buffer_size=8647596805367231488,
wait_timeout=1239937,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=24774,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=106816,
binlog_group_commit_sync_no_delay_count=35855,
replica_net_timeout=12215607,
require_secure_transport=True,
innodb_redo_log_capacity=37454534569,
thread_pool_transaction_delay=205704,
thread_pool_query_threads_per_group=3937,
explain_format="JSON",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=1234843570939826944,
innodb_change_buffering="CHANGES",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=328181,
table_open_cache=314861,
relay_log_space_limit=8969785359265581056,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=656,
skip_name_resolve=True,
max_user_connections=1291701965,
join_buffer_size=1829961648565166208,
max_seeks_for_key=4038183146689092609,
range_optimizer_max_mem_size=8683482441382566912,
auto_increment_increment=54425,
auto_increment_offset=32218,
innodb_autoinc_lock_mode=547,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=6408091733271306240,
innodb_sort_buffer_size=57258402,
innodb_numa_interleave=False,
thread_pool_size=262,
long_query_time=28223644),
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_bFGG2': 'EXAMPLE_VALUE_HEwTgu0IsYjAnunpiSRP'},
defined_tags={
'EXAMPLE_KEY_LDiOY': {
'EXAMPLE_KEY_gPu7S': 'EXAMPLE--Value'}}),
opc_request_id="HR8CDY3JFIARLYYQ7PUN<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)