# 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=False,
character_set_server="CP932",
collation_server="UTF16_GENERAL_CI",
connection_memory_chunk_size=520319653,
connection_memory_limit=4482996348271839744,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=2179069193632263424,
global_connection_memory_tracking=False,
transaction_isolation="READ-COMMITED",
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=1228469672962665476,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=822,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=494510232750155264,
innodb_ft_result_cache_limit=3572459525,
max_binlog_cache_size=22545462072965,
max_connect_errors=8852843318079222785,
max_heap_table_size=1061316889342324864,
max_connections=31541,
max_prepared_stmt_count=2494552,
connect_timeout=10902083,
cte_max_recursion_depth=1276755069,
generated_random_password_length=73,
information_schema_stats_expiry=19637093,
innodb_buffer_pool_dump_pct=62,
innodb_buffer_pool_instances=58,
innodb_ddl_buffer_size=3318586327,
innodb_ddl_threads=13,
innodb_ft_max_token_size=43,
innodb_ft_min_token_size=6,
innodb_ft_num_word_optimize=14,
innodb_lock_wait_timeout=210749940,
innodb_max_purge_lag=2470532611,
innodb_max_purge_lag_delay=873237,
interactive_timeout=28426627,
innodb_stats_persistent_sample_pages=8274570601495823361,
innodb_stats_transient_sample_pages=4144424857151107073,
innodb_strict_mode=False,
max_allowed_packet=603892812,
max_execution_time=867785566718180352,
mysqlx_connect_timeout=117336440,
mysqlx_document_id_unique_prefix=63350,
mysqlx_idle_worker_thread_timeout=1458,
mysqlx_interactive_timeout=1119273,
mysqlx_max_allowed_packet=442093963,
mysqlx_min_worker_threads=32,
mysqlx_read_timeout=1479037,
mysqlx_wait_timeout=2108503,
mysqlx_write_timeout=168110,
net_read_timeout=24002399,
net_write_timeout=24303552,
parser_max_mem_size=7153736530089365120,
query_alloc_block_size=838018050,
query_prealloc_size=4642408759882811392,
regexp_time_limit=542312564,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=8469260775669448704,
mysqlx_deflate_default_compression_level=7,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=5,
mysqlx_lz4_default_compression_level=1,
mysqlx_zstd_max_client_compression_level=5,
mysqlx_zstd_default_compression_level=1,
mysql_zstd_default_compression_level=4,
sort_buffer_size=5051388652324478976,
wait_timeout=1379999,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=63200,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=853434,
binlog_group_commit_sync_no_delay_count=62776,
replica_net_timeout=8827900,
require_secure_transport=True,
innodb_redo_log_capacity=40284873096,
thread_pool_transaction_delay=86055,
thread_pool_query_threads_per_group=877,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=8351955992687212544,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=286208,
table_open_cache=155371,
relay_log_space_limit=8688558703662269440,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=256,
skip_name_resolve=True,
max_user_connections=2056901704,
join_buffer_size=2779312779092778112,
max_seeks_for_key=8101624617628231681,
range_optimizer_max_mem_size=426674586729604096,
auto_increment_increment=14199,
auto_increment_offset=19989,
innodb_autoinc_lock_mode=258,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=4231271089868247552,
innodb_sort_buffer_size=45201081,
innodb_numa_interleave=False,
thread_pool_size=490,
long_query_time=23909165),
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_u0XDz': 'EXAMPLE_VALUE_Y9ifbUnO1WKhWxd3Jgbv'},
defined_tags={
'EXAMPLE_KEY_VBTwx': {
'EXAMPLE_KEY_03N3x': 'EXAMPLE--Value'}}),
opc_request_id="UJPCZQCR0NDHGSLFFHCZ<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)