# 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="NO_CHAIN",
big_tables=True,
character_set_server="ASCII",
collation_server="UTF32_DANISH_CI",
connection_memory_chunk_size=169187447,
connection_memory_limit=2450349925730871296,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=8844820441305725952,
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="AFTER",
group_concat_max_len=2977962061137250308,
innodb_ft_enable_stopword=False,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=553,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=2912553214639124480,
innodb_ft_result_cache_limit=2725991376,
max_binlog_cache_size=60257497160063,
max_connect_errors=8923097436091437057,
max_heap_table_size=4374015311656642048,
max_connections=14486,
max_prepared_stmt_count=1548167,
connect_timeout=15199692,
cte_max_recursion_depth=1200429438,
generated_random_password_length=247,
information_schema_stats_expiry=24025478,
innodb_buffer_pool_dump_pct=57,
innodb_buffer_pool_instances=38,
innodb_ddl_buffer_size=2406814829,
innodb_ddl_threads=33,
innodb_ft_max_token_size=50,
innodb_ft_min_token_size=11,
innodb_ft_num_word_optimize=879,
innodb_lock_wait_timeout=105314758,
innodb_max_purge_lag=989015019,
innodb_max_purge_lag_delay=340526,
interactive_timeout=14057981,
innodb_stats_persistent_sample_pages=6557562588799238145,
innodb_stats_transient_sample_pages=7925805242238470145,
innodb_strict_mode=False,
max_allowed_packet=682900725,
max_execution_time=1119493497583047680,
mysqlx_connect_timeout=577463366,
mysqlx_document_id_unique_prefix=53245,
mysqlx_idle_worker_thread_timeout=1544,
mysqlx_interactive_timeout=182293,
mysqlx_max_allowed_packet=969789653,
mysqlx_min_worker_threads=18,
mysqlx_read_timeout=1954257,
mysqlx_wait_timeout=1035650,
mysqlx_write_timeout=420355,
net_read_timeout=11341502,
net_write_timeout=15201649,
parser_max_mem_size=2392502609014772864,
query_alloc_block_size=3284815194,
query_prealloc_size=2057620433119327488,
regexp_time_limit=1829607836,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=1245220374696555264,
mysqlx_deflate_default_compression_level=2,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=11,
mysqlx_lz4_default_compression_level=5,
mysqlx_zstd_max_client_compression_level=15,
mysqlx_zstd_default_compression_level=6,
mysql_zstd_default_compression_level=1,
sort_buffer_size=7457636116290052096,
wait_timeout=1076693,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=69741,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=366595,
binlog_group_commit_sync_no_delay_count=34759,
replica_net_timeout=23866857,
require_secure_transport=True,
innodb_redo_log_capacity=66221924605,
thread_pool_transaction_delay=56815,
thread_pool_query_threads_per_group=3712,
explain_format="JSON",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=7920058025592453120,
innodb_change_buffering="CHANGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=505534,
table_open_cache=393308,
relay_log_space_limit=3594636336957285376,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=760,
skip_name_resolve=False,
max_user_connections=1066567958,
join_buffer_size=7783455167698983040,
max_seeks_for_key=2706987883325305857,
range_optimizer_max_mem_size=1419503559161014272,
auto_increment_increment=62839,
auto_increment_offset=24145,
innodb_autoinc_lock_mode=59,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=8811746927350422528,
innodb_sort_buffer_size=51380537,
innodb_numa_interleave=False,
thread_pool_size=309,
long_query_time=18032072),
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_mCdns': 'EXAMPLE_VALUE_oaEZvfda8lKqRmLutnNf'},
defined_tags={
'EXAMPLE_KEY_T4upQ': {
'EXAMPLE_KEY_4SWLn': 'EXAMPLE--Value'}}),
opc_request_id="IADZAPKMP0TGVF3RCJ9F<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)