# 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,
character_set_server="KOI8U",
collation_server="EUCKR_KOREAN_CI",
connection_memory_chunk_size=226257543,
connection_memory_limit=5612063861878759424,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=6435783840207032320,
global_connection_memory_tracking=True,
transaction_isolation="SERIALIZABLE",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=False,
group_replication_consistency="BEFORE",
group_concat_max_len=7077042037909489668,
innodb_ft_enable_stopword=False,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=False,
binlog_expire_logs_seconds=212,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=764316974064626432,
innodb_ft_result_cache_limit=257116644,
max_binlog_cache_size=45471097435716,
max_connect_errors=3633241548806511617,
max_heap_table_size=5138822935818413056,
max_connections=73920,
max_prepared_stmt_count=1554321,
connect_timeout=24685989,
cte_max_recursion_depth=1790703301,
generated_random_password_length=83,
information_schema_stats_expiry=13722600,
innodb_buffer_pool_dump_pct=97,
innodb_buffer_pool_instances=53,
innodb_ddl_buffer_size=1745896071,
innodb_ddl_threads=18,
innodb_ft_max_token_size=24,
innodb_ft_min_token_size=11,
innodb_ft_num_word_optimize=804,
innodb_lock_wait_timeout=407141583,
innodb_max_purge_lag=1382047719,
innodb_max_purge_lag_delay=466145,
interactive_timeout=4503101,
innodb_stats_persistent_sample_pages=9155658200796261377,
innodb_stats_transient_sample_pages=6995525831074343937,
innodb_strict_mode=False,
max_allowed_packet=400058106,
max_execution_time=6107141954766300160,
mysqlx_connect_timeout=131903876,
mysqlx_document_id_unique_prefix=3612,
mysqlx_idle_worker_thread_timeout=1618,
mysqlx_interactive_timeout=1191484,
mysqlx_max_allowed_packet=505978189,
mysqlx_min_worker_threads=6,
mysqlx_read_timeout=1400450,
mysqlx_wait_timeout=1727787,
mysqlx_write_timeout=1808363,
net_read_timeout=14470311,
net_write_timeout=125686,
parser_max_mem_size=6116344787643588224,
query_alloc_block_size=3121854511,
query_prealloc_size=6006245279778316288,
regexp_time_limit=1527790467,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=3130382799592643072,
mysqlx_deflate_default_compression_level=2,
mysqlx_deflate_max_client_compression_level=5,
mysqlx_lz4_max_client_compression_level=2,
mysqlx_lz4_default_compression_level=8,
mysqlx_zstd_max_client_compression_level=14,
mysqlx_zstd_default_compression_level=14,
mysql_zstd_default_compression_level=16,
sort_buffer_size=6957300204246327296,
wait_timeout=1053239,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=35348,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=967913,
binlog_group_commit_sync_no_delay_count=75532,
replica_net_timeout=11931756,
require_secure_transport=False,
innodb_redo_log_capacity=66807134029,
thread_pool_transaction_delay=271318,
thread_pool_query_threads_per_group=689,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=2358791255408787456,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=406342,
table_open_cache=322310,
relay_log_space_limit=3276289511197689856,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=463,
skip_name_resolve=True,
max_user_connections=2033851138,
join_buffer_size=3826144344309236864,
max_seeks_for_key=5168267000571404289,
range_optimizer_max_mem_size=6433561888231693312,
auto_increment_increment=29998,
auto_increment_offset=54946,
innodb_autoinc_lock_mode=57,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=1146777396213914624,
innodb_sort_buffer_size=2610088,
innodb_numa_interleave=True,
thread_pool_size=41,
long_query_time=10715582),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_arIAk': 'EXAMPLE_VALUE_uifzSLEBTxvqan7XYRVi'},
defined_tags={
'EXAMPLE_KEY_cfxoB': {
'EXAMPLE_KEY_c6x1O': 'EXAMPLE--Value'}}),
opc_request_id="7L22TVMDHKD9SHFM9KGG<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)