# 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="CP1257",
collation_server="HEBREW_BIN",
connection_memory_chunk_size=146439380,
connection_memory_limit=5312765046677894144,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=8193455536351705088,
global_connection_memory_tracking=False,
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="EVENTUAL",
group_concat_max_len=7426589762976925700,
innodb_ft_enable_stopword=False,
innodb_log_writer_threads=True,
local_infile=True,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=778,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=876659492478982528,
innodb_ft_result_cache_limit=1834590155,
max_binlog_cache_size=55407927270321,
max_connect_errors=6920414763550136321,
max_heap_table_size=3084679267481314816,
max_connections=30706,
max_prepared_stmt_count=1449430,
connect_timeout=29995792,
cte_max_recursion_depth=376057107,
generated_random_password_length=88,
information_schema_stats_expiry=22162160,
innodb_buffer_pool_dump_pct=83,
innodb_buffer_pool_instances=59,
innodb_ddl_buffer_size=2570884294,
innodb_ddl_threads=29,
innodb_ft_max_token_size=78,
innodb_ft_min_token_size=2,
innodb_ft_num_word_optimize=768,
innodb_lock_wait_timeout=196877516,
innodb_max_purge_lag=2391739688,
innodb_max_purge_lag_delay=957928,
interactive_timeout=23178739,
innodb_stats_persistent_sample_pages=6609200818946495489,
innodb_stats_transient_sample_pages=7357073303169218561,
innodb_strict_mode=False,
max_allowed_packet=281411347,
max_execution_time=1872740871949623296,
mysqlx_connect_timeout=260312623,
mysqlx_document_id_unique_prefix=41698,
mysqlx_idle_worker_thread_timeout=1024,
mysqlx_interactive_timeout=963167,
mysqlx_max_allowed_packet=1056780886,
mysqlx_min_worker_threads=10,
mysqlx_read_timeout=931872,
mysqlx_wait_timeout=1703234,
mysqlx_write_timeout=541705,
net_read_timeout=4612322,
net_write_timeout=942138,
parser_max_mem_size=1454790105300452480,
query_alloc_block_size=1806186621,
query_prealloc_size=3770283651398260224,
regexp_time_limit=696375445,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=5074012278212700160,
mysqlx_deflate_default_compression_level=8,
mysqlx_deflate_max_client_compression_level=8,
mysqlx_lz4_max_client_compression_level=13,
mysqlx_lz4_default_compression_level=14,
mysqlx_zstd_max_client_compression_level=1,
mysqlx_zstd_default_compression_level=4,
mysql_zstd_default_compression_level=7,
sort_buffer_size=366094917241049856,
wait_timeout=651475,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=77347,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=12671,
binlog_group_commit_sync_no_delay_count=18031,
replica_net_timeout=5569880,
require_secure_transport=False,
innodb_redo_log_capacity=60075705041,
thread_pool_transaction_delay=17153,
thread_pool_query_threads_per_group=345,
explain_format="TREE",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=True,
temptable_max_ram=7578501854817728512,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=381143,
table_open_cache=149188,
relay_log_space_limit=1724953080181174272,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=867,
skip_name_resolve=True,
max_user_connections=2605200199,
join_buffer_size=4671653046858999936,
max_seeks_for_key=5215716661265231873,
range_optimizer_max_mem_size=8882341888198788096,
auto_increment_increment=25999,
auto_increment_offset=3928,
innodb_autoinc_lock_mode=415,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=7208163932047637504,
innodb_sort_buffer_size=59292447,
innodb_numa_interleave=True,
thread_pool_size=216,
long_query_time=11379096),
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_e9diB': 'EXAMPLE_VALUE_UlBLQkw3GrstcOM9G3j6'},
defined_tags={
'EXAMPLE_KEY_RDJiK': {
'EXAMPLE_KEY_XnBo8': 'EXAMPLE--Value'}}),
opc_request_id="O1UL1ID9RTRVHKIQTU5U<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)