# 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="NO_CHAIN",
big_tables=True,
character_set_server="HP8",
collation_server="GB18030_CHINESE_CI",
connection_memory_chunk_size=436548953,
connection_memory_limit=5909089864445893632,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=6289140463799275520,
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=4613299943506777092,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=True,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=715,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=5113695614946355200,
innodb_ft_result_cache_limit=3930603066,
max_binlog_cache_size=41875815330360,
max_connect_errors=594350959310298113,
max_heap_table_size=8674091548924192768,
max_connections=63217,
max_prepared_stmt_count=2189105,
connect_timeout=4250661,
cte_max_recursion_depth=1274693288,
generated_random_password_length=80,
information_schema_stats_expiry=2715207,
innodb_buffer_pool_dump_pct=16,
innodb_buffer_pool_instances=21,
innodb_ddl_buffer_size=3028569925,
innodb_ddl_threads=10,
innodb_ft_max_token_size=28,
innodb_ft_min_token_size=8,
innodb_ft_num_word_optimize=12,
innodb_lock_wait_timeout=594491745,
innodb_max_purge_lag=3763478545,
innodb_max_purge_lag_delay=894713,
interactive_timeout=18880599,
innodb_stats_persistent_sample_pages=6915819988921460737,
innodb_stats_transient_sample_pages=3523406854806742017,
innodb_strict_mode=False,
max_allowed_packet=674858357,
max_execution_time=5976236174905522176,
mysqlx_connect_timeout=654266788,
mysqlx_document_id_unique_prefix=27348,
mysqlx_idle_worker_thread_timeout=1459,
mysqlx_interactive_timeout=926463,
mysqlx_max_allowed_packet=213902581,
mysqlx_min_worker_threads=36,
mysqlx_read_timeout=1345859,
mysqlx_wait_timeout=392075,
mysqlx_write_timeout=574564,
net_read_timeout=1735727,
net_write_timeout=20033099,
parser_max_mem_size=4546388565602334336,
query_alloc_block_size=3387606494,
query_prealloc_size=251677526031622944,
regexp_time_limit=1743925814,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=5476769243474288640,
mysqlx_deflate_default_compression_level=4,
mysqlx_deflate_max_client_compression_level=8,
mysqlx_lz4_max_client_compression_level=8,
mysqlx_lz4_default_compression_level=4,
mysqlx_zstd_max_client_compression_level=3,
mysqlx_zstd_default_compression_level=10,
mysql_zstd_default_compression_level=16,
sort_buffer_size=1162381227632066560,
wait_timeout=326346,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=62904,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=639467,
binlog_group_commit_sync_no_delay_count=68155,
replica_net_timeout=25444909,
require_secure_transport=True,
innodb_redo_log_capacity=73732707705,
thread_pool_transaction_delay=11949,
thread_pool_query_threads_per_group=1108,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=2331164234500251136,
innodb_change_buffering="INSERTS",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=68753,
table_open_cache=25395,
relay_log_space_limit=2483863127324024832,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=1022,
skip_name_resolve=True,
max_user_connections=2619512048,
join_buffer_size=1466408041164745856,
max_seeks_for_key=2298252329057850369,
range_optimizer_max_mem_size=8260575356717900800,
auto_increment_increment=55712,
auto_increment_offset=14708,
innodb_autoinc_lock_mode=623,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=4306798494766428160,
innodb_sort_buffer_size=32492968,
innodb_numa_interleave=False,
thread_pool_size=147,
long_query_time=24949300),
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_llF4h': 'EXAMPLE_VALUE_0dH8oPvrEi2scZ7pQHWL'},
defined_tags={
'EXAMPLE_KEY_9cok4': {
'EXAMPLE_KEY_4xXH1': 'EXAMPLE--Value'}}),
opc_request_id="KWDFSXNJSOG7KT4HO78V<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)