# 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="RELEASE",
big_tables=True,
character_set_server="GB18030",
collation_server="UTF16_SINHALA_CI",
connection_memory_chunk_size=65936802,
connection_memory_limit=6716711156682219520,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=3546170820907158016,
global_connection_memory_tracking=False,
transaction_isolation="SERIALIZABLE",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=True,
group_replication_consistency="EVENTUAL",
group_concat_max_len=3925405769743622148,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=True,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=362,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=1115314833973030784,
innodb_ft_result_cache_limit=1997437295,
max_binlog_cache_size=31548048861205,
max_connect_errors=1304223423420172289,
max_heap_table_size=8458320913826550784,
max_connections=68160,
max_prepared_stmt_count=1483285,
connect_timeout=21087220,
cte_max_recursion_depth=44464814,
generated_random_password_length=229,
information_schema_stats_expiry=12189561,
innodb_buffer_pool_dump_pct=94,
innodb_buffer_pool_instances=37,
innodb_ddl_buffer_size=613706721,
innodb_ddl_threads=38,
innodb_ft_max_token_size=71,
innodb_ft_min_token_size=11,
innodb_ft_num_word_optimize=616,
innodb_lock_wait_timeout=418611925,
innodb_max_purge_lag=2295243598,
innodb_max_purge_lag_delay=13956,
interactive_timeout=16760062,
innodb_stats_persistent_sample_pages=5047354003601163265,
innodb_stats_transient_sample_pages=1394117987660214273,
innodb_strict_mode=True,
max_allowed_packet=245284469,
max_execution_time=4730483718752466944,
mysqlx_connect_timeout=267456369,
mysqlx_document_id_unique_prefix=58823,
mysqlx_idle_worker_thread_timeout=254,
mysqlx_interactive_timeout=1778623,
mysqlx_max_allowed_packet=129778950,
mysqlx_min_worker_threads=50,
mysqlx_read_timeout=436695,
mysqlx_wait_timeout=1638887,
mysqlx_write_timeout=198748,
net_read_timeout=17031540,
net_write_timeout=13334690,
parser_max_mem_size=5688124059728178816,
query_alloc_block_size=3953556227,
query_prealloc_size=5692470562487397376,
regexp_time_limit=90990392,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=7650358377314181120,
mysqlx_deflate_default_compression_level=4,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=12,
mysqlx_lz4_default_compression_level=14,
mysqlx_zstd_max_client_compression_level=9,
mysqlx_zstd_default_compression_level=15,
mysql_zstd_default_compression_level=8,
sort_buffer_size=8863935285047696384,
wait_timeout=1039477,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=52107,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=296092,
binlog_group_commit_sync_no_delay_count=10010,
replica_net_timeout=5996203,
require_secure_transport=False,
innodb_redo_log_capacity=51402034521,
thread_pool_transaction_delay=290112,
thread_pool_query_threads_per_group=1802,
explain_format="JSON",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=8952242213881496576,
innodb_change_buffering="ALL",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=318090,
table_open_cache=251791,
relay_log_space_limit=2617240204140218368,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=224,
skip_name_resolve=True,
max_user_connections=2433798219,
join_buffer_size=7054718320277284992,
max_seeks_for_key=3692997336905247745,
range_optimizer_max_mem_size=7473453303899693056,
auto_increment_increment=31395,
auto_increment_offset=17043,
innodb_autoinc_lock_mode=7,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=6871775778199056384,
innodb_sort_buffer_size=33906050,
innodb_numa_interleave=True,
thread_pool_size=333,
long_query_time=16103327),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_7Zj2Y': 'EXAMPLE_VALUE_iDGiZFLTct291itlNEjN'},
defined_tags={
'EXAMPLE_KEY_gZmzq': {
'EXAMPLE_KEY_hwjep': 'EXAMPLE--Value'}}),
opc_request_id="MG39YFOMUQBBRHKAZUQL<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)